diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index e432063b..f25941af 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: 4302e3a6306363cdae4631f35837a08f + docChecksum: dd7efeb95cef6daa10a1d8d56e4c9f80 docVersion: "1.0" speakeasyVersion: 1.352.2 generationVersion: 2.385.2 - releaseVersion: 0.7.0 - configChecksum: 667ddfd9e17e10eb9bff49fdaa24ee48 + releaseVersion: 0.8.0 + configChecksum: 7589c0488e2ec56115f50034f3c91a7d repoURL: https://github.com/panoratech/typescript-sdk.git installationURL: https://github.com/panoratech/typescript-sdk published: true @@ -23,6 +23,7 @@ features: groups: 2.81.2 nameOverrides: 2.81.2 nullables: 0.1.0 + pagination: 2.82.6 responseFormat: 0.2.3 retries: 2.83.0 sdkHooks: 0.1.0 @@ -718,6 +719,7 @@ generatedFiles: - docs/models/operations/verifyeventresponsebody.md - docs/models/operations/listticketingticketrequest.md - docs/models/operations/listticketingticketresponsebody.md + - docs/models/operations/listticketingticketresponse.md - docs/models/operations/createticketingticketrequest.md - docs/models/operations/retrieveticketingticketrequest.md - docs/models/operations/listticketingusersrequest.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index e2828014..7c65c130 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.7.0 + version: 0.8.0 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index fa3d48fc..025da8b3 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.352.2 sources: panora-open-api-swagger: sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:3c0bfb5f43a6227de20afc1d490ac62ba907c48d9612bce357c73c54d81ed0d1 - sourceBlobDigest: sha256:79690563d75b09999a2a2c5a2ae55890f8d99c9beb8655a030aa8cf65ac8a5e6 + sourceRevisionDigest: sha256:d31ee6b03492d006ff057c755b122e4ea6693e7080f1292b0e2aeb4328f05361 + sourceBlobDigest: sha256:0ae8f7f57a3bb70f698bd200ddba96884c8d822104c8ba089194956a7b38059b tags: - latest - main @@ -11,10 +11,10 @@ targets: my-first-target: source: panora-open-api-swagger sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:3c0bfb5f43a6227de20afc1d490ac62ba907c48d9612bce357c73c54d81ed0d1 - sourceBlobDigest: sha256:79690563d75b09999a2a2c5a2ae55890f8d99c9beb8655a030aa8cf65ac8a5e6 + sourceRevisionDigest: sha256:d31ee6b03492d006ff057c755b122e4ea6693e7080f1292b0e2aeb4328f05361 + sourceBlobDigest: sha256:0ae8f7f57a3bb70f698bd200ddba96884c8d822104c8ba089194956a7b38059b codeSamplesNamespace: code-samples-typescript-my-first-target - codeSamplesRevisionDigest: sha256:b771a1dfd2030fd692dd3ce20d6dec789a2cb4ab290955f90634eccdd327a7de + codeSamplesRevisionDigest: sha256:27673a51cea00662072e057728706c5cf768148f9c06e33d1e6937b7ea0922a9 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/README.md b/README.md index 9f812939..442e902e 100644 --- a/README.md +++ b/README.md @@ -829,6 +829,43 @@ run(); ``` + +## Pagination + +Some of the endpoints in this SDK support pagination. To use pagination, you +make your SDK calls as usual, but the returned response object will also be an +async iterable that can be consumed using the [`for await...of`][for-await-of] +syntax. + +[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of + +Here's an example of one such pagination call: + +```typescript +import { Panora } from "@panora/sdk"; + +const panora = new Panora({ + apiKey: "", +}); + +async function run() { + const result = await panora.ticketing.tickets.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // handle page + } +} + +run(); + +``` + + # Development diff --git a/RELEASES.md b/RELEASES.md index 601d6b22..a544a8ac 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -138,4 +138,14 @@ Based on: ### Generated - [typescript v0.7.0] . ### Releases -- [NPM v0.7.0] https://www.npmjs.com/package/@panora/sdk/v/0.7.0 - . \ No newline at end of file +- [NPM v0.7.0] https://www.npmjs.com/package/@panora/sdk/v/0.7.0 - . + +## 2024-08-06 04:22:01 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.352.2 (2.385.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.8.0] . +### Releases +- [NPM v0.8.0] https://www.npmjs.com/package/@panora/sdk/v/0.8.0 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index cb3a9350..a237c71e 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,11 +3,11 @@ info: title: CodeSamples overlay for typescript target version: 0.0.0 actions: - - target: $["paths"]["/crm/deals"]["post"] + - target: $["paths"]["/webhooks"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmDeal + label: listWebhooks source: |- import { Panora } from "@panora/sdk"; @@ -16,32 +16,18 @@ actions: }); async function run() { - const result = await panora.crm.deals.create({ - xConnectionToken: "", - unifiedCrmDealInput: { - name: "Huge Contract with Acme", - description: "Contract with Sales Operations Team", - amount: 1000, - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - stageId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, - }); + const result = await panora.webhooks.list(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/hris/locations/{id}"]["get"] + - target: $["paths"]["/crm/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisLocation + label: retrieveCrmContact source: |- import { Panora } from "@panora/sdk"; @@ -50,7 +36,7 @@ actions: }); async function run() { - const result = await panora.hris.locations.retrieve({ + const result = await panora.crm.contacts.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -61,11 +47,11 @@ actions: } run(); - - target: $["paths"]["/ats/departments/{id}"]["get"] + - target: $["paths"]["/ats/applications/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsDepartment + label: retrieveAtsApplication source: |- import { Panora } from "@panora/sdk"; @@ -74,7 +60,7 @@ actions: }); async function run() { - const result = await panora.ats.departments.retrieve({ + const result = await panora.ats.applications.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -85,11 +71,11 @@ actions: } run(); - - target: $["paths"]["/accounting/vendorcredits/{id}"]["get"] + - target: $["paths"]["/ats/eeocs"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingVendorCredit + label: listAtsEeocs source: |- import { Panora } from "@panora/sdk"; @@ -98,10 +84,11 @@ actions: }); async function run() { - const result = await panora.accounting.vendorcredits.retrieve({ + const result = await panora.ats.eeocs.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -109,11 +96,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/folders/{id}"]["get"] + - target: $["paths"]["/accounting/attachments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageFolder + label: retrieveAccountingAttachment source: |- import { Panora } from "@panora/sdk"; @@ -122,7 +109,7 @@ actions: }); async function run() { - const result = await panora.filestorage.folders.retrieve({ + const result = await panora.accounting.attachments.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -133,11 +120,11 @@ actions: } run(); - - target: $["paths"]["/webhooks/{id}"]["delete"] + - target: $["paths"]["/ats/activities"]["get"] update: x-codeSamples: - lang: typescript - label: delete + label: listAtsActivity source: |- import { Panora } from "@panora/sdk"; @@ -146,8 +133,11 @@ actions: }); async function run() { - const result = await panora.webhooks.delete({ - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + const result = await panora.ats.activities.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -155,24 +145,67 @@ actions: } run(); - - target: $["paths"]["/accounting/addresses"]["get"] + - target: $["paths"]["/ats/candidates"]["post"] update: x-codeSamples: - lang: typescript - label: listAccountingAddress + label: createAtsCandidate source: |- import { Panora } from "@panora/sdk"; + import { EmailAddressType, PhoneType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.accounting.addresses.list({ + const result = await panora.ats.candidates.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedAtsCandidateInput: { + firstName: "Joe", + lastName: "Doe", + company: "Acme", + title: "Analyst", + locations: "New York", + isPrivate: false, + emailReachable: true, + remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), + remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), + lastInteractionAt: new Date("2024-10-01T12:00:00Z"), + attachments: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + applications: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + tags: [ + "tag_1", + "tag_2", + ], + urls: [ + { + url: "mywebsite.com", + urlType: "WEBSITE", + }, + ], + phoneNumbers: [ + { + phoneNumber: "+33660688899", + phoneType: PhoneType.Work, + }, + ], + emailAddresses: [ + { + emailAddress: "joedoe@gmail.com", + emailAddressType: EmailAddressType.Work, + }, + ], + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -180,11 +213,11 @@ actions: } run(); - - target: $["paths"]["/accounting/attachments"]["get"] + - target: $["paths"]["/accounting/phonenumbers"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingAttachments + label: listAccountingPhonenumber source: |- import { Panora } from "@panora/sdk"; @@ -193,7 +226,7 @@ actions: }); async function run() { - const result = await panora.accounting.attachments.list({ + const result = await panora.accounting.phonenumbers.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -205,11 +238,11 @@ actions: } run(); - - target: $["paths"]["/ats/scorecards/{id}"]["get"] + - target: $["paths"]["/hris/bankinfos"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsScorecard + label: listHrisBankInfo source: |- import { Panora } from "@panora/sdk"; @@ -218,10 +251,11 @@ actions: }); async function run() { - const result = await panora.ats.scorecards.retrieve({ + const result = await panora.hris.bankinfos.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -229,11 +263,11 @@ actions: } run(); - - target: $["paths"]["/ats/jobs"]["get"] + - target: $["paths"]["/hris/paygroups"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsJob + label: listHrisPaygroups source: |- import { Panora } from "@panora/sdk"; @@ -242,7 +276,7 @@ actions: }); async function run() { - const result = await panora.ats.jobs.list({ + const result = await panora.hris.paygroups.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -254,11 +288,11 @@ actions: } run(); - - target: $["paths"]["/ats/offers/{id}"]["get"] + - target: $["paths"]["/filestorage/drives/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsOffer + label: retrieveFilestorageDrive source: |- import { Panora } from "@panora/sdk"; @@ -267,7 +301,7 @@ actions: }); async function run() { - const result = await panora.ats.offers.retrieve({ + const result = await panora.filestorage.drives.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -278,11 +312,11 @@ actions: } run(); - - target: $["paths"]["/accounting/incomestatements/{id}"]["get"] + - target: $["paths"]["/webhooks/{id}"]["delete"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingIncomeStatement + label: delete source: |- import { Panora } from "@panora/sdk"; @@ -291,10 +325,8 @@ actions: }); async function run() { - const result = await panora.accounting.incomestatements.retrieve({ - xConnectionToken: "", + const result = await panora.webhooks.delete({ id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, }); // Handle the result @@ -302,11 +334,11 @@ actions: } run(); - - target: $["paths"]["/accounting/phonenumbers"]["get"] + - target: $["paths"]["/accounting/transactions/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingPhonenumber + label: retrieveAccountingTransaction source: |- import { Panora } from "@panora/sdk"; @@ -315,11 +347,10 @@ actions: }); async function run() { - const result = await panora.accounting.phonenumbers.list({ + const result = await panora.accounting.transactions.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -327,11 +358,11 @@ actions: } run(); - - target: $["paths"]["/hris/paygroups/{id}"]["get"] + - target: $["paths"]["/ticketing/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisPaygroup + label: retrieveTicketingUser source: |- import { Panora } from "@panora/sdk"; @@ -340,7 +371,7 @@ actions: }); async function run() { - const result = await panora.hris.paygroups.retrieve({ + const result = await panora.ticketing.users.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -351,11 +382,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/contacts/{id}"]["get"] + - target: $["paths"]["/crm/deals"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingContact + label: listCrmDeals source: |- import { Panora } from "@panora/sdk"; @@ -364,9 +395,11 @@ actions: }); async function run() { - const result = await panora.ticketing.contacts.retrieve({ + const result = await panora.crm.deals.list({ xConnectionToken: "", - id: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -374,11 +407,11 @@ actions: } run(); - - target: $["paths"]["/crm/contacts"]["get"] + - target: $["paths"]["/hris/timeoffs"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmContacts + label: listHrisTimeoffs source: |- import { Panora } from "@panora/sdk"; @@ -387,7 +420,7 @@ actions: }); async function run() { - const result = await panora.crm.contacts.list({ + const result = await panora.hris.timeoffs.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -399,28 +432,36 @@ actions: } run(); - - target: $["paths"]["/field_mappings"]["post"] + - target: $["paths"]["/crm/tasks"]["post"] update: x-codeSamples: - lang: typescript - label: defineCustomField + label: createCrmTask source: |- import { Panora } from "@panora/sdk"; - import { CustomFieldCreateDtoDataType, CustomFieldCreateDtoObjectTypeOwner } from "@panora/sdk/models/components"; + import { UnifiedCrmTaskInputStatus } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.fieldMappings.defineCustomField({ - objectTypeOwner: CustomFieldCreateDtoObjectTypeOwner.Company, - name: "my_favorite_dish", - description: "Favorite Dish", - dataType: CustomFieldCreateDtoDataType.String, - sourceCustomFieldId: "id_1", - sourceProvider: "hubspot", - linkedUserId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + const result = await panora.crm.tasks.create({ + xConnectionToken: "", + unifiedCrmTaskInput: { + subject: "Answer customers", + content: "Prepare email campaign", + status: UnifiedCrmTaskInputStatus.Pending, + dueDate: "2024-10-01T12:00:00Z", + finishedDate: "2024-10-01T12:00:00Z", + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + dealId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -428,11 +469,11 @@ actions: } run(); - - target: $["paths"]["/ats/users"]["get"] + - target: $["paths"]["/accounting/payments"]["post"] update: x-codeSamples: - lang: typescript - label: listAtsUsers + label: createAccountingPayment source: |- import { Panora } from "@panora/sdk"; @@ -441,11 +482,10 @@ actions: }); async function run() { - const result = await panora.ats.users.list({ + const result = await panora.accounting.payments.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedAccountingPaymentInput: {}, }); // Handle the result @@ -453,11 +493,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/messages"]["get"] + - target: $["paths"]["/hris/companies/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationMessages + label: retrieveHrisCompany source: |- import { Panora } from "@panora/sdk"; @@ -466,11 +506,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.messages.list({ + const result = await panora.hris.companies.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -478,11 +517,11 @@ actions: } run(); - - target: $["paths"]["/ats/offices/{id}"]["get"] + - target: $["paths"]["/hris/groups/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsOffice + label: retrieveHrisGroup source: |- import { Panora } from "@panora/sdk"; @@ -491,7 +530,7 @@ actions: }); async function run() { - const result = await panora.ats.offices.retrieve({ + const result = await panora.hris.groups.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -502,11 +541,11 @@ actions: } run(); - - target: $["paths"]["/accounting/expenses"]["get"] + - target: $["paths"]["/accounting/addresses"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingExpense + label: listAccountingAddress source: |- import { Panora } from "@panora/sdk"; @@ -515,7 +554,7 @@ actions: }); async function run() { - const result = await panora.accounting.expenses.list({ + const result = await panora.accounting.addresses.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -527,11 +566,11 @@ actions: } run(); - - target: $["paths"]["/crm/stages/{id}"]["get"] + - target: $["paths"]["/hris/employees"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveCrmStage + label: createHrisEmployee source: |- import { Panora } from "@panora/sdk"; @@ -540,10 +579,9 @@ actions: }); async function run() { - const result = await panora.crm.stages.retrieve({ + const result = await panora.hris.employees.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + unifiedHrisEmployeeInput: {}, }); // Handle the result @@ -551,11 +589,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/events/{id}"]["get"] + - target: $["paths"]["/hris/timeoffs"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationEvent + label: createHrisTimeoff source: |- import { Panora } from "@panora/sdk"; @@ -564,10 +602,9 @@ actions: }); async function run() { - const result = await panora.marketingautomation.events.retrieve({ + const result = await panora.hris.timeoffs.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + unifiedHrisTimeoffInput: {}, }); // Handle the result @@ -575,11 +612,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/templates"]["post"] + - target: $["paths"]["/marketingautomation/campaigns/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationTemplate + label: retrieveMarketingautomationCampaign source: |- import { Panora } from "@panora/sdk"; @@ -588,9 +625,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.templates.create({ + const result = await panora.marketingautomation.campaigns.retrieve({ xConnectionToken: "", - unifiedMarketingautomationTemplateInput: {}, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -598,11 +636,17 @@ actions: } run(); - - target: $["paths"]["/ats/jobinterviewstages"]["get"] + - target: $["paths"]["/auth/login"]["post"] update: x-codeSamples: - lang: typescript - label: listAtsJobInterviewStage + label: signIn + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n await panora.auth.login.signIn({\n idUser: \"\",\n email: \"Oda.Treutel97@hotmail.com\",\n passwordHash: \"\",\n });\n\n \n}\n\nrun();" + - target: $["paths"]["/marketingautomation/emails/{id}"]["get"] + update: + x-codeSamples: + - lang: typescript + label: retrieveMarketingautomationEmail source: |- import { Panora } from "@panora/sdk"; @@ -611,11 +655,10 @@ actions: }); async function run() { - const result = await panora.ats.jobinterviewstages.list({ + const result = await panora.marketingautomation.emails.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -623,11 +666,11 @@ actions: } run(); - - target: $["paths"]["/accounting/purchaseorders/{id}"]["get"] + - target: $["paths"]["/ats/departments"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingPurchaseOrder + label: listAtsDepartments source: |- import { Panora } from "@panora/sdk"; @@ -636,10 +679,11 @@ actions: }); async function run() { - const result = await panora.accounting.purchaseorders.retrieve({ + const result = await panora.ats.departments.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -647,11 +691,11 @@ actions: } run(); - - target: $["paths"]["/ats/applications"]["post"] + - target: $["paths"]["/ticketing/collections"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsApplication + label: listTicketingCollections source: |- import { Panora } from "@panora/sdk"; @@ -660,27 +704,11 @@ actions: }); async function run() { - const result = await panora.ats.applications.create({ + const result = await panora.ticketing.collections.list({ xConnectionToken: "", - remoteData: false, - unifiedAtsApplicationInput: { - appliedAt: new Date("2024-10-01T12:00:00Z"), - rejectedAt: new Date("2024-10-01T12:00:00Z"), - offers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "12345678-1234-1234-1234-123456789012", - ], - source: "Source Name", - creditedTo: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - currentStage: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - rejectReason: "Candidate not experienced enough", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -688,11 +716,11 @@ actions: } run(); - - target: $["paths"]["/ats/users/{id}"]["get"] + - target: $["paths"]["/hris/employments"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsUser + label: listHrisEmployments source: |- import { Panora } from "@panora/sdk"; @@ -701,10 +729,11 @@ actions: }); async function run() { - const result = await panora.ats.users.retrieve({ + const result = await panora.hris.employments.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -712,11 +741,11 @@ actions: } run(); - - target: $["paths"]["/accounting/transactions/{id}"]["get"] + - target: $["paths"]["/ats/offices"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingTransaction + label: listAtsOffice source: |- import { Panora } from "@panora/sdk"; @@ -725,10 +754,11 @@ actions: }); async function run() { - const result = await panora.accounting.transactions.retrieve({ + const result = await panora.ats.offices.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -736,11 +766,11 @@ actions: } run(); - - target: $["paths"]["/ats/eeocs/{id}"]["get"] + - target: $["paths"]["/accounting/trackingcategories"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsEeocs + label: listAccountingTrackingCategorys source: |- import { Panora } from "@panora/sdk"; @@ -749,9 +779,11 @@ actions: }); async function run() { - const result = await panora.ats.eeocs.retrieve({ + const result = await panora.accounting.trackingcategories.list({ xConnectionToken: "", - id: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -759,11 +791,11 @@ actions: } run(); - - target: $["paths"]["/accounting/creditnotes/{id}"]["get"] + - target: $["paths"]["/filestorage/groups/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingCreditNote + label: retrieveFilestorageGroup source: |- import { Panora } from "@panora/sdk"; @@ -772,7 +804,7 @@ actions: }); async function run() { - const result = await panora.accounting.creditnotes.retrieve({ + const result = await panora.filestorage.groups.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -783,23 +815,28 @@ actions: } run(); - - target: $["paths"]["/accounting/journalentries/{id}"]["get"] + - target: $["paths"]["/field_mappings"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingJournalEntry + label: defineCustomField source: |- import { Panora } from "@panora/sdk"; + import { CustomFieldCreateDtoDataType, CustomFieldCreateDtoObjectTypeOwner } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.accounting.journalentries.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + const result = await panora.fieldMappings.defineCustomField({ + objectTypeOwner: CustomFieldCreateDtoObjectTypeOwner.Company, + name: "my_favorite_dish", + description: "Favorite Dish", + dataType: CustomFieldCreateDtoDataType.String, + sourceCustomFieldId: "id_1", + sourceProvider: "hubspot", + linkedUserId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); // Handle the result @@ -807,11 +844,11 @@ actions: } run(); - - target: $["paths"]["/accounting/trackingcategories"]["get"] + - target: $["paths"]["/hris/employerbenefits/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingTrackingCategorys + label: retrieveHrisEmployerBenefit source: |- import { Panora } from "@panora/sdk"; @@ -820,11 +857,10 @@ actions: }); async function run() { - const result = await panora.accounting.trackingcategories.list({ + const result = await panora.hris.employerbenefits.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -832,11 +868,11 @@ actions: } run(); - - target: $["paths"]["/crm/contacts/{id}"]["get"] + - target: $["paths"]["/ats/applications"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveCrmContact + label: createAtsApplication source: |- import { Panora } from "@panora/sdk"; @@ -845,10 +881,27 @@ actions: }); async function run() { - const result = await panora.crm.contacts.retrieve({ + const result = await panora.ats.applications.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedAtsApplicationInput: { + appliedAt: new Date("2024-10-01T12:00:00Z"), + rejectedAt: new Date("2024-10-01T12:00:00Z"), + offers: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "12345678-1234-1234-1234-123456789012", + ], + source: "Source Name", + creditedTo: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + currentStage: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + rejectReason: "Candidate not experienced enough", + candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -856,11 +909,11 @@ actions: } run(); - - target: $["paths"]["/crm/notes/{id}"]["get"] + - target: $["paths"]["/webhooks/verifyEvent"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveCrmNote + label: verifyEvent source: |- import { Panora } from "@panora/sdk"; @@ -869,10 +922,12 @@ actions: }); async function run() { - const result = await panora.crm.notes.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + const result = await panora.webhooks.verifyEvent({ + payload: { + "key": "", + }, + signature: "", + secret: "", }); // Handle the result @@ -880,67 +935,24 @@ actions: } run(); - - target: $["paths"]["/ats/candidates"]["post"] + - target: $["paths"]["/marketingautomation/users"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsCandidate + label: listMarketingAutomationUsers source: |- import { Panora } from "@panora/sdk"; - import { EmailAddressType, PhoneType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ats.candidates.create({ + const result = await panora.marketingautomation.users.list({ xConnectionToken: "", - remoteData: false, - unifiedAtsCandidateInput: { - firstName: "Joe", - lastName: "Doe", - company: "Acme", - title: "Analyst", - locations: "New York", - isPrivate: false, - emailReachable: true, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - lastInteractionAt: new Date("2024-10-01T12:00:00Z"), - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - applications: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - tags: [ - "tag_1", - "tag_2", - ], - urls: [ - { - url: "mywebsite.com", - urlType: "WEBSITE", - }, - ], - phoneNumbers: [ - { - phoneNumber: "+33660688899", - phoneType: PhoneType.Work, - }, - ], - emailAddresses: [ - { - emailAddress: "joedoe@gmail.com", - emailAddressType: EmailAddressType.Work, - }, - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -948,11 +960,11 @@ actions: } run(); - - target: $["paths"]["/hris/employeepayrollruns"]["get"] + - target: $["paths"]["/accounting/transactions"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisEmployeePayrollRun + label: listAccountingTransaction source: |- import { Panora } from "@panora/sdk"; @@ -961,7 +973,7 @@ actions: }); async function run() { - const result = await panora.hris.employeepayrollruns.list({ + const result = await panora.accounting.transactions.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -973,11 +985,11 @@ actions: } run(); - - target: $["paths"]["/hris/benefits/{id}"]["get"] + - target: $["paths"]["/events"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisBenefit + label: getPanoraCoreEvents source: |- import { Panora } from "@panora/sdk"; @@ -986,35 +998,41 @@ actions: }); async function run() { - const result = await panora.hris.benefits.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); + const result = await panora.events.getPanoraCoreEvents({}); // Handle the result console.log(result) } run(); - - target: $["paths"]["/ticketing/teams"]["get"] + - target: $["paths"]["/ticketing/comments"]["post"] update: x-codeSamples: - lang: typescript - label: listTicketingTeams + label: createTicketingComment source: |- import { Panora } from "@panora/sdk"; + import { UnifiedTicketingCommentInputCreatorType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ticketing.teams.list({ + const result = await panora.ticketing.comments.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + unifiedTicketingCommentInput: { + body: "Assigned to Eric !", + htmlBody: "

Assigned to Eric !

", + isPrivate: false, + creatorType: UnifiedTicketingCommentInputCreatorType.User, + ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + attachments: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + }, }); // Handle the result @@ -1022,34 +1040,24 @@ actions: } run(); - - target: $["paths"]["/passthrough"]["post"] + - target: $["paths"]["/ticketing/tags"]["get"] update: x-codeSamples: - lang: typescript - label: request + label: listTicketingTags source: |- import { Panora } from "@panora/sdk"; - import { PassThroughRequestDtoMethod } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.passthrough.request({ - integrationId: "", - linkedUserId: "", - vertical: "", - passThroughRequestDto: { - method: PassThroughRequestDtoMethod.Get, - path: "/dev", - data: { - "key": "", - }, - headers: { - "key": "", - }, - }, + const result = await panora.ticketing.tags.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -1057,11 +1065,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/messages/{id}"]["get"] + - target: $["paths"]["/ats/offices/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationMessage + label: retrieveAtsOffice source: |- import { Panora } from "@panora/sdk"; @@ -1070,7 +1078,7 @@ actions: }); async function run() { - const result = await panora.marketingautomation.messages.retrieve({ + const result = await panora.ats.offices.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1081,11 +1089,11 @@ actions: } run(); - - target: $["paths"]["/"]["get"] + - target: $["paths"]["/accounting/journalentries"]["get"] update: x-codeSamples: - lang: typescript - label: hello + label: listAccountingJournalEntry source: |- import { Panora } from "@panora/sdk"; @@ -1094,18 +1102,23 @@ actions: }); async function run() { - const result = await panora.hello(); + const result = await panora.accounting.journalentries.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/hris/employerbenefits/{id}"]["get"] + - target: $["paths"]["/hris/groups"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisEmployerBenefit + label: listHrisGroups source: |- import { Panora } from "@panora/sdk"; @@ -1114,10 +1127,11 @@ actions: }); async function run() { - const result = await panora.hris.employerbenefits.retrieve({ + const result = await panora.hris.groups.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -1125,11 +1139,11 @@ actions: } run(); - - target: $["paths"]["/hris/employments/{id}"]["get"] + - target: $["paths"]["/marketingautomation/campaigns"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveHrisEmployment + label: createMarketingautomationCampaign source: |- import { Panora } from "@panora/sdk"; @@ -1138,10 +1152,10 @@ actions: }); async function run() { - const result = await panora.hris.employments.retrieve({ + const result = await panora.marketingautomation.campaigns.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedMarketingautomationCampaignInput: {}, }); // Handle the result @@ -1149,11 +1163,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/automations/{id}"]["get"] + - target: $["paths"]["/ats/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationAutomation + label: retrieveAtsUser source: |- import { Panora } from "@panora/sdk"; @@ -1162,7 +1176,7 @@ actions: }); async function run() { - const result = await panora.marketingautomation.automations.retrieve({ + const result = await panora.ats.users.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1173,11 +1187,11 @@ actions: } run(); - - target: $["paths"]["/accounting/phonenumbers/{id}"]["get"] + - target: $["paths"]["/accounting/taxrates/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingPhonenumber + label: retrieveAccountingTaxRate source: |- import { Panora } from "@panora/sdk"; @@ -1186,7 +1200,7 @@ actions: }); async function run() { - const result = await panora.accounting.phonenumbers.retrieve({ + const result = await panora.accounting.taxrates.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1197,11 +1211,11 @@ actions: } run(); - - target: $["paths"]["/accounting/items/{id}"]["get"] + - target: $["paths"]["/ticketing/tickets"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingItem + label: listTicketingTicket source: |- import { Panora } from "@panora/sdk"; @@ -1210,22 +1224,24 @@ actions: }); async function run() { - const result = await panora.accounting.items.retrieve({ + const result = await panora.ticketing.tickets.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/marketingautomation/emails"]["get"] + - target: $["paths"]["/ticketing/tags/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationEmails + label: retrieveTicketingTag source: |- import { Panora } from "@panora/sdk"; @@ -1234,11 +1250,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.emails.list({ + const result = await panora.ticketing.tags.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -1246,11 +1261,11 @@ actions: } run(); - - target: $["paths"]["/accounting/accounts/{id}"]["get"] + - target: $["paths"]["/crm/notes/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingAccount + label: retrieveCrmNote source: |- import { Panora } from "@panora/sdk"; @@ -1259,7 +1274,7 @@ actions: }); async function run() { - const result = await panora.accounting.accounts.retrieve({ + const result = await panora.crm.notes.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1270,11 +1285,11 @@ actions: } run(); - - target: $["paths"]["/accounting/contacts"]["get"] + - target: $["paths"]["/marketingautomation/events/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingContacts + label: retrieveMarketingautomationEvent source: |- import { Panora } from "@panora/sdk"; @@ -1283,11 +1298,10 @@ actions: }); async function run() { - const result = await panora.accounting.contacts.list({ + const result = await panora.marketingautomation.events.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -1295,11 +1309,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/collections"]["get"] + - target: $["paths"]["/accounting/payments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingCollections + label: retrieveAccountingPayment source: |- import { Panora } from "@panora/sdk"; @@ -1308,11 +1322,10 @@ actions: }); async function run() { - const result = await panora.ticketing.collections.list({ + const result = await panora.accounting.payments.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -1320,11 +1333,11 @@ actions: } run(); - - target: $["paths"]["/accounting/invoices"]["get"] + - target: $["paths"]["/ticketing/tickets/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingInvoice + label: retrieveTicketingTicket source: |- import { Panora } from "@panora/sdk"; @@ -1333,11 +1346,10 @@ actions: }); async function run() { - const result = await panora.accounting.invoices.list({ + const result = await panora.ticketing.tickets.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -1345,11 +1357,11 @@ actions: } run(); - - target: $["paths"]["/projects"]["post"] + - target: $["paths"]["/hris/benefits/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createProject + label: retrieveHrisBenefit source: |- import { Panora } from "@panora/sdk"; @@ -1358,10 +1370,10 @@ actions: }); async function run() { - const result = await panora.projects.create({ - name: "Project Name", - idOrganization: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - idUser: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + const result = await panora.hris.benefits.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -1369,11 +1381,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/automations"]["post"] + - target: $["paths"]["/hris/locations"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationAutomation + label: listHrisLocations source: |- import { Panora } from "@panora/sdk"; @@ -1382,10 +1394,11 @@ actions: }); async function run() { - const result = await panora.marketingautomation.automations.create({ + const result = await panora.hris.locations.list({ xConnectionToken: "", - remoteData: false, - unifiedMarketingautomationAutomationInput: {}, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -1393,11 +1406,11 @@ actions: } run(); - - target: $["paths"]["/ats/candidates/{id}"]["get"] + - target: $["paths"]["/marketingautomation/templates/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsCandidate + label: retrieveMarketingautomationTemplate source: |- import { Panora } from "@panora/sdk"; @@ -1406,7 +1419,7 @@ actions: }); async function run() { - const result = await panora.ats.candidates.retrieve({ + const result = await panora.marketingautomation.templates.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1417,11 +1430,11 @@ actions: } run(); - - target: $["paths"]["/accounting/balancesheets/{id}"]["get"] + - target: $["paths"]["/accounting/purchaseorders"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingBalanceSheet + label: createAccountingPurchaseOrder source: |- import { Panora } from "@panora/sdk"; @@ -1430,10 +1443,10 @@ actions: }); async function run() { - const result = await panora.accounting.balancesheets.retrieve({ + const result = await panora.accounting.purchaseorders.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedAccountingPurchaseorderInput: {}, }); // Handle the result @@ -1441,11 +1454,11 @@ actions: } run(); - - target: $["paths"]["/accounting/cashflowstatements/{id}"]["get"] + - target: $["paths"]["/accounting/creditnotes/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingCashflowStatement + label: retrieveAccountingCreditNote source: |- import { Panora } from "@panora/sdk"; @@ -1454,7 +1467,7 @@ actions: }); async function run() { - const result = await panora.accounting.cashflowstatements.retrieve({ + const result = await panora.accounting.creditnotes.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1465,11 +1478,11 @@ actions: } run(); - - target: $["paths"]["/accounting/payments/{id}"]["get"] + - target: $["paths"]["/hris/timeoffs/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingPayment + label: retrieveHrisTimeoff source: |- import { Panora } from "@panora/sdk"; @@ -1478,7 +1491,7 @@ actions: }); async function run() { - const result = await panora.accounting.payments.retrieve({ + const result = await panora.hris.timeoffs.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1489,34 +1502,24 @@ actions: } run(); - - target: $["paths"]["/ticketing/comments"]["post"] + - target: $["paths"]["/marketingautomation/automations"]["get"] update: x-codeSamples: - lang: typescript - label: createTicketingComment + label: listMarketingautomationAutomations source: |- import { Panora } from "@panora/sdk"; - import { UnifiedTicketingCommentInputCreatorType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ticketing.comments.create({ + const result = await panora.marketingautomation.automations.list({ xConnectionToken: "", - unifiedTicketingCommentInput: { - body: "Assigned to Eric !", - htmlBody: "

Assigned to Eric !

", - isPrivate: false, - creatorType: UnifiedTicketingCommentInputCreatorType.User, - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - }, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -1524,11 +1527,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/users/{id}"]["get"] + - target: $["paths"]["/marketingautomation/templates"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageUser + label: createMarketingautomationTemplate source: |- import { Panora } from "@panora/sdk"; @@ -1537,10 +1540,9 @@ actions: }); async function run() { - const result = await panora.filestorage.users.retrieve({ + const result = await panora.marketingautomation.templates.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + unifiedMarketingautomationTemplateInput: {}, }); // Handle the result @@ -1548,11 +1550,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/files"]["post"] + - target: $["paths"]["/ats/candidates/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createFilestorageFile + label: retrieveAtsCandidate source: |- import { Panora } from "@panora/sdk"; @@ -1561,22 +1563,10 @@ actions: }); async function run() { - const result = await panora.filestorage.files.create({ + const result = await panora.ats.candidates.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedFilestorageFileInput: { - name: "my_paris_photo.png", - fileUrl: "https://example.com/my_paris_photo.png", - mimeType: "application/pdf", - size: "1024", - folderId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - permission: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - sharedLink: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, }); // Handle the result @@ -1584,57 +1574,23 @@ actions: } run(); - - target: $["paths"]["/crm/companies"]["post"] + - target: $["paths"]["/accounting/cashflowstatements/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmCompany + label: retrieveAccountingCashflowStatement source: |- import { Panora } from "@panora/sdk"; - import { AddressType, EmailAddressType, PhoneType, UnifiedCrmCompanyInputIndustry } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.crm.companies.create({ + const result = await panora.accounting.cashflowstatements.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedCrmCompanyInput: { - name: "Acme", - industry: UnifiedCrmCompanyInputIndustry.Accounting, - numberOfEmployees: 10, - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - emailAddresses: [ - { - emailAddress: "acme@gmail.com", - emailAddressType: EmailAddressType.Work, - }, - ], - addresses: [ - { - street1: "5th Avenue", - street2: "", - city: "New York", - state: "NY", - postalCode: "46842", - country: "USA", - addressType: AddressType.Work, - ownerType: "", - }, - ], - phoneNumbers: [ - { - phoneNumber: "+33660606067", - phoneType: PhoneType.Work, - }, - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, }); // Handle the result @@ -1642,11 +1598,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/templates/{id}"]["get"] + - target: $["paths"]["/accounting/companyinfos"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationTemplate + label: listAccountingCompanyInfos source: |- import { Panora } from "@panora/sdk"; @@ -1655,10 +1611,11 @@ actions: }); async function run() { - const result = await panora.marketingautomation.templates.retrieve({ + const result = await panora.accounting.companyinfos.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -1666,11 +1623,11 @@ actions: } run(); - - target: $["paths"]["/ats/candidates"]["get"] + - target: $["paths"]["/accounting/journalentries"]["post"] update: x-codeSamples: - lang: typescript - label: listAtsCandidate + label: createAccountingJournalEntry source: |- import { Panora } from "@panora/sdk"; @@ -1679,11 +1636,10 @@ actions: }); async function run() { - const result = await panora.ats.candidates.list({ + const result = await panora.accounting.journalentries.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedAccountingJournalentryInput: {}, }); // Handle the result @@ -1691,11 +1647,11 @@ actions: } run(); - - target: $["paths"]["/ats/offers"]["get"] + - target: $["paths"]["/ticketing/comments"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsOffer + label: listTicketingComments source: |- import { Panora } from "@panora/sdk"; @@ -1704,7 +1660,7 @@ actions: }); async function run() { - const result = await panora.ats.offers.list({ + const result = await panora.ticketing.comments.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -1716,11 +1672,11 @@ actions: } run(); - - target: $["paths"]["/ats/rejectreasons/{id}"]["get"] + - target: $["paths"]["/hris/locations/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsRejectReason + label: retrieveHrisLocation source: |- import { Panora } from "@panora/sdk"; @@ -1729,7 +1685,7 @@ actions: }); async function run() { - const result = await panora.ats.rejectreasons.retrieve({ + const result = await panora.hris.locations.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1740,11 +1696,11 @@ actions: } run(); - - target: $["paths"]["/accounting/vendorcredits"]["get"] + - target: $["paths"]["/ticketing/accounts"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingVendorCredit + label: listTicketingAccount source: |- import { Panora } from "@panora/sdk"; @@ -1753,7 +1709,7 @@ actions: }); async function run() { - const result = await panora.accounting.vendorcredits.list({ + const result = await panora.ticketing.accounts.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -1765,11 +1721,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/attachments"]["get"] + - target: $["paths"]["/marketingautomation/actions/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingAttachments + label: retrieveMarketingautomationAction source: |- import { Panora } from "@panora/sdk"; @@ -1778,11 +1734,10 @@ actions: }); async function run() { - const result = await panora.ticketing.attachments.list({ + const result = await panora.marketingautomation.actions.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -1790,11 +1745,11 @@ actions: } run(); - - target: $["paths"]["/accounting/cashflowstatements"]["get"] + - target: $["paths"]["/marketingautomation/contacts"]["post"] update: x-codeSamples: - lang: typescript - label: listAccountingCashflowStatement + label: createMarketingAutomationContact source: |- import { Panora } from "@panora/sdk"; @@ -1803,11 +1758,10 @@ actions: }); async function run() { - const result = await panora.accounting.cashflowstatements.list({ + const result = await panora.marketingautomation.contacts.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedMarketingautomationContactInput: {}, }); // Handle the result @@ -1815,11 +1769,11 @@ actions: } run(); - - target: $["paths"]["/accounting/purchaseorders"]["post"] + - target: $["paths"]["/marketingautomation/lists"]["post"] update: x-codeSamples: - lang: typescript - label: createAccountingPurchaseOrder + label: createMarketingautomationList source: |- import { Panora } from "@panora/sdk"; @@ -1828,10 +1782,9 @@ actions: }); async function run() { - const result = await panora.accounting.purchaseorders.create({ + const result = await panora.marketingautomation.lists.create({ xConnectionToken: "", - remoteData: false, - unifiedAccountingPurchaseorderInput: {}, + unifiedMarketingautomationListInput: {}, }); // Handle the result @@ -1839,11 +1792,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/users"]["get"] + - target: $["paths"]["/ats/tags/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listFilestorageUsers + label: retrieveAtsTag source: |- import { Panora } from "@panora/sdk"; @@ -1852,11 +1805,10 @@ actions: }); async function run() { - const result = await panora.filestorage.users.list({ + const result = await panora.ats.tags.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -1864,11 +1816,11 @@ actions: } run(); - - target: $["paths"]["/sync/resync"]["post"] + - target: $["paths"]["/accounting/attachments"]["post"] update: x-codeSamples: - lang: typescript - label: resync + label: createAccountingAttachment source: |- import { Panora } from "@panora/sdk"; @@ -1877,18 +1829,22 @@ actions: }); async function run() { - const result = await panora.sync.resync(); + const result = await panora.accounting.attachments.create({ + xConnectionToken: "", + remoteData: false, + unifiedAccountingAttachmentInput: {}, + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/accounting/payments"]["post"] + - target: $["paths"]["/accounting/creditnotes"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingPayment + label: listAccountingCreditNote source: |- import { Panora } from "@panora/sdk"; @@ -1897,10 +1853,11 @@ actions: }); async function run() { - const result = await panora.accounting.payments.create({ + const result = await panora.accounting.creditnotes.list({ xConnectionToken: "", - remoteData: false, - unifiedAccountingPaymentInput: {}, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -1908,11 +1865,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/groups/{id}"]["get"] + - target: $["paths"]["/marketingautomation/lists/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageGroup + label: retrieveMarketingautomationList source: |- import { Panora } from "@panora/sdk"; @@ -1921,7 +1878,7 @@ actions: }); async function run() { - const result = await panora.filestorage.groups.retrieve({ + const result = await panora.marketingautomation.lists.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1932,11 +1889,11 @@ actions: } run(); - - target: $["paths"]["/hris/dependents/{id}"]["get"] + - target: $["paths"]["/accounting/items/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisDependent + label: retrieveAccountingItem source: |- import { Panora } from "@panora/sdk"; @@ -1945,7 +1902,7 @@ actions: }); async function run() { - const result = await panora.hris.dependents.retrieve({ + const result = await panora.accounting.items.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1956,11 +1913,11 @@ actions: } run(); - - target: $["paths"]["/accounting/companyinfos"]["get"] + - target: $["paths"]["/ats/users"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingCompanyInfos + label: listAtsUsers source: |- import { Panora } from "@panora/sdk"; @@ -1969,7 +1926,7 @@ actions: }); async function run() { - const result = await panora.accounting.companyinfos.list({ + const result = await panora.ats.users.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -1981,11 +1938,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/users"]["get"] + - target: $["paths"]["/accounting/attachments"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingUsers + label: listAccountingAttachments source: |- import { Panora } from "@panora/sdk"; @@ -1994,7 +1951,7 @@ actions: }); async function run() { - const result = await panora.ticketing.users.list({ + const result = await panora.accounting.attachments.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -2006,11 +1963,11 @@ actions: } run(); - - target: $["paths"]["/ats/applications"]["get"] + - target: $["paths"]["/accounting/incomestatements/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsApplication + label: retrieveAccountingIncomeStatement source: |- import { Panora } from "@panora/sdk"; @@ -2019,11 +1976,10 @@ actions: }); async function run() { - const result = await panora.ats.applications.list({ + const result = await panora.accounting.incomestatements.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2031,11 +1987,11 @@ actions: } run(); - - target: $["paths"]["/accounting/accounts"]["post"] + - target: $["paths"]["/ticketing/accounts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingAccount + label: retrieveTicketingAccount source: |- import { Panora } from "@panora/sdk"; @@ -2044,10 +2000,9 @@ actions: }); async function run() { - const result = await panora.accounting.accounts.create({ + const result = await panora.ticketing.accounts.retrieve({ xConnectionToken: "", - remoteData: false, - unifiedAccountingAccountInput: {}, + id: "", }); // Handle the result @@ -2055,11 +2010,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/accounts"]["get"] + - target: $["paths"]["/linked_users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingAccount + label: retrieveLinkedUser source: |- import { Panora } from "@panora/sdk"; @@ -2068,11 +2023,8 @@ actions: }); async function run() { - const result = await panora.ticketing.accounts.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + const result = await panora.linkedUsers.retrieve({ + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); // Handle the result @@ -2080,24 +2032,69 @@ actions: } run(); - - target: $["paths"]["/hris/bankinfos"]["get"] + - target: $["paths"]["/ticketing/tickets"]["post"] update: x-codeSamples: - lang: typescript - label: listHrisBankInfo + label: createTicketingTicket source: |- import { Panora } from "@panora/sdk"; + import { + UnifiedTicketingTicketInputCreatorType, + UnifiedTicketingTicketInputPriority, + UnifiedTicketingTicketInputStatus, + UnifiedTicketingTicketInputType, + } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.hris.bankinfos.list({ + const result = await panora.ticketing.tickets.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedTicketingTicketInput: { + name: "Customer Service Inquiry", + status: UnifiedTicketingTicketInputStatus.Open, + description: "Help customer", + dueDate: new Date("2024-10-01T12:00:00Z"), + type: UnifiedTicketingTicketInputType.Bug, + parentTicket: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + collections: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + tags: [ + "my_tag", + "urgent_tag", + ], + completedAt: new Date("2024-10-01T12:00:00Z"), + priority: UnifiedTicketingTicketInputPriority.High, + assignedTo: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + comment: { + body: "Assigned to Eric !", + htmlBody: "

Assigned to Eric !

", + isPrivate: false, + creatorType: UnifiedTicketingTicketInputCreatorType.User, + ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + attachments: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + }, + accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + attachments: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -2105,23 +2102,56 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/contacts"]["post"] + - target: $["paths"]["/crm/contacts"]["post"] update: x-codeSamples: - lang: typescript - label: createMarketingAutomationContact + label: createCrmContact source: |- import { Panora } from "@panora/sdk"; + import { AddressType, EmailAddressType, PhoneType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.marketingautomation.contacts.create({ + const result = await panora.crm.contacts.create({ xConnectionToken: "", remoteData: false, - unifiedMarketingautomationContactInput: {}, + unifiedCrmContactInput: { + firstName: "John", + lastName: "Doe", + emailAddresses: [ + { + emailAddress: "Jena.Nienow28@yahoo.com", + emailAddressType: EmailAddressType.Personal, + }, + ], + phoneNumbers: [ + { + phoneNumber: "", + phoneType: PhoneType.Work, + }, + ], + addresses: [ + { + street1: "", + street2: "", + city: "Anytown", + state: "CA", + postalCode: "97398", + country: "USA", + addressType: AddressType.Personal, + ownerType: "", + }, + ], + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -2129,11 +2159,11 @@ actions: } run(); - - target: $["paths"]["/ats/attachments"]["get"] + - target: $["paths"]["/marketingautomation/campaigns"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsAttachment + label: listMarketingautomationCampaigns source: |- import { Panora } from "@panora/sdk"; @@ -2142,7 +2172,7 @@ actions: }); async function run() { - const result = await panora.ats.attachments.list({ + const result = await panora.marketingautomation.campaigns.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -2154,11 +2184,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/contacts"]["get"] + - target: $["paths"]["/crm/deals/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingContacts + label: retrieveCrmDeal source: |- import { Panora } from "@panora/sdk"; @@ -2167,11 +2197,10 @@ actions: }); async function run() { - const result = await panora.ticketing.contacts.list({ + const result = await panora.crm.deals.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2179,11 +2208,11 @@ actions: } run(); - - target: $["paths"]["/crm/notes"]["post"] + - target: $["paths"]["/marketingautomation/events"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmNote + label: listMarketingAutomationEvents source: |- import { Panora } from "@panora/sdk"; @@ -2192,20 +2221,11 @@ actions: }); async function run() { - const result = await panora.crm.notes.create({ + const result = await panora.marketingautomation.events.list({ xConnectionToken: "", - remoteData: false, - unifiedCrmNoteInput: { - content: "My notes taken during the meeting", - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - dealId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -2213,11 +2233,11 @@ actions: } run(); - - target: $["paths"]["/hris/benefits"]["get"] + - target: $["paths"]["/marketingautomation/lists"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisBenefits + label: listMarketingautomationLists source: |- import { Panora } from "@panora/sdk"; @@ -2226,7 +2246,7 @@ actions: }); async function run() { - const result = await panora.hris.benefits.list({ + const result = await panora.marketingautomation.lists.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -2238,11 +2258,11 @@ actions: } run(); - - target: $["paths"]["/hris/timeoffs/{id}"]["get"] + - target: $["paths"]["/marketingautomation/messages"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisTimeoff + label: listMarketingautomationMessages source: |- import { Panora } from "@panora/sdk"; @@ -2251,10 +2271,11 @@ actions: }); async function run() { - const result = await panora.hris.timeoffs.retrieve({ + const result = await panora.marketingautomation.messages.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -2262,11 +2283,11 @@ actions: } run(); - - target: $["paths"]["/accounting/incomestatements"]["get"] + - target: $["paths"]["/accounting/taxrates"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingIncomeStatement + label: listAccountingTaxRate source: |- import { Panora } from "@panora/sdk"; @@ -2275,7 +2296,7 @@ actions: }); async function run() { - const result = await panora.accounting.incomestatements.list({ + const result = await panora.accounting.taxrates.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -2287,11 +2308,17 @@ actions: } run(); - - target: $["paths"]["/ticketing/attachments"]["post"] + - target: $["paths"]["/sync/status/{vertical}"]["get"] update: x-codeSamples: - lang: typescript - label: createTicketingAttachment + label: status + source: "import { Panora } from \"@panora/sdk\";\nimport { Vertical } from \"@panora/sdk/models/operations\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n await panora.sync.status({\n vertical: Vertical.Ticketing,\n });\n\n \n}\n\nrun();" + - target: $["paths"]["/ats/jobs/{id}"]["get"] + update: + x-codeSamples: + - lang: typescript + label: retrieveAtsJob source: |- import { Panora } from "@panora/sdk"; @@ -2300,19 +2327,10 @@ actions: }); async function run() { - const result = await panora.ticketing.attachments.create({ + const result = await panora.ats.jobs.retrieve({ xConnectionToken: "", - unifiedTicketingAttachmentInput: { - fileName: "features_planning.pdf", - fileUrl: "https://example.com/features_planning.pdf", - uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - commentId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2320,11 +2338,11 @@ actions: } run(); - - target: $["paths"]["/crm/tasks"]["get"] + - target: $["paths"]["/filestorage/folders/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmTask + label: retrieveFilestorageFolder source: |- import { Panora } from "@panora/sdk"; @@ -2333,11 +2351,10 @@ actions: }); async function run() { - const result = await panora.crm.tasks.list({ + const result = await panora.filestorage.folders.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2345,11 +2362,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/events"]["get"] + - target: $["paths"]["/crm/notes"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingAutomationEvents + label: listCrmNote source: |- import { Panora } from "@panora/sdk"; @@ -2358,7 +2375,7 @@ actions: }); async function run() { - const result = await panora.marketingautomation.events.list({ + const result = await panora.crm.notes.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -2370,11 +2387,11 @@ actions: } run(); - - target: $["paths"]["/accounting/attachments"]["post"] + - target: $["paths"]["/projects"]["post"] update: x-codeSamples: - lang: typescript - label: createAccountingAttachment + label: createProject source: |- import { Panora } from "@panora/sdk"; @@ -2383,10 +2400,10 @@ actions: }); async function run() { - const result = await panora.accounting.attachments.create({ - xConnectionToken: "", - remoteData: false, - unifiedAccountingAttachmentInput: {}, + const result = await panora.projects.create({ + name: "Project Name", + idOrganization: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + idUser: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); // Handle the result @@ -2394,24 +2411,34 @@ actions: } run(); - - target: $["paths"]["/filestorage/groups"]["get"] + - target: $["paths"]["/passthrough"]["post"] update: x-codeSamples: - lang: typescript - label: listFilestorageGroup + label: request source: |- import { Panora } from "@panora/sdk"; + import { PassThroughRequestDtoMethod } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.filestorage.groups.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + const result = await panora.passthrough.request({ + integrationId: "", + linkedUserId: "", + vertical: "", + passThroughRequestDto: { + method: PassThroughRequestDtoMethod.Get, + path: "/dev", + data: { + "key": "", + }, + headers: { + "key": "", + }, + }, }); // Handle the result @@ -2419,11 +2446,11 @@ actions: } run(); - - target: $["paths"]["/health"]["get"] + - target: $["paths"]["/sync/resync"]["post"] update: x-codeSamples: - lang: typescript - label: health + label: resync source: |- import { Panora } from "@panora/sdk"; @@ -2432,18 +2459,18 @@ actions: }); async function run() { - const result = await panora.health(); + const result = await panora.sync.resync(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/filestorage/drives/{id}"]["get"] + - target: $["paths"]["/crm/companies/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageDrive + label: retrieveCrmCompany source: |- import { Panora } from "@panora/sdk"; @@ -2452,7 +2479,7 @@ actions: }); async function run() { - const result = await panora.filestorage.drives.retrieve({ + const result = await panora.crm.companies.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -2463,11 +2490,11 @@ actions: } run(); - - target: $["paths"]["/crm/engagements"]["get"] + - target: $["paths"]["/crm/deals"]["post"] update: x-codeSamples: - lang: typescript - label: listCrmEngagements + label: createCrmDeal source: |- import { Panora } from "@panora/sdk"; @@ -2476,11 +2503,20 @@ actions: }); async function run() { - const result = await panora.crm.engagements.list({ + const result = await panora.crm.deals.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + unifiedCrmDealInput: { + name: "Huge Contract with Acme", + description: "Contract with Sales Operations Team", + amount: 1000, + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + stageId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -2488,11 +2524,11 @@ actions: } run(); - - target: $["paths"]["/hris/paygroups"]["get"] + - target: $["paths"]["/ats/departments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisPaygroups + label: retrieveAtsDepartment source: |- import { Panora } from "@panora/sdk"; @@ -2501,11 +2537,10 @@ actions: }); async function run() { - const result = await panora.hris.paygroups.list({ + const result = await panora.ats.departments.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2513,11 +2548,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/campaigns"]["post"] + - target: $["paths"]["/accounting/cashflowstatements"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationCampaign + label: listAccountingCashflowStatement source: |- import { Panora } from "@panora/sdk"; @@ -2526,10 +2561,11 @@ actions: }); async function run() { - const result = await panora.marketingautomation.campaigns.create({ + const result = await panora.accounting.cashflowstatements.list({ xConnectionToken: "", - remoteData: false, - unifiedMarketingautomationCampaignInput: {}, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -2537,11 +2573,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/lists/{id}"]["get"] + - target: $["paths"]["/marketingautomation/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationList + label: listMarketingAutomationContacts source: |- import { Panora } from "@panora/sdk"; @@ -2550,10 +2586,11 @@ actions: }); async function run() { - const result = await panora.marketingautomation.lists.retrieve({ + const result = await panora.marketingautomation.contacts.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -2561,11 +2598,11 @@ actions: } run(); - - target: $["paths"]["/hris/groups"]["get"] + - target: $["paths"]["/ats/rejectreasons"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisGroups + label: listAtsRejectReasons source: |- import { Panora } from "@panora/sdk"; @@ -2574,7 +2611,7 @@ actions: }); async function run() { - const result = await panora.hris.groups.list({ + const result = await panora.ats.rejectreasons.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -2586,11 +2623,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/files/{id}"]["get"] + - target: $["paths"]["/accounting/balancesheets"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageFile + label: listAccountingBalanceSheets source: |- import { Panora } from "@panora/sdk"; @@ -2599,10 +2636,11 @@ actions: }); async function run() { - const result = await panora.filestorage.files.retrieve({ + const result = await panora.accounting.balancesheets.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -2610,11 +2648,11 @@ actions: } run(); - - target: $["paths"]["/crm/tasks/{id}"]["get"] + - target: $["paths"]["/hris/payrollruns"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmTask + label: listHrisPayrollRuns source: |- import { Panora } from "@panora/sdk"; @@ -2623,10 +2661,11 @@ actions: }); async function run() { - const result = await panora.crm.tasks.retrieve({ + const result = await panora.hris.payrollruns.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -2634,11 +2673,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/teams/{id}"]["get"] + - target: $["paths"]["/marketingautomation/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingTeam + label: retrieveMarketingAutomationContact source: |- import { Panora } from "@panora/sdk"; @@ -2647,7 +2686,7 @@ actions: }); async function run() { - const result = await panora.ticketing.teams.retrieve({ + const result = await panora.marketingautomation.contacts.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -2658,25 +2697,24 @@ actions: } run(); - - target: $["paths"]["/field_mappings/define"]["post"] + - target: $["paths"]["/ats/candidates"]["get"] update: x-codeSamples: - lang: typescript - label: definitions + label: listAtsCandidate source: |- import { Panora } from "@panora/sdk"; - import { DataType, ObjectTypeOwner } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.fieldMappings.definitions({ - objectTypeOwner: ObjectTypeOwner.Company, - name: "fav_dish", - description: "My favorite dish", - dataType: DataType.String, + const result = await panora.ats.candidates.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -2684,11 +2722,11 @@ actions: } run(); - - target: $["paths"]["/hris/companies"]["get"] + - target: $["paths"]["/ticketing/attachments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisCompanies + label: retrieveTicketingAttachment source: |- import { Panora } from "@panora/sdk"; @@ -2697,11 +2735,10 @@ actions: }); async function run() { - const result = await panora.hris.companies.list({ + const result = await panora.ticketing.attachments.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2709,11 +2746,11 @@ actions: } run(); - - target: $["paths"]["/hris/employees"]["post"] + - target: $["paths"]["/accounting/trackingcategories/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createHrisEmployee + label: retrieveAccountingTrackingCategory source: |- import { Panora } from "@panora/sdk"; @@ -2722,9 +2759,10 @@ actions: }); async function run() { - const result = await panora.hris.employees.create({ + const result = await panora.accounting.trackingcategories.retrieve({ xConnectionToken: "", - unifiedHrisEmployeeInput: {}, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2732,11 +2770,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/actions/{id}"]["get"] + - target: $["paths"]["/hris/benefits"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationAction + label: listHrisBenefits source: |- import { Panora } from "@panora/sdk"; @@ -2745,10 +2783,11 @@ actions: }); async function run() { - const result = await panora.marketingautomation.actions.retrieve({ + const result = await panora.hris.benefits.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -2756,11 +2795,11 @@ actions: } run(); - - target: $["paths"]["/accounting/taxrates/{id}"]["get"] + - target: $["paths"]["/hris/dependents"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingTaxRate + label: listHrisDependents source: |- import { Panora } from "@panora/sdk"; @@ -2769,10 +2808,11 @@ actions: }); async function run() { - const result = await panora.accounting.taxrates.retrieve({ + const result = await panora.hris.dependents.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -2780,11 +2820,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/accounts/{id}"]["get"] + - target: $["paths"]["/marketingautomation/actions"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingAccount + label: createMarketingautomationAction source: |- import { Panora } from "@panora/sdk"; @@ -2793,9 +2833,10 @@ actions: }); async function run() { - const result = await panora.ticketing.accounts.retrieve({ + const result = await panora.marketingautomation.actions.create({ xConnectionToken: "", - id: "", + remoteData: false, + unifiedMarketingautomationActionInput: {}, }); // Handle the result @@ -2803,11 +2844,11 @@ actions: } run(); - - target: $["paths"]["/hris/employments"]["get"] + - target: $["paths"]["/ats/attachments"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisEmployments + label: listAtsAttachment source: |- import { Panora } from "@panora/sdk"; @@ -2816,7 +2857,7 @@ actions: }); async function run() { - const result = await panora.hris.employments.list({ + const result = await panora.ats.attachments.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -2828,11 +2869,11 @@ actions: } run(); - - target: $["paths"]["/hris/timeoffbalances"]["get"] + - target: $["paths"]["/accounting/accounts"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisTimeoffbalances + label: listAccountingAccounts source: |- import { Panora } from "@panora/sdk"; @@ -2841,7 +2882,7 @@ actions: }); async function run() { - const result = await panora.hris.timeoffbalances.list({ + const result = await panora.accounting.accounts.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -2853,11 +2894,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/lists"]["post"] + - target: $["paths"]["/filestorage/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationList + label: retrieveFilestorageUser source: |- import { Panora } from "@panora/sdk"; @@ -2866,9 +2907,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.lists.create({ + const result = await panora.filestorage.users.retrieve({ xConnectionToken: "", - unifiedMarketingautomationListInput: {}, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2876,11 +2918,11 @@ actions: } run(); - - target: $["paths"]["/accounting/contacts"]["post"] + - target: $["paths"]["/health"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingContact + label: health source: |- import { Panora } from "@panora/sdk"; @@ -2889,22 +2931,18 @@ actions: }); async function run() { - const result = await panora.accounting.contacts.create({ - xConnectionToken: "", - remoteData: false, - unifiedAccountingContactInput: {}, - }); + const result = await panora.health(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/projects"]["get"] + - target: $["paths"]["/hris/bankinfos/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: getProjects + label: retrieveHrisBankInfo source: |- import { Panora } from "@panora/sdk"; @@ -2913,18 +2951,22 @@ actions: }); async function run() { - const result = await panora.projects.getProjects(); + const result = await panora.hris.bankinfos.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/linked_users"]["post"] + - target: $["paths"]["/accounting/vendorcredits"]["get"] update: x-codeSamples: - lang: typescript - label: createLinkedUser + label: listAccountingVendorCredit source: |- import { Panora } from "@panora/sdk"; @@ -2933,9 +2975,11 @@ actions: }); async function run() { - const result = await panora.linkedUsers.create({ - linkedUserOriginId: "id_1", - alias: "acme", + const result = await panora.accounting.vendorcredits.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -2943,11 +2987,11 @@ actions: } run(); - - target: $["paths"]["/hris/payrollruns/{id}"]["get"] + - target: $["paths"]["/ticketing/attachments"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveHrisPayrollRun + label: createTicketingAttachment source: |- import { Panora } from "@panora/sdk"; @@ -2956,10 +3000,19 @@ actions: }); async function run() { - const result = await panora.hris.payrollruns.retrieve({ + const result = await panora.ticketing.attachments.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + unifiedTicketingAttachmentInput: { + fileName: "features_planning.pdf", + fileUrl: "https://example.com/features_planning.pdf", + uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + commentId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -2967,11 +3020,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/comments"]["get"] + - target: $["paths"]["/marketingautomation/messages/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingComments + label: retrieveMarketingautomationMessage source: |- import { Panora } from "@panora/sdk"; @@ -2980,11 +3033,10 @@ actions: }); async function run() { - const result = await panora.ticketing.comments.list({ + const result = await panora.marketingautomation.messages.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2992,11 +3044,11 @@ actions: } run(); - - target: $["paths"]["/hris/employees"]["get"] + - target: $["paths"]["/accounting/accounts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisEmployees + label: retrieveAccountingAccount source: |- import { Panora } from "@panora/sdk"; @@ -3005,11 +3057,10 @@ actions: }); async function run() { - const result = await panora.hris.employees.list({ + const result = await panora.accounting.accounts.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -3017,11 +3068,11 @@ actions: } run(); - - target: $["paths"]["/hris/timeoffs"]["post"] + - target: $["paths"]["/accounting/addresses/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createHrisTimeoff + label: retrieveAccountingAddress source: |- import { Panora } from "@panora/sdk"; @@ -3030,9 +3081,10 @@ actions: }); async function run() { - const result = await panora.hris.timeoffs.create({ + const result = await panora.accounting.addresses.retrieve({ xConnectionToken: "", - unifiedHrisTimeoffInput: {}, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -3040,11 +3092,11 @@ actions: } run(); - - target: $["paths"]["/ats/tags/{id}"]["get"] + - target: $["paths"]["/ats/scorecards"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsTag + label: listAtsScorecard source: |- import { Panora } from "@panora/sdk"; @@ -3053,10 +3105,11 @@ actions: }); async function run() { - const result = await panora.ats.tags.retrieve({ + const result = await panora.ats.scorecards.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -3064,11 +3117,11 @@ actions: } run(); - - target: $["paths"]["/events"]["get"] + - target: $["paths"]["/accounting/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: getPanoraCoreEvents + label: retrieveAccountingContact source: |- import { Panora } from "@panora/sdk"; @@ -3077,30 +3130,51 @@ actions: }); async function run() { - const result = await panora.events.getPanoraCoreEvents({}); + const result = await panora.accounting.contacts.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/ticketing/attachments/{id}"]["get"] + - target: $["paths"]["/crm/engagements"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingAttachment + label: createCrmEngagement source: |- import { Panora } from "@panora/sdk"; + import { UnifiedCrmEngagementInputDirection, UnifiedCrmEngagementInputType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ticketing.attachments.retrieve({ + const result = await panora.crm.engagements.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedCrmEngagementInput: { + content: "Meeting call with CTO", + direction: UnifiedCrmEngagementInputDirection.Inbound, + subject: "Technical features planning", + startAt: new Date("2024-10-01T12:00:00Z"), + endTime: new Date("2024-10-01T22:00:00Z"), + type: UnifiedCrmEngagementInputType.Meeting, + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + contacts: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -3108,11 +3182,11 @@ actions: } run(); - - target: $["paths"]["/hris/groups/{id}"]["get"] + - target: $["paths"]["/projects"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisGroup + label: getProjects source: |- import { Panora } from "@panora/sdk"; @@ -3121,22 +3195,18 @@ actions: }); async function run() { - const result = await panora.hris.groups.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); + const result = await panora.projects.getProjects(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/marketingautomation/automations"]["get"] + - target: $["paths"]["/marketingautomation/automations/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationAutomations + label: retrieveMarketingautomationAutomation source: |- import { Panora } from "@panora/sdk"; @@ -3145,11 +3215,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.automations.list({ + const result = await panora.marketingautomation.automations.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -3157,11 +3226,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/drives"]["get"] + - target: $["paths"]["/marketingautomation/emails"]["get"] update: x-codeSamples: - lang: typescript - label: listFilestorageDrives + label: listMarketingautomationEmails source: |- import { Panora } from "@panora/sdk"; @@ -3170,7 +3239,7 @@ actions: }); async function run() { - const result = await panora.filestorage.drives.list({ + const result = await panora.marketingautomation.emails.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -3182,11 +3251,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/tickets/{id}"]["get"] + - target: $["paths"]["/accounting/invoices/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingTicket + label: retrieveAccountingInvoice source: |- import { Panora } from "@panora/sdk"; @@ -3195,7 +3264,7 @@ actions: }); async function run() { - const result = await panora.ticketing.tickets.retrieve({ + const result = await panora.accounting.invoices.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -3206,24 +3275,25 @@ actions: } run(); - - target: $["paths"]["/hris/timeoffs"]["get"] + - target: $["paths"]["/field_mappings/define"]["post"] update: x-codeSamples: - lang: typescript - label: listHrisTimeoffs + label: definitions source: |- import { Panora } from "@panora/sdk"; + import { DataType, ObjectTypeOwner } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.hris.timeoffs.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + const result = await panora.fieldMappings.definitions({ + objectTypeOwner: ObjectTypeOwner.Company, + name: "fav_dish", + description: "My favorite dish", + dataType: DataType.String, }); // Handle the result @@ -3231,40 +3301,24 @@ actions: } run(); - - target: $["paths"]["/crm/engagements"]["post"] + - target: $["paths"]["/hris/employees"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmEngagement + label: listHrisEmployees source: |- import { Panora } from "@panora/sdk"; - import { UnifiedCrmEngagementInputDirection, UnifiedCrmEngagementInputType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.crm.engagements.create({ + const result = await panora.hris.employees.list({ xConnectionToken: "", - remoteData: false, - unifiedCrmEngagementInput: { - content: "Meeting call with CTO", - direction: UnifiedCrmEngagementInputDirection.Inbound, - subject: "Technical features planning", - startAt: new Date("2024-10-01T12:00:00Z"), - endTime: new Date("2024-10-01T22:00:00Z"), - type: UnifiedCrmEngagementInputType.Meeting, - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contacts: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -3272,11 +3326,11 @@ actions: } run(); - - target: $["paths"]["/accounting/transactions"]["get"] + - target: $["paths"]["/ats/applications"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingTransaction + label: listAtsApplication source: |- import { Panora } from "@panora/sdk"; @@ -3285,7 +3339,7 @@ actions: }); async function run() { - const result = await panora.accounting.transactions.list({ + const result = await panora.ats.applications.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -3297,11 +3351,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/folders"]["get"] + - target: $["paths"]["/ticketing/comments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listFilestorageFolder + label: retrieveTicketingComment source: |- import { Panora } from "@panora/sdk"; @@ -3310,11 +3364,9 @@ actions: }); async function run() { - const result = await panora.filestorage.folders.list({ + const result = await panora.ticketing.comments.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "", }); // Handle the result @@ -3322,11 +3374,11 @@ actions: } run(); - - target: $["paths"]["/accounting/items"]["get"] + - target: $["paths"]["/accounting/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingItem + label: listAccountingContacts source: |- import { Panora } from "@panora/sdk"; @@ -3335,7 +3387,7 @@ actions: }); async function run() { - const result = await panora.accounting.items.list({ + const result = await panora.accounting.contacts.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -3347,11 +3399,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/tags"]["get"] + - target: $["paths"]["/"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingTags + label: hello source: |- import { Panora } from "@panora/sdk"; @@ -3360,23 +3412,18 @@ actions: }); async function run() { - const result = await panora.ticketing.tags.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); + const result = await panora.hello(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/accounting/creditnotes"]["get"] + - target: $["paths"]["/ticketing/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingCreditNote + label: listTicketingContacts source: |- import { Panora } from "@panora/sdk"; @@ -3385,7 +3432,7 @@ actions: }); async function run() { - const result = await panora.accounting.creditnotes.list({ + const result = await panora.ticketing.contacts.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -3397,69 +3444,23 @@ actions: } run(); - - target: $["paths"]["/ticketing/tickets"]["post"] + - target: $["paths"]["/hris/paygroups/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createTicketingTicket + label: retrieveHrisPaygroup source: |- import { Panora } from "@panora/sdk"; - import { - UnifiedTicketingTicketInputCreatorType, - UnifiedTicketingTicketInputPriority, - UnifiedTicketingTicketInputStatus, - UnifiedTicketingTicketInputType, - } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ticketing.tickets.create({ + const result = await panora.hris.paygroups.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedTicketingTicketInput: { - name: "Customer Service Inquiry", - status: UnifiedTicketingTicketInputStatus.Open, - description: "Help customer", - dueDate: new Date("2024-10-01T12:00:00Z"), - type: UnifiedTicketingTicketInputType.Bug, - parentTicket: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - collections: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - tags: [ - "my_tag", - "urgent_tag", - ], - completedAt: new Date("2024-10-01T12:00:00Z"), - priority: UnifiedTicketingTicketInputPriority.High, - assignedTo: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - comment: { - body: "Assigned to Eric !", - htmlBody: "

Assigned to Eric !

", - isPrivate: false, - creatorType: UnifiedTicketingTicketInputCreatorType.User, - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - }, - accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, }); // Handle the result @@ -3467,11 +3468,11 @@ actions: } run(); - - target: $["paths"]["/hris/bankinfos/{id}"]["get"] + - target: $["paths"]["/marketingautomation/actions"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisBankInfo + label: listMarketingautomationAction source: |- import { Panora } from "@panora/sdk"; @@ -3480,10 +3481,11 @@ actions: }); async function run() { - const result = await panora.hris.bankinfos.retrieve({ + const result = await panora.marketingautomation.actions.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -3491,11 +3493,11 @@ actions: } run(); - - target: $["paths"]["/hris/employees/{id}"]["get"] + - target: $["paths"]["/crm/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisEmployee + label: retrieveCrmUser source: |- import { Panora } from "@panora/sdk"; @@ -3504,10 +3506,10 @@ actions: }); async function run() { - const result = await panora.hris.employees.retrieve({ + const result = await panora.crm.users.retrieve({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + id: "b008e199-eda9-4629-bd41-a01b6195864a", + remoteData: true, }); // Handle the result @@ -3515,11 +3517,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/lists"]["get"] + - target: $["paths"]["/field_mappings/map"]["post"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationLists + label: map source: |- import { Panora } from "@panora/sdk"; @@ -3528,11 +3530,11 @@ actions: }); async function run() { - const result = await panora.marketingautomation.lists.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + const result = await panora.fieldMappings.map({ + attributeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + sourceCustomFieldId: "id_1", + sourceProvider: "hubspot", + linkedUserId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); // Handle the result @@ -3540,11 +3542,11 @@ actions: } run(); - - target: $["paths"]["/accounting/balancesheets"]["get"] + - target: $["paths"]["/ats/jobs"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingBalanceSheets + label: listAtsJob source: |- import { Panora } from "@panora/sdk"; @@ -3553,7 +3555,7 @@ actions: }); async function run() { - const result = await panora.accounting.balancesheets.list({ + const result = await panora.ats.jobs.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -3565,11 +3567,11 @@ actions: } run(); - - target: $["paths"]["/accounting/taxrates"]["get"] + - target: $["paths"]["/crm/tasks"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingTaxRate + label: listCrmTask source: |- import { Panora } from "@panora/sdk"; @@ -3578,7 +3580,7 @@ actions: }); async function run() { - const result = await panora.accounting.taxrates.list({ + const result = await panora.crm.tasks.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -3590,11 +3592,11 @@ actions: } run(); - - target: $["paths"]["/crm/stages"]["get"] + - target: $["paths"]["/crm/tasks/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmStages + label: retrieveCrmTask source: |- import { Panora } from "@panora/sdk"; @@ -3603,11 +3605,10 @@ actions: }); async function run() { - const result = await panora.crm.stages.list({ + const result = await panora.crm.tasks.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -3615,11 +3616,11 @@ actions: } run(); - - target: $["paths"]["/accounting/trackingcategories/{id}"]["get"] + - target: $["paths"]["/hris/employees/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingTrackingCategory + label: retrieveHrisEmployee source: |- import { Panora } from "@panora/sdk"; @@ -3628,7 +3629,7 @@ actions: }); async function run() { - const result = await panora.accounting.trackingcategories.retrieve({ + const result = await panora.hris.employees.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -3639,11 +3640,11 @@ actions: } run(); - - target: $["paths"]["/ats/tags"]["get"] + - target: $["paths"]["/hris/employerbenefits"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsTags + label: listHrisEmployerBenefits source: |- import { Panora } from "@panora/sdk"; @@ -3652,7 +3653,7 @@ actions: }); async function run() { - const result = await panora.ats.tags.list({ + const result = await panora.hris.employerbenefits.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -3664,56 +3665,23 @@ actions: } run(); - - target: $["paths"]["/crm/contacts"]["post"] + - target: $["paths"]["/ats/attachments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmContact + label: retrieveAtsAttachment source: |- import { Panora } from "@panora/sdk"; - import { AddressType, EmailAddressType, PhoneType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.crm.contacts.create({ + const result = await panora.ats.attachments.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedCrmContactInput: { - firstName: "John", - lastName: "Doe", - emailAddresses: [ - { - emailAddress: "Jena.Nienow28@yahoo.com", - emailAddressType: EmailAddressType.Personal, - }, - ], - phoneNumbers: [ - { - phoneNumber: "", - phoneType: PhoneType.Work, - }, - ], - addresses: [ - { - street1: "", - street2: "", - city: "Anytown", - state: "CA", - postalCode: "97398", - country: "USA", - addressType: AddressType.Personal, - ownerType: "", - }, - ], - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, }); // Handle the result @@ -3721,11 +3689,11 @@ actions: } run(); - - target: $["paths"]["/crm/deals"]["get"] + - target: $["paths"]["/accounting/journalentries/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmDeals + label: retrieveAccountingJournalEntry source: |- import { Panora } from "@panora/sdk"; @@ -3734,11 +3702,10 @@ actions: }); async function run() { - const result = await panora.crm.deals.list({ + const result = await panora.accounting.journalentries.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -3746,11 +3713,11 @@ actions: } run(); - - target: $["paths"]["/field_mappings/map"]["post"] + - target: $["paths"]["/hris/companies"]["get"] update: x-codeSamples: - lang: typescript - label: map + label: listHrisCompanies source: |- import { Panora } from "@panora/sdk"; @@ -3759,11 +3726,11 @@ actions: }); async function run() { - const result = await panora.fieldMappings.map({ - attributeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - sourceCustomFieldId: "id_1", - sourceProvider: "hubspot", - linkedUserId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + const result = await panora.hris.companies.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -3771,11 +3738,11 @@ actions: } run(); - - target: $["paths"]["/hris/dependents"]["get"] + - target: $["paths"]["/ats/eeocs/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisDependents + label: retrieveAtsEeocs source: |- import { Panora } from "@panora/sdk"; @@ -3784,11 +3751,9 @@ actions: }); async function run() { - const result = await panora.hris.dependents.list({ + const result = await panora.ats.eeocs.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "", }); // Handle the result @@ -3796,11 +3761,11 @@ actions: } run(); - - target: $["paths"]["/hris/employerbenefits"]["get"] + - target: $["paths"]["/accounting/expenses"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisEmployerBenefits + label: listAccountingExpense source: |- import { Panora } from "@panora/sdk"; @@ -3809,7 +3774,7 @@ actions: }); async function run() { - const result = await panora.hris.employerbenefits.list({ + const result = await panora.accounting.expenses.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -3821,11 +3786,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/users/{id}"]["get"] + - target: $["paths"]["/accounting/expenses/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingAutomationUser + label: retrieveAccountingExpense source: |- import { Panora } from "@panora/sdk"; @@ -3834,7 +3799,7 @@ actions: }); async function run() { - const result = await panora.marketingautomation.users.retrieve({ + const result = await panora.accounting.expenses.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -3845,11 +3810,11 @@ actions: } run(); - - target: $["paths"]["/ats/interviews/{id}"]["get"] + - target: $["paths"]["/ticketing/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsInterview + label: retrieveTicketingContact source: |- import { Panora } from "@panora/sdk"; @@ -3858,10 +3823,9 @@ actions: }); async function run() { - const result = await panora.ats.interviews.retrieve({ + const result = await panora.ticketing.contacts.retrieve({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + id: "", }); // Handle the result @@ -3869,11 +3833,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/comments/{id}"]["get"] + - target: $["paths"]["/crm/notes"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingComment + label: createCrmNote source: |- import { Panora } from "@panora/sdk"; @@ -3882,9 +3846,20 @@ actions: }); async function run() { - const result = await panora.ticketing.comments.retrieve({ + const result = await panora.crm.notes.create({ xConnectionToken: "", - id: "", + remoteData: false, + unifiedCrmNoteInput: { + content: "My notes taken during the meeting", + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + dealId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -3892,11 +3867,11 @@ actions: } run(); - - target: $["paths"]["/accounting/attachments/{id}"]["get"] + - target: $["paths"]["/hris/employeepayrollruns"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingAttachment + label: listHrisEmployeePayrollRun source: |- import { Panora } from "@panora/sdk"; @@ -3905,10 +3880,11 @@ actions: }); async function run() { - const result = await panora.accounting.attachments.retrieve({ + const result = await panora.hris.employeepayrollruns.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -3916,11 +3892,11 @@ actions: } run(); - - target: $["paths"]["/ats/rejectreasons"]["get"] + - target: $["paths"]["/filestorage/users"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsRejectReasons + label: listFilestorageUsers source: |- import { Panora } from "@panora/sdk"; @@ -3929,7 +3905,7 @@ actions: }); async function run() { - const result = await panora.ats.rejectreasons.list({ + const result = await panora.filestorage.users.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -3941,11 +3917,11 @@ actions: } run(); - - target: $["paths"]["/linked_users"]["get"] + - target: $["paths"]["/ticketing/teams"]["get"] update: x-codeSamples: - lang: typescript - label: listLinkedUsers + label: listTicketingTeams source: |- import { Panora } from "@panora/sdk"; @@ -3954,31 +3930,53 @@ actions: }); async function run() { - const result = await panora.linkedUsers.list(); + const result = await panora.ticketing.teams.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/ats/interviews"]["get"] + - target: $["paths"]["/ats/interviews"]["post"] update: x-codeSamples: - lang: typescript - label: listAtsInterview + label: createAtsInterview source: |- import { Panora } from "@panora/sdk"; + import { UnifiedAtsInterviewInputStatus } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ats.interviews.list({ + const result = await panora.ats.interviews.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedAtsInterviewInput: { + status: UnifiedAtsInterviewInputStatus.Scheduled, + applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + jobInterviewStageId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + organizedBy: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + interviewers: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + location: "San Francisco", + startAt: new Date("2024-10-01T12:00:00Z"), + endAt: new Date("2024-10-01T12:00:00Z"), + remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), + remoteUpdatedAt: new Date("2024-10-01T12:00:00Z"), + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -3986,11 +3984,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/files"]["get"] + - target: $["paths"]["/ats/rejectreasons/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listFilestorageFile + label: retrieveAtsRejectReason source: |- import { Panora } from "@panora/sdk"; @@ -3999,11 +3997,10 @@ actions: }); async function run() { - const result = await panora.filestorage.files.list({ + const result = await panora.ats.rejectreasons.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -4011,11 +4008,11 @@ actions: } run(); - - target: $["paths"]["/connections"]["get"] + - target: $["paths"]["/accounting/balancesheets/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: getConnections + label: retrieveAccountingBalanceSheet source: |- import { Panora } from "@panora/sdk"; @@ -4024,18 +4021,22 @@ actions: }); async function run() { - const result = await panora.connections.getConnections(); + const result = await panora.accounting.balancesheets.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/linked_users/{id}"]["get"] + - target: $["paths"]["/ticketing/users"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveLinkedUser + label: listTicketingUsers source: |- import { Panora } from "@panora/sdk"; @@ -4044,8 +4045,11 @@ actions: }); async function run() { - const result = await panora.linkedUsers.retrieve({ - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + const result = await panora.ticketing.users.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -4053,11 +4057,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/folders"]["post"] + - target: $["paths"]["/linked_users/fromRemoteId"]["get"] update: x-codeSamples: - lang: typescript - label: createFilestorageFolder + label: remoteId source: |- import { Panora } from "@panora/sdk"; @@ -4066,23 +4070,8 @@ actions: }); async function run() { - const result = await panora.filestorage.folders.create({ - xConnectionToken: "", - remoteData: false, - unifiedFilestorageFolderInput: { - name: "school", - size: "2048", - folderUrl: "https://example.com/school", - description: "All things school related", - driveId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - parentFolderId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - sharedLink: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - permission: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, + const result = await panora.linkedUsers.remoteId({ + remoteId: "id_1", }); // Handle the result @@ -4090,11 +4079,11 @@ actions: } run(); - - target: $["paths"]["/crm/users/{id}"]["get"] + - target: $["paths"]["/hris/employeepayrollruns/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmUser + label: retrieveHrisEmployeePayrollRun source: |- import { Panora } from "@panora/sdk"; @@ -4103,10 +4092,10 @@ actions: }); async function run() { - const result = await panora.crm.users.retrieve({ + const result = await panora.hris.employeepayrollruns.retrieve({ xConnectionToken: "", - id: "b008e199-eda9-4629-bd41-a01b6195864a", - remoteData: true, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -4114,29 +4103,35 @@ actions: } run(); - - target: $["paths"]["/sync/status/{vertical}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: status - source: "import { Panora } from \"@panora/sdk\";\nimport { Vertical } from \"@panora/sdk/models/operations\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n await panora.sync.status({\n vertical: Vertical.Ticketing,\n });\n\n \n}\n\nrun();" - - target: $["paths"]["/crm/companies/{id}"]["get"] + - target: $["paths"]["/ats/activities"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveCrmCompany + label: createAtsActivity source: |- import { Panora } from "@panora/sdk"; + import { UnifiedAtsActivityInputActivityType, UnifiedAtsActivityInputVisibility } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.crm.companies.retrieve({ + const result = await panora.ats.activities.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedAtsActivityInput: { + activityType: UnifiedAtsActivityInputActivityType.Note, + subject: "Email subject", + body: "Dear Diana, I love you", + visibility: UnifiedAtsActivityInputVisibility.Public, + candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -4144,11 +4139,11 @@ actions: } run(); - - target: $["paths"]["/crm/notes"]["get"] + - target: $["paths"]["/ats/jobinterviewstages"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmNote + label: listAtsJobInterviewStage source: |- import { Panora } from "@panora/sdk"; @@ -4157,7 +4152,7 @@ actions: }); async function run() { - const result = await panora.crm.notes.list({ + const result = await panora.ats.jobinterviewstages.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -4169,11 +4164,11 @@ actions: } run(); - - target: $["paths"]["/linked_users/fromRemoteId"]["get"] + - target: $["paths"]["/accounting/invoices"]["get"] update: x-codeSamples: - lang: typescript - label: remoteId + label: listAccountingInvoice source: |- import { Panora } from "@panora/sdk"; @@ -4182,8 +4177,11 @@ actions: }); async function run() { - const result = await panora.linkedUsers.remoteId({ - remoteId: "id_1", + const result = await panora.accounting.invoices.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -4191,11 +4189,11 @@ actions: } run(); - - target: $["paths"]["/accounting/purchaseorders"]["get"] + - target: $["paths"]["/filestorage/folders"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingPurchaseOrder + label: listFilestorageFolder source: |- import { Panora } from "@panora/sdk"; @@ -4204,7 +4202,7 @@ actions: }); async function run() { - const result = await panora.accounting.purchaseorders.list({ + const result = await panora.filestorage.folders.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -4216,11 +4214,11 @@ actions: } run(); - - target: $["paths"]["/hris/payrollruns"]["get"] + - target: $["paths"]["/hris/timeoffbalances/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisPayrollRuns + label: retrieveHrisTimeoffbalance source: |- import { Panora } from "@panora/sdk"; @@ -4229,11 +4227,10 @@ actions: }); async function run() { - const result = await panora.hris.payrollruns.list({ + const result = await panora.hris.timeoffbalances.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -4241,11 +4238,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/contacts"]["get"] + - target: $["paths"]["/accounting/accounts"]["post"] update: x-codeSamples: - lang: typescript - label: listMarketingAutomationContacts + label: createAccountingAccount source: |- import { Panora } from "@panora/sdk"; @@ -4254,11 +4251,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.contacts.list({ + const result = await panora.accounting.accounts.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedAccountingAccountInput: {}, }); // Handle the result @@ -4266,11 +4262,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/emails/{id}"]["get"] + - target: $["paths"]["/accounting/contacts"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationEmail + label: createAccountingContact source: |- import { Panora } from "@panora/sdk"; @@ -4279,10 +4275,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.emails.retrieve({ + const result = await panora.accounting.contacts.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedAccountingContactInput: {}, }); // Handle the result @@ -4290,11 +4286,11 @@ actions: } run(); - - target: $["paths"]["/ats/jobs/{id}"]["get"] + - target: $["paths"]["/filestorage/folders"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAtsJob + label: createFilestorageFolder source: |- import { Panora } from "@panora/sdk"; @@ -4303,10 +4299,23 @@ actions: }); async function run() { - const result = await panora.ats.jobs.retrieve({ + const result = await panora.filestorage.folders.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedFilestorageFolderInput: { + name: "school", + size: "2048", + folderUrl: "https://example.com/school", + description: "All things school related", + driveId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + parentFolderId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + sharedLink: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + permission: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -4314,11 +4323,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/tags/{id}"]["get"] + - target: $["paths"]["/webhooks"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingTag + label: createWebhookPublic source: |- import { Panora } from "@panora/sdk"; @@ -4327,10 +4336,12 @@ actions: }); async function run() { - const result = await panora.ticketing.tags.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + const result = await panora.webhooks.create({ + url: "https://acme.com/webhook_receiver", + description: "Webhook to receive connection events", + scope: [ + "connection.created", + ], }); // Handle the result @@ -4338,11 +4349,11 @@ actions: } run(); - - target: $["paths"]["/hris/companies/{id}"]["get"] + - target: $["paths"]["/crm/engagements/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisCompany + label: retrieveCrmEngagement source: |- import { Panora } from "@panora/sdk"; @@ -4351,7 +4362,7 @@ actions: }); async function run() { - const result = await panora.hris.companies.retrieve({ + const result = await panora.crm.engagements.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -4362,11 +4373,11 @@ actions: } run(); - - target: $["paths"]["/ats/activities"]["get"] + - target: $["paths"]["/hris/timeoffbalances"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsActivity + label: listHrisTimeoffbalances source: |- import { Panora } from "@panora/sdk"; @@ -4375,7 +4386,7 @@ actions: }); async function run() { - const result = await panora.ats.activities.list({ + const result = await panora.hris.timeoffbalances.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -4387,11 +4398,11 @@ actions: } run(); - - target: $["paths"]["/accounting/addresses/{id}"]["get"] + - target: $["paths"]["/ticketing/collections/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingAddress + label: retrieveCollection source: |- import { Panora } from "@panora/sdk"; @@ -4400,7 +4411,7 @@ actions: }); async function run() { - const result = await panora.accounting.addresses.retrieve({ + const result = await panora.ticketing.collections.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -4411,11 +4422,11 @@ actions: } run(); - - target: $["paths"]["/accounting/expenses/{id}"]["get"] + - target: $["paths"]["/marketingautomation/templates"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingExpense + label: listMarketingautomationTemplates source: |- import { Panora } from "@panora/sdk"; @@ -4424,10 +4435,11 @@ actions: }); async function run() { - const result = await panora.accounting.expenses.retrieve({ + const result = await panora.marketingautomation.templates.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -4435,11 +4447,11 @@ actions: } run(); - - target: $["paths"]["/accounting/invoices/{id}"]["get"] + - target: $["paths"]["/accounting/invoices"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingInvoice + label: createAccountingInvoice source: |- import { Panora } from "@panora/sdk"; @@ -4448,10 +4460,10 @@ actions: }); async function run() { - const result = await panora.accounting.invoices.retrieve({ + const result = await panora.accounting.invoices.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedAccountingInvoiceInput: {}, }); // Handle the result @@ -4459,11 +4471,11 @@ actions: } run(); - - target: $["paths"]["/accounting/invoices"]["post"] + - target: $["paths"]["/ticketing/teams/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingInvoice + label: retrieveTicketingTeam source: |- import { Panora } from "@panora/sdk"; @@ -4472,10 +4484,10 @@ actions: }); async function run() { - const result = await panora.accounting.invoices.create({ + const result = await panora.ticketing.teams.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedAccountingInvoiceInput: {}, }); // Handle the result @@ -4483,11 +4495,11 @@ actions: } run(); - - target: $["paths"]["/ats/eeocs"]["get"] + - target: $["paths"]["/crm/engagements"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsEeocs + label: listCrmEngagements source: |- import { Panora } from "@panora/sdk"; @@ -4496,7 +4508,7 @@ actions: }); async function run() { - const result = await panora.ats.eeocs.list({ + const result = await panora.crm.engagements.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -4508,23 +4520,35 @@ actions: } run(); - - target: $["paths"]["/accounting/journalentries"]["post"] + - target: $["paths"]["/ats/attachments"]["post"] update: x-codeSamples: - lang: typescript - label: createAccountingJournalEntry + label: createAtsAttachment source: |- import { Panora } from "@panora/sdk"; + import { UnifiedAtsAttachmentInputAttachmentType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.accounting.journalentries.create({ + const result = await panora.ats.attachments.create({ xConnectionToken: "", remoteData: false, - unifiedAccountingJournalentryInput: {}, + unifiedAtsAttachmentInput: { + fileUrl: "https://example.com/file.pdf", + fileName: "file.pdf", + attachmentType: UnifiedAtsAttachmentInputAttachmentType.Resume, + remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), + remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), + candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -4532,11 +4556,11 @@ actions: } run(); - - target: $["paths"]["/ats/activities/{id}"]["get"] + - target: $["paths"]["/accounting/incomestatements"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsActivity + label: listAccountingIncomeStatement source: |- import { Panora } from "@panora/sdk"; @@ -4545,10 +4569,11 @@ actions: }); async function run() { - const result = await panora.ats.activities.retrieve({ + const result = await panora.accounting.incomestatements.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -4556,11 +4581,11 @@ actions: } run(); - - target: $["paths"]["/accounting/accounts"]["get"] + - target: $["paths"]["/crm/stages"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingAccounts + label: listCrmStages source: |- import { Panora } from "@panora/sdk"; @@ -4569,7 +4594,7 @@ actions: }); async function run() { - const result = await panora.accounting.accounts.list({ + const result = await panora.crm.stages.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -4581,11 +4606,11 @@ actions: } run(); - - target: $["paths"]["/crm/users"]["get"] + - target: $["paths"]["/linked_users"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmUsers + label: listLinkedUsers source: |- import { Panora } from "@panora/sdk"; @@ -4594,23 +4619,18 @@ actions: }); async function run() { - const result = await panora.crm.users.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); + const result = await panora.linkedUsers.list(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/marketingautomation/templates"]["get"] + - target: $["paths"]["/hris/payrollruns/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationTemplates + label: retrieveHrisPayrollRun source: |- import { Panora } from "@panora/sdk"; @@ -4619,11 +4639,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.templates.list({ + const result = await panora.hris.payrollruns.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -4631,41 +4650,24 @@ actions: } run(); - - target: $["paths"]["/ats/interviews"]["post"] + - target: $["paths"]["/ats/interviews"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsInterview + label: listAtsInterview source: |- import { Panora } from "@panora/sdk"; - import { UnifiedAtsInterviewInputStatus } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ats.interviews.create({ + const result = await panora.ats.interviews.list({ xConnectionToken: "", - remoteData: false, - unifiedAtsInterviewInput: { - status: UnifiedAtsInterviewInputStatus.Scheduled, - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobInterviewStageId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - organizedBy: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - interviewers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - location: "San Francisco", - startAt: new Date("2024-10-01T12:00:00Z"), - endAt: new Date("2024-10-01T12:00:00Z"), - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteUpdatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -4673,11 +4675,11 @@ actions: } run(); - - target: $["paths"]["/ats/jobinterviewstages/{id}"]["get"] + - target: $["paths"]["/ats/scorecards/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsJobInterviewStage + label: retrieveAtsScorecard source: |- import { Panora } from "@panora/sdk"; @@ -4686,7 +4688,7 @@ actions: }); async function run() { - const result = await panora.ats.jobinterviewstages.retrieve({ + const result = await panora.ats.scorecards.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -4697,11 +4699,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/users/{id}"]["get"] + - target: $["paths"]["/accounting/payments"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingUser + label: listAccountingPayment source: |- import { Panora } from "@panora/sdk"; @@ -4710,10 +4712,11 @@ actions: }); async function run() { - const result = await panora.ticketing.users.retrieve({ + const result = await panora.accounting.payments.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -4721,11 +4724,11 @@ actions: } run(); - - target: $["paths"]["/ats/attachments/{id}"]["get"] + - target: $["paths"]["/webhooks/{id}"]["put"] update: x-codeSamples: - lang: typescript - label: retrieveAtsAttachment + label: updateStatus source: |- import { Panora } from "@panora/sdk"; @@ -4734,10 +4737,8 @@ actions: }); async function run() { - const result = await panora.ats.attachments.retrieve({ - xConnectionToken: "", + const result = await panora.webhooks.updateStatus({ id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, }); // Handle the result @@ -4745,11 +4746,11 @@ 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"; @@ -4758,7 +4759,7 @@ actions: }); async function run() { - const result = await panora.accounting.payments.list({ + const result = await panora.ticketing.attachments.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -4795,11 +4796,11 @@ actions: } run(); - - target: $["paths"]["/accounting/journalentries"]["get"] + - target: $["paths"]["/connections"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingJournalEntry + label: getConnections source: |- import { Panora } from "@panora/sdk"; @@ -4808,47 +4809,29 @@ actions: }); async function run() { - const result = await panora.accounting.journalentries.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); + const result = await panora.connections.getConnections(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/ats/activities"]["post"] + - target: $["paths"]["/linked_users"]["post"] update: x-codeSamples: - lang: typescript - label: createAtsActivity + label: createLinkedUser source: |- import { Panora } from "@panora/sdk"; - import { UnifiedAtsActivityInputActivityType, UnifiedAtsActivityInputVisibility } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ats.activities.create({ - xConnectionToken: "", - remoteData: false, - unifiedAtsActivityInput: { - activityType: UnifiedAtsActivityInputActivityType.Note, - subject: "Email subject", - body: "Dear Diana, I love you", - visibility: UnifiedAtsActivityInputVisibility.Public, - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, + const result = await panora.linkedUsers.create({ + linkedUserOriginId: "id_1", + alias: "acme", }); // Handle the result @@ -4856,11 +4839,11 @@ actions: } run(); - - target: $["paths"]["/ats/scorecards"]["get"] + - target: $["paths"]["/hris/dependents/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsScorecard + label: retrieveHrisDependent source: |- import { Panora } from "@panora/sdk"; @@ -4869,11 +4852,10 @@ actions: }); async function run() { - const result = await panora.ats.scorecards.list({ + const result = await panora.hris.dependents.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -4881,11 +4863,11 @@ actions: } run(); - - target: $["paths"]["/hris/employeepayrollruns/{id}"]["get"] + - target: $["paths"]["/marketingautomation/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisEmployeePayrollRun + label: retrieveMarketingAutomationUser source: |- import { Panora } from "@panora/sdk"; @@ -4894,7 +4876,7 @@ actions: }); async function run() { - const result = await panora.hris.employeepayrollruns.retrieve({ + const result = await panora.marketingautomation.users.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -4905,11 +4887,11 @@ actions: } run(); - - target: $["paths"]["/accounting/companyinfos/{id}"]["get"] + - target: $["paths"]["/filestorage/files"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingCompanyInfo + label: createFilestorageFile source: |- import { Panora } from "@panora/sdk"; @@ -4918,10 +4900,22 @@ actions: }); async function run() { - const result = await panora.accounting.companyinfos.retrieve({ + const result = await panora.filestorage.files.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedFilestorageFileInput: { + name: "my_paris_photo.png", + fileUrl: "https://example.com/my_paris_photo.png", + mimeType: "application/pdf", + size: "1024", + folderId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + permission: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + sharedLink: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -4929,11 +4923,11 @@ actions: } run(); - - target: $["paths"]["/ats/applications/{id}"]["get"] + - target: $["paths"]["/ats/offers"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsApplication + label: listAtsOffer source: |- import { Panora } from "@panora/sdk"; @@ -4942,10 +4936,11 @@ actions: }); async function run() { - const result = await panora.ats.applications.retrieve({ + const result = await panora.ats.offers.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -4953,11 +4948,11 @@ actions: } run(); - - target: $["paths"]["/webhooks"]["post"] + - target: $["paths"]["/accounting/companyinfos/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createWebhookPublic + label: retrieveAccountingCompanyInfo source: |- import { Panora } from "@panora/sdk"; @@ -4966,12 +4961,10 @@ actions: }); async function run() { - const result = await panora.webhooks.create({ - url: "https://acme.com/webhook_receiver", - description: "Webhook to receive connection events", - scope: [ - "connection.created", - ], + const result = await panora.accounting.companyinfos.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -4979,11 +4972,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/collections/{id}"]["get"] + - target: $["paths"]["/ats/jobinterviewstages/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCollection + label: retrieveAtsJobInterviewStage source: |- import { Panora } from "@panora/sdk"; @@ -4992,7 +4985,7 @@ actions: }); async function run() { - const result = await panora.ticketing.collections.retrieve({ + const result = await panora.ats.jobinterviewstages.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -5003,11 +4996,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/actions"]["get"] + - target: $["paths"]["/ats/tags"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationAction + label: listAtsTags source: |- import { Panora } from "@panora/sdk"; @@ -5016,7 +5009,7 @@ actions: }); async function run() { - const result = await panora.marketingautomation.actions.list({ + const result = await panora.ats.tags.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -5028,56 +5021,81 @@ actions: } run(); - - target: $["paths"]["/webhooks"]["get"] + - target: $["paths"]["/crm/companies"]["post"] update: x-codeSamples: - lang: typescript - label: listWebhooks + label: createCrmCompany source: |- import { Panora } from "@panora/sdk"; + import { AddressType, EmailAddressType, PhoneType, UnifiedCrmCompanyInputIndustry } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.webhooks.list(); + const result = await panora.crm.companies.create({ + xConnectionToken: "", + remoteData: false, + unifiedCrmCompanyInput: { + name: "Acme", + industry: UnifiedCrmCompanyInputIndustry.Accounting, + numberOfEmployees: 10, + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + emailAddresses: [ + { + emailAddress: "acme@gmail.com", + emailAddressType: EmailAddressType.Work, + }, + ], + addresses: [ + { + street1: "5th Avenue", + street2: "", + city: "New York", + state: "NY", + postalCode: "46842", + country: "USA", + addressType: AddressType.Work, + ownerType: "", + }, + ], + phoneNumbers: [ + { + phoneNumber: "+33660606067", + phoneType: PhoneType.Work, + }, + ], + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/crm/tasks"]["post"] + - target: $["paths"]["/ats/activities/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmTask + label: retrieveAtsActivity source: |- import { Panora } from "@panora/sdk"; - import { UnifiedCrmTaskInputStatus } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.crm.tasks.create({ + const result = await panora.ats.activities.retrieve({ xConnectionToken: "", - unifiedCrmTaskInput: { - subject: "Answer customers", - content: "Prepare email campaign", - status: UnifiedCrmTaskInputStatus.Pending, - dueDate: "2024-10-01T12:00:00Z", - finishedDate: "2024-10-01T12:00:00Z", - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - dealId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -5085,11 +5103,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/actions"]["post"] + - target: $["paths"]["/accounting/vendorcredits/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationAction + label: retrieveAccountingVendorCredit source: |- import { Panora } from "@panora/sdk"; @@ -5098,10 +5116,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.actions.create({ + const result = await panora.accounting.vendorcredits.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedMarketingautomationActionInput: {}, }); // Handle the result @@ -5109,11 +5127,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/campaigns/{id}"]["get"] + - target: $["paths"]["/crm/stages/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationCampaign + label: retrieveCrmStage source: |- import { Panora } from "@panora/sdk"; @@ -5122,7 +5140,7 @@ actions: }); async function run() { - const result = await panora.marketingautomation.campaigns.retrieve({ + const result = await panora.crm.stages.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -5133,11 +5151,11 @@ actions: } run(); - - target: $["paths"]["/webhooks/{id}"]["put"] + - target: $["paths"]["/crm/users"]["get"] update: x-codeSamples: - lang: typescript - label: updateStatus + label: listCrmUsers source: |- import { Panora } from "@panora/sdk"; @@ -5146,8 +5164,11 @@ actions: }); async function run() { - const result = await panora.webhooks.updateStatus({ - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + const result = await panora.crm.users.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -5155,11 +5176,11 @@ actions: } run(); - - target: $["paths"]["/ats/departments"]["get"] + - target: $["paths"]["/accounting/items"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsDepartments + label: listAccountingItem source: |- import { Panora } from "@panora/sdk"; @@ -5168,7 +5189,7 @@ actions: }); async function run() { - const result = await panora.ats.departments.list({ + const result = await panora.accounting.items.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -5180,11 +5201,11 @@ actions: } run(); - - target: $["paths"]["/webhooks/verifyEvent"]["post"] + - target: $["paths"]["/accounting/phonenumbers/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: verifyEvent + label: retrieveAccountingPhonenumber source: |- import { Panora } from "@panora/sdk"; @@ -5193,12 +5214,10 @@ actions: }); async function run() { - const result = await panora.webhooks.verifyEvent({ - payload: { - "key": "", - }, - signature: "", - secret: "", + const result = await panora.accounting.phonenumbers.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -5206,11 +5225,11 @@ actions: } run(); - - target: $["paths"]["/crm/deals/{id}"]["get"] + - target: $["paths"]["/filestorage/files/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmDeal + label: retrieveFilestorageFile source: |- import { Panora } from "@panora/sdk"; @@ -5219,7 +5238,7 @@ actions: }); async function run() { - const result = await panora.crm.deals.retrieve({ + const result = await panora.filestorage.files.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -5230,35 +5249,23 @@ actions: } run(); - - target: $["paths"]["/ats/attachments"]["post"] + - target: $["paths"]["/accounting/purchaseorders/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsAttachment + label: retrieveAccountingPurchaseOrder source: |- import { Panora } from "@panora/sdk"; - import { UnifiedAtsAttachmentInputAttachmentType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ats.attachments.create({ + const result = await panora.accounting.purchaseorders.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedAtsAttachmentInput: { - fileUrl: "https://example.com/file.pdf", - fileName: "file.pdf", - attachmentType: UnifiedAtsAttachmentInputAttachmentType.Resume, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, }); // Handle the result @@ -5266,11 +5273,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/tickets"]["get"] + - target: $["paths"]["/filestorage/groups"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingTicket + label: listFilestorageGroup source: |- import { Panora } from "@panora/sdk"; @@ -5279,7 +5286,7 @@ actions: }); async function run() { - const result = await panora.ticketing.tickets.list({ + const result = await panora.filestorage.groups.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -5291,11 +5298,11 @@ actions: } run(); - - target: $["paths"]["/hris/timeoffbalances/{id}"]["get"] + - target: $["paths"]["/accounting/expenses"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveHrisTimeoffbalance + label: createAccountingExpense source: |- import { Panora } from "@panora/sdk"; @@ -5304,10 +5311,10 @@ actions: }); async function run() { - const result = await panora.hris.timeoffbalances.retrieve({ + const result = await panora.accounting.expenses.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedAccountingExpenseInput: {}, }); // Handle the result @@ -5315,11 +5322,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/campaigns"]["get"] + - target: $["paths"]["/filestorage/drives"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationCampaigns + label: listFilestorageDrives source: |- import { Panora } from "@panora/sdk"; @@ -5328,7 +5335,7 @@ actions: }); async function run() { - const result = await panora.marketingautomation.campaigns.list({ + const result = await panora.filestorage.drives.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -5340,11 +5347,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/contacts/{id}"]["get"] + - target: $["paths"]["/marketingautomation/automations"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingAutomationContact + label: createMarketingautomationAutomation source: |- import { Panora } from "@panora/sdk"; @@ -5353,10 +5360,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.contacts.retrieve({ + const result = await panora.marketingautomation.automations.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedMarketingautomationAutomationInput: {}, }); // Handle the result @@ -5364,11 +5371,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/users"]["get"] + - target: $["paths"]["/filestorage/files"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingAutomationUsers + label: listFilestorageFile source: |- import { Panora } from "@panora/sdk"; @@ -5377,7 +5384,7 @@ actions: }); async function run() { - const result = await panora.marketingautomation.users.list({ + const result = await panora.filestorage.files.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -5389,11 +5396,11 @@ actions: } run(); - - target: $["paths"]["/ats/offices"]["get"] + - target: $["paths"]["/ats/offers/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsOffice + label: retrieveAtsOffer source: |- import { Panora } from "@panora/sdk"; @@ -5402,11 +5409,10 @@ actions: }); async function run() { - const result = await panora.ats.offices.list({ + const result = await panora.ats.offers.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -5414,11 +5420,11 @@ actions: } run(); - - target: $["paths"]["/accounting/contacts/{id}"]["get"] + - target: $["paths"]["/accounting/purchaseorders"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingContact + label: listAccountingPurchaseOrder source: |- import { Panora } from "@panora/sdk"; @@ -5427,10 +5433,11 @@ actions: }); async function run() { - const result = await panora.accounting.contacts.retrieve({ + const result = await panora.accounting.purchaseorders.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -5438,11 +5445,11 @@ actions: } run(); - - target: $["paths"]["/accounting/expenses"]["post"] + - target: $["paths"]["/crm/companies"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingExpense + label: listCrmCompany source: |- import { Panora } from "@panora/sdk"; @@ -5451,10 +5458,11 @@ actions: }); async function run() { - const result = await panora.accounting.expenses.create({ + const result = await panora.crm.companies.list({ xConnectionToken: "", - remoteData: false, - unifiedAccountingExpenseInput: {}, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -5462,11 +5470,11 @@ actions: } run(); - - target: $["paths"]["/crm/companies"]["get"] + - target: $["paths"]["/crm/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmCompany + label: listCrmContacts source: |- import { Panora } from "@panora/sdk"; @@ -5475,7 +5483,7 @@ actions: }); async function run() { - const result = await panora.crm.companies.list({ + const result = await panora.crm.contacts.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -5487,11 +5495,11 @@ actions: } run(); - - target: $["paths"]["/crm/engagements/{id}"]["get"] + - target: $["paths"]["/hris/employments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmEngagement + label: retrieveHrisEmployment source: |- import { Panora } from "@panora/sdk"; @@ -5500,7 +5508,7 @@ actions: }); async function run() { - const result = await panora.crm.engagements.retrieve({ + const result = await panora.hris.employments.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -5511,11 +5519,11 @@ actions: } run(); - - target: $["paths"]["/hris/locations"]["get"] + - target: $["paths"]["/ats/interviews/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisLocations + label: retrieveAtsInterview source: |- import { Panora } from "@panora/sdk"; @@ -5524,11 +5532,10 @@ actions: }); async function run() { - const result = await panora.hris.locations.list({ + const result = await panora.ats.interviews.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -5536,9 +5543,3 @@ actions: } run(); - - target: $["paths"]["/auth/login"]["post"] - update: - x-codeSamples: - - lang: typescript - label: signIn - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n await panora.auth.login.signIn({\n idUser: \"\",\n email: \"Oda.Treutel97@hotmail.com\",\n passwordHash: \"\",\n });\n\n \n}\n\nrun();" diff --git a/docs/models/operations/listticketingticketresponse.md b/docs/models/operations/listticketingticketresponse.md new file mode 100644 index 00000000..22b14035 --- /dev/null +++ b/docs/models/operations/listticketingticketresponse.md @@ -0,0 +1,8 @@ +# ListTicketingTicketResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListTicketingTicketResponseBody](../../models/operations/listticketingticketresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdks/tickets/README.md b/docs/sdks/tickets/README.md index c67a25af..2f317de9 100644 --- a/docs/sdks/tickets/README.md +++ b/docs/sdks/tickets/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListTicketingTicketResponseBody](../../models/operations/listticketingticketresponsebody.md)\>** +**Promise\<[operations.ListTicketingTicketResponse](../../models/operations/listticketingticketresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/jsr.json b/jsr.json index 27d5517d..6c074e3f 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@panora/sdk", - "version": "0.7.0", + "version": "0.8.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index d2b55669..cda9df5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@panora/sdk", - "version": "0.7.0", + "version": "0.8.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@panora/sdk", - "version": "0.7.0", + "version": "0.8.0", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index a413be34..b9c36f68 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@panora/sdk", - "version": "0.7.0", + "version": "0.8.0", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index 3b151a79..18145de5 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -63,7 +63,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0", - sdkVersion: "0.7.0", + sdkVersion: "0.8.0", genVersion: "2.385.2", - userAgent: "speakeasy-sdk/typescript 0.7.0 2.385.2 1.0 @panora/sdk", + userAgent: "speakeasy-sdk/typescript 0.8.0 2.385.2 1.0 @panora/sdk", } as const; diff --git a/src/models/operations/listticketingticket.ts b/src/models/operations/listticketingticket.ts index 801f9c3c..9dc60c25 100644 --- a/src/models/operations/listticketingticket.ts +++ b/src/models/operations/listticketingticket.ts @@ -31,6 +31,10 @@ export type ListTicketingTicketResponseBody = { data: Array; }; +export type ListTicketingTicketResponse = { + result: ListTicketingTicketResponseBody; +}; + /** @internal */ export const ListTicketingTicketRequest$inboundSchema: z.ZodType< ListTicketingTicketRequest, @@ -145,3 +149,51 @@ export namespace ListTicketingTicketResponseBody$ { /** @deprecated use `ListTicketingTicketResponseBody$Outbound` instead. */ export type Outbound = ListTicketingTicketResponseBody$Outbound; } + +/** @internal */ +export const ListTicketingTicketResponse$inboundSchema: z.ZodType< + ListTicketingTicketResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListTicketingTicketResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListTicketingTicketResponse$Outbound = { + Result: ListTicketingTicketResponseBody$Outbound; +}; + +/** @internal */ +export const ListTicketingTicketResponse$outboundSchema: z.ZodType< + ListTicketingTicketResponse$Outbound, + z.ZodTypeDef, + ListTicketingTicketResponse +> = z + .object({ + result: z.lazy(() => ListTicketingTicketResponseBody$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + result: "Result", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingTicketResponse$ { + /** @deprecated use `ListTicketingTicketResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingTicketResponse$inboundSchema; + /** @deprecated use `ListTicketingTicketResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingTicketResponse$outboundSchema; + /** @deprecated use `ListTicketingTicketResponse$Outbound` instead. */ + export type Outbound = ListTicketingTicketResponse$Outbound; +} diff --git a/src/sdk/tickets.ts b/src/sdk/tickets.ts index ce34938b..434d4567 100644 --- a/src/sdk/tickets.ts +++ b/src/sdk/tickets.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Tickets extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Tickets extends ClientSDK { async list( request: operations.ListTicketingTicketRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Tickets extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListTicketingTicketResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListTicketingTicketResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListTicketingTicketResponseBody$inboundSchema), + m$.json(200, operations.ListTicketingTicketResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /**