From 0f00b1c219b5aec618a6d4505919d23bead762b0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 20 Sep 2024 00:05:25 +0000 Subject: [PATCH] ci: regenerated with Speakeasy CLI v1.400.0 --- .speakeasy/workflow.lock | 6 +- .../swagger/openapi-with-code-samples.yaml | 22726 +++++----------- 2 files changed, 7576 insertions(+), 15156 deletions(-) diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 665bf259f..660e63afc 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.374.2 +speakeasyVersion: 1.400.0 sources: merge-code-samples-into-spec: sourceNamespace: merge-code-samples-into-spec - sourceRevisionDigest: sha256:1bcf3a8cca852c571571fad60c90aad27624f86e4f2fb58e3777f0c3a6ec712a - sourceBlobDigest: sha256:ebdf0ba69a79a32d558c774cfe0f0c32d742319ed3c3d3d887bf14ac67f417d8 + sourceRevisionDigest: sha256:912fc296f73842c02a90f0baee369f2ab8674455e41e8f5d05c3876818d839a5 + sourceBlobDigest: sha256:28dcc66d46faa45f6a61b5d2e76b2bf5b25d17786399cf3a0f996517c1e9561f tags: - latest - main diff --git a/packages/api/swagger/openapi-with-code-samples.yaml b/packages/api/swagger/openapi-with-code-samples.yaml index eac26bebd..17e975a2f 100644 --- a/packages/api/swagger/openapi-with-code-samples.yaml +++ b/packages/api/swagger/openapi-with-code-samples.yaml @@ -15,21 +15,7 @@ paths: x-codeSamples: - lang: typescript label: hello - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hello(); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hello();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: hello source: |- @@ -89,21 +75,7 @@ paths: x-codeSamples: - lang: typescript label: health - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.health(); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.health();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: health source: |- @@ -147,29 +119,40 @@ paths: - lang: ruby label: health source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.health()\n\nif ! res.number.nil?\n # handle response\nend" - /auth/login: + /rag/query: post: - operationId: signIn - summary: Log In - parameters: [] + operationId: query + summary: Query using RAG Search + description: Query across your connected data sources using RAG Search + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/LoginDto' + $ref: '#/components/schemas/QueryBody' responses: '201': description: '' - tags: - - auth - x-speakeasy-group: auth.login + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/RagQueryOutput' + x-speakeasy-group: rag 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 email: \"Oda.Treutel97@hotmail.com\",\n passwordHash: \"\",\n });\n\n \n}\n\nrun();" + label: query + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.rag.query({\n xConnectionToken: \"\",\n queryBody: {\n query: \"When does Panora incorporated?\",\n topK: 3,\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: signIn + label: query source: |- from panora_sdk import Panora @@ -178,21 +161,23 @@ paths: ) - s.auth.login.sign_in(request={ - "email": "Oda.Treutel97@hotmail.com", - "password_hash": "", + res = s.rag.query(x_connection_token="", query_body={ + "query": "When does Panora incorporated?", + "top_k": 3, }) - # Use the SDK ... + if res is not None: + # handle response + pass - lang: go - label: signIn + label: query source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -200,58 +185,85 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - request := components.LoginDto{ - Email: "Oda.Treutel97@hotmail.com", - PasswordHash: "", - } + ctx := context.Background() - res, err := s.Auth.Login.SignIn(ctx, request) + res, err := s.Rag.Query(ctx, "", components.QueryBody{ + Query: "When does Panora incorporated?", + TopK: gosdk.Float64(3), + }) if err != nil { log.Fatal(err) } - if res != nil { + if res.RagQueryOutputs != nil { // handle response } } - lang: ruby - label: signIn - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::LoginDto.new(\n email: \"Oda.Treutel97@hotmail.com\",\n password_hash: \"\",\n)\n \nres = s.auth_login.sign_in(req)\n\nif res.status_code == 200\n # handle response\nend" - /connections: + label: query + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.rag.query(x_connection_token=\"\", query_body=::OpenApiSDK::Shared::QueryBody.new(\n query: \"When does Panora incorporated?\",\n top_k: 3,\n))\n\nif ! res.rag_query_outputs.nil?\n # handle response\nend" + /filestorage/files: get: - operationId: getConnections - summary: List Connections - parameters: [] + operationId: listFilestorageFile + summary: List Files + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: true + description: Set to true to include data from the original software. + schema: + type: boolean + - name: limit + required: false + in: query + example: 10 + description: Set to get the number of records. + schema: + default: 50 + type: number + - name: cursor + required: false + in: query + example: 1b8b05bb-5273-4012-b520-8657b0b90874 + description: Set to get the number of records after this cursor. + schema: + type: string responses: '200': description: '' content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/Connection' - tags: - - connections + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: '#/components/schemas/UnifiedFilestorageFileOutput' + tags: &ref_0 + - filestorage/files + x-speakeasy-group: filestorage.files + x-speakeasy-pagination: + type: cursor + inputs: + - name: cursor + in: parameters + type: cursor + outputs: + nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: getConnections - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.connections.getConnections(); - - // Handle the result - console.log(result) - } - - run(); + label: listFilestorageFile + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.files.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: getConnections + label: listFilestorageFile source: |- from panora_sdk import Panora @@ -260,76 +272,60 @@ paths: ) - res = s.connections.get_connections() + res = s.filestorage.files.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - lang: go - label: getConnections - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) + while True: + # handle items - ctx := context.Background() - res, err := s.Connections.GetConnections(ctx) - if err != nil { - log.Fatal(err) - } - if res.Connections != nil { - // handle response - } - } + res = res.Next() + if res is None: + break + - lang: go + label: listFilestorageFile + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Filestorage.Files.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: getConnections - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.connections.get_connections()\n\nif ! res.connections.nil?\n # handle response\nend" - /webhooks: - get: - operationId: listWebhooks - summary: List webhooks - parameters: [] + label: listFilestorageFile + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_files.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createFilestorageFile + summary: Create Files + description: Create Files in any supported Filestorage software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: false + description: Set to true to include data from the original Accounting software. + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedFilestorageFileInput' responses: - '200': + '201': description: '' content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/WebhookResponse' - tags: &ref_0 - - webhooks - x-speakeasy-group: webhooks + $ref: '#/components/schemas/UnifiedFilestorageFileOutput' + tags: *ref_0 + x-speakeasy-group: filestorage.files x-codeSamples: - lang: typescript - label: listWebhooks - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.webhooks.list(); - - // Handle the result - console.log(result) - } - - run(); + label: createFilestorageFile + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.files.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedFilestorageFileInput: {\n name: \"my_paris_photo.png\",\n fileUrl: \"https://example.com/my_paris_photo.png\",\n mimeType: \"application/pdf\",\n size: \"1024\",\n folderId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n permission: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n sharedLink: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: listWebhooks + label: createFilestorageFile source: |- from panora_sdk import Panora @@ -338,19 +334,32 @@ paths: ) - res = s.webhooks.list() + res = s.filestorage.files.create(x_connection_token="", unified_filestorage_file_input={ + "name": "my_paris_photo.png", + "file_url": "https://example.com/my_paris_photo.png", + "mime_type": "application/pdf", + "size": "1024", + "folder_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "permission": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "shared_link": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "field_mappings": { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, remote_data=False) if res is not None: # handle response pass - lang: go - label: listWebhooks + label: createFilestorageFile source: |- package main import( gosdk "github.com/panoratech/go-sdk" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -360,62 +369,70 @@ paths: ) ctx := context.Background() - res, err := s.Webhooks.List(ctx) + res, err := s.Filestorage.Files.Create(ctx, "", components.UnifiedFilestorageFileInput{ + Name: gosdk.String("my_paris_photo.png"), + FileURL: gosdk.String("https://example.com/my_paris_photo.png"), + MimeType: gosdk.String("application/pdf"), + Size: gosdk.String("1024"), + FolderID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Permission: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + SharedLink: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + FieldMappings: map[string]any{ + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.WebhookResponses != nil { + if res.UnifiedFilestorageFileOutput != nil { // handle response } } - lang: ruby - label: listWebhooks - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.webhooks.list()\n\nif ! res.webhook_responses.nil?\n # handle response\nend" - post: - operationId: createWebhookPublic - summary: Create webhook - parameters: [] - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/WebhookDto' + label: createFilestorageFile + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_files.create(x_connection_token=\"\", unified_filestorage_file_input=::OpenApiSDK::Shared::UnifiedFilestorageFileInput.new(\n name: \"my_paris_photo.png\",\n file_url: \"https://example.com/my_paris_photo.png\",\n mime_type: \"application/pdf\",\n size: \"1024\",\n folder_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n permission: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n shared_link: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_filestorage_file_output.nil?\n # handle response\nend" + /filestorage/files/{id}: + get: + operationId: retrieveFilestorageFile + summary: Retrieve Files + description: Retrieve Files from any connected Filestorage software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: id + required: true + in: path + description: id of the file you want to retrieve. + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original File Storage software. + example: false + schema: + type: boolean responses: - '201': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/WebhookResponse' + $ref: '#/components/schemas/UnifiedFilestorageFileOutput' tags: *ref_0 - x-speakeasy-group: webhooks + x-speakeasy-group: filestorage.files x-codeSamples: - lang: typescript - label: createWebhookPublic - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.webhooks.create({ - url: "https://acme.com/webhook_receiver", - description: "Webhook to receive connection events", - scope: [ - "connection.created", - ], - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveFilestorageFile + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.files.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createWebhookPublic + label: retrieveFilestorageFile source: |- from panora_sdk import Panora @@ -424,25 +441,18 @@ paths: ) - res = s.webhooks.create(request={ - "url": "https://acme.com/webhook_receiver", - "description": "Webhook to receive connection events", - "scope": [ - "connection.created", - ], - }) + res = s.filestorage.files.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: createWebhookPublic + label: retrieveFilestorageFile source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" "log" ) @@ -451,49 +461,39 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - request := components.WebhookDto{ - URL: gosdk.String("https://acme.com/webhook_receiver"), - Description: gosdk.String("Webhook to receive connection events"), - Scope: []string{ - "connection.created", - }, - } + ctx := context.Background() - res, err := s.Webhooks.Create(ctx, request) + res, err := s.Filestorage.Files.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.WebhookResponse != nil { + if res.UnifiedFilestorageFileOutput != nil { // handle response } } - lang: ruby - label: createWebhookPublic - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::WebhookDto.new(\n url: \"https://acme.com/webhook_receiver\",\n description: \"Webhook to receive connection events\",\n scope: [\n \"\",\n ],\n)\n \nres = s.webhooks.create(req)\n\nif ! res.webhook_response.nil?\n # handle response\nend" - /webhooks/{id}: - delete: - operationId: delete - summary: Delete Webhook - parameters: - - name: id - required: true - in: path - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the webhook to delete. - schema: - type: string + label: retrieveFilestorageFile + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_files.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_filestorage_file_output.nil?\n # handle response\nend" + /auth/login: + post: + operationId: signIn + summary: Log In + parameters: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/LoginDto' responses: '201': description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/WebhookResponse' - tags: *ref_0 - x-speakeasy-group: webhooks + tags: + - auth + x-speakeasy-group: auth.login x-codeSamples: - lang: typescript - label: delete + label: signIn source: |- import { Panora } from "@panora/sdk"; @@ -502,17 +502,15 @@ paths: }); async function run() { - const result = await panora.webhooks.delete({ - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + await panora.auth.login.signIn({ + email: "Oda.Treutel97@hotmail.com", + passwordHash: "", }); - - // Handle the result - console.log(result) } run(); - lang: python - label: delete + label: signIn source: |- from panora_sdk import Panora @@ -521,19 +519,21 @@ paths: ) - res = s.webhooks.delete(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") + s.auth.login.sign_in(request={ + "email": "Oda.Treutel97@hotmail.com", + "password_hash": "", + }) - if res is not None: - # handle response - pass + # Use the SDK ... - lang: go - label: delete + label: signIn source: |- package main import( gosdk "github.com/panoratech/go-sdk" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -541,61 +541,44 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + ctx := context.Background() - res, err := s.Webhooks.Delete(ctx, id) + res, err := s.Auth.Login.SignIn(ctx, components.LoginDto{ + Email: "Oda.Treutel97@hotmail.com", + PasswordHash: "", + }) if err != nil { log.Fatal(err) } - if res.WebhookResponse != nil { + if res != nil { // handle response } } - lang: ruby - label: delete - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.webhooks.delete(id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\")\n\nif ! res.webhook_response.nil?\n # handle response\nend" - put: - operationId: updateStatus - summary: Update webhook status - parameters: - - name: id - required: true - in: path - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the webhook to update. - schema: - type: string + label: signIn + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::LoginDto.new(\n email: \"Oda.Treutel97@hotmail.com\",\n password_hash: \"\",\n)\n \nres = s.auth_login.sign_in(req)\n\nif res.status_code == 200\n # handle response\nend" + /connections: + get: + operationId: listConnections + summary: List Connections + parameters: [] responses: - '201': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/WebhookResponse' - tags: *ref_0 - x-speakeasy-group: webhooks + type: array + items: + $ref: '#/components/schemas/Connection' + tags: + - connections x-codeSamples: - lang: typescript - label: updateStatus - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.webhooks.updateStatus({ - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - }); - - // Handle the result - console.log(result) - } - - run(); + label: listConnections + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.connections.list();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: updateStatus + label: listConnections source: |- from panora_sdk import Panora @@ -604,13 +587,13 @@ paths: ) - res = s.webhooks.update_status(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") + res = s.connections.list() if res is not None: # handle response pass - lang: go - label: updateStatus + label: listConnections source: |- package main @@ -624,69 +607,42 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + ctx := context.Background() - res, err := s.Webhooks.UpdateStatus(ctx, id) + res, err := s.Connections.List(ctx) if err != nil { log.Fatal(err) } - if res.WebhookResponse != nil { + if res.Connections != nil { // handle response } } - lang: ruby - label: updateStatus - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.webhooks.update_status(id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\")\n\nif ! res.webhook_response.nil?\n # handle response\nend" - /webhooks/verifyEvent: - post: - operationId: verifyEvent - summary: Verify payload signature of the webhook + label: listConnections + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.connections.list()\n\nif ! res.connections.nil?\n # handle response\nend" + /webhooks: + get: + operationId: listWebhooks + summary: List webhooks parameters: [] - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/SignatureVerificationDto' responses: '200': description: '' content: application/json: schema: - properties: - data: - type: object - additionalProperties: true - description: Dynamic event payload - tags: *ref_0 + type: array + items: + $ref: '#/components/schemas/WebhookResponse' + tags: &ref_1 + - webhooks x-speakeasy-group: webhooks x-codeSamples: - lang: typescript - label: verifyEvent - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.webhooks.verifyEvent({ - payload: { - "key": "", - }, - signature: "", - secret: "", - }); - - // Handle the result - console.log(result) - } - - run(); + label: listWebhooks + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.webhooks.list();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: verifyEvent + label: listWebhooks source: |- from panora_sdk import Panora @@ -695,25 +651,18 @@ paths: ) - res = s.webhooks.verify_event(request={ - "payload": { - "key": "", - }, - "signature": "", - "secret": "", - }) + res = s.webhooks.list() if res is not None: # handle response pass - lang: go - label: verifyEvent + label: listWebhooks source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" "log" ) @@ -722,237 +671,45 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - request := components.SignatureVerificationDto{ - Payload: map[string]any{ - "key": "", - }, - Signature: gosdk.String(""), - Secret: gosdk.String(""), - } + ctx := context.Background() - res, err := s.Webhooks.VerifyEvent(ctx, request) + res, err := s.Webhooks.List(ctx) if err != nil { log.Fatal(err) } - if res.Object != nil { + if res.WebhookResponses != nil { // handle response } } - lang: ruby - label: verifyEvent - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::SignatureVerificationDto.new(\n payload: {\n \"East\": \"\",\n },\n signature: \"\",\n secret: \"\",\n)\n \nres = s.webhooks.verify_event(req)\n\nif ! res.object.nil?\n # handle response\nend" - /ticketing/tickets: - get: - operationId: listTicketingTicket - summary: List Tickets - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: true - description: Set to true to include data from the original software. - schema: - type: boolean - - name: limit - required: false - in: query - example: 10 - description: Set to get the number of records. - schema: - default: 50 - type: number - - name: cursor - required: false - in: query - example: 1b8b05bb-5273-4012-b520-8657b0b90874 - description: Set to get the number of records after this cursor. - schema: - type: string - responses: - '200': - description: '' - content: - application/json: - schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: '#/components/schemas/UnifiedTicketingTicketOutput' - tags: &ref_1 - - ticketing/tickets - x-speakeasy-group: ticketing.tickets - x-speakeasy-pagination: - type: cursor - inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor - x-codeSamples: - - lang: typescript - label: listTicketingTicket - source: |- - 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(); - - lang: python - label: listTicketingTicket - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.ticketing.tickets.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - - if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - lang: go - label: listTicketingTicket - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ticketing.Tickets.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listTicketingTicket - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_tickets.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listWebhooks + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.webhooks.list()\n\nif ! res.webhook_responses.nil?\n # handle response\nend" post: - operationId: createTicketingTicket - summary: Create Tickets - description: Create Tickets in any supported Ticketing software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Ticketing software. - example: false - schema: - type: boolean + operationId: createWebhookPublic + summary: Create webhook + parameters: [] requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/UnifiedTicketingTicketInput' + $ref: '#/components/schemas/WebhookDto' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedTicketingTicketOutput' + $ref: '#/components/schemas/WebhookResponse' tags: *ref_1 - x-speakeasy-group: ticketing.tickets + x-speakeasy-group: webhooks x-codeSamples: - lang: typescript - 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.ticketing.tickets.create({ - xConnectionToken: "", - 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 - console.log(result) - } - - run(); + label: createWebhookPublic + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.webhooks.create({\n url: \"https://acme.com/webhook_receiver\",\n description: \"Webhook to receive connection events\",\n scope: [\n \"connection.created\",\n ],\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createTicketingTicket + label: createWebhookPublic source: |- - import dateutil.parser - import panora_sdk from panora_sdk import Panora s = Panora( @@ -960,1403 +717,26 @@ paths: ) - res = s.ticketing.tickets.create(x_connection_token="", unified_ticketing_ticket_input={ - "name": "Customer Service Inquiry", - "status": panora_sdk.UnifiedTicketingTicketInputStatus.OPEN, - "description": "Help customer", - "due_date": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "type": panora_sdk.UnifiedTicketingTicketInputType.BUG, - "parent_ticket": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "collections": [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - "tags": [ - "my_tag", - "urgent_tag", - ], - "completed_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "priority": panora_sdk.UnifiedTicketingTicketInputPriority.HIGH, - "assigned_to": [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - "comment": { - "body": "Assigned to Eric !", - "html_body": "

Assigned to Eric !

", - "is_private": False, - "creator_type": panora_sdk.UnifiedTicketingTicketInputCreatorType.USER, - "ticket_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "attachments": [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - }, - "account_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "attachments": [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + res = s.webhooks.create(request={ + "url": "https://acme.com/webhook_receiver", + "description": "Webhook to receive connection events", + "scope": [ + "connection.created", ], - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, remote_data=False) - - if res is not None: - # handle response - pass - - lang: go - label: createTicketingTicket - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "github.com/panoratech/go-sdk/types" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - unifiedTicketingTicketInput := components.UnifiedTicketingTicketInput{ - Name: gosdk.String("Customer Service Inquiry"), - Status: components.UnifiedTicketingTicketInputStatusOpen.ToPointer(), - Description: gosdk.String("Help customer"), - DueDate: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), - Type: components.UnifiedTicketingTicketInputTypeBug.ToPointer(), - ParentTicket: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - Collections: []components.UnifiedTicketingTicketInputCollections{ - components.CreateUnifiedTicketingTicketInputCollectionsStr( - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ), - }, - Tags: []components.UnifiedTicketingTicketInputTags{ - components.CreateUnifiedTicketingTicketInputTagsStr( - "my_tag", - ), - components.CreateUnifiedTicketingTicketInputTagsStr( - "urgent_tag", - ), - }, - CompletedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), - Priority: components.UnifiedTicketingTicketInputPriorityHigh.ToPointer(), - AssignedTo: []string{ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - }, - Comment: &components.UnifiedTicketingTicketInputComment{ - Body: gosdk.String("Assigned to Eric !"), - HTMLBody: gosdk.String("

Assigned to Eric !

"), - IsPrivate: gosdk.Bool(false), - CreatorType: components.UnifiedTicketingTicketInputCreatorTypeUser.ToPointer(), - TicketID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - ContactID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - Attachments: []components.UnifiedTicketingTicketInputCommentAttachments{ - components.CreateUnifiedTicketingTicketInputCommentAttachmentsStr( - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ), - }, - }, - AccountID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - ContactID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - Attachments: []components.UnifiedTicketingTicketInputAttachments{ - components.CreateUnifiedTicketingTicketInputAttachmentsStr( - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ), - }, - FieldMappings: map[string]any{ - "fav_dish": "broccoli", - "fav_color": "red", - }, - } - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Ticketing.Tickets.Create(ctx, xConnectionToken, unifiedTicketingTicketInput, remoteData) - if err != nil { - log.Fatal(err) - } - if res.UnifiedTicketingTicketOutput != nil { - // handle response - } - } - - lang: ruby - label: createTicketingTicket - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_tickets.create(x_connection_token=\"\", unified_ticketing_ticket_input=::OpenApiSDK::Shared::UnifiedTicketingTicketInput.new(\n name: \"Customer Service Inquiry\",\n status: ::OpenApiSDK::Shared::UnifiedTicketingTicketInputStatus::OPEN,\n description: \"Help customer\",\n due_date: DateTime.iso8601('2024-10-01T12:00:00Z'),\n type: ::OpenApiSDK::Shared::UnifiedTicketingTicketInputType::BUG,\n parent_ticket: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n collections: [\n \"\",\n ],\n tags: [\n \"\",\n ],\n completed_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n priority: ::OpenApiSDK::Shared::UnifiedTicketingTicketInputPriority::HIGH,\n assigned_to: [\n \"\",\n ],\n comment: ::OpenApiSDK::Shared::UnifiedTicketingTicketInputComment.new(\n body: \"Assigned to Eric !\",\n html_body: \"

Assigned to Eric !

\",\n is_private: false,\n creator_type: ::OpenApiSDK::Shared::UnifiedTicketingTicketInputCreatorType::USER,\n ticket_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contact_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n attachments: [\n \"\",\n ],\n ),\n account_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contact_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n attachments: [\n \"\",\n ],\n field_mappings: {\n \"online\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_ticketing_ticket_output.nil?\n # handle response\nend" - /ticketing/tickets/{id}: - get: - operationId: retrieveTicketingTicket - summary: Retrieve Tickets - description: Retrieve Tickets from any connected Ticketing software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: id - required: true - in: path - description: id of the `ticket` you want to retrive. - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Ticketing software. - example: false - schema: - type: boolean - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedTicketingTicketOutput' - tags: *ref_1 - x-speakeasy-group: ticketing.tickets - x-codeSamples: - - lang: typescript - label: retrieveTicketingTicket - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.tickets.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: retrieveTicketingTicket - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.ticketing.tickets.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) - - if res is not None: - # handle response - pass - - lang: go - label: retrieveTicketingTicket - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Ticketing.Tickets.Retrieve(ctx, xConnectionToken, id, remoteData) - if err != nil { - log.Fatal(err) - } - if res.UnifiedTicketingTicketOutput != nil { - // handle response - } - } - - lang: ruby - label: retrieveTicketingTicket - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_tickets.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ticketing_ticket_output.nil?\n # handle response\nend" - /ticketing/users: - get: - operationId: listTicketingUsers - summary: List Users - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: true - description: Set to true to include data from the original software. - schema: - type: boolean - - name: limit - required: false - in: query - example: 10 - description: Set to get the number of records. - schema: - default: 50 - type: number - - name: cursor - required: false - in: query - example: 1b8b05bb-5273-4012-b520-8657b0b90874 - description: Set to get the number of records after this cursor. - schema: - type: string - responses: - '200': - description: '' - content: - application/json: - schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: '#/components/schemas/UnifiedTicketingUserOutput' - tags: &ref_2 - - ticketing/users - x-speakeasy-group: ticketing.users - x-speakeasy-pagination: - type: cursor - inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor - x-codeSamples: - - lang: typescript - label: listTicketingUsers - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.users.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); - - lang: python - label: listTicketingUsers - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.ticketing.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - - if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - lang: go - label: listTicketingUsers - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ticketing.Users.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listTicketingUsers - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_users.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ticketing/users/{id}: - get: - operationId: retrieveTicketingUser - summary: Retrieve User - description: Retrieve a User from any connected Ticketing software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: id - required: true - in: path - description: id of the user you want to retrieve. - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Ticketing software. - example: false - schema: - type: boolean - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedTicketingUserOutput' - tags: *ref_2 - x-speakeasy-group: ticketing.users - x-codeSamples: - - lang: typescript - label: retrieveTicketingUser - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.users.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: retrieveTicketingUser - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.ticketing.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) - - if res is not None: - # handle response - pass - - lang: go - label: retrieveTicketingUser - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Ticketing.Users.Retrieve(ctx, xConnectionToken, id, remoteData) - if err != nil { - log.Fatal(err) - } - if res.UnifiedTicketingUserOutput != nil { - // handle response - } - } - - lang: ruby - label: retrieveTicketingUser - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_users.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ticketing_user_output.nil?\n # handle response\nend" - /ticketing/accounts: - get: - operationId: listTicketingAccount - summary: List Accounts - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: true - description: Set to true to include data from the original software. - schema: - type: boolean - - name: limit - required: false - in: query - example: 10 - description: Set to get the number of records. - schema: - default: 50 - type: number - - name: cursor - required: false - in: query - example: 1b8b05bb-5273-4012-b520-8657b0b90874 - description: Set to get the number of records after this cursor. - schema: - type: string - responses: - '200': - description: '' - content: - application/json: - schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: '#/components/schemas/UnifiedTicketingAccountOutput' - tags: &ref_3 - - ticketing/accounts - x-speakeasy-group: ticketing.accounts - x-speakeasy-pagination: - type: cursor - inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor - x-codeSamples: - - lang: typescript - label: listTicketingAccount - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.accounts.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); - - lang: python - label: listTicketingAccount - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.ticketing.accounts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - - if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - lang: go - label: listTicketingAccount - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ticketing.Accounts.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listTicketingAccount - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_accounts.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ticketing/accounts/{id}: - get: - operationId: retrieveTicketingAccount - summary: Retrieve Accounts - description: Retrieve Accounts from any connected Ticketing software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: id - required: true - in: path - description: id of the account you want to retrieve. - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Ticketing software. - schema: - type: boolean - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedTicketingAccountOutput' - tags: *ref_3 - x-speakeasy-group: ticketing.accounts - x-codeSamples: - - lang: typescript - label: retrieveTicketingAccount - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.accounts.retrieve({ - xConnectionToken: "", - id: "", - }); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: retrieveTicketingAccount - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.ticketing.accounts.retrieve(x_connection_token="", id="") - - if res is not None: - # handle response - pass - - lang: go - label: retrieveTicketingAccount - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - var id string = "" - ctx := context.Background() - res, err := s.Ticketing.Accounts.Retrieve(ctx, xConnectionToken, id, nil) - if err != nil { - log.Fatal(err) - } - if res.UnifiedTicketingAccountOutput != nil { - // handle response - } - } - - lang: ruby - label: retrieveTicketingAccount - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_accounts.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.unified_ticketing_account_output.nil?\n # handle response\nend" - /ticketing/contacts: - get: - operationId: listTicketingContacts - summary: List Contacts - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: true - description: Set to true to include data from the original software. - schema: - type: boolean - - name: limit - required: false - in: query - example: 10 - description: Set to get the number of records. - schema: - default: 50 - type: number - - name: cursor - required: false - in: query - example: 1b8b05bb-5273-4012-b520-8657b0b90874 - description: Set to get the number of records after this cursor. - schema: - type: string - responses: - '200': - description: '' - content: - application/json: - schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: '#/components/schemas/UnifiedTicketingContactOutput' - tags: &ref_4 - - ticketing/contacts - x-speakeasy-group: ticketing.contacts - x-speakeasy-pagination: - type: cursor - inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor - x-codeSamples: - - lang: typescript - label: listTicketingContacts - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.contacts.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); - - lang: python - label: listTicketingContacts - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.ticketing.contacts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - - if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - lang: go - label: listTicketingContacts - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ticketing.Contacts.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listTicketingContacts - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_contacts.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ticketing/contacts/{id}: - get: - operationId: retrieveTicketingContact - summary: Retrieve Contact - description: Retrieve a Contact from any connected Ticketing software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: id - required: true - in: path - description: id of the contact you want to retrieve. - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Ticketing software. - schema: - type: boolean - responses: - '200': - description: '' - content: - application/json: - schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: '#/components/schemas/UnifiedTicketingContactOutput' - tags: *ref_4 - x-speakeasy-group: ticketing.contacts - x-codeSamples: - - lang: typescript - label: retrieveTicketingContact - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.contacts.retrieve({ - xConnectionToken: "", - id: "", - }); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: retrieveTicketingContact - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.ticketing.contacts.retrieve(x_connection_token="", id="") - - if res is not None: - # handle response - pass - - lang: go - label: retrieveTicketingContact - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - var id string = "" - ctx := context.Background() - res, err := s.Ticketing.Contacts.Retrieve(ctx, xConnectionToken, id, nil) - if err != nil { - log.Fatal(err) - } - if res.Object != nil { - // handle response - } - } - - lang: ruby - label: retrieveTicketingContact - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_contacts.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.object.nil?\n # handle response\nend" - /sync/status/{vertical}: - get: - operationId: status - summary: Retrieve sync status of a certain vertical - parameters: - - name: vertical - required: true - in: path - example: ticketing - schema: - enum: - - ticketing - - marketingautomation - - crm - - filestorage - - ats - - hris - - accounting - - ecommerce - type: string - responses: - '200': - description: '' - tags: &ref_5 - - sync - x-speakeasy-group: sync - 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();" - - lang: python - label: status - source: |- - import panora_sdk - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - s.sync.status(vertical=panora_sdk.PathParamVertical.TICKETING) - - # Use the SDK ... - - lang: go - label: status - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/operations" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var vertical operations.Vertical = operations.VerticalTicketing - ctx := context.Background() - res, err := s.Sync.Status(ctx, vertical) - if err != nil { - log.Fatal(err) - } - if res != nil { - // handle response - } - } - - lang: ruby - label: status - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.sync.status(vertical=::OpenApiSDK::Operations::Vertical::TICKETING)\n\nif res.status_code == 200\n # handle response\nend" - /sync/resync: - post: - operationId: resync - summary: Resync common objects across a vertical - parameters: [] - responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ResyncStatusDto' - tags: *ref_5 - x-speakeasy-group: sync - x-codeSamples: - - lang: typescript - label: resync - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.sync.resync(); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: resync - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.sync.resync() - - if res is not None: - # handle response - pass - - lang: go - label: resync - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - - ctx := context.Background() - res, err := s.Sync.Resync(ctx) - if err != nil { - log.Fatal(err) - } - if res.ResyncStatusDto != nil { - // handle response - } - } - - lang: ruby - label: resync - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.sync.resync()\n\nif ! res.resync_status_dto.nil?\n # handle response\nend" - /crm/companies: - get: - operationId: listCrmCompany - summary: List Companies - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: true - description: Set to true to include data from the original software. - schema: - type: boolean - - name: limit - required: false - in: query - example: 10 - description: Set to get the number of records. - schema: - default: 50 - type: number - - name: cursor - required: false - in: query - example: 1b8b05bb-5273-4012-b520-8657b0b90874 - description: Set to get the number of records after this cursor. - schema: - type: string - responses: - '200': - description: '' - content: - application/json: - schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: '#/components/schemas/UnifiedCrmCompanyOutput' - tags: &ref_6 - - crm/companies - x-speakeasy-group: crm.companies - x-speakeasy-pagination: - type: cursor - inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor - x-codeSamples: - - lang: typescript - label: listCrmCompany - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.companies.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); - - lang: python - label: listCrmCompany - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.crm.companies.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - - if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - lang: go - label: listCrmCompany - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Crm.Companies.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listCrmCompany - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_companies.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createCrmCompany - summary: Create Companies - description: Create Companies in any supported CRM software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original CRM software. - example: false - schema: - type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedCrmCompanyInput' - responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedCrmCompanyOutput' - tags: *ref_6 - x-speakeasy-group: crm.companies - x-codeSamples: - - lang: typescript - 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.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: "Street 2", - city: "New York", - state: "NY", - postalCode: "10001", - 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(); - - lang: python - label: createCrmCompany - source: |- - import panora_sdk - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.crm.companies.create(x_connection_token="", unified_crm_company_input={ - "name": "Acme", - "industry": panora_sdk.UnifiedCrmCompanyInputIndustry.ACCOUNTING, - "number_of_employees": 10, - "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "email_addresses": [ - { - "email_address": "acme@gmail.com", - "email_address_type": panora_sdk.EmailAddressType.WORK, - }, - ], - "addresses": [ - { - "street_1": "5th Avenue", - "street_2": "", - "city": "New York", - "state": "NY", - "postal_code": "46842", - "country": "USA", - "address_type": panora_sdk.AddressType.WORK, - "owner_type": "", - }, - ], - "phone_numbers": [ - { - "phone_number": "+33660606067", - "phone_type": panora_sdk.PhoneType.WORK, - }, - ], - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, remote_data=False) - - if res is not None: - # handle response - pass - - lang: go - label: createCrmCompany - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - unifiedCrmCompanyInput := components.UnifiedCrmCompanyInput{ - Name: gosdk.String("Acme"), - Industry: components.UnifiedCrmCompanyInputIndustryAccounting.ToPointer(), - NumberOfEmployees: gosdk.Float64(10), - UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - EmailAddresses: []components.Email{ - components.Email{ - EmailAddress: gosdk.String("acme@gmail.com"), - EmailAddressType: components.EmailAddressTypeWork.ToPointer(), - }, - }, - Addresses: []components.Address{ - components.Address{ - Street1: gosdk.String("5th Avenue"), - Street2: gosdk.String(""), - City: gosdk.String("New York"), - State: gosdk.String("NY"), - PostalCode: gosdk.String("46842"), - Country: gosdk.String("USA"), - AddressType: components.AddressTypeWork.ToPointer(), - OwnerType: gosdk.String(""), - }, - }, - PhoneNumbers: []components.Phone{ - components.Phone{ - PhoneNumber: gosdk.String("+33660606067"), - PhoneType: components.PhoneTypeWork.ToPointer(), - }, - }, - FieldMappings: map[string]any{ - "fav_dish": "broccoli", - "fav_color": "red", - }, - } - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Crm.Companies.Create(ctx, xConnectionToken, unifiedCrmCompanyInput, remoteData) - if err != nil { - log.Fatal(err) - } - if res.UnifiedCrmCompanyOutput != nil { - // handle response - } - } - - lang: ruby - label: createCrmCompany - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_companies.create(x_connection_token=\"\", unified_crm_company_input=::OpenApiSDK::Shared::UnifiedCrmCompanyInput.new(\n name: \"Acme\",\n industry: ::OpenApiSDK::Shared::UnifiedCrmCompanyInputIndustry::ACCOUNTING,\n number_of_employees: 10.0,\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n email_addresses: [\n ::OpenApiSDK::Shared::Email.new(\n email_address: \"Jena.Nienow28@yahoo.com\",\n email_address_type: ::OpenApiSDK::Shared::EmailAddressType::PERSONAL,\n ),\n ],\n addresses: [\n ::OpenApiSDK::Shared::Address.new(\n street_1: \"\",\n street_2: \"\",\n city: \"Bernhardworth\",\n state: \"South Carolina\",\n postal_code: \"98041\",\n country: \"French Polynesia\",\n address_type: ::OpenApiSDK::Shared::AddressType::PERSONAL,\n owner_type: \"\",\n ),\n ],\n phone_numbers: [\n ::OpenApiSDK::Shared::Phone.new(\n phone_number: \"\",\n phone_type: ::OpenApiSDK::Shared::PhoneType::WORK,\n ),\n ],\n field_mappings: {\n \"fuchsia\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_crm_company_output.nil?\n # handle response\nend" - /crm/companies/{id}: - get: - operationId: retrieveCrmCompany - summary: Retrieve Companies - description: Retrieve Companies from any connected Crm software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: id - required: true - in: path - description: id of the company you want to retrieve. - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Crm software. - example: false - schema: - type: boolean - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedCrmCompanyOutput' - tags: *ref_6 - x-speakeasy-group: crm.companies - x-codeSamples: - - lang: typescript - label: retrieveCrmCompany - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.companies.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: retrieveCrmCompany - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.crm.companies.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + }) if res is not None: # handle response pass - lang: go - label: retrieveCrmCompany + label: createWebhookPublic source: |- package main import( gosdk "github.com/panoratech/go-sdk" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -2364,106 +744,54 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Crm.Companies.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Webhooks.Create(ctx, components.WebhookDto{ + URL: gosdk.String("https://acme.com/webhook_receiver"), + Description: gosdk.String("Webhook to receive connection events"), + Scope: []string{ + "connection.created", + }, + }) if err != nil { log.Fatal(err) } - if res.UnifiedCrmCompanyOutput != nil { + if res.WebhookResponse != nil { // handle response } } - lang: ruby - label: retrieveCrmCompany - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_companies.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_company_output.nil?\n # handle response\nend" - /crm/contacts: - get: - operationId: listCrmContacts - summary: List CRM Contacts + label: createWebhookPublic + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::WebhookDto.new(\n url: \"https://acme.com/webhook_receiver\",\n description: \"Webhook to receive connection events\",\n scope: [\n \"connection.created\",\n ],\n)\n \nres = s.webhooks.create(req)\n\nif ! res.webhook_response.nil?\n # handle response\nend" + /webhooks/{id}: + delete: + operationId: delete + summary: Delete Webhook parameters: - - name: x-connection-token + - name: id required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: true - description: Set to true to include data from the original software. - schema: - type: boolean - - name: limit - required: false - in: query - example: 10 - description: Set to get the number of records. - schema: - default: 50 - type: number - - name: cursor - required: false - in: query - example: 1b8b05bb-5273-4012-b520-8657b0b90874 - description: Set to get the number of records after this cursor. + in: path + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: id of the webhook to delete. schema: type: string responses: '200': description: '' + '201': + description: '' content: application/json: schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: '#/components/schemas/UnifiedCrmContactOutput' - tags: &ref_7 - - crm/contacts - x-speakeasy-group: crm.contacts - x-speakeasy-pagination: - type: cursor - inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor + $ref: '#/components/schemas/WebhookResponse' + tags: *ref_1 + x-speakeasy-group: webhooks x-codeSamples: - lang: typescript - label: listCrmContacts - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.contacts.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: delete + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.webhooks.delete({\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: listCrmContacts + label: delete source: |- from panora_sdk import Panora @@ -2472,113 +800,68 @@ paths: ) - res = s.crm.contacts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.webhooks.delete(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break + # handle response + pass - lang: go - label: listCrmContacts - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Crm.Contacts.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: delete + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Webhooks.Delete(ctx, "801f9ede-c698-4e66-a7fc-48d19eebaa4f") + if err != nil { + log.Fatal(err) + } + if res.WebhookResponse != nil { + // handle response + } + } - lang: ruby - label: listCrmContacts - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_contacts.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createCrmContact - summary: Create Contacts - description: Create Contacts in any supported CRM + label: delete + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.webhooks.delete(id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\")\n\nif ! res.webhook_response.nil?\n # handle response\nend" + put: + operationId: updateStatus + summary: Update webhook status parameters: - - name: x-connection-token + - name: id required: true - in: header - description: The connection token + in: path + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: id of the webhook to update. schema: type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original CRM software. - example: false - schema: - type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedCrmContactInput' responses: + '200': + description: '' '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmContactOutput' - tags: *ref_7 - x-speakeasy-group: crm.contacts + $ref: '#/components/schemas/WebhookResponse' + tags: *ref_1 + x-speakeasy-group: webhooks x-codeSamples: - lang: typescript - 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.crm.contacts.create({ - xConnectionToken: "", - remoteData: false, - unifiedCrmContactInput: { - firstName: "John", - lastName: "Doe", - emailAddresses: [ - { - emailAddress: "Jena.Nienow28@yahoo.com", - emailAddressType: EmailAddressType.Personal, - }, - ], - phoneNumbers: [ - { - phoneNumber: "", - phoneType: PhoneType.Work, - }, - ], - addresses: [ - { - street1: "5th Avenue", - street2: "Street 2", - city: "Anytown", - state: "CA", - postalCode: "10001", - country: "USA", - addressType: AddressType.Personal, - ownerType: "", - }, - ], - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + label: updateStatus + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.webhooks.updateStatus({\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createCrmContact + label: updateStatus source: |- - import panora_sdk from panora_sdk import Panora s = Panora( @@ -2586,167 +869,67 @@ paths: ) - res = s.crm.contacts.create(x_connection_token="", unified_crm_contact_input={ - "first_name": "John", - "last_name": "Doe", - "email_addresses": [ - { - "email_address": "Jena.Nienow28@yahoo.com", - "email_address_type": panora_sdk.EmailAddressType.PERSONAL, - }, - ], - "phone_numbers": [ - { - "phone_number": "", - "phone_type": panora_sdk.PhoneType.WORK, - }, - ], - "addresses": [ - { - "street_1": "", - "street_2": "", - "city": "Anytown", - "state": "CA", - "postal_code": "97398", - "country": "USA", - "address_type": panora_sdk.AddressType.PERSONAL, - "owner_type": "", - }, - ], - "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, remote_data=False) + res = s.webhooks.update_status(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") if res is not None: # handle response pass - lang: go - label: createCrmContact + label: updateStatus source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - unifiedCrmContactInput := components.UnifiedCrmContactInput{ - FirstName: gosdk.String("John"), - LastName: gosdk.String("Doe"), - EmailAddresses: []components.Email{ - components.Email{ - EmailAddress: gosdk.String("Jena.Nienow28@yahoo.com"), - EmailAddressType: components.EmailAddressTypePersonal.ToPointer(), - }, - }, - PhoneNumbers: []components.Phone{ - components.Phone{ - PhoneNumber: gosdk.String(""), - PhoneType: components.PhoneTypeWork.ToPointer(), - }, - }, - Addresses: []components.Address{ - components.Address{ - Street1: gosdk.String(""), - Street2: gosdk.String(""), - City: gosdk.String("Anytown"), - State: gosdk.String("CA"), - PostalCode: gosdk.String("97398"), - Country: gosdk.String("USA"), - AddressType: components.AddressTypePersonal.ToPointer(), - OwnerType: gosdk.String(""), - }, - }, - UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - FieldMappings: map[string]any{ - "fav_dish": "broccoli", - "fav_color": "red", - }, - } + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Crm.Contacts.Create(ctx, xConnectionToken, unifiedCrmContactInput, remoteData) + res, err := s.Webhooks.UpdateStatus(ctx, "801f9ede-c698-4e66-a7fc-48d19eebaa4f") if err != nil { log.Fatal(err) } - if res.UnifiedCrmContactOutput != nil { + if res.WebhookResponse != nil { // handle response } } - lang: ruby - label: createCrmContact - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_contacts.create(x_connection_token=\"\", unified_crm_contact_input=::OpenApiSDK::Shared::UnifiedCrmContactInput.new(\n first_name: \"John\",\n last_name: \"Doe\",\n email_addresses: [\n ::OpenApiSDK::Shared::Email.new(\n email_address: \"Jena.Nienow28@yahoo.com\",\n email_address_type: ::OpenApiSDK::Shared::EmailAddressType::PERSONAL,\n ),\n ],\n phone_numbers: [\n ::OpenApiSDK::Shared::Phone.new(\n phone_number: \"\",\n phone_type: ::OpenApiSDK::Shared::PhoneType::WORK,\n ),\n ],\n addresses: [\n ::OpenApiSDK::Shared::Address.new(\n street_1: \"\",\n street_2: \"\",\n city: \"Fort Peytonbury\",\n state: \"West Virginia\",\n postal_code: \"04130-7788\",\n country: \"Marshall Islands\",\n address_type: ::OpenApiSDK::Shared::AddressType::WORK,\n owner_type: \"\",\n ),\n ],\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"Polestar\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_crm_contact_output.nil?\n # handle response\nend" - /crm/contacts/{id}: - get: - operationId: retrieveCrmContact - summary: Retrieve Contacts - description: Retrieve Contacts from any connected CRM - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: id - required: true - in: path - description: id of the `contact` you want to retrive. - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original CRM software. - example: false - schema: - type: boolean + label: updateStatus + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.webhooks.update_status(id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\")\n\nif ! res.webhook_response.nil?\n # handle response\nend" + /webhooks/verifyEvent: + post: + operationId: verifyEvent + summary: Verify payload signature of the webhook + parameters: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/SignatureVerificationDto' responses: - '200': + '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmContactOutput' - tags: *ref_7 - x-speakeasy-group: crm.contacts + type: object + additionalProperties: true + description: Dynamic event payload + tags: *ref_1 + x-speakeasy-group: webhooks x-codeSamples: - lang: typescript - label: retrieveCrmContact - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.contacts.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: verifyEvent + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.webhooks.verifyEvent({\n payload: {\n \n },\n signature: \"\",\n secret: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveCrmContact + label: verifyEvent source: |- from panora_sdk import Panora @@ -2755,19 +938,30 @@ paths: ) - res = s.crm.contacts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.webhooks.verify_event(request={ + "payload": { + "id_event": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "type": "connection.created", + "data": { + "key": "", + }, + }, + "signature": "", + "secret": "", + }) if res is not None: # handle response pass - lang: go - label: retrieveCrmContact + label: verifyEvent source: |- package main import( gosdk "github.com/panoratech/go-sdk" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -2775,27 +969,29 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Crm.Contacts.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Webhooks.VerifyEvent(ctx, components.SignatureVerificationDto{ + Payload: map[string]any{ + + }, + Signature: gosdk.String(""), + Secret: gosdk.String(""), + }) if err != nil { log.Fatal(err) } - if res.UnifiedCrmContactOutput != nil { + if res.Object != nil { // handle response } } - lang: ruby - label: retrieveCrmContact - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_contacts.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_contact_output.nil?\n # handle response\nend" - /crm/deals: + label: verifyEvent + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::SignatureVerificationDto.new(\n payload: ::OpenApiSDK::Shared::Payload.new(\n id_event: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n type: \"connection.created\",\n data: {\n \"key\": \"\",\n },\n ),\n signature: \"\",\n secret: \"\",\n)\n \nres = s.webhooks.verify_event(req)\n\nif ! res.event_payload.nil?\n # handle response\nend" + /ticketing/tickets: get: - operationId: listCrmDeals - summary: List Deals + operationId: listTicketingTicket + summary: List Tickets parameters: - name: x-connection-token required: true @@ -2837,10 +1033,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedCrmDealOutput' - tags: &ref_8 - - crm/deals - x-speakeasy-group: crm.deals + $ref: '#/components/schemas/UnifiedTicketingTicketOutput' + tags: &ref_2 + - ticketing/tickets + x-speakeasy-group: ticketing.tickets x-speakeasy-pagination: type: cursor inputs: @@ -2851,30 +1047,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listCrmDeals - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.deals.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listTicketingTicket + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.tickets.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listCrmDeals + label: listTicketingTicket source: |- from panora_sdk import Panora @@ -2883,7 +1059,7 @@ paths: ) - res = s.crm.deals.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ticketing.tickets.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -2893,15 +1069,15 @@ paths: if res is None: break - lang: go - label: listCrmDeals - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Crm.Deals.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listTicketingTicket + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ticketing.Tickets.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listCrmDeals - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_deals.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listTicketingTicket + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_tickets.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createCrmDeal - summary: Create Deals - description: Create Deals in any supported Crm software + operationId: createTicketingTicket + summary: Create Tickets + description: Create Tickets in any supported Ticketing software parameters: - name: x-connection-token required: true @@ -2912,7 +1088,8 @@ paths: - name: remote_data required: false in: query - description: Set to true to include data from the original Crm software. + description: Set to true to include data from the original Ticketing software. + example: false schema: type: boolean requestBody: @@ -2920,51 +1097,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmDealInput' + $ref: '#/components/schemas/UnifiedTicketingTicketInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmDealOutput' - tags: *ref_8 - x-speakeasy-group: crm.deals + $ref: '#/components/schemas/UnifiedTicketingTicketOutput' + tags: *ref_2 + x-speakeasy-group: ticketing.tickets x-codeSamples: - lang: typescript - label: createCrmDeal - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - 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", - }, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createTicketingTicket + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.tickets.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedTicketingTicketInput: {\n name: \"Customer Service Inquiry\",\n status: \"OPEN\",\n description: \"Help customer\",\n dueDate: new Date(\"2024-10-01T12:00:00Z\"),\n type: \"BUG\",\n parentTicket: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n collections: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n tags: [\n \"my_tag\",\n \"urgent_tag\",\n ],\n completedAt: new Date(\"2024-10-01T12:00:00Z\"),\n priority: \"HIGH\",\n assignedTo: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n comment: {\n body: \"Assigned to Eric !\",\n htmlBody: \"

Assigned to Eric !

\",\n isPrivate: false,\n creatorType: \"USER\",\n ticketId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n attachments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n },\n accountId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n attachments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createCrmDeal + label: createTicketingTicket source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -2972,31 +1122,61 @@ paths: ) - res = s.crm.deals.create(x_connection_token="", unified_crm_deal_input={ - "name": "Huge Contract with Acme", - "description": "Contract with Sales Operations Team", - "amount": 1000, - "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "stage_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + res = s.ticketing.tickets.create(x_connection_token="", unified_ticketing_ticket_input={ + "name": "Customer Service Inquiry", + "status": "OPEN", + "description": "Help customer", + "due_date": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "type": "BUG", + "parent_ticket": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "collections": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + "tags": [ + "my_tag", + "urgent_tag", + ], + "completed_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "priority": "HIGH", + "assigned_to": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + "comment": { + "body": "Assigned to Eric !", + "html_body": "

Assigned to Eric !

", + "is_private": False, + "creator_type": "USER", + "ticket_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "attachments": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + }, + "account_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "attachments": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], "field_mappings": { "fav_dish": "broccoli", "fav_color": "red", }, - }) + }, remote_data=False) if res is not None: # handle response pass - lang: go - label: createCrmDeal + label: createTicketingTicket source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -3004,37 +1184,74 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedCrmDealInput := components.UnifiedCrmDealInput{ - Name: gosdk.String("Huge Contract with Acme"), - Description: gosdk.String("Contract with Sales Operations Team"), - Amount: gosdk.Float64(1000), - UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - StageID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - CompanyID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + ctx := context.Background() + res, err := s.Ticketing.Tickets.Create(ctx, "", components.UnifiedTicketingTicketInput{ + Name: gosdk.String("Customer Service Inquiry"), + Status: gosdk.String("OPEN"), + Description: gosdk.String("Help customer"), + DueDate: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + Type: gosdk.String("BUG"), + ParentTicket: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Collections: []components.UnifiedTicketingTicketInputCollections{ + components.CreateUnifiedTicketingTicketInputCollectionsStr( + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ), + }, + Tags: []components.UnifiedTicketingTicketInputTags{ + components.CreateUnifiedTicketingTicketInputTagsStr( + "my_tag", + ), + components.CreateUnifiedTicketingTicketInputTagsStr( + "urgent_tag", + ), + }, + CompletedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + Priority: gosdk.String("HIGH"), + AssignedTo: []string{ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }, + Comment: &components.UnifiedTicketingTicketInputComment{ + Body: gosdk.String("Assigned to Eric !"), + HTMLBody: gosdk.String("

Assigned to Eric !

"), + IsPrivate: gosdk.Bool(false), + CreatorType: gosdk.String("USER"), + TicketID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + ContactID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Attachments: []components.UnifiedTicketingTicketInputCommentAttachments{ + components.CreateUnifiedTicketingTicketInputCommentAttachmentsStr( + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ), + }, + }, + AccountID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + ContactID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Attachments: []components.UnifiedTicketingTicketInputAttachments{ + components.CreateUnifiedTicketingTicketInputAttachmentsStr( + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ), + }, FieldMappings: map[string]any{ "fav_dish": "broccoli", "fav_color": "red", }, - } - ctx := context.Background() - res, err := s.Crm.Deals.Create(ctx, xConnectionToken, unifiedCrmDealInput, nil) + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedCrmDealOutput != nil { + if res.UnifiedTicketingTicketOutput != nil { // handle response } } - lang: ruby - label: createCrmDeal - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_deals.create(x_connection_token=\"\", unified_crm_deal_input=::OpenApiSDK::Shared::UnifiedCrmDealInput.new(\n name: \"Huge Contract with Acme\",\n description: \"Contract with Sales Operations Team\",\n amount: 1000.0,\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n stage_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n company_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"online\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_crm_deal_output.nil?\n # handle response\nend" - /crm/deals/{id}: + label: createTicketingTicket + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_tickets.create(x_connection_token=\"\", unified_ticketing_ticket_input=::OpenApiSDK::Shared::UnifiedTicketingTicketInput.new(\n name: \"Customer Service Inquiry\",\n status: \"OPEN\",\n description: \"Help customer\",\n due_date: DateTime.iso8601('2024-10-01T12:00:00Z'),\n type: \"BUG\",\n parent_ticket: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n collections: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n tags: [\n \"my_tag\",\n \"urgent_tag\",\n ],\n completed_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n priority: \"HIGH\",\n assigned_to: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n comment: ::OpenApiSDK::Shared::UnifiedTicketingTicketInputComment.new(\n body: \"Assigned to Eric !\",\n html_body: \"

Assigned to Eric !

\",\n is_private: false,\n creator_type: \"USER\",\n ticket_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contact_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n attachments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n ),\n account_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contact_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n attachments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_ticketing_ticket_output.nil?\n # handle response\nend" + /ticketing/tickets/{id}: get: - operationId: retrieveCrmDeal - summary: Retrieve Deals - description: Retrieve Deals from any connected Crm software + operationId: retrieveTicketingTicket + summary: Retrieve Tickets + description: Retrieve Tickets from any connected Ticketing software parameters: - name: x-connection-token required: true @@ -3045,14 +1262,14 @@ paths: - name: id required: true in: path - description: id of the deal you want to retrieve. + description: id of the `ticket` you want to retrive. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query - description: Set to true to include data from the original Crm software. + description: Set to true to include data from the original Ticketing software. example: false schema: type: boolean @@ -3062,33 +1279,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmDealOutput' - tags: *ref_8 - x-speakeasy-group: crm.deals + $ref: '#/components/schemas/UnifiedTicketingTicketOutput' + tags: *ref_2 + x-speakeasy-group: ticketing.tickets x-codeSamples: - lang: typescript - label: retrieveCrmDeal - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.deals.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveTicketingTicket + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.tickets.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveCrmDeal + label: retrieveTicketingTicket source: |- from panora_sdk import Panora @@ -3097,13 +1296,13 @@ paths: ) - res = s.crm.deals.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ticketing.tickets.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveCrmDeal + label: retrieveTicketingTicket source: |- package main @@ -3117,27 +1316,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Crm.Deals.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ticketing.Tickets.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedCrmDealOutput != nil { + if res.UnifiedTicketingTicketOutput != nil { // handle response } } - lang: ruby - label: retrieveCrmDeal - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_deals.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_deal_output.nil?\n # handle response\nend" - /crm/engagements: + label: retrieveTicketingTicket + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_tickets.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ticketing_ticket_output.nil?\n # handle response\nend" + /ticketing/users: get: - operationId: listCrmEngagements - summary: List Engagements + operationId: listTicketingUsers + summary: List Users parameters: - name: x-connection-token required: true @@ -3179,10 +1374,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedCrmEngagementOutput' - tags: &ref_9 - - crm/engagements - x-speakeasy-group: crm.engagements + $ref: '#/components/schemas/UnifiedTicketingUserOutput' + tags: &ref_3 + - ticketing/users + x-speakeasy-group: ticketing.users x-speakeasy-pagination: type: cursor inputs: @@ -3193,30 +1388,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listCrmEngagements - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.engagements.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listTicketingUsers + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.users.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listCrmEngagements + label: listTicketingUsers source: |- from panora_sdk import Panora @@ -3225,7 +1400,7 @@ paths: ) - res = s.crm.engagements.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ticketing.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -3235,15 +1410,16 @@ paths: if res is None: break - lang: go - label: listCrmEngagements - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Crm.Engagements.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listTicketingUsers + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ticketing.Users.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listCrmEngagements - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_engagements.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createCrmEngagement - summary: Create Engagements - description: Create Engagements in any supported Crm software + label: listTicketingUsers + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_users.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ticketing/users/{id}: + get: + operationId: retrieveTicketingUser + summary: Retrieve User + description: Retrieve a User from any connected Ticketing software parameters: - name: x-connection-token required: true @@ -3251,72 +1427,36 @@ paths: description: The connection token schema: type: string + - name: id + required: true + in: path + description: id of the user you want to retrieve. + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + schema: + type: string - name: remote_data required: false in: query - description: Set to true to include data from the original Crm software. + description: Set to true to include data from the original Ticketing software. example: false schema: type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedCrmEngagementInput' responses: - '201': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmEngagementOutput' - tags: *ref_9 - x-speakeasy-group: crm.engagements + $ref: '#/components/schemas/UnifiedTicketingUserOutput' + tags: *ref_3 + x-speakeasy-group: ticketing.users x-codeSamples: - lang: typescript - 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.crm.engagements.create({ - 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", - }, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveTicketingUser + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.users.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createCrmEngagement + label: retrieveTicketingUser source: |- - import dateutil.parser - import panora_sdk from panora_sdk import Panora s = Panora( @@ -3324,82 +1464,130 @@ paths: ) - res = s.crm.engagements.create(x_connection_token="", unified_crm_engagement_input={ - "content": "Meeting call with CTO", - "direction": panora_sdk.UnifiedCrmEngagementInputDirection.INBOUND, - "subject": "Technical features planning", - "start_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "end_time": dateutil.parser.isoparse("2024-10-01T22:00:00Z"), - "type": panora_sdk.UnifiedCrmEngagementInputType.MEETING, - "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "contacts": [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, remote_data=False) + res = s.ticketing.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: createCrmEngagement + label: retrieveTicketingUser + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Ticketing.Users.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedTicketingUserOutput != nil { + // handle response + } + } + - lang: ruby + label: retrieveTicketingUser + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_users.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ticketing_user_output.nil?\n # handle response\nend" + /ticketing/accounts: + get: + operationId: listTicketingAccount + summary: List Accounts + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: true + description: Set to true to include data from the original software. + schema: + type: boolean + - name: limit + required: false + in: query + example: 10 + description: Set to get the number of records. + schema: + default: 50 + type: number + - name: cursor + required: false + in: query + example: 1b8b05bb-5273-4012-b520-8657b0b90874 + description: Set to get the number of records after this cursor. + schema: + type: string + responses: + '200': + description: '' + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: '#/components/schemas/UnifiedTicketingAccountOutput' + tags: &ref_4 + - ticketing/accounts + x-speakeasy-group: ticketing.accounts + x-speakeasy-pagination: + type: cursor + inputs: + - name: cursor + in: parameters + type: cursor + outputs: + nextCursor: $.next_cursor + x-codeSamples: + - lang: typescript + label: listTicketingAccount + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.accounts.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + - lang: python + label: listTicketingAccount source: |- - package main + from panora_sdk import Panora - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "github.com/panoratech/go-sdk/types" - "context" - "log" + s = Panora( + api_key="", ) - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - unifiedCrmEngagementInput := components.UnifiedCrmEngagementInput{ - Content: gosdk.String("Meeting call with CTO"), - Direction: components.UnifiedCrmEngagementInputDirectionInbound.ToPointer(), - Subject: gosdk.String("Technical features planning"), - StartAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), - EndTime: types.MustNewTimeFromString("2024-10-01T22:00:00Z"), - Type: components.UnifiedCrmEngagementInputTypeMeeting.ToPointer(), - UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - CompanyID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - Contacts: []string{ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - }, - FieldMappings: map[string]any{ - "fav_dish": "broccoli", - "fav_color": "red", - }, - } + res = s.ticketing.accounts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Crm.Engagements.Create(ctx, xConnectionToken, unifiedCrmEngagementInput, remoteData) - if err != nil { - log.Fatal(err) - } - if res.UnifiedCrmEngagementOutput != nil { - // handle response - } - } + if res is not None: + while True: + # handle items + + res = res.Next() + if res is None: + break + - lang: go + label: listTicketingAccount + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ticketing.Accounts.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: createCrmEngagement - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_engagements.create(x_connection_token=\"\", unified_crm_engagement_input=::OpenApiSDK::Shared::UnifiedCrmEngagementInput.new(\n content: \"Meeting call with CTO\",\n direction: ::OpenApiSDK::Shared::UnifiedCrmEngagementInputDirection::INBOUND,\n subject: \"Technical features planning\",\n start_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n end_time: DateTime.iso8601('2024-10-01T22:00:00Z'),\n type: ::OpenApiSDK::Shared::UnifiedCrmEngagementInputType::MEETING,\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n company_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contacts: [\n \"\",\n ],\n field_mappings: {\n \"online\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_crm_engagement_output.nil?\n # handle response\nend" - /crm/engagements/{id}: + label: listTicketingAccount + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_accounts.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ticketing/accounts/{id}: get: - operationId: retrieveCrmEngagement - summary: Retrieve Engagements - description: Retrieve Engagements from any connected Crm software + operationId: retrieveTicketingAccount + summary: Retrieve Accounts + description: Retrieve Accounts from any connected Ticketing software parameters: - name: x-connection-token required: true @@ -3410,15 +1598,13 @@ paths: - name: id required: true in: path - description: id of the engagement you want to retrieve. - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: id of the account you want to retrieve. schema: type: string - name: remote_data required: false in: query - description: Set to true to include data from the original Crm software. - example: false + description: Set to true to include data from the original Ticketing software. schema: type: boolean responses: @@ -3427,33 +1613,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmEngagementOutput' - tags: *ref_9 - x-speakeasy-group: crm.engagements + $ref: '#/components/schemas/UnifiedTicketingAccountOutput' + tags: *ref_4 + x-speakeasy-group: ticketing.accounts x-codeSamples: - lang: typescript - label: retrieveCrmEngagement - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.engagements.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveTicketingAccount + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.accounts.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveCrmEngagement + label: retrieveTicketingAccount source: |- from panora_sdk import Panora @@ -3462,13 +1630,13 @@ paths: ) - res = s.crm.engagements.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ticketing.accounts.retrieve(x_connection_token="", id="") if res is not None: # handle response pass - lang: go - label: retrieveCrmEngagement + label: retrieveTicketingAccount source: |- package main @@ -3482,27 +1650,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Crm.Engagements.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ticketing.Accounts.Retrieve(ctx, "", "", nil) if err != nil { log.Fatal(err) } - if res.UnifiedCrmEngagementOutput != nil { + if res.UnifiedTicketingAccountOutput != nil { // handle response } } - lang: ruby - label: retrieveCrmEngagement - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_engagements.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_engagement_output.nil?\n # handle response\nend" - /crm/notes: + label: retrieveTicketingAccount + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_accounts.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.unified_ticketing_account_output.nil?\n # handle response\nend" + /ticketing/contacts: get: - operationId: listCrmNote - summary: List Notes + operationId: listTicketingContacts + summary: List Contacts parameters: - name: x-connection-token required: true @@ -3544,10 +1708,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedCrmNoteOutput' - tags: &ref_10 - - crm/notes - x-speakeasy-group: crm.notes + $ref: '#/components/schemas/UnifiedTicketingContactOutput' + tags: &ref_5 + - ticketing/contacts + x-speakeasy-group: ticketing.contacts x-speakeasy-pagination: type: cursor inputs: @@ -3558,30 +1722,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listCrmNote - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.notes.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listTicketingContacts + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.contacts.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listCrmNote + label: listTicketingContacts source: |- from panora_sdk import Panora @@ -3590,7 +1734,7 @@ paths: ) - res = s.crm.notes.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ticketing.contacts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -3600,15 +1744,16 @@ paths: if res is None: break - lang: go - label: listCrmNote - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Crm.Notes.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listTicketingContacts + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ticketing.Contacts.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listCrmNote - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_notes.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createCrmNote - summary: Create Notes - description: Create Notes in any supported Crm software + label: listTicketingContacts + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_contacts.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ticketing/contacts/{id}: + get: + operationId: retrieveTicketingContact + summary: Retrieve Contact + description: Retrieve a Contact from any connected Ticketing software parameters: - name: x-connection-token required: true @@ -3616,63 +1761,128 @@ paths: description: The connection token schema: type: string + - name: id + required: true + in: path + description: id of the contact you want to retrieve. + schema: + type: string - name: remote_data required: false in: query - description: Set to true to include data from the original Crm software. - example: false + description: Set to true to include data from the original Ticketing software. schema: type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedCrmNoteInput' responses: - '201': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmNoteOutput' - tags: *ref_10 - x-speakeasy-group: crm.notes + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: '#/components/schemas/UnifiedTicketingContactOutput' + tags: *ref_5 + x-speakeasy-group: ticketing.contacts x-codeSamples: - lang: typescript - label: createCrmNote + label: retrieveTicketingContact + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.contacts.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: retrieveTicketingContact + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.ticketing.contacts.retrieve(x_connection_token="", id="") + + if res is not None: + # handle response + pass + - lang: go + label: retrieveTicketingContact + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Ticketing.Contacts.Retrieve(ctx, "", "", nil) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - lang: ruby + label: retrieveTicketingContact + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_contacts.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.object.nil?\n # handle response\nend" + /sync/status/{vertical}: + get: + operationId: status + summary: Retrieve sync status of a certain vertical + parameters: + - name: vertical + required: true + in: path + example: ticketing + schema: + enum: + - ticketing + - marketingautomation + - crm + - filestorage + - ats + - hris + - accounting + - ecommerce + type: string + responses: + '200': + description: '' + tags: &ref_6 + - sync + x-speakeasy-group: sync + x-codeSamples: + - lang: typescript + label: status source: |- import { Panora } from "@panora/sdk"; + import { Vertical } from "@panora/sdk/models/operations"; const panora = new Panora({ apiKey: "", }); - async function run() { - const result = await panora.crm.notes.create({ - 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", - }, - }, - }); - - // Handle the result - console.log(result) + async function run() { + await panora.sync.status({ + vertical: Vertical.Ticketing, + }); } run(); - lang: python - label: createCrmNote + label: status source: |- + import panora_sdk from panora_sdk import Panora s = Panora( @@ -3680,30 +1890,18 @@ paths: ) - res = s.crm.notes.create(x_connection_token="", unified_crm_note_input={ - "content": "My notes taken during the meeting", - "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "deal_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, remote_data=False) + s.sync.status(vertical=panora_sdk.PathParamVertical.TICKETING) - if res is not None: - # handle response - pass + # Use the SDK ... - lang: go - label: createCrmNote + label: status source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/models/operations" "log" ) @@ -3711,92 +1909,39 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - unifiedCrmNoteInput := components.UnifiedCrmNoteInput{ - Content: gosdk.String("My notes taken during the meeting"), - UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - CompanyID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - ContactID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - DealID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - FieldMappings: map[string]any{ - "fav_dish": "broccoli", - "fav_color": "red", - }, - } - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Crm.Notes.Create(ctx, xConnectionToken, unifiedCrmNoteInput, remoteData) + res, err := s.Sync.Status(ctx, operations.VerticalTicketing) if err != nil { log.Fatal(err) } - if res.UnifiedCrmNoteOutput != nil { + if res != nil { // handle response } } - lang: ruby - label: createCrmNote - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_notes.create(x_connection_token=\"\", unified_crm_note_input=::OpenApiSDK::Shared::UnifiedCrmNoteInput.new(\n content: \"My notes taken during the meeting\",\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n company_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contact_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n deal_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"online\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_crm_note_output.nil?\n # handle response\nend" - /crm/notes/{id}: - get: - operationId: retrieveCrmNote - summary: Retrieve Notes - description: Retrieve Notes from any connected Crm software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: id - required: true - in: path - description: id of the note you want to retrieve. - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Crm software. - example: false - schema: - type: boolean + label: status + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.sync.status(vertical=::OpenApiSDK::Operations::Vertical::TICKETING)\n\nif res.status_code == 200\n # handle response\nend" + /sync/resync: + post: + operationId: resync + summary: Resync common objects across a vertical + parameters: [] responses: - '200': + '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmNoteOutput' - tags: *ref_10 - x-speakeasy-group: crm.notes + $ref: '#/components/schemas/ResyncStatusDto' + tags: *ref_6 + x-speakeasy-group: sync x-codeSamples: - lang: typescript - label: retrieveCrmNote - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.notes.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: resync + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.sync.resync();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveCrmNote + label: resync source: |- from panora_sdk import Panora @@ -3805,13 +1950,13 @@ paths: ) - res = s.crm.notes.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.sync.resync() if res is not None: # handle response pass - lang: go - label: retrieveCrmNote + label: resync source: |- package main @@ -3825,27 +1970,66 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Crm.Notes.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Sync.Resync(ctx) if err != nil { log.Fatal(err) } - if res.UnifiedCrmNoteOutput != nil { + if res.ResyncStatusDto != nil { // handle response } } - lang: ruby - label: retrieveCrmNote - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_notes.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_note_output.nil?\n # handle response\nend" - /crm/stages: + label: resync + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.sync.resync()\n\nif ! res.resync_status_dto.nil?\n # handle response\nend" + /sync/pull_frequencies: + post: + operationId: updatePullFrequency + summary: Update pull frequency for verticals + parameters: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdatePullFrequencyDto' + responses: + '200': + description: Pull frequency updated successfully + '201': + description: '' + content: + application/json: + schema: + type: object + tags: *ref_6 + x-speakeasy-group: sync + x-codeSamples: + - lang: typescript + label: updatePullFrequency + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.sync.updatePullFrequency({\n crm: 1800,\n ats: 3600,\n hris: 7200,\n accounting: 14400,\n filestorage: 28800,\n ecommerce: 43200,\n ticketing: 86400,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" get: - operationId: listCrmStages - summary: List Stages + operationId: getPullFrequency + summary: Get pull frequency for verticals + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UpdatePullFrequencyDto' + tags: *ref_6 + x-speakeasy-group: sync + x-codeSamples: + - lang: typescript + label: getPullFrequency + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.sync.getPullFrequency();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + /crm/companies: + get: + operationId: listCrmCompany + summary: List Companies parameters: - name: x-connection-token required: true @@ -3887,10 +2071,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedCrmStageOutput' - tags: &ref_11 - - crm/stages - x-speakeasy-group: crm.stages + $ref: '#/components/schemas/UnifiedCrmCompanyOutput' + tags: &ref_7 + - crm/companies + x-speakeasy-group: crm.companies x-speakeasy-pagination: type: cursor inputs: @@ -3901,58 +2085,185 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listCrmStages + label: listCrmCompany + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.companies.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + - lang: python + label: listCrmCompany source: |- - import { Panora } from "@panora/sdk"; + from panora_sdk import Panora - const panora = new Panora({ - apiKey: "", - }); + s = Panora( + api_key="", + ) - async function run() { - const result = await panora.crm.stages.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - for await (const page of result) { - // handle page - } - } + res = s.crm.companies.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + + if res is not None: + while True: + # handle items + + res = res.Next() + if res is None: + break + - lang: go + label: listCrmCompany + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Crm.Companies.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + - lang: ruby + label: listCrmCompany + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_companies.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createCrmCompany + summary: Create Companies + description: Create Companies in any supported CRM software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original CRM software. + example: false + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedCrmCompanyInput' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedCrmCompanyOutput' + tags: *ref_7 + x-speakeasy-group: crm.companies + x-codeSamples: + - lang: typescript + label: createCrmCompany + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.companies.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedCrmCompanyInput: {\n name: \"Acme\",\n industry: \"ACCOUNTING\",\n numberOfEmployees: 10,\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n emailAddresses: [\n {\n emailAddress: \"acme@gmail.com\",\n emailAddressType: \"WORK\",\n },\n ],\n addresses: [\n {\n street1: \"5th Avenue\",\n street2: \"Street 2\",\n city: \"New York\",\n state: \"NY\",\n postalCode: \"10001\",\n country: \"USA\",\n addressType: \"WORK\",\n ownerType: \"\",\n },\n ],\n phoneNumbers: [\n {\n phoneNumber: \"+33660606067\",\n phoneType: \"WORK\",\n },\n ],\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createCrmCompany + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.crm.companies.create(x_connection_token="", unified_crm_company_input={ + "name": "Acme", + "industry": "ACCOUNTING", + "number_of_employees": 10, + "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "email_addresses": [ + { + "email_address": "acme@gmail.com", + "email_address_type": "WORK", + }, + ], + "addresses": [ + { + "street_1": "5th Avenue", + "street_2": "Street 2", + "city": "New York", + "state": "NY", + "postal_code": "10001", + "country": "USA", + "address_type": "WORK", + "owner_type": "", + }, + ], + "phone_numbers": [ + { + "phone_number": "+33660606067", + "phone_type": "WORK", + }, + ], + "field_mappings": { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, remote_data=False) - run(); - - lang: python - label: listCrmStages + if res is not None: + # handle response + pass + - lang: go + label: createCrmCompany source: |- - from panora_sdk import Panora + package main - s = Panora( - api_key="", + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" ) + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) - res = s.crm.stages.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - - if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - lang: go - label: listCrmStages - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Crm.Stages.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + ctx := context.Background() + res, err := s.Crm.Companies.Create(ctx, "", components.UnifiedCrmCompanyInput{ + Name: gosdk.String("Acme"), + Industry: gosdk.String("ACCOUNTING"), + NumberOfEmployees: gosdk.Float64(10), + UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + EmailAddresses: []components.Email{ + components.Email{ + EmailAddress: gosdk.String("acme@gmail.com"), + EmailAddressType: gosdk.String("WORK"), + }, + }, + Addresses: []components.Address{ + components.Address{ + Street1: gosdk.String("5th Avenue"), + Street2: gosdk.String("Street 2"), + City: gosdk.String("New York"), + State: gosdk.String("NY"), + PostalCode: gosdk.String("10001"), + Country: gosdk.String("USA"), + AddressType: gosdk.String("WORK"), + OwnerType: gosdk.String(""), + }, + }, + PhoneNumbers: []components.Phone{ + components.Phone{ + PhoneNumber: gosdk.String("+33660606067"), + PhoneType: gosdk.String("WORK"), + }, + }, + FieldMappings: map[string]any{ + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedCrmCompanyOutput != nil { + // handle response + } + } - lang: ruby - label: listCrmStages - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_stages.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /crm/stages/{id}: + label: createCrmCompany + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_companies.create(x_connection_token=\"\", unified_crm_company_input=::OpenApiSDK::Shared::UnifiedCrmCompanyInput.new(\n name: \"Acme\",\n industry: \"ACCOUNTING\",\n number_of_employees: 10.0,\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n email_addresses: [\n ::OpenApiSDK::Shared::Email.new(\n email_address: \"acme@gmail.com\",\n email_address_type: \"WORK\",\n ),\n ],\n addresses: [\n ::OpenApiSDK::Shared::Address.new(\n street_1: \"5th Avenue\",\n street_2: \"Street 2\",\n city: \"New York\",\n state: \"NY\",\n postal_code: \"10001\",\n country: \"USA\",\n address_type: \"WORK\",\n owner_type: \"\",\n ),\n ],\n phone_numbers: [\n ::OpenApiSDK::Shared::Phone.new(\n phone_number: \"+33660606067\",\n phone_type: \"WORK\",\n ),\n ],\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_crm_company_output.nil?\n # handle response\nend" + /crm/companies/{id}: get: - operationId: retrieveCrmStage - summary: Retrieve Stages - description: Retrieve Stages from any connected Crm software + operationId: retrieveCrmCompany + summary: Retrieve Companies + description: Retrieve Companies from any connected Crm software parameters: - name: x-connection-token required: true @@ -3963,7 +2274,7 @@ paths: - name: id required: true in: path - description: id of the stage you want to retrieve. + description: id of the company you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -3980,33 +2291,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmStageOutput' - tags: *ref_11 - x-speakeasy-group: crm.stages + $ref: '#/components/schemas/UnifiedCrmCompanyOutput' + tags: *ref_7 + x-speakeasy-group: crm.companies x-codeSamples: - lang: typescript - label: retrieveCrmStage - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.stages.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveCrmCompany + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.companies.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveCrmStage + label: retrieveCrmCompany source: |- from panora_sdk import Panora @@ -4015,13 +2308,13 @@ paths: ) - res = s.crm.stages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.crm.companies.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveCrmStage + label: retrieveCrmCompany source: |- package main @@ -4035,27 +2328,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Crm.Stages.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Crm.Companies.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedCrmStageOutput != nil { + if res.UnifiedCrmCompanyOutput != nil { // handle response } } - lang: ruby - label: retrieveCrmStage - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_stages.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_stage_output.nil?\n # handle response\nend" - /crm/tasks: + label: retrieveCrmCompany + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_companies.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_company_output.nil?\n # handle response\nend" + /crm/contacts: get: - operationId: listCrmTask - summary: List Tasks + operationId: listCrmContacts + summary: List CRM Contacts parameters: - name: x-connection-token required: true @@ -4097,10 +2386,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedCrmTaskOutput' - tags: &ref_12 - - crm/tasks - x-speakeasy-group: crm.tasks + $ref: '#/components/schemas/UnifiedCrmContactOutput' + tags: &ref_8 + - crm/contacts + x-speakeasy-group: crm.contacts x-speakeasy-pagination: type: cursor inputs: @@ -4111,30 +2400,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listCrmTask - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.tasks.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listCrmContacts + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.contacts.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listCrmTask + label: listCrmContacts source: |- from panora_sdk import Panora @@ -4143,7 +2412,7 @@ paths: ) - res = s.crm.tasks.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.crm.contacts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -4153,15 +2422,15 @@ paths: if res is None: break - lang: go - label: listCrmTask - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Crm.Tasks.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listCrmContacts + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Crm.Contacts.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listCrmTask - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_tasks.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listCrmContacts + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_contacts.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createCrmTask - summary: Create Tasks - description: Create Tasks in any supported Crm software + operationId: createCrmContact + summary: Create Contacts + description: Create Contacts in any supported CRM parameters: - name: x-connection-token required: true @@ -4172,7 +2441,8 @@ paths: - name: remote_data required: false in: query - description: Set to true to include data from the original Crm software. + description: Set to true to include data from the original CRM software. + example: false schema: type: boolean requestBody: @@ -4180,55 +2450,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmTaskInput' + $ref: '#/components/schemas/UnifiedCrmContactInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmTaskOutput' - tags: *ref_12 - x-speakeasy-group: crm.tasks + $ref: '#/components/schemas/UnifiedCrmContactOutput' + tags: *ref_8 + x-speakeasy-group: crm.contacts x-codeSamples: - lang: typescript - label: createCrmTask - 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({ - 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 - console.log(result) - } - - run(); + label: createCrmContact + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.contacts.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedCrmContactInput: {\n firstName: \"John\",\n lastName: \"Doe\",\n emailAddresses: [\n {\n emailAddress: \"Jena.Nienow28@yahoo.com\",\n emailAddressType: \"\",\n },\n ],\n phoneNumbers: [\n {\n phoneNumber: \"1-809-839-8041\",\n phoneType: \"\",\n },\n ],\n addresses: [\n {\n street1: \"5th Avenue\",\n street2: \"Street 2\",\n city: \"Anytown\",\n state: \"CA\",\n postalCode: \"10001\",\n country: \"USA\",\n addressType: \"PERSONAL\",\n ownerType: \"\",\n },\n ],\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createCrmTask + label: createCrmContact source: |- - import panora_sdk from panora_sdk import Panora s = Panora( @@ -4236,33 +2474,52 @@ paths: ) - res = s.crm.tasks.create(x_connection_token="", unified_crm_task_input={ - "subject": "Answer customers", - "content": "Prepare email campaign", - "status": panora_sdk.UnifiedCrmTaskInputStatus.PENDING, - "due_date": "2024-10-01T12:00:00Z", - "finished_date": "2024-10-01T12:00:00Z", + res = s.crm.contacts.create(x_connection_token="", unified_crm_contact_input={ + "first_name": "John", + "last_name": "Doe", + "email_addresses": [ + { + "email_address": "Jena.Nienow28@yahoo.com", + "email_address_type": "", + }, + ], + "phone_numbers": [ + { + "phone_number": "", + "phone_type": "", + }, + ], + "addresses": [ + { + "street_1": "5th Avenue", + "street_2": "Street 2", + "city": "Anytown", + "state": "CA", + "postal_code": "10001", + "country": "USA", + "address_type": "PERSONAL", + "owner_type": "", + }, + ], "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "deal_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": { "fav_dish": "broccoli", "fav_color": "red", }, - }) + }, remote_data=False) if res is not None: # handle response pass - lang: go - label: createCrmTask + label: createCrmContact source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -4270,39 +2527,56 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedCrmTaskInput := components.UnifiedCrmTaskInput{ - Subject: gosdk.String("Answer customers"), - Content: gosdk.String("Prepare email campaign"), - Status: components.UnifiedCrmTaskInputStatusPending.ToPointer(), - DueDate: gosdk.String("2024-10-01T12:00:00Z"), - FinishedDate: gosdk.String("2024-10-01T12:00:00Z"), + ctx := context.Background() + res, err := s.Crm.Contacts.Create(ctx, "", components.UnifiedCrmContactInput{ + FirstName: gosdk.String("John"), + LastName: gosdk.String("Doe"), + EmailAddresses: []components.Email{ + components.Email{ + EmailAddress: gosdk.String("Jena.Nienow28@yahoo.com"), + EmailAddressType: gosdk.String(""), + }, + }, + PhoneNumbers: []components.Phone{ + components.Phone{ + PhoneNumber: gosdk.String("1-809-839-8041"), + PhoneType: gosdk.String(""), + }, + }, + Addresses: []components.Address{ + components.Address{ + Street1: gosdk.String("5th Avenue"), + Street2: gosdk.String("Street 2"), + City: gosdk.String("Anytown"), + State: gosdk.String("CA"), + PostalCode: gosdk.String("10001"), + Country: gosdk.String("USA"), + AddressType: gosdk.String("PERSONAL"), + OwnerType: gosdk.String(""), + }, + }, UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - CompanyID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - DealID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), FieldMappings: map[string]any{ "fav_dish": "broccoli", "fav_color": "red", }, - } - ctx := context.Background() - res, err := s.Crm.Tasks.Create(ctx, xConnectionToken, unifiedCrmTaskInput, nil) + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedCrmTaskOutput != nil { + if res.UnifiedCrmContactOutput != nil { // handle response } } - lang: ruby - label: createCrmTask - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_tasks.create(x_connection_token=\"\", unified_crm_task_input=::OpenApiSDK::Shared::UnifiedCrmTaskInput.new(\n subject: \"Answer customers\",\n content: \"Prepare email campaign\",\n status: ::OpenApiSDK::Shared::UnifiedCrmTaskInputStatus::PENDING,\n due_date: \"2024-10-01T12:00:00Z\",\n finished_date: \"2024-10-01T12:00:00Z\",\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n company_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n deal_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"online\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_crm_task_output.nil?\n # handle response\nend" - /crm/tasks/{id}: + label: createCrmContact + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_contacts.create(x_connection_token=\"\", unified_crm_contact_input=::OpenApiSDK::Shared::UnifiedCrmContactInput.new(\n first_name: \"John\",\n last_name: \"Doe\",\n email_addresses: [\n ::OpenApiSDK::Shared::Email.new(\n email_address: \"Jena.Nienow28@yahoo.com\",\n email_address_type: \"\",\n ),\n ],\n phone_numbers: [\n ::OpenApiSDK::Shared::Phone.new(\n phone_number: \"1-809-839-8041\",\n phone_type: \"\",\n ),\n ],\n addresses: [\n ::OpenApiSDK::Shared::Address.new(\n street_1: \"5th Avenue\",\n street_2: \"Street 2\",\n city: \"Anytown\",\n state: \"CA\",\n postal_code: \"10001\",\n country: \"USA\",\n address_type: \"PERSONAL\",\n owner_type: \"\",\n ),\n ],\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_crm_contact_output.nil?\n # handle response\nend" + /crm/contacts/{id}: get: - operationId: retrieveCrmTask - summary: Retrieve Tasks - description: Retrieve Tasks from any connected Crm software + operationId: retrieveCrmContact + summary: Retrieve Contacts + description: Retrieve Contacts from any connected CRM parameters: - name: x-connection-token required: true @@ -4313,14 +2587,14 @@ paths: - name: id required: true in: path - description: id of the task you want to retrieve. + description: id of the `contact` you want to retrive. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query - description: Set to true to include data from the original Crm software. + description: Set to true to include data from the original CRM software. example: false schema: type: boolean @@ -4330,33 +2604,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmTaskOutput' - tags: *ref_12 - x-speakeasy-group: crm.tasks + $ref: '#/components/schemas/UnifiedCrmContactOutput' + tags: *ref_8 + x-speakeasy-group: crm.contacts x-codeSamples: - lang: typescript - label: retrieveCrmTask - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.tasks.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveCrmContact + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.contacts.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveCrmTask + label: retrieveCrmContact source: |- from panora_sdk import Panora @@ -4365,13 +2621,13 @@ paths: ) - res = s.crm.tasks.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.crm.contacts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveCrmTask + label: retrieveCrmContact source: |- package main @@ -4385,27 +2641,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Crm.Tasks.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Crm.Contacts.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedCrmTaskOutput != nil { + if res.UnifiedCrmContactOutput != nil { // handle response } } - lang: ruby - label: retrieveCrmTask - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_tasks.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_task_output.nil?\n # handle response\nend" - /crm/users: + label: retrieveCrmContact + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_contacts.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_contact_output.nil?\n # handle response\nend" + /crm/deals: get: - operationId: listCrmUsers - summary: List Users + operationId: listCrmDeals + summary: List Deals parameters: - name: x-connection-token required: true @@ -4447,10 +2699,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedCrmUserOutput' - tags: &ref_13 - - crm/users - x-speakeasy-group: crm.users + $ref: '#/components/schemas/UnifiedCrmDealOutput' + tags: &ref_9 + - crm/deals + x-speakeasy-group: crm.deals x-speakeasy-pagination: type: cursor inputs: @@ -4461,30 +2713,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listCrmUsers - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.users.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listCrmDeals + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.deals.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listCrmUsers + label: listCrmDeals source: |- from panora_sdk import Panora @@ -4493,7 +2725,7 @@ paths: ) - res = s.crm.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.crm.deals.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -4503,16 +2735,15 @@ paths: if res is None: break - lang: go - label: listCrmUsers - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Crm.Users.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listCrmDeals + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Crm.Deals.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listCrmUsers - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_users.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /crm/users/{id}: - get: - operationId: retrieveCrmUser - summary: Retrieve Users - description: Retrieve Users from any connected Crm software + label: listCrmDeals + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_deals.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createCrmDeal + summary: Create Deals + description: Create Deals in any supported Crm software parameters: - name: x-connection-token required: true @@ -4520,53 +2751,33 @@ paths: description: The connection token schema: type: string - - name: id - required: true - in: path - example: b008e199-eda9-4629-bd41-a01b6195864a - description: id of the user you want to retrieve. - schema: - type: string - name: remote_data required: false in: query - example: true description: Set to true to include data from the original Crm software. schema: type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedCrmDealInput' responses: - '200': + '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedCrmUserOutput' - tags: *ref_13 - x-speakeasy-group: crm.users + $ref: '#/components/schemas/UnifiedCrmDealOutput' + tags: *ref_9 + x-speakeasy-group: crm.deals x-codeSamples: - lang: typescript - label: retrieveCrmUser - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.crm.users.retrieve({ - xConnectionToken: "", - id: "b008e199-eda9-4629-bd41-a01b6195864a", - remoteData: true, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createCrmDeal + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.deals.create({\n xConnectionToken: \"\",\n unifiedCrmDealInput: {\n name: \"Huge Contract with Acme\",\n description: \"Contract with Sales Operations Team\",\n amount: 1000,\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n stageId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n companyId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveCrmUser + label: createCrmDeal source: |- from panora_sdk import Panora @@ -4575,155 +2786,67 @@ paths: ) - res = s.crm.users.retrieve(x_connection_token="", id="b008e199-eda9-4629-bd41-a01b6195864a", remote_data=True) + res = s.crm.deals.create(x_connection_token="", unified_crm_deal_input={ + "name": "Huge Contract with Acme", + "description": "Contract with Sales Operations Team", + "amount": 1000, + "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "stage_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "field_mappings": { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }) if res is not None: # handle response pass - lang: go - label: retrieveCrmUser + label: createCrmDeal source: |- package main import( gosdk "github.com/panoratech/go-sdk" "context" + "github.com/panoratech/go-sdk/models/components" "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - var id string = "b008e199-eda9-4629-bd41-a01b6195864a" - - var remoteData *bool = gosdk.Bool(true) - ctx := context.Background() - res, err := s.Crm.Users.Retrieve(ctx, xConnectionToken, id, remoteData) - if err != nil { - log.Fatal(err) - } - if res.UnifiedCrmUserOutput != nil { - // handle response - } - } - - lang: ruby - label: retrieveCrmUser - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_users.retrieve(x_connection_token=\"\", id=\"b008e199-eda9-4629-bd41-a01b6195864a\", remote_data=true)\n\nif ! res.unified_crm_user_output.nil?\n # handle response\nend" - /ticketing/collections: - get: - operationId: listTicketingCollections - summary: List Collections - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: true - description: Set to true to include data from the original software. - schema: - type: boolean - - name: limit - required: false - in: query - example: 10 - description: Set to get the number of records. - schema: - default: 50 - type: number - - name: cursor - required: false - in: query - example: 1b8b05bb-5273-4012-b520-8657b0b90874 - description: Set to get the number of records after this cursor. - schema: - type: string - responses: - '200': - description: '' - content: - application/json: - schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: >- - #/components/schemas/UnifiedTicketingCollectionOutput - tags: &ref_14 - - ticketing/collections - x-speakeasy-group: ticketing.collections - x-speakeasy-pagination: - type: cursor - inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor - x-codeSamples: - - lang: typescript - label: listTicketingCollections - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.collections.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); - - lang: python - label: listTicketingCollections - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.ticketing.collections.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + ) - if res is not None: - while True: - # handle items + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) - res = res.Next() - if res is None: - break - - lang: go - label: listTicketingCollections - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ticketing.Collections.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + ctx := context.Background() + res, err := s.Crm.Deals.Create(ctx, "", components.UnifiedCrmDealInput{ + Name: gosdk.String("Huge Contract with Acme"), + Description: gosdk.String("Contract with Sales Operations Team"), + Amount: gosdk.Float64(1000), + UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + StageID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + CompanyID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + FieldMappings: map[string]any{ + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, nil) + if err != nil { + log.Fatal(err) + } + if res.UnifiedCrmDealOutput != nil { + // handle response + } + } - lang: ruby - label: listTicketingCollections - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_collections.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ticketing/collections/{id}: + label: createCrmDeal + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_deals.create(x_connection_token=\"\", unified_crm_deal_input=::OpenApiSDK::Shared::UnifiedCrmDealInput.new(\n name: \"Huge Contract with Acme\",\n description: \"Contract with Sales Operations Team\",\n amount: 1000.0,\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n stage_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n company_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_crm_deal_output.nil?\n # handle response\nend" + /crm/deals/{id}: get: - operationId: retrieveCollection - summary: Retrieve Collections - description: Retrieve Collections from any connected Ticketing software + operationId: retrieveCrmDeal + summary: Retrieve Deals + description: Retrieve Deals from any connected Crm software parameters: - name: x-connection-token required: true @@ -4734,14 +2857,14 @@ paths: - name: id required: true in: path - description: id of the collection you want to retrieve. + description: id of the deal you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query - description: Set to true to include data from the original Ticketing software. + description: Set to true to include data from the original Crm software. example: false schema: type: boolean @@ -4751,33 +2874,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedTicketingCollectionOutput' - tags: *ref_14 - x-speakeasy-group: ticketing.collections + $ref: '#/components/schemas/UnifiedCrmDealOutput' + tags: *ref_9 + x-speakeasy-group: crm.deals x-codeSamples: - lang: typescript - label: retrieveCollection - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.collections.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveCrmDeal + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.deals.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveCollection + label: retrieveCrmDeal source: |- from panora_sdk import Panora @@ -4786,13 +2891,13 @@ paths: ) - res = s.ticketing.collections.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.crm.deals.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveCollection + label: retrieveCrmDeal source: |- package main @@ -4806,27 +2911,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ticketing.Collections.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Crm.Deals.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedTicketingCollectionOutput != nil { + if res.UnifiedCrmDealOutput != nil { // handle response } } - lang: ruby - label: retrieveCollection - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_collections.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ticketing_collection_output.nil?\n # handle response\nend" - /ticketing/comments: + label: retrieveCrmDeal + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_deals.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_deal_output.nil?\n # handle response\nend" + /crm/engagements: get: - operationId: listTicketingComments - summary: List Comments + operationId: listCrmEngagements + summary: List Engagements parameters: - name: x-connection-token required: true @@ -4868,10 +2969,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedTicketingCommentOutput' - tags: &ref_15 - - ticketing/comments - x-speakeasy-group: ticketing.comments + $ref: '#/components/schemas/UnifiedCrmEngagementOutput' + tags: &ref_10 + - crm/engagements + x-speakeasy-group: crm.engagements x-speakeasy-pagination: type: cursor inputs: @@ -4882,30 +2983,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listTicketingComments - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.comments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listCrmEngagements + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.engagements.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listTicketingComments + label: listCrmEngagements source: |- from panora_sdk import Panora @@ -4914,7 +2995,7 @@ paths: ) - res = s.ticketing.comments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.crm.engagements.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -4924,15 +3005,15 @@ paths: if res is None: break - lang: go - label: listTicketingComments - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ticketing.Comments.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listCrmEngagements + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Crm.Engagements.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listTicketingComments - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_comments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listCrmEngagements + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_engagements.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createTicketingComment - summary: Create Comments - description: Create Comments in any supported Ticketing software + operationId: createCrmEngagement + summary: Create Engagements + description: Create Engagements in any supported Crm software parameters: - name: x-connection-token required: true @@ -4943,7 +3024,8 @@ paths: - name: remote_data required: false in: query - description: Set to true to include data from the original Ticketing software. + description: Set to true to include data from the original Crm software. + example: false schema: type: boolean requestBody: @@ -4951,53 +3033,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedTicketingCommentInput' + $ref: '#/components/schemas/UnifiedCrmEngagementInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedTicketingCommentOutput' - tags: *ref_15 - x-speakeasy-group: ticketing.comments + $ref: '#/components/schemas/UnifiedCrmEngagementOutput' + tags: *ref_10 + x-speakeasy-group: crm.engagements x-codeSamples: - lang: typescript - 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.comments.create({ - 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", - ], - }, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createCrmEngagement + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.engagements.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedCrmEngagementInput: {\n content: \"Meeting call with CTO\",\n direction: \"INBOUND\",\n subject: \"Technical features planning\",\n startAt: new Date(\"2024-10-01T12:00:00Z\"),\n endTime: new Date(\"2024-10-01T22:00:00Z\"),\n type: \"MEETING\",\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n companyId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contacts: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createTicketingComment + label: createCrmEngagement source: |- - import panora_sdk + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -5005,31 +3058,37 @@ paths: ) - res = s.ticketing.comments.create(x_connection_token="", unified_ticketing_comment_input={ - "body": "Assigned to Eric !", - "html_body": "

Assigned to Eric !

", - "is_private": False, - "creator_type": panora_sdk.UnifiedTicketingCommentInputCreatorType.USER, - "ticket_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + res = s.crm.engagements.create(x_connection_token="", unified_crm_engagement_input={ + "content": "Meeting call with CTO", + "direction": "INBOUND", + "subject": "Technical features planning", + "start_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "end_time": dateutil.parser.isoparse("2024-10-01T22:00:00Z"), + "type": "MEETING", "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "attachments": [ + "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "contacts": [ "801f9ede-c698-4e66-a7fc-48d19eebaa4f", ], - }) + "field_mappings": { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, remote_data=False) if res is not None: # handle response pass - lang: go - label: createTicketingComment + label: createCrmEngagement source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -5037,39 +3096,40 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedTicketingCommentInput := components.UnifiedTicketingCommentInput{ - Body: gosdk.String("Assigned to Eric !"), - HTMLBody: gosdk.String("

Assigned to Eric !

"), - IsPrivate: gosdk.Bool(false), - CreatorType: components.UnifiedTicketingCommentInputCreatorTypeUser.ToPointer(), - TicketID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - ContactID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + ctx := context.Background() + res, err := s.Crm.Engagements.Create(ctx, "", components.UnifiedCrmEngagementInput{ + Content: gosdk.String("Meeting call with CTO"), + Direction: gosdk.String("INBOUND"), + Subject: gosdk.String("Technical features planning"), + StartAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + EndTime: types.MustNewTimeFromString("2024-10-01T22:00:00Z"), + Type: gosdk.String("MEETING"), UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - Attachments: []components.UnifiedTicketingCommentInputAttachments{ - components.CreateUnifiedTicketingCommentInputAttachmentsStr( + CompanyID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Contacts: []string{ "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ), }, - } - ctx := context.Background() - res, err := s.Ticketing.Comments.Create(ctx, xConnectionToken, unifiedTicketingCommentInput, nil) + FieldMappings: map[string]any{ + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedTicketingCommentOutput != nil { + if res.UnifiedCrmEngagementOutput != nil { // handle response } } - lang: ruby - label: createTicketingComment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_comments.create(x_connection_token=\"\", unified_ticketing_comment_input=::OpenApiSDK::Shared::UnifiedTicketingCommentInput.new(\n body: \"Assigned to Eric !\",\n html_body: \"

Assigned to Eric !

\",\n is_private: false,\n creator_type: ::OpenApiSDK::Shared::UnifiedTicketingCommentInputCreatorType::USER,\n ticket_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contact_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n attachments: [\n \"\",\n ],\n ), remote_data=false)\n\nif ! res.unified_ticketing_comment_output.nil?\n # handle response\nend" - /ticketing/comments/{id}: + label: createCrmEngagement + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_engagements.create(x_connection_token=\"\", unified_crm_engagement_input=::OpenApiSDK::Shared::UnifiedCrmEngagementInput.new(\n content: \"Meeting call with CTO\",\n direction: \"INBOUND\",\n subject: \"Technical features planning\",\n start_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n end_time: DateTime.iso8601('2024-10-01T22:00:00Z'),\n type: \"MEETING\",\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n company_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contacts: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_crm_engagement_output.nil?\n # handle response\nend" + /crm/engagements/{id}: get: - operationId: retrieveTicketingComment - summary: Retrieve Comment - description: Retrieve a Comment from any connected Ticketing software + operationId: retrieveCrmEngagement + summary: Retrieve Engagements + description: Retrieve Engagements from any connected Crm software parameters: - name: x-connection-token required: true @@ -5080,13 +3140,15 @@ paths: - name: id required: true in: path - description: id of the `comment` you want to retrive. + description: id of the engagement you want to retrieve. + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query - description: Set to true to include data from the original Ticketing software. + description: Set to true to include data from the original Crm software. + example: false schema: type: boolean responses: @@ -5095,38 +3157,15 @@ paths: content: application/json: schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: '#/components/schemas/UnifiedTicketingCommentOutput' - tags: *ref_15 - x-speakeasy-group: ticketing.comments + $ref: '#/components/schemas/UnifiedCrmEngagementOutput' + tags: *ref_10 + x-speakeasy-group: crm.engagements x-codeSamples: - lang: typescript - label: retrieveTicketingComment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.comments.retrieve({ - xConnectionToken: "", - id: "", - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveCrmEngagement + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.engagements.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveTicketingComment + label: retrieveCrmEngagement source: |- from panora_sdk import Panora @@ -5135,13 +3174,13 @@ paths: ) - res = s.ticketing.comments.retrieve(x_connection_token="", id="") + res = s.crm.engagements.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveTicketingComment + label: retrieveCrmEngagement source: |- package main @@ -5155,25 +3194,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "" ctx := context.Background() - res, err := s.Ticketing.Comments.Retrieve(ctx, xConnectionToken, id, nil) + res, err := s.Crm.Engagements.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.Object != nil { + if res.UnifiedCrmEngagementOutput != nil { // handle response } } - lang: ruby - label: retrieveTicketingComment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_comments.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.object.nil?\n # handle response\nend" - /ticketing/tags: + label: retrieveCrmEngagement + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_engagements.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_engagement_output.nil?\n # handle response\nend" + /crm/notes: get: - operationId: listTicketingTags - summary: List Tags + operationId: listCrmNote + summary: List Notes parameters: - name: x-connection-token required: true @@ -5215,10 +3252,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedTicketingTagOutput' - tags: &ref_16 - - ticketing/tags - x-speakeasy-group: ticketing.tags + $ref: '#/components/schemas/UnifiedCrmNoteOutput' + tags: &ref_11 + - crm/notes + x-speakeasy-group: crm.notes x-speakeasy-pagination: type: cursor inputs: @@ -5229,30 +3266,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listTicketingTags - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.tags.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listCrmNote + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.notes.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listTicketingTags + label: listCrmNote source: |- from panora_sdk import Panora @@ -5261,7 +3278,7 @@ paths: ) - res = s.ticketing.tags.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.crm.notes.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -5271,16 +3288,117 @@ paths: if res is None: break - lang: go - label: listTicketingTags - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ticketing.Tags.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listCrmNote + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Crm.Notes.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listTicketingTags - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_tags.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ticketing/tags/{id}: + label: listCrmNote + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_notes.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createCrmNote + summary: Create Notes + description: Create Notes in any supported Crm software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original Crm software. + example: false + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedCrmNoteInput' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedCrmNoteOutput' + tags: *ref_11 + x-speakeasy-group: crm.notes + x-codeSamples: + - lang: typescript + label: createCrmNote + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.notes.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedCrmNoteInput: {\n content: \"My notes taken during the meeting\",\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n companyId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n dealId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createCrmNote + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.crm.notes.create(x_connection_token="", unified_crm_note_input={ + "content": "My notes taken during the meeting", + "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "deal_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "field_mappings": { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, remote_data=False) + + if res is not None: + # handle response + pass + - lang: go + label: createCrmNote + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Crm.Notes.Create(ctx, "", components.UnifiedCrmNoteInput{ + Content: gosdk.String("My notes taken during the meeting"), + UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + CompanyID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + ContactID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + DealID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + FieldMappings: map[string]any{ + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedCrmNoteOutput != nil { + // handle response + } + } + - lang: ruby + label: createCrmNote + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_notes.create(x_connection_token=\"\", unified_crm_note_input=::OpenApiSDK::Shared::UnifiedCrmNoteInput.new(\n content: \"My notes taken during the meeting\",\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n company_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contact_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n deal_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_crm_note_output.nil?\n # handle response\nend" + /crm/notes/{id}: get: - operationId: retrieveTicketingTag - summary: Retrieve Tag - description: Retrieve a Tag from any connected Ticketing software + operationId: retrieveCrmNote + summary: Retrieve Notes + description: Retrieve Notes from any connected Crm software parameters: - name: x-connection-token required: true @@ -5291,14 +3409,14 @@ paths: - name: id required: true in: path - description: id of the tag you want to retrieve. + description: id of the note you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query - description: Set to true to include data from the original Ticketing software. + description: Set to true to include data from the original Crm software. example: false schema: type: boolean @@ -5308,33 +3426,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedTicketingTagOutput' - tags: *ref_16 - x-speakeasy-group: ticketing.tags + $ref: '#/components/schemas/UnifiedCrmNoteOutput' + tags: *ref_11 + x-speakeasy-group: crm.notes x-codeSamples: - lang: typescript - label: retrieveTicketingTag - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.tags.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveCrmNote + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.notes.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveTicketingTag + label: retrieveCrmNote source: |- from panora_sdk import Panora @@ -5343,13 +3443,13 @@ paths: ) - res = s.ticketing.tags.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.crm.notes.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveTicketingTag + label: retrieveCrmNote source: |- package main @@ -5363,27 +3463,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ticketing.Tags.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Crm.Notes.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedTicketingTagOutput != nil { + if res.UnifiedCrmNoteOutput != nil { // handle response } } - lang: ruby - label: retrieveTicketingTag - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_tags.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ticketing_tag_output.nil?\n # handle response\nend" - /ticketing/teams: + label: retrieveCrmNote + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_notes.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_note_output.nil?\n # handle response\nend" + /crm/stages: get: - operationId: listTicketingTeams - summary: List Teams + operationId: listCrmStages + summary: List Stages parameters: - name: x-connection-token required: true @@ -5425,10 +3521,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedTicketingTeamOutput' - tags: &ref_17 - - ticketing/teams - x-speakeasy-group: ticketing.teams + $ref: '#/components/schemas/UnifiedCrmStageOutput' + tags: &ref_12 + - crm/stages + x-speakeasy-group: crm.stages x-speakeasy-pagination: type: cursor inputs: @@ -5439,30 +3535,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listTicketingTeams - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.teams.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listCrmStages + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.stages.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listTicketingTeams + label: listCrmStages source: |- from panora_sdk import Panora @@ -5471,7 +3547,7 @@ paths: ) - res = s.ticketing.teams.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.crm.stages.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -5481,16 +3557,16 @@ paths: if res is None: break - lang: go - label: listTicketingTeams - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ticketing.Teams.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listCrmStages + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Crm.Stages.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listTicketingTeams - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_teams.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ticketing/teams/{id}: + label: listCrmStages + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_stages.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /crm/stages/{id}: get: - operationId: retrieveTicketingTeam - summary: Retrieve Teams - description: Retrieve Teams from any connected Ticketing software + operationId: retrieveCrmStage + summary: Retrieve Stages + description: Retrieve Stages from any connected Crm software parameters: - name: x-connection-token required: true @@ -5501,14 +3577,14 @@ paths: - name: id required: true in: path - description: id of the team you want to retrieve. + description: id of the stage you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query - description: Set to true to include data from the original Ticketing software. + description: Set to true to include data from the original Crm software. example: false schema: type: boolean @@ -5518,33 +3594,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedTicketingTeamOutput' - tags: *ref_17 - x-speakeasy-group: ticketing.teams + $ref: '#/components/schemas/UnifiedCrmStageOutput' + tags: *ref_12 + x-speakeasy-group: crm.stages x-codeSamples: - lang: typescript - label: retrieveTicketingTeam - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.teams.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveCrmStage + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.stages.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveTicketingTeam + label: retrieveCrmStage source: |- from panora_sdk import Panora @@ -5553,13 +3611,13 @@ paths: ) - res = s.ticketing.teams.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.crm.stages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveTicketingTeam + label: retrieveCrmStage source: |- package main @@ -5573,67 +3631,82 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ticketing.Teams.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Crm.Stages.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedTicketingTeamOutput != nil { + if res.UnifiedCrmStageOutput != nil { // handle response } } - lang: ruby - label: retrieveTicketingTeam - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_teams.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ticketing_team_output.nil?\n # handle response\nend" - /linked_users: - post: - operationId: createLinkedUser - summary: Create Linked Users - parameters: [] - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CreateLinkedUserDto' + label: retrieveCrmStage + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_stages.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_stage_output.nil?\n # handle response\nend" + /crm/tasks: + get: + operationId: listCrmTask + summary: List Tasks + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: true + description: Set to true to include data from the original software. + schema: + type: boolean + - name: limit + required: false + in: query + example: 10 + description: Set to get the number of records. + schema: + default: 50 + type: number + - name: cursor + required: false + in: query + example: 1b8b05bb-5273-4012-b520-8657b0b90874 + description: Set to get the number of records after this cursor. + schema: + type: string responses: - '201': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/LinkedUserResponse' - tags: &ref_18 - - linkedUsers - x-speakeasy-group: linkedUsers + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: '#/components/schemas/UnifiedCrmTaskOutput' + tags: &ref_13 + - crm/tasks + x-speakeasy-group: crm.tasks + x-speakeasy-pagination: + type: cursor + inputs: + - name: cursor + in: parameters + type: cursor + outputs: + nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: createLinkedUser - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.linkedUsers.create({ - linkedUserOriginId: "id_1", - alias: "acme", - }); - - // Handle the result - console.log(result) - } - - run(); + label: listCrmTask + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.tasks.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: createLinkedUser + label: listCrmTask source: |- from panora_sdk import Panora @@ -5642,81 +3715,59 @@ paths: ) - res = s.linked_users.create(request={ - "linked_user_origin_id": "id_1", - "alias": "acme", - }) + res = s.crm.tasks.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - lang: go - label: createLinkedUser - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "context" - "log" - ) + while True: + # handle items - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - request := components.CreateLinkedUserDto{ - LinkedUserOriginID: "id_1", - Alias: gosdk.String("acme"), - } - ctx := context.Background() - res, err := s.LinkedUsers.Create(ctx, request) - if err != nil { - log.Fatal(err) - } - if res.LinkedUserResponse != nil { - // handle response - } - } + res = res.Next() + if res is None: + break + - lang: go + label: listCrmTask + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Crm.Tasks.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: createLinkedUser - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::CreateLinkedUserDto.new(\n linked_user_origin_id: \"id_1\",\n alias_: \"acme\",\n)\n \nres = s.linked_users.create(req)\n\nif ! res.linked_user_response.nil?\n # handle response\nend" - get: - operationId: listLinkedUsers - summary: List Linked Users - parameters: [] + label: listCrmTask + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_tasks.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createCrmTask + summary: Create Tasks + description: Create Tasks in any supported Crm software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original Crm software. + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedCrmTaskInput' responses: - '200': + '201': description: '' content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/LinkedUserResponse' - tags: *ref_18 - x-speakeasy-group: linkedUsers + $ref: '#/components/schemas/UnifiedCrmTaskOutput' + tags: *ref_13 + x-speakeasy-group: crm.tasks x-codeSamples: - lang: typescript - label: listLinkedUsers - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.linkedUsers.list(); - - // Handle the result - console.log(result) - } - - run(); + label: createCrmTask + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.tasks.create({\n xConnectionToken: \"\",\n unifiedCrmTaskInput: {\n subject: \"Answer customers\",\n content: \"Prepare email campaign\",\n status: \"PENDING\",\n dueDate: \"2024-10-01T12:00:00Z\",\n finishedDate: \"2024-10-01T12:00:00Z\",\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n companyId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n dealId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: listLinkedUsers + label: createCrmTask source: |- from panora_sdk import Panora @@ -5725,19 +3776,33 @@ paths: ) - res = s.linked_users.list() + res = s.crm.tasks.create(x_connection_token="", unified_crm_task_input={ + "subject": "Answer customers", + "content": "Prepare email campaign", + "status": "PENDING", + "due_date": "2024-10-01T12:00:00Z", + "finished_date": "2024-10-01T12:00:00Z", + "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "deal_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "field_mappings": { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }) if res is not None: # handle response pass - lang: go - label: listLinkedUsers + label: createCrmTask source: |- package main import( gosdk "github.com/panoratech/go-sdk" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -5747,64 +3812,71 @@ paths: ) ctx := context.Background() - res, err := s.LinkedUsers.List(ctx) + res, err := s.Crm.Tasks.Create(ctx, "", components.UnifiedCrmTaskInput{ + Subject: gosdk.String("Answer customers"), + Content: gosdk.String("Prepare email campaign"), + Status: gosdk.String("PENDING"), + DueDate: gosdk.String("2024-10-01T12:00:00Z"), + FinishedDate: gosdk.String("2024-10-01T12:00:00Z"), + UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + CompanyID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + DealID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + FieldMappings: map[string]any{ + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, nil) if err != nil { log.Fatal(err) } - if res.LinkedUserResponses != nil { + if res.UnifiedCrmTaskOutput != nil { // handle response } } - lang: ruby - label: listLinkedUsers - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.linked_users.list()\n\nif ! res.linked_user_responses.nil?\n # handle response\nend" - /linked_users/batch: - post: - operationId: importBatch - summary: Add Batch Linked Users - parameters: [] - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CreateBatchLinkedUserDto' + label: createCrmTask + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_tasks.create(x_connection_token=\"\", unified_crm_task_input=::OpenApiSDK::Shared::UnifiedCrmTaskInput.new(\n subject: \"Answer customers\",\n content: \"Prepare email campaign\",\n status: \"PENDING\",\n due_date: \"2024-10-01T12:00:00Z\",\n finished_date: \"2024-10-01T12:00:00Z\",\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n company_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n deal_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_crm_task_output.nil?\n # handle response\nend" + /crm/tasks/{id}: + get: + operationId: retrieveCrmTask + summary: Retrieve Tasks + description: Retrieve Tasks from any connected Crm software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: id + required: true + in: path + description: id of the task you want to retrieve. + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original Crm software. + example: false + schema: + type: boolean responses: - '201': + '200': description: '' content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/LinkedUserResponse' - tags: *ref_18 - x-speakeasy-group: linkedUsers + $ref: '#/components/schemas/UnifiedCrmTaskOutput' + tags: *ref_13 + x-speakeasy-group: crm.tasks x-codeSamples: - lang: typescript - label: importBatch - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.linkedUsers.importBatch({ - linkedUserOriginIds: [ - "id_1", - ], - alias: "acme", - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveCrmTask + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.tasks.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: importBatch + label: retrieveCrmTask source: |- from panora_sdk import Panora @@ -5813,24 +3885,18 @@ paths: ) - res = s.linked_users.import_batch(request={ - "linked_user_origin_ids": [ - "id_1", - ], - "alias": "acme", - }) + res = s.crm.tasks.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: importBatch + label: retrieveCrmTask source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" "log" ) @@ -5839,33 +3905,50 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - request := components.CreateBatchLinkedUserDto{ - LinkedUserOriginIds: []string{ - "id_1", - }, - Alias: gosdk.String("acme"), - } + ctx := context.Background() - res, err := s.LinkedUsers.ImportBatch(ctx, request) + res, err := s.Crm.Tasks.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.LinkedUserResponses != nil { + if res.UnifiedCrmTaskOutput != nil { // handle response } } - lang: ruby - label: importBatch - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::CreateBatchLinkedUserDto.new(\n linked_user_origin_ids: [\n \"\",\n ],\n alias_: \"acme\",\n)\n \nres = s.linked_users.import_batch(req)\n\nif ! res.linked_user_responses.nil?\n # handle response\nend" - /linked_users/{id}: + label: retrieveCrmTask + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_tasks.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_crm_task_output.nil?\n # handle response\nend" + /crm/users: get: - operationId: retrieveLinkedUser - summary: Retrieve Linked Users + operationId: listCrmUsers + summary: List Users parameters: - - name: id + - name: x-connection-token required: true - in: path - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: true + description: Set to true to include data from the original software. + schema: + type: boolean + - name: limit + required: false + in: query + example: 10 + description: Set to get the number of records. + schema: + default: 50 + type: number + - name: cursor + required: false + in: query + example: 1b8b05bb-5273-4012-b520-8657b0b90874 + description: Set to get the number of records after this cursor. schema: type: string responses: @@ -5874,31 +3957,94 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LinkedUserResponse' - tags: *ref_18 - x-speakeasy-group: linkedUsers + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: '#/components/schemas/UnifiedCrmUserOutput' + tags: &ref_14 + - crm/users + x-speakeasy-group: crm.users + x-speakeasy-pagination: + type: cursor + inputs: + - name: cursor + in: parameters + type: cursor + outputs: + nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: retrieveLinkedUser + label: listCrmUsers + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.users.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + - lang: python + label: listCrmUsers source: |- - import { Panora } from "@panora/sdk"; + from panora_sdk import Panora - const panora = new Panora({ - apiKey: "", - }); + s = Panora( + api_key="", + ) - async function run() { - const result = await panora.linkedUsers.retrieve({ - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - }); - // Handle the result - console.log(result) - } + res = s.crm.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - run(); + if res is not None: + while True: + # handle items + + res = res.Next() + if res is None: + break + - lang: go + label: listCrmUsers + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Crm.Users.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + - lang: ruby + label: listCrmUsers + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_users.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /crm/users/{id}: + get: + operationId: retrieveCrmUser + summary: Retrieve Users + description: Retrieve Users from any connected Crm software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: id + required: true + in: path + example: b008e199-eda9-4629-bd41-a01b6195864a + description: id of the user you want to retrieve. + schema: + type: string + - name: remote_data + required: false + in: query + example: true + description: Set to true to include data from the original Crm software. + schema: + type: boolean + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedCrmUserOutput' + tags: *ref_14 + x-speakeasy-group: crm.users + x-codeSamples: + - lang: typescript + label: retrieveCrmUser + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.users.retrieve({\n xConnectionToken: \"\",\n id: \"b008e199-eda9-4629-bd41-a01b6195864a\",\n remoteData: true,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveLinkedUser + label: retrieveCrmUser source: |- from panora_sdk import Panora @@ -5907,13 +4053,13 @@ paths: ) - res = s.linked_users.retrieve(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") + res = s.crm.users.retrieve(x_connection_token="", id="b008e199-eda9-4629-bd41-a01b6195864a", remote_data=True) if res is not None: # handle response pass - lang: go - label: retrieveLinkedUser + label: retrieveCrmUser source: |- package main @@ -5927,28 +4073,50 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + ctx := context.Background() - res, err := s.LinkedUsers.Retrieve(ctx, id) + res, err := s.Crm.Users.Retrieve(ctx, "", "b008e199-eda9-4629-bd41-a01b6195864a", gosdk.Bool(true)) if err != nil { log.Fatal(err) } - if res.LinkedUserResponse != nil { + if res.UnifiedCrmUserOutput != nil { // handle response } } - lang: ruby - label: retrieveLinkedUser - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.linked_users.retrieve(id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\")\n\nif ! res.linked_user_response.nil?\n # handle response\nend" - /linked_users/fromRemoteId: + label: retrieveCrmUser + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.crm_users.retrieve(x_connection_token=\"\", id=\"b008e199-eda9-4629-bd41-a01b6195864a\", remote_data=true)\n\nif ! res.unified_crm_user_output.nil?\n # handle response\nend" + /ticketing/collections: get: - operationId: remoteId - summary: Retrieve a Linked User From A Remote Id + operationId: listTicketingCollections + summary: List Collections parameters: - - name: remoteId + - name: x-connection-token required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false in: query - example: id_1 + example: true + description: Set to true to include data from the original software. + schema: + type: boolean + - name: limit + required: false + in: query + example: 10 + description: Set to get the number of records. + schema: + default: 50 + type: number + - name: cursor + required: false + in: query + example: 1b8b05bb-5273-4012-b520-8657b0b90874 + description: Set to get the number of records after this cursor. schema: type: string responses: @@ -5957,31 +4125,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LinkedUserResponse' - tags: *ref_18 - x-speakeasy-group: linkedUsers - x-codeSamples: - - lang: typescript - label: remoteId - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.linkedUsers.remoteId({ - remoteId: "id_1", - }); - - // Handle the result - console.log(result) - } - - run(); + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: >- + #/components/schemas/UnifiedTicketingCollectionOutput + tags: &ref_15 + - ticketing/collections + x-speakeasy-group: ticketing.collections + x-speakeasy-pagination: + type: cursor + inputs: + - name: cursor + in: parameters + type: cursor + outputs: + nextCursor: $.next_cursor + x-codeSamples: + - lang: typescript + label: listTicketingCollections + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.collections.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: remoteId + label: listTicketingCollections source: |- from panora_sdk import Panora @@ -5990,75 +4158,62 @@ paths: ) - res = s.linked_users.remote_id(remote_id="id_1") + res = s.ticketing.collections.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - lang: go - label: remoteId - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "context" - "log" - ) + while True: + # handle items - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var remoteID string = "id_1" - ctx := context.Background() - res, err := s.LinkedUsers.RemoteID(ctx, remoteID) - if err != nil { - log.Fatal(err) - } - if res.LinkedUserResponse != nil { - // handle response - } - } + res = res.Next() + if res is None: + break + - lang: go + label: listTicketingCollections + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ticketing.Collections.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: remoteId - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.linked_users.remote_id(remote_id=\"id_1\")\n\nif ! res.linked_user_response.nil?\n # handle response\nend" - /projects: + label: listTicketingCollections + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_collections.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ticketing/collections/{id}: get: - operationId: getProjects - summary: Retrieve projects - parameters: [] + operationId: retrieveCollection + summary: Retrieve Collections + description: Retrieve Collections from any connected Ticketing software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: id + required: true + in: path + description: id of the collection you want to retrieve. + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original Ticketing software. + example: false + schema: + type: boolean responses: '200': description: '' content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/ProjectResponse' - tags: &ref_19 - - projects + $ref: '#/components/schemas/UnifiedTicketingCollectionOutput' + tags: *ref_15 + x-speakeasy-group: ticketing.collections x-codeSamples: - lang: typescript - label: getProjects - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.projects.getProjects(); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveCollection + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.collections.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: getProjects + label: retrieveCollection source: |- from panora_sdk import Panora @@ -6067,13 +4222,13 @@ paths: ) - res = s.projects.get_projects() + res = s.ticketing.collections.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: getProjects + label: retrieveCollection source: |- package main @@ -6089,59 +4244,80 @@ paths: ) ctx := context.Background() - res, err := s.Projects.GetProjects(ctx) + res, err := s.Ticketing.Collections.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.ProjectResponses != nil { + if res.UnifiedTicketingCollectionOutput != nil { // handle response } } - lang: ruby - label: getProjects - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.projects.get_projects()\n\nif ! res.project_responses.nil?\n # handle response\nend" - post: - operationId: createProject - summary: Create a project - parameters: [] - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CreateProjectDto' + label: retrieveCollection + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_collections.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ticketing_collection_output.nil?\n # handle response\nend" + /ticketing/comments: + get: + operationId: listTicketingComments + summary: List Comments + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: true + description: Set to true to include data from the original software. + schema: + type: boolean + - name: limit + required: false + in: query + example: 10 + description: Set to get the number of records. + schema: + default: 50 + type: number + - name: cursor + required: false + in: query + example: 1b8b05bb-5273-4012-b520-8657b0b90874 + description: Set to get the number of records after this cursor. + schema: + type: string responses: - '201': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/ProjectResponse' - tags: *ref_19 + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: '#/components/schemas/UnifiedTicketingCommentOutput' + tags: &ref_16 + - ticketing/comments + x-speakeasy-group: ticketing.comments + x-speakeasy-pagination: + type: cursor + inputs: + - name: cursor + in: parameters + type: cursor + outputs: + nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: createProject - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.projects.create({ - name: "Project Name", - idOrganization: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - idUser: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - }); - - // Handle the result - console.log(result) - } - - run(); + label: listTicketingComments + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.comments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: createProject + label: listTicketingComments source: |- from panora_sdk import Panora @@ -6150,65 +4326,59 @@ paths: ) - res = s.projects.create(request={ - "name": "Project Name", - "id_organization": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "id_user": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - }) + res = s.ticketing.comments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - lang: go - label: createProject - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "context" - "log" - ) + while True: + # handle items - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - request := components.CreateProjectDto{ - Name: "Project Name", - IDOrganization: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - IDUser: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - } - ctx := context.Background() - res, err := s.Projects.Create(ctx, request) - if err != nil { - log.Fatal(err) - } - if res.ProjectResponse != nil { - // handle response - } - } + res = res.Next() + if res is None: + break + - lang: go + label: listTicketingComments + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ticketing.Comments.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: createProject - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::CreateProjectDto.new(\n name: \"Project Name\",\n id_organization: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n id_user: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n)\n \nres = s.projects.create(req)\n\nif ! res.project_response.nil?\n # handle response\nend" - /field_mappings/values: - get: - operationId: getFieldMappingValues - summary: Retrieve field mappings values - parameters: [] + label: listTicketingComments + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_comments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createTicketingComment + summary: Create Comments + description: Create Comments in any supported Ticketing software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original Ticketing software. + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedTicketingCommentInput' responses: - '200': + '201': description: '' - tags: &ref_20 - - fieldMappings - x-speakeasy-group: fieldMappings + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedTicketingCommentOutput' + tags: *ref_16 + x-speakeasy-group: ticketing.comments x-codeSamples: - lang: typescript - label: getFieldMappingValues - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n await panora.fieldMappings.getFieldMappingValues();\n\n \n}\n\nrun();" + label: createTicketingComment + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.comments.create({\n xConnectionToken: \"\",\n unifiedTicketingCommentInput: {\n body: \"Assigned to Eric !\",\n htmlBody: \"

Assigned to Eric !

\",\n isPrivate: false,\n creatorType: \"USER\",\n ticketId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n attachments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: getFieldMappingValues + label: createTicketingComment source: |- from panora_sdk import Panora @@ -6217,17 +4387,31 @@ paths: ) - s.field_mappings.get_field_mapping_values() + res = s.ticketing.comments.create(x_connection_token="", unified_ticketing_comment_input={ + "body": "Assigned to Eric !", + "html_body": "

Assigned to Eric !

", + "is_private": False, + "creator_type": "USER", + "ticket_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "attachments": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + }) - # Use the SDK ... + if res is not None: + # handle response + pass - lang: go - label: getFieldMappingValues + label: createTicketingComment source: |- package main import( gosdk "github.com/panoratech/go-sdk" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -6237,33 +4421,75 @@ paths: ) ctx := context.Background() - res, err := s.FieldMappings.GetFieldMappingValues(ctx) + res, err := s.Ticketing.Comments.Create(ctx, "", components.UnifiedTicketingCommentInput{ + Body: gosdk.String("Assigned to Eric !"), + HTMLBody: gosdk.String("

Assigned to Eric !

"), + IsPrivate: gosdk.Bool(false), + CreatorType: gosdk.String("USER"), + TicketID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + ContactID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + UserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Attachments: []components.UnifiedTicketingCommentInputAttachments{ + components.CreateUnifiedTicketingCommentInputAttachmentsStr( + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ), + }, + }, nil) if err != nil { log.Fatal(err) } - if res != nil { + if res.UnifiedTicketingCommentOutput != nil { // handle response } } - lang: ruby - label: getFieldMappingValues - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.field_mappings.get_field_mapping_values()\n\nif res.status_code == 200\n # handle response\nend" - /field_mappings/entities: + label: createTicketingComment + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_comments.create(x_connection_token=\"\", unified_ticketing_comment_input=::OpenApiSDK::Shared::UnifiedTicketingCommentInput.new(\n body: \"Assigned to Eric !\",\n html_body: \"

Assigned to Eric !

\",\n is_private: false,\n creator_type: \"USER\",\n ticket_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contact_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n attachments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n), remote_data=false)\n\nif ! res.unified_ticketing_comment_output.nil?\n # handle response\nend" + /ticketing/comments/{id}: get: - operationId: getFieldMappingsEntities - summary: Retrieve field mapping entities - parameters: [] + operationId: retrieveTicketingComment + summary: Retrieve Comment + description: Retrieve a Comment from any connected Ticketing software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: id + required: true + in: path + description: id of the `comment` you want to retrive. + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original Ticketing software. + schema: + type: boolean responses: '200': description: '' - tags: *ref_20 - x-speakeasy-group: fieldMappings + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: '#/components/schemas/UnifiedTicketingCommentOutput' + tags: *ref_16 + x-speakeasy-group: ticketing.comments x-codeSamples: - lang: typescript - label: getFieldMappingsEntities - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n await panora.fieldMappings.getFieldMappingsEntities();\n\n \n}\n\nrun();" + label: retrieveTicketingComment + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.comments.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: getFieldMappingsEntities + label: retrieveTicketingComment source: |- from panora_sdk import Panora @@ -6272,11 +4498,13 @@ paths: ) - s.field_mappings.get_field_mappings_entities() + res = s.ticketing.comments.retrieve(x_connection_token="", id="") - # Use the SDK ... + if res is not None: + # handle response + pass - lang: go - label: getFieldMappingsEntities + label: retrieveTicketingComment source: |- package main @@ -6292,33 +4520,80 @@ paths: ) ctx := context.Background() - res, err := s.FieldMappings.GetFieldMappingsEntities(ctx) + res, err := s.Ticketing.Comments.Retrieve(ctx, "", "", nil) if err != nil { log.Fatal(err) } - if res != nil { + if res.Object != nil { // handle response } } - lang: ruby - label: getFieldMappingsEntities - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.field_mappings.get_field_mappings_entities()\n\nif res.status_code == 200\n # handle response\nend" - /field_mappings/attributes: + label: retrieveTicketingComment + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_comments.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.object.nil?\n # handle response\nend" + /ticketing/tags: get: - operationId: getFieldMappings - summary: Retrieve field mappings - parameters: [] + operationId: listTicketingTags + summary: List Tags + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: true + description: Set to true to include data from the original software. + schema: + type: boolean + - name: limit + required: false + in: query + example: 10 + description: Set to get the number of records. + schema: + default: 50 + type: number + - name: cursor + required: false + in: query + example: 1b8b05bb-5273-4012-b520-8657b0b90874 + description: Set to get the number of records after this cursor. + schema: + type: string responses: '200': description: '' - tags: *ref_20 - x-speakeasy-group: fieldMappings + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: '#/components/schemas/UnifiedTicketingTagOutput' + tags: &ref_17 + - ticketing/tags + x-speakeasy-group: ticketing.tags + x-speakeasy-pagination: + type: cursor + inputs: + - name: cursor + in: parameters + type: cursor + outputs: + nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: getFieldMappings - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n await panora.fieldMappings.getFieldMappings();\n\n \n}\n\nrun();" + label: listTicketingTags + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.tags.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: getFieldMappings + label: listTicketingTags source: |- from panora_sdk import Panora @@ -6327,85 +4602,63 @@ paths: ) - s.field_mappings.get_field_mappings() - - # Use the SDK ... - - lang: go - label: getFieldMappings - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "context" - "log" - ) + res = s.ticketing.tags.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) + if res is not None: + while True: + # handle items - ctx := context.Background() - res, err := s.FieldMappings.GetFieldMappings(ctx) - if err != nil { - log.Fatal(err) - } - if res != nil { - // handle response - } - } + res = res.Next() + if res is None: + break + - lang: go + label: listTicketingTags + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ticketing.Tags.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: getFieldMappings - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.field_mappings.get_field_mappings()\n\nif res.status_code == 200\n # handle response\nend" - /field_mappings/define: - post: - operationId: definitions - summary: Define target Field - parameters: [] - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/DefineTargetFieldDto' + label: listTicketingTags + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_tags.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ticketing/tags/{id}: + get: + operationId: retrieveTicketingTag + summary: Retrieve Tag + description: Retrieve a Tag from any connected Ticketing software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: id + required: true + in: path + description: id of the tag you want to retrieve. + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original Ticketing software. + example: false + schema: + type: boolean responses: - '201': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/CustomFieldResponse' - tags: *ref_20 - x-speakeasy-group: fieldMappings + $ref: '#/components/schemas/UnifiedTicketingTagOutput' + tags: *ref_17 + x-speakeasy-group: ticketing.tags x-codeSamples: - lang: typescript - 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.fieldMappings.definitions({ - objectTypeOwner: ObjectTypeOwner.Company, - name: "fav_dish", - description: "My favorite dish", - dataType: DataType.String, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveTicketingTag + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.tags.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: definitions + label: retrieveTicketingTag source: |- - import panora_sdk from panora_sdk import Panora s = Panora( @@ -6413,24 +4666,18 @@ paths: ) - res = s.field_mappings.definitions(request={ - "object_type_owner": panora_sdk.ObjectTypeOwner.COMPANY, - "name": "fav_dish", - "description": "My favorite dish", - "data_type": panora_sdk.DataType.STRING, - }) + res = s.ticketing.tags.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: definitions + label: retrieveTicketingTag source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" "log" ) @@ -6439,75 +4686,83 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - request := components.DefineTargetFieldDto{ - ObjectTypeOwner: components.ObjectTypeOwnerCompany.ToPointer(), - Name: gosdk.String("fav_dish"), - Description: gosdk.String("My favorite dish"), - DataType: components.DataTypeString.ToPointer(), - } + ctx := context.Background() - res, err := s.FieldMappings.Definitions(ctx, request) + res, err := s.Ticketing.Tags.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.CustomFieldResponse != nil { + if res.UnifiedTicketingTagOutput != nil { // handle response } } - lang: ruby - label: definitions - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::DefineTargetFieldDto.new(\n object_type_owner: ::OpenApiSDK::Shared::ObjectTypeOwner::COMPANY,\n name: \"fav_dish\",\n description: \"My favorite dish\",\n data_type: ::OpenApiSDK::Shared::DataType::STRING,\n)\n \nres = s.field_mappings.definitions(req)\n\nif ! res.custom_field_response.nil?\n # handle response\nend" - /field_mappings: - post: - operationId: defineCustomField - summary: Create Custom Field - parameters: [] - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CustomFieldCreateDto' + label: retrieveTicketingTag + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_tags.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ticketing_tag_output.nil?\n # handle response\nend" + /ticketing/teams: + get: + operationId: listTicketingTeams + summary: List Teams + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: true + description: Set to true to include data from the original software. + schema: + type: boolean + - name: limit + required: false + in: query + example: 10 + description: Set to get the number of records. + schema: + default: 50 + type: number + - name: cursor + required: false + in: query + example: 1b8b05bb-5273-4012-b520-8657b0b90874 + description: Set to get the number of records after this cursor. + schema: + type: string responses: - '201': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/CustomFieldResponse' - tags: *ref_20 - x-speakeasy-group: fieldMappings + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: '#/components/schemas/UnifiedTicketingTeamOutput' + tags: &ref_18 + - ticketing/teams + x-speakeasy-group: ticketing.teams + x-speakeasy-pagination: + type: cursor + inputs: + - name: cursor + in: parameters + type: cursor + outputs: + nextCursor: $.next_cursor x-codeSamples: - lang: typescript - 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.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 - console.log(result) - } - - run(); + label: listTicketingTeams + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.teams.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: defineCustomField + label: listTicketingTeams source: |- - import panora_sdk from panora_sdk import Panora s = Panora( @@ -6515,101 +4770,62 @@ paths: ) - res = s.field_mappings.define_custom_field(request={ - "object_type_owner": panora_sdk.CustomFieldCreateDtoObjectTypeOwner.COMPANY, - "name": "my_favorite_dish", - "description": "Favorite Dish", - "data_type": panora_sdk.CustomFieldCreateDtoDataType.STRING, - "source_custom_field_id": "id_1", - "source_provider": "hubspot", - "linked_user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - }) + res = s.ticketing.teams.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - lang: go - label: defineCustomField - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "context" - "log" - ) + while True: + # handle items - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - request := components.CustomFieldCreateDto{ - ObjectTypeOwner: components.CustomFieldCreateDtoObjectTypeOwnerCompany.ToPointer(), - Name: gosdk.String("my_favorite_dish"), - Description: gosdk.String("Favorite Dish"), - DataType: components.CustomFieldCreateDtoDataTypeString.ToPointer(), - SourceCustomFieldID: gosdk.String("id_1"), - SourceProvider: gosdk.String("hubspot"), - LinkedUserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - } - ctx := context.Background() - res, err := s.FieldMappings.DefineCustomField(ctx, request) - if err != nil { - log.Fatal(err) - } - if res.CustomFieldResponse != nil { - // handle response - } - } + res = res.Next() + if res is None: + break + - lang: go + label: listTicketingTeams + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ticketing.Teams.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: defineCustomField - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::CustomFieldCreateDto.new(\n object_type_owner: ::OpenApiSDK::Shared::CustomFieldCreateDtoObjectTypeOwner::COMPANY,\n name: \"my_favorite_dish\",\n description: \"Favorite Dish\",\n data_type: ::OpenApiSDK::Shared::CustomFieldCreateDtoDataType::STRING,\n source_custom_field_id: \"id_1\",\n source_provider: \"hubspot\",\n linked_user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n)\n \nres = s.field_mappings.define_custom_field(req)\n\nif ! res.custom_field_response.nil?\n # handle response\nend" - /field_mappings/map: - post: - operationId: map - summary: Map Custom Field - parameters: [] - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/MapFieldToProviderDto' + label: listTicketingTeams + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_teams.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ticketing/teams/{id}: + get: + operationId: retrieveTicketingTeam + summary: Retrieve Teams + description: Retrieve Teams from any connected Ticketing software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: id + required: true + in: path + description: id of the team you want to retrieve. + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original Ticketing software. + example: false + schema: + type: boolean responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/CustomFieldResponse' - tags: *ref_20 - x-speakeasy-group: fieldMappings - x-codeSamples: - - lang: typescript - label: map - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - 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", - }); - - // Handle the result - console.log(result) - } - - run(); + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedTicketingTeamOutput' + tags: *ref_18 + x-speakeasy-group: ticketing.teams + x-codeSamples: + - lang: typescript + label: retrieveTicketingTeam + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.teams.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: map + label: retrieveTicketingTeam source: |- from panora_sdk import Panora @@ -6618,24 +4834,18 @@ paths: ) - res = s.field_mappings.map(request={ - "attribute_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "source_custom_field_id": "id_1", - "source_provider": "hubspot", - "linked_user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - }) + res = s.ticketing.teams.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: map + label: retrieveTicketingTeam source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" "log" ) @@ -6644,74 +4854,46 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - request := components.MapFieldToProviderDto{ - AttributeID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - SourceCustomFieldID: gosdk.String("id_1"), - SourceProvider: gosdk.String("hubspot"), - LinkedUserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - } + ctx := context.Background() - res, err := s.FieldMappings.Map(ctx, request) + res, err := s.Ticketing.Teams.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.CustomFieldResponse != nil { + if res.UnifiedTicketingTeamOutput != nil { // handle response } } - lang: ruby - label: map - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::MapFieldToProviderDto.new(\n attribute_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n source_custom_field_id: \"id_1\",\n source_provider: \"hubspot\",\n linked_user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n)\n \nres = s.field_mappings.map(req)\n\nif ! res.custom_field_response.nil?\n # handle response\nend" - /events: + label: retrieveTicketingTeam + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_teams.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ticketing_team_output.nil?\n # handle response\nend" + /linked_users/fromRemoteId: get: - operationId: getPanoraCoreEvents - summary: List Events + operationId: remoteId + summary: Retrieve a Linked User From A Remote Id parameters: - - name: page - required: false - in: query - schema: - minimum: 1 - default: 1 - type: number - - name: limit - required: false + - name: remoteId + required: true in: query + example: id_1 schema: - minimum: 1 - default: 10 - type: number + type: string responses: '200': description: '' content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/EventResponse' - tags: - - events + $ref: '#/components/schemas/LinkedUserResponse' + tags: &ref_19 + - linkedUsers + x-speakeasy-group: linkedUsers x-codeSamples: - lang: typescript - label: getPanoraCoreEvents - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.events.getPanoraCoreEvents({}); - - // Handle the result - console.log(result) - } - - run(); + label: remoteId + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.linkedUsers.remoteId({\n remoteId: \"id_1\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: getPanoraCoreEvents + label: remoteId source: |- from panora_sdk import Panora @@ -6720,13 +4902,13 @@ paths: ) - res = s.events.get_panora_core_events() + res = s.linked_users.remote_id(remote_id="id_1") if res is not None: # handle response pass - lang: go - label: getPanoraCoreEvents + label: remoteId source: |- package main @@ -6742,72 +4924,113 @@ paths: ) ctx := context.Background() - res, err := s.Events.GetPanoraCoreEvents(ctx, nil, nil) + res, err := s.LinkedUsers.RemoteID(ctx, "id_1") if err != nil { log.Fatal(err) } - if res.EventResponses != nil { + if res.LinkedUserResponse != nil { // handle response } } - lang: ruby - label: getPanoraCoreEvents - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.events.get_panora_core_events(page=5232.51, limit=1895.12)\n\nif ! res.event_responses.nil?\n # handle response\nend" - /passthrough: + label: remoteId + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.linked_users.remote_id(remote_id=\"id_1\")\n\nif ! res.linked_user_response.nil?\n # handle response\nend" + /linked_users: post: - operationId: request - summary: Make a passthrough request - parameters: - - name: x-connection-token - required: true - in: header - schema: - type: string + operationId: createLinkedUser + summary: Create Linked Users + parameters: [] requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/PassThroughRequestDto' + $ref: '#/components/schemas/CreateLinkedUserDto' responses: - '200': + '201': description: '' content: application/json: schema: - type: object - tags: &ref_21 - - passthrough - x-speakeasy-group: passthrough + $ref: '#/components/schemas/LinkedUserResponse' + tags: *ref_19 + x-speakeasy-group: linkedUsers x-codeSamples: - lang: typescript - label: request + label: createLinkedUser + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.linkedUsers.create({\n linkedUserOriginId: \"id_1\",\n alias: \"acme\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createLinkedUser source: |- - import { Panora } from "@panora/sdk"; - import { PassThroughRequestDtoMethod } from "@panora/sdk/models/components"; + from panora_sdk import Panora - const panora = new Panora({ - apiKey: "", - }); + s = Panora( + api_key="", + ) - async function run() { - const result = await panora.passthrough.request({ - xConnectionToken: "", - passThroughRequestDto: { - method: PassThroughRequestDtoMethod.Get, - path: "/dev", - }, - }); - // Handle the result - console.log(result) - } + res = s.linked_users.create(request={ + "linked_user_origin_id": "id_1", + "alias": "acme", + }) - run(); + if res is not None: + # handle response + pass + - lang: go + label: createLinkedUser + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.LinkedUsers.Create(ctx, components.CreateLinkedUserDto{ + LinkedUserOriginID: "id_1", + Alias: gosdk.String("acme"), + }) + if err != nil { + log.Fatal(err) + } + if res.LinkedUserResponse != nil { + // handle response + } + } + - lang: ruby + label: createLinkedUser + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::CreateLinkedUserDto.new(\n linked_user_origin_id: \"id_1\",\n alias_: \"acme\",\n)\n \nres = s.linked_users.create(req)\n\nif ! res.linked_user_response.nil?\n # handle response\nend" + get: + operationId: listLinkedUsers + summary: List Linked Users + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/LinkedUserResponse' + tags: *ref_19 + x-speakeasy-group: linkedUsers + x-codeSamples: + - lang: typescript + label: listLinkedUsers + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.linkedUsers.list();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: request + label: listLinkedUsers source: |- - import panora_sdk from panora_sdk import Panora s = Panora( @@ -6815,22 +5038,18 @@ paths: ) - res = s.passthrough.request(x_connection_token="", pass_through_request_dto={ - "method": panora_sdk.PassThroughRequestDtoMethod.GET, - "path": "/dev", - }) + res = s.linked_users.list() if res is not None: # handle response pass - lang: go - label: request + label: listLinkedUsers source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" "log" ) @@ -6839,47 +5058,47 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - passThroughRequestDto := components.PassThroughRequestDto{ - Method: components.PassThroughRequestDtoMethodGet, - Path: gosdk.String("/dev"), - } ctx := context.Background() - res, err := s.Passthrough.Request(ctx, xConnectionToken, passThroughRequestDto) + res, err := s.LinkedUsers.List(ctx) if err != nil { log.Fatal(err) } - if res.TwoHundredApplicationJSONObject != nil { + if res.LinkedUserResponses != nil { // handle response } } - lang: ruby - label: request - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.passthrough.request(x_connection_token=\"\", pass_through_request_dto=::OpenApiSDK::Shared::PassThroughRequestDto.new(\n method: ::OpenApiSDK::Shared::PassThroughRequestDtoMethod::GET,\n path: \"/dev\",\n ))\n\nif ! res.two_hundred_application_json_object.nil?\n # handle response\nend" - /passthrough/{retryId}: - get: - operationId: getRetriedRequestResponse - summary: Retrieve response of a failed passthrough request due to rate limits - parameters: - - name: retryId - required: true - in: path - description: >- - id of the retryJob returned when you initiated a passthrough request. - schema: - type: string + label: listLinkedUsers + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.linked_users.list()\n\nif ! res.linked_user_responses.nil?\n # handle response\nend" + /linked_users/batch: + post: + operationId: importBatch + summary: Add Batch Linked Users + parameters: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateBatchLinkedUserDto' responses: - '200': + '201': description: '' - tags: *ref_21 - x-speakeasy-group: passthrough.{retryid} + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/LinkedUserResponse' + tags: *ref_19 + x-speakeasy-group: linkedUsers x-codeSamples: - lang: typescript - label: getRetriedRequestResponse - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n await panora.passthrough.retryid.getRetriedRequestResponse({\n retryId: \"\",\n });\n\n \n}\n\nrun();" + label: importBatch + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.linkedUsers.importBatch({\n linkedUserOriginIds: [\n \"id_1\",\n ],\n alias: \"acme\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: getRetriedRequestResponse + label: importBatch source: |- from panora_sdk import Panora @@ -6888,17 +5107,25 @@ paths: ) - s.passthrough.retryid.get_retried_request_response(retry_id="") + res = s.linked_users.import_batch(request={ + "linked_user_origin_ids": [ + "id_1", + ], + "alias": "acme", + }) - # Use the SDK ... + if res is not None: + # handle response + pass - lang: go - label: getRetriedRequestResponse + label: importBatch source: |- package main import( gosdk "github.com/panoratech/go-sdk" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -6906,50 +5133,33 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var retryID string = "" + ctx := context.Background() - res, err := s.Passthrough.{retryid}.GetRetriedRequestResponse(ctx, retryID) + res, err := s.LinkedUsers.ImportBatch(ctx, components.CreateBatchLinkedUserDto{ + LinkedUserOriginIds: []string{ + "id_1", + }, + Alias: gosdk.String("acme"), + }) if err != nil { log.Fatal(err) } - if res != nil { + if res.LinkedUserResponses != nil { // handle response } } - lang: ruby - label: getRetriedRequestResponse - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.passthrough_retryid.get_retried_request_response(retry_id=\"\")\n\nif res.status_code == 200\n # handle response\nend" - /hris/bankinfos: + label: importBatch + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::CreateBatchLinkedUserDto.new(\n linked_user_origin_ids: [\n \"id_1\",\n ],\n alias_: \"acme\",\n)\n \nres = s.linked_users.import_batch(req)\n\nif ! res.linked_user_responses.nil?\n # handle response\nend" + /linked_users/{id}: get: - operationId: listHrisBankInfo - summary: List Bank Info + operationId: retrieveLinkedUser + summary: Retrieve Linked Users parameters: - - name: x-connection-token + - name: id required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: true - description: Set to true to include data from the original software. - schema: - type: boolean - - name: limit - required: false - in: query - example: 10 - description: Set to get the number of records. - schema: - default: 50 - type: number - - name: cursor - required: false - in: query - example: 1b8b05bb-5273-4012-b520-8657b0b90874 - description: Set to get the number of records after this cursor. + in: path + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string responses: @@ -6958,50 +5168,15 @@ paths: content: application/json: schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: '#/components/schemas/UnifiedHrisBankinfoOutput' - tags: &ref_22 - - hris/bankinfos - x-speakeasy-group: hris.bankinfos - x-speakeasy-pagination: - type: cursor - inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor + $ref: '#/components/schemas/LinkedUserResponse' + tags: *ref_19 + x-speakeasy-group: linkedUsers x-codeSamples: - lang: typescript - label: listHrisBankInfo - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.bankinfos.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: retrieveLinkedUser + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.linkedUsers.retrieve({\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: listHrisBankInfo + label: retrieveLinkedUser source: |- from panora_sdk import Panora @@ -7010,80 +5185,61 @@ paths: ) - res = s.hris.bankinfos.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.linked_users.retrieve(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break + # handle response + pass - lang: go - label: listHrisBankInfo - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Bankinfos.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: retrieveLinkedUser + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.LinkedUsers.Retrieve(ctx, "801f9ede-c698-4e66-a7fc-48d19eebaa4f") + if err != nil { + log.Fatal(err) + } + if res.LinkedUserResponse != nil { + // handle response + } + } - lang: ruby - label: listHrisBankInfo - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_bankinfos.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /hris/bankinfos/{id}: + label: retrieveLinkedUser + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.linked_users.retrieve(id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\")\n\nif ! res.linked_user_response.nil?\n # handle response\nend" + /projects: get: - operationId: retrieveHrisBankInfo - summary: Retrieve Bank Info - description: Retrieve Bank Info from any connected Hris software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: id - required: true - in: path - description: id of the bank info you want to retrieve. - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Hris software. - example: false - schema: - type: boolean + operationId: getProjects + summary: Retrieve projects + parameters: [] responses: '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedHrisBankinfoOutput' - tags: *ref_22 - x-speakeasy-group: hris.bankinfos + type: array + items: + $ref: '#/components/schemas/ProjectResponse' + tags: &ref_20 + - projects x-codeSamples: - lang: typescript - label: retrieveHrisBankInfo - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.bankinfos.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: getProjects + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.projects.getProjects();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveHrisBankInfo + label: getProjects source: |- from panora_sdk import Panora @@ -7092,13 +5248,13 @@ paths: ) - res = s.hris.bankinfos.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.projects.get_projects() if res is not None: # handle response pass - lang: go - label: retrieveHrisBankInfo + label: getProjects source: |- package main @@ -7112,106 +5268,43 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Bankinfos.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Projects.GetProjects(ctx) if err != nil { log.Fatal(err) } - if res.UnifiedHrisBankinfoOutput != nil { + if res.ProjectResponses != nil { // handle response } } - lang: ruby - label: retrieveHrisBankInfo - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_bankinfos.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_bankinfo_output.nil?\n # handle response\nend" - /hris/benefits: - get: - operationId: listHrisBenefits - summary: List Benefits - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: true - description: Set to true to include data from the original software. - schema: - type: boolean - - name: limit - required: false - in: query - example: 10 - description: Set to get the number of records. - schema: - default: 50 - type: number - - name: cursor - required: false - in: query - example: 1b8b05bb-5273-4012-b520-8657b0b90874 - description: Set to get the number of records after this cursor. - schema: - type: string + label: getProjects + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.projects.get_projects()\n\nif ! res.project_responses.nil?\n # handle response\nend" + post: + operationId: createProject + summary: Create a project + parameters: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateProjectDto' responses: - '200': + '201': description: '' content: application/json: - schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: '#/components/schemas/UnifiedHrisBenefitOutput' - tags: &ref_23 - - hris/benefits - x-speakeasy-group: hris.benefits - x-speakeasy-pagination: - type: cursor - inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor + schema: + $ref: '#/components/schemas/ProjectResponse' + tags: *ref_20 x-codeSamples: - lang: typescript - label: listHrisBenefits - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.benefits.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: createProject + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.projects.create({\n name: \"Project Name\",\n idOrganization: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n idUser: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: listHrisBenefits + label: createProject source: |- from panora_sdk import Panora @@ -7220,59 +5313,62 @@ paths: ) - res = s.hris.benefits.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.projects.create(request={ + "name": "Project Name", + "id_organization": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "id_user": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break + # handle response + pass - lang: go - label: listHrisBenefits - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Benefits.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: createProject + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Projects.Create(ctx, components.CreateProjectDto{ + Name: "Project Name", + IDOrganization: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + IDUser: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }) + if err != nil { + log.Fatal(err) + } + if res.ProjectResponse != nil { + // handle response + } + } - lang: ruby - label: listHrisBenefits - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_benefits.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /hris/benefits/{id}: + label: createProject + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::CreateProjectDto.new(\n name: \"Project Name\",\n id_organization: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n id_user: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n)\n \nres = s.projects.create(req)\n\nif ! res.project_response.nil?\n # handle response\nend" + /field_mappings/values: get: - operationId: retrieveHrisBenefit - summary: Retrieve Benefit - description: Retrieve a Benefit from any connected Hris software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: id - required: true - in: path - description: id of the benefit you want to retrieve. - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Hris software. - example: false - schema: - type: boolean + operationId: getFieldMappingValues + summary: Retrieve field mappings values + parameters: [] responses: '200': description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedHrisBenefitOutput' - tags: *ref_23 - x-speakeasy-group: hris.benefits + tags: &ref_21 + - fieldMappings + x-speakeasy-group: fieldMappings x-codeSamples: - lang: typescript - label: retrieveHrisBenefit + label: getFieldMappingValues source: |- import { Panora } from "@panora/sdk"; @@ -7281,19 +5377,12 @@ paths: }); async function run() { - const result = await panora.hris.benefits.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) + await panora.fieldMappings.getFieldMappingValues(); } run(); - lang: python - label: retrieveHrisBenefit + label: getFieldMappingValues source: |- from panora_sdk import Panora @@ -7302,13 +5391,11 @@ paths: ) - res = s.hris.benefits.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + s.field_mappings.get_field_mapping_values() - if res is not None: - # handle response - pass + # Use the SDK ... - lang: go - label: retrieveHrisBenefit + label: getFieldMappingValues source: |- package main @@ -7322,83 +5409,32 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Benefits.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.FieldMappings.GetFieldMappingValues(ctx) if err != nil { log.Fatal(err) } - if res.UnifiedHrisBenefitOutput != nil { + if res != nil { // handle response } } - lang: ruby - label: retrieveHrisBenefit - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_benefits.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_benefit_output.nil?\n # handle response\nend" - /hris/companies: + label: getFieldMappingValues + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.field_mappings.get_field_mapping_values()\n\nif res.status_code == 200\n # handle response\nend" + /field_mappings/entities: get: - operationId: listHrisCompanies - summary: List Companies - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: true - description: Set to true to include data from the original software. - schema: - type: boolean - - name: limit - required: false - in: query - example: 10 - description: Set to get the number of records. - schema: - default: 50 - type: number - - name: cursor - required: false - in: query - example: 1b8b05bb-5273-4012-b520-8657b0b90874 - description: Set to get the number of records after this cursor. - schema: - type: string + operationId: getFieldMappingsEntities + summary: Retrieve field mapping entities + parameters: [] responses: '200': description: '' - content: - application/json: - schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: '#/components/schemas/UnifiedHrisCompanyOutput' - tags: &ref_24 - - hris/companies - x-speakeasy-group: hris.companies - x-speakeasy-pagination: - type: cursor - inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor + tags: *ref_21 + x-speakeasy-group: fieldMappings x-codeSamples: - lang: typescript - label: listHrisCompanies + label: getFieldMappingsEntities source: |- import { Panora } from "@panora/sdk"; @@ -7407,21 +5443,12 @@ paths: }); async function run() { - const result = await panora.hris.companies.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } + await panora.fieldMappings.getFieldMappingsEntities(); } run(); - lang: python - label: listHrisCompanies + label: getFieldMappingsEntities source: |- from panora_sdk import Panora @@ -7430,59 +5457,50 @@ paths: ) - res = s.hris.companies.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - - if res is not None: - while True: - # handle items + s.field_mappings.get_field_mappings_entities() - res = res.Next() - if res is None: - break + # Use the SDK ... - lang: go - label: listHrisCompanies - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Companies.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: getFieldMappingsEntities + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.FieldMappings.GetFieldMappingsEntities(ctx) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } - lang: ruby - label: listHrisCompanies - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_companies.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /hris/companies/{id}: - get: - operationId: retrieveHrisCompany - summary: Retrieve Company - description: Retrieve a Company from any connected Hris software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: id - required: true - in: path - description: id of the company you want to retrieve. - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Hris software. - example: false - schema: - type: boolean + label: getFieldMappingsEntities + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.field_mappings.get_field_mappings_entities()\n\nif res.status_code == 200\n # handle response\nend" + /field_mappings/attributes: + get: + operationId: getFieldMappings + summary: Retrieve field mappings + parameters: [] responses: '200': description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedHrisCompanyOutput' - tags: *ref_24 - x-speakeasy-group: hris.companies + tags: *ref_21 + x-speakeasy-group: fieldMappings x-codeSamples: - lang: typescript - label: retrieveHrisCompany + label: getFieldMappings source: |- import { Panora } from "@panora/sdk"; @@ -7491,19 +5509,12 @@ paths: }); async function run() { - const result = await panora.hris.companies.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) + await panora.fieldMappings.getFieldMappings(); } run(); - lang: python - label: retrieveHrisCompany + label: getFieldMappings source: |- from panora_sdk import Panora @@ -7512,19 +5523,91 @@ paths: ) - res = s.hris.companies.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + s.field_mappings.get_field_mappings() + + # Use the SDK ... + - lang: go + label: getFieldMappings + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.FieldMappings.GetFieldMappings(ctx) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - lang: ruby + label: getFieldMappings + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.field_mappings.get_field_mappings()\n\nif res.status_code == 200\n # handle response\nend" + /field_mappings/define: + post: + operationId: definitions + summary: Define target Field + parameters: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/DefineTargetFieldDto' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/CustomFieldResponse' + tags: *ref_21 + x-speakeasy-group: fieldMappings + x-codeSamples: + - lang: typescript + label: definitions + source: "import { Panora } from \"@panora/sdk\";\nimport { DataType, ObjectTypeOwner } from \"@panora/sdk/models/components\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.fieldMappings.definitions({\n objectTypeOwner: ObjectTypeOwner.Company,\n name: \"fav_dish\",\n description: \"My favorite dish\",\n dataType: DataType.String,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: definitions + source: |- + import panora_sdk + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.field_mappings.definitions(request={ + "object_type_owner": panora_sdk.ObjectTypeOwner.COMPANY, + "name": "fav_dish", + "description": "My favorite dish", + "data_type": panora_sdk.DataType.STRING, + }) if res is not None: # handle response pass - lang: go - label: retrieveHrisCompany + label: definitions source: |- package main import( gosdk "github.com/panoratech/go-sdk" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -7532,106 +5615,135 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Companies.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.FieldMappings.Definitions(ctx, components.DefineTargetFieldDto{ + ObjectTypeOwner: components.ObjectTypeOwnerCompany.ToPointer(), + Name: gosdk.String("fav_dish"), + Description: gosdk.String("My favorite dish"), + DataType: components.DataTypeString.ToPointer(), + }) if err != nil { log.Fatal(err) } - if res.UnifiedHrisCompanyOutput != nil { + if res.CustomFieldResponse != nil { // handle response } } - lang: ruby - label: retrieveHrisCompany - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_companies.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_company_output.nil?\n # handle response\nend" - /hris/dependents: - get: - operationId: listHrisDependents - summary: List Dependents - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: true - description: Set to true to include data from the original software. - schema: - type: boolean - - name: limit - required: false - in: query - example: 10 - description: Set to get the number of records. - schema: - default: 50 - type: number - - name: cursor - required: false - in: query - example: 1b8b05bb-5273-4012-b520-8657b0b90874 - description: Set to get the number of records after this cursor. - schema: - type: string + label: definitions + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::DefineTargetFieldDto.new(\n object_type_owner: ::OpenApiSDK::Shared::ObjectTypeOwner::COMPANY,\n name: \"fav_dish\",\n description: \"My favorite dish\",\n data_type: ::OpenApiSDK::Shared::DataType::STRING,\n)\n \nres = s.field_mappings.definitions(req)\n\nif ! res.custom_field_response.nil?\n # handle response\nend" + /field_mappings: + post: + operationId: defineCustomField + summary: Create Custom Field + parameters: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CustomFieldCreateDto' responses: - '200': + '201': description: '' content: application/json: schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: '#/components/schemas/UnifiedHrisDependentOutput' - tags: &ref_25 - - hris/dependents - x-speakeasy-group: hris.dependents - x-speakeasy-pagination: - type: cursor - inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor + $ref: '#/components/schemas/CustomFieldResponse' + tags: *ref_21 + x-speakeasy-group: fieldMappings x-codeSamples: - lang: typescript - label: listHrisDependents + label: defineCustomField + source: "import { Panora } from \"@panora/sdk\";\nimport { CustomFieldCreateDtoDataType, CustomFieldCreateDtoObjectTypeOwner } from \"@panora/sdk/models/components\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.fieldMappings.defineCustomField({\n objectTypeOwner: CustomFieldCreateDtoObjectTypeOwner.Company,\n name: \"my_favorite_dish\",\n description: \"Favorite Dish\",\n dataType: CustomFieldCreateDtoDataType.String,\n sourceCustomFieldId: \"id_1\",\n sourceProvider: \"hubspot\",\n linkedUserId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: defineCustomField source: |- - import { Panora } from "@panora/sdk"; + import panora_sdk + from panora_sdk import Panora - const panora = new Panora({ - apiKey: "", - }); + s = Panora( + api_key="", + ) - async function run() { - const result = await panora.hris.dependents.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - for await (const page of result) { - // handle page - } - } + res = s.field_mappings.define_custom_field(request={ + "object_type_owner": panora_sdk.CustomFieldCreateDtoObjectTypeOwner.COMPANY, + "name": "my_favorite_dish", + "description": "Favorite Dish", + "data_type": panora_sdk.CustomFieldCreateDtoDataType.STRING, + "source_custom_field_id": "id_1", + "source_provider": "hubspot", + "linked_user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }) - run(); + if res is not None: + # handle response + pass + - lang: go + label: defineCustomField + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.FieldMappings.DefineCustomField(ctx, components.CustomFieldCreateDto{ + ObjectTypeOwner: components.CustomFieldCreateDtoObjectTypeOwnerCompany.ToPointer(), + Name: gosdk.String("my_favorite_dish"), + Description: gosdk.String("Favorite Dish"), + DataType: components.CustomFieldCreateDtoDataTypeString.ToPointer(), + SourceCustomFieldID: gosdk.String("id_1"), + SourceProvider: gosdk.String("hubspot"), + LinkedUserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + }) + if err != nil { + log.Fatal(err) + } + if res.CustomFieldResponse != nil { + // handle response + } + } + - lang: ruby + label: defineCustomField + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::CustomFieldCreateDto.new(\n object_type_owner: ::OpenApiSDK::Shared::CustomFieldCreateDtoObjectTypeOwner::COMPANY,\n name: \"my_favorite_dish\",\n description: \"Favorite Dish\",\n data_type: ::OpenApiSDK::Shared::CustomFieldCreateDtoDataType::STRING,\n source_custom_field_id: \"id_1\",\n source_provider: \"hubspot\",\n linked_user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n)\n \nres = s.field_mappings.define_custom_field(req)\n\nif ! res.custom_field_response.nil?\n # handle response\nend" + /field_mappings/map: + post: + operationId: map + summary: Map Custom Field + parameters: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/MapFieldToProviderDto' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/CustomFieldResponse' + tags: *ref_21 + x-speakeasy-group: fieldMappings + x-codeSamples: + - lang: typescript + label: map + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.fieldMappings.map({\n attributeId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n sourceCustomFieldId: \"id_1\",\n sourceProvider: \"hubspot\",\n linkedUserId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: listHrisDependents + label: map source: |- from panora_sdk import Panora @@ -7640,80 +5752,86 @@ paths: ) - res = s.hris.dependents.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.field_mappings.map(request={ + "attribute_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "source_custom_field_id": "id_1", + "source_provider": "hubspot", + "linked_user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break + # handle response + pass - lang: go - label: listHrisDependents - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Dependents.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: map + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.FieldMappings.Map(ctx, components.MapFieldToProviderDto{ + AttributeID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + SourceCustomFieldID: gosdk.String("id_1"), + SourceProvider: gosdk.String("hubspot"), + LinkedUserID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + }) + if err != nil { + log.Fatal(err) + } + if res.CustomFieldResponse != nil { + // handle response + } + } - lang: ruby - label: listHrisDependents - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_dependents.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /hris/dependents/{id}: + label: map + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n\nreq = ::OpenApiSDK::Shared::MapFieldToProviderDto.new(\n attribute_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n source_custom_field_id: \"id_1\",\n source_provider: \"hubspot\",\n linked_user_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n)\n \nres = s.field_mappings.map(req)\n\nif ! res.custom_field_response.nil?\n # handle response\nend" + /events: get: - operationId: retrieveHrisDependent - summary: Retrieve Dependent - description: Retrieve a Dependent from any connected Hris software + operationId: getPanoraCoreEvents + summary: List Events parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: id - required: true - in: path - description: id of the dependent you want to retrieve. - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + - name: page + required: false + in: query schema: - type: string - - name: remote_data + minimum: 1 + default: 1 + type: number + - name: limit required: false in: query - description: Set to true to include data from the original Hris software. - example: false schema: - type: boolean + minimum: 1 + default: 10 + type: number responses: '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedHrisDependentOutput' - tags: *ref_25 - x-speakeasy-group: hris.dependents + type: array + items: + $ref: '#/components/schemas/EventResponse' + tags: + - events x-codeSamples: - lang: typescript - label: retrieveHrisDependent - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.dependents.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: getPanoraCoreEvents + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.events.getPanoraCoreEvents({});\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveHrisDependent + label: getPanoraCoreEvents source: |- from panora_sdk import Panora @@ -7722,13 +5840,13 @@ paths: ) - res = s.hris.dependents.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.events.get_panora_core_events() if res is not None: # handle response pass - lang: go - label: retrieveHrisDependent + label: getPanoraCoreEvents source: |- package main @@ -7742,108 +5860,59 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Dependents.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Events.GetPanoraCoreEvents(ctx, nil, nil) if err != nil { log.Fatal(err) } - if res.UnifiedHrisDependentOutput != nil { + if res.EventResponses != nil { // handle response } } - lang: ruby - label: retrieveHrisDependent - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_dependents.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_dependent_output.nil?\n # handle response\nend" - /hris/employeepayrollruns: - get: - operationId: listHrisEmployeePayrollRun - summary: List Employee Payroll Runs + label: getPanoraCoreEvents + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.events.get_panora_core_events(page=5232.51, limit=1895.12)\n\nif ! res.event_responses.nil?\n # handle response\nend" + /passthrough: + post: + operationId: request + summary: Make a passthrough request parameters: - name: x-connection-token required: true in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: true - description: Set to true to include data from the original software. - schema: - type: boolean - - name: limit - required: false - in: query - example: 10 - description: Set to get the number of records. - schema: - default: 50 - type: number - - name: cursor - required: false - in: query - example: 1b8b05bb-5273-4012-b520-8657b0b90874 - description: Set to get the number of records after this cursor. schema: type: string + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/PassThroughRequestDto' responses: '200': description: '' content: application/json: schema: - allOf: - - $ref: '#/components/schemas/PaginatedDto' - - properties: - data: - type: array - items: - $ref: >- - #/components/schemas/UnifiedHrisEmployeepayrollrunOutput - tags: &ref_26 - - hris/employeepayrollruns - x-speakeasy-group: hris.employeepayrollruns - x-speakeasy-pagination: - type: cursor - inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor + type: object + '201': + description: '' + content: + application/json: + schema: + type: object + tags: &ref_22 + - passthrough + x-speakeasy-group: passthrough x-codeSamples: - lang: typescript - label: listHrisEmployeePayrollRun - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.employeepayrollruns.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: request + source: "import { Panora } from \"@panora/sdk\";\nimport { PassThroughRequestDtoMethod } from \"@panora/sdk/models/components\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.passthrough.request({\n xConnectionToken: \"\",\n passThroughRequestDto: {\n method: PassThroughRequestDtoMethod.Get,\n path: \"/dev\",\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: listHrisEmployeePayrollRun + label: request source: |- + import panora_sdk from panora_sdk import Panora s = Panora( @@ -7851,59 +5920,66 @@ paths: ) - res = s.hris.employeepayrollruns.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.passthrough.request(x_connection_token="", pass_through_request_dto={ + "method": panora_sdk.PassThroughRequestDtoMethod.GET, + "path": "/dev", + }) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break + # handle response + pass - lang: go - label: listHrisEmployeePayrollRun - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Employeepayrollruns.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: request + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Passthrough.Request(ctx, "", components.PassThroughRequestDto{ + Method: components.PassThroughRequestDtoMethodGet, + Path: gosdk.String("/dev"), + }) + if err != nil { + log.Fatal(err) + } + if res.TwoHundredApplicationJSONObject != nil { + // handle response + } + } - lang: ruby - label: listHrisEmployeePayrollRun - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employeepayrollruns.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /hris/employeepayrollruns/{id}: + label: request + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.passthrough.request(x_connection_token=\"\", pass_through_request_dto=::OpenApiSDK::Shared::PassThroughRequestDto.new(\n method: ::OpenApiSDK::Shared::PassThroughRequestDtoMethod::GET,\n path: \"/dev\",\n))\n\nif ! res.two_hundred_application_json_object.nil?\n # handle response\nend" + /passthrough/{retryId}: get: - operationId: retrieveHrisEmployeePayrollRun - summary: Retrieve Employee Payroll Run - description: Retrieve Employee Payroll Run from any connected Hris software + operationId: getRetriedRequestResponse + summary: Retrieve response of a failed passthrough request due to rate limits parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: id + - name: retryId required: true in: path - description: id of the employeepayrollrun you want to retrieve. - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: >- + id of the retryJob returned when you initiated a passthrough request. schema: type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Hris software. - example: false - schema: - type: boolean responses: '200': description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedHrisEmployeepayrollrunOutput' - tags: *ref_26 - x-speakeasy-group: hris.employeepayrollruns + tags: *ref_22 + x-speakeasy-group: passthrough.{retryid} x-codeSamples: - lang: typescript - label: retrieveHrisEmployeePayrollRun + label: getRetriedRequestResponse source: |- import { Panora } from "@panora/sdk"; @@ -7912,19 +5988,14 @@ paths: }); async function run() { - const result = await panora.hris.employeepayrollruns.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + await panora.passthrough.retryid.getRetriedRequestResponse({ + retryId: "", }); - - // Handle the result - console.log(result) } run(); - lang: python - label: retrieveHrisEmployeePayrollRun + label: getRetriedRequestResponse source: |- from panora_sdk import Panora @@ -7933,13 +6004,11 @@ paths: ) - res = s.hris.employeepayrollruns.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + s.passthrough.retryid.get_retried_request_response(retry_id="") - if res is not None: - # handle response - pass + # Use the SDK ... - lang: go - label: retrieveHrisEmployeePayrollRun + label: getRetriedRequestResponse source: |- package main @@ -7953,27 +6022,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Employeepayrollruns.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Passthrough.{retryid}.GetRetriedRequestResponse(ctx, "") if err != nil { log.Fatal(err) } - if res.UnifiedHrisEmployeepayrollrunOutput != nil { + if res != nil { // handle response } } - lang: ruby - label: retrieveHrisEmployeePayrollRun - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employeepayrollruns.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_employeepayrollrun_output.nil?\n # handle response\nend" - /hris/employees: + label: getRetriedRequestResponse + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.passthrough_retryid.get_retried_request_response(retry_id=\"\")\n\nif res.status_code == 200\n # handle response\nend" + /hris/bankinfos: get: - operationId: listHrisEmployees - summary: List Employees + operationId: listHrisBankInfo + summary: List Bank Info parameters: - name: x-connection-token required: true @@ -8015,10 +6080,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedHrisEmployeeOutput' - tags: &ref_27 - - hris/employees - x-speakeasy-group: hris.employees + $ref: '#/components/schemas/UnifiedHrisBankinfoOutput' + tags: &ref_23 + - hris/bankinfos + x-speakeasy-group: hris.bankinfos x-speakeasy-pagination: type: cursor inputs: @@ -8029,30 +6094,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listHrisEmployees - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.employees.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listHrisBankInfo + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.bankinfos.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listHrisEmployees + label: listHrisBankInfo source: |- from panora_sdk import Panora @@ -8061,7 +6106,7 @@ paths: ) - res = s.hris.employees.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.bankinfos.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -8071,154 +6116,16 @@ paths: if res is None: break - lang: go - label: listHrisEmployees - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Employees.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listHrisEmployees - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employees.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createHrisEmployee - summary: Create Employees - description: Create Employees in any supported Hris software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Hris software. - schema: - type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedHrisEmployeeInput' - responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedHrisEmployeeOutput' - tags: *ref_27 - x-speakeasy-group: hris.employees - x-codeSamples: - - lang: typescript - label: createHrisEmployee - source: |- - import { Panora } from "@panora/sdk"; - import { - UnifiedHrisEmployeeInputEmploymentStatus, - UnifiedHrisEmployeeInputEthnicity, - UnifiedHrisEmployeeInputGender, - UnifiedHrisEmployeeInputMaritalStatus, - } from "@panora/sdk/models/components"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.employees.create({ - xConnectionToken: "", - unifiedHrisEmployeeInput: { - groups: [ - "Group1", - "Group2", - ], - locations: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - employeeNumber: "EMP001", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - firstName: "John", - lastName: "Doe", - preferredName: "Johnny", - displayFullName: "John Doe", - username: "johndoe", - workEmail: "john.doe@company.com", - personalEmail: "john.doe@personal.com", - mobilePhoneNumber: "+1234567890", - employments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - ssn: "123-45-6789", - gender: UnifiedHrisEmployeeInputGender.Male, - ethnicity: UnifiedHrisEmployeeInputEthnicity.AmericanIndianOrAlaskaNative, - maritalStatus: UnifiedHrisEmployeeInputMaritalStatus.MarriedFilingSeparately, - dateOfBirth: new Date("1990-01-01"), - startDate: new Date("2020-01-01"), - employmentStatus: UnifiedHrisEmployeeInputEmploymentStatus.Active, - terminationDate: new Date("2025-01-01"), - avatarUrl: "https://example.com/avatar.jpg", - managerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: createHrisEmployee - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.hris.employees.create(x_connection_token="", unified_hris_employee_input={}) - - if res is not None: - # handle response - pass - - lang: go - label: createHrisEmployee - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - unifiedHrisEmployeeInput := components.UnifiedHrisEmployeeInput{} - ctx := context.Background() - res, err := s.Hris.Employees.Create(ctx, xConnectionToken, unifiedHrisEmployeeInput, nil) - if err != nil { - log.Fatal(err) - } - if res.UnifiedHrisEmployeeOutput != nil { - // handle response - } - } + label: listHrisBankInfo + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Bankinfos.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: createHrisEmployee - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employees.create(x_connection_token=\"\", unified_hris_employee_input=::OpenApiSDK::Shared::UnifiedHrisEmployeeInput.new(), remote_data=false)\n\nif ! res.unified_hris_employee_output.nil?\n # handle response\nend" - /hris/employees/{id}: + label: listHrisBankInfo + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_bankinfos.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /hris/bankinfos/{id}: get: - operationId: retrieveHrisEmployee - summary: Retrieve Employee - description: Retrieve an Employee from any connected Hris software + operationId: retrieveHrisBankInfo + summary: Retrieve Bank Info + description: Retrieve Bank Info from any connected Hris software parameters: - name: x-connection-token required: true @@ -8229,7 +6136,7 @@ paths: - name: id required: true in: path - description: id of the employee you want to retrieve. + description: id of the bank info you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -8246,33 +6153,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedHrisEmployeeOutput' - tags: *ref_27 - x-speakeasy-group: hris.employees + $ref: '#/components/schemas/UnifiedHrisBankinfoOutput' + tags: *ref_23 + x-speakeasy-group: hris.bankinfos x-codeSamples: - lang: typescript - label: retrieveHrisEmployee - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.employees.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisBankInfo + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.bankinfos.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveHrisEmployee + label: retrieveHrisBankInfo source: |- from panora_sdk import Panora @@ -8281,13 +6170,13 @@ paths: ) - res = s.hris.employees.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.bankinfos.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveHrisEmployee + label: retrieveHrisBankInfo source: |- package main @@ -8301,27 +6190,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Employees.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Bankinfos.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedHrisEmployeeOutput != nil { + if res.UnifiedHrisBankinfoOutput != nil { // handle response } } - lang: ruby - label: retrieveHrisEmployee - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employees.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_employee_output.nil?\n # handle response\nend" - /hris/employerbenefits: + label: retrieveHrisBankInfo + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_bankinfos.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_bankinfo_output.nil?\n # handle response\nend" + /hris/benefits: get: - operationId: listHrisEmployerBenefits - summary: List Employer Benefits + operationId: listHrisBenefits + summary: List Benefits parameters: - name: x-connection-token required: true @@ -8363,11 +6248,10 @@ paths: data: type: array items: - $ref: >- - #/components/schemas/UnifiedHrisEmployerbenefitOutput - tags: &ref_28 - - hris/employerbenefits - x-speakeasy-group: hris.employerbenefits + $ref: '#/components/schemas/UnifiedHrisBenefitOutput' + tags: &ref_24 + - hris/benefits + x-speakeasy-group: hris.benefits x-speakeasy-pagination: type: cursor inputs: @@ -8378,30 +6262,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listHrisEmployerBenefits - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.employerbenefits.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listHrisBenefits + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.benefits.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listHrisEmployerBenefits + label: listHrisBenefits source: |- from panora_sdk import Panora @@ -8410,7 +6274,7 @@ paths: ) - res = s.hris.employerbenefits.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.benefits.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -8420,16 +6284,16 @@ paths: if res is None: break - lang: go - label: listHrisEmployerBenefits - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Employerbenefits.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listHrisBenefits + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Benefits.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listHrisEmployerBenefits - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employerbenefits.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /hris/employerbenefits/{id}: + label: listHrisBenefits + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_benefits.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /hris/benefits/{id}: get: - operationId: retrieveHrisEmployerBenefit - summary: Retrieve Employer Benefit - description: Retrieve an Employer Benefit from any connected Hris software + operationId: retrieveHrisBenefit + summary: Retrieve Benefit + description: Retrieve a Benefit from any connected Hris software parameters: - name: x-connection-token required: true @@ -8440,7 +6304,7 @@ paths: - name: id required: true in: path - description: id of the employer benefit you want to retrieve. + description: id of the benefit you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -8457,33 +6321,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedHrisEmployerbenefitOutput' - tags: *ref_28 - x-speakeasy-group: hris.employerbenefits + $ref: '#/components/schemas/UnifiedHrisBenefitOutput' + tags: *ref_24 + x-speakeasy-group: hris.benefits x-codeSamples: - lang: typescript - label: retrieveHrisEmployerBenefit - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.employerbenefits.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisBenefit + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.benefits.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveHrisEmployerBenefit + label: retrieveHrisBenefit source: |- from panora_sdk import Panora @@ -8492,13 +6338,13 @@ paths: ) - res = s.hris.employerbenefits.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.benefits.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveHrisEmployerBenefit + label: retrieveHrisBenefit source: |- package main @@ -8512,27 +6358,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Employerbenefits.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Benefits.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedHrisEmployerbenefitOutput != nil { + if res.UnifiedHrisBenefitOutput != nil { // handle response } } - lang: ruby - label: retrieveHrisEmployerBenefit - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employerbenefits.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_employerbenefit_output.nil?\n # handle response\nend" - /hris/employments: + label: retrieveHrisBenefit + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_benefits.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_benefit_output.nil?\n # handle response\nend" + /hris/companies: get: - operationId: listHrisEmployments - summary: List Employments + operationId: listHrisCompanies + summary: List Companies parameters: - name: x-connection-token required: true @@ -8574,10 +6416,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedHrisEmploymentOutput' - tags: &ref_29 - - hris/employments - x-speakeasy-group: hris.employments + $ref: '#/components/schemas/UnifiedHrisCompanyOutput' + tags: &ref_25 + - hris/companies + x-speakeasy-group: hris.companies x-speakeasy-pagination: type: cursor inputs: @@ -8588,30 +6430,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listHrisEmployments - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.employments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listHrisCompanies + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.companies.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listHrisEmployments + label: listHrisCompanies source: |- from panora_sdk import Panora @@ -8620,7 +6442,7 @@ paths: ) - res = s.hris.employments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.companies.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -8630,16 +6452,16 @@ paths: if res is None: break - lang: go - label: listHrisEmployments - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Employments.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listHrisCompanies + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Companies.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listHrisEmployments - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /hris/employments/{id}: + label: listHrisCompanies + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_companies.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /hris/companies/{id}: get: - operationId: retrieveHrisEmployment - summary: Retrieve Employment - description: Retrieve an Employment from any connected Hris software + operationId: retrieveHrisCompany + summary: Retrieve Company + description: Retrieve a Company from any connected Hris software parameters: - name: x-connection-token required: true @@ -8650,7 +6472,7 @@ paths: - name: id required: true in: path - description: id of the employment you want to retrieve. + description: id of the company you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -8667,33 +6489,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedHrisEmploymentOutput' - tags: *ref_29 - x-speakeasy-group: hris.employments + $ref: '#/components/schemas/UnifiedHrisCompanyOutput' + tags: *ref_25 + x-speakeasy-group: hris.companies x-codeSamples: - lang: typescript - label: retrieveHrisEmployment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.employments.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisCompany + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.companies.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveHrisEmployment + label: retrieveHrisCompany source: |- from panora_sdk import Panora @@ -8702,13 +6506,13 @@ paths: ) - res = s.hris.employments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.companies.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveHrisEmployment + label: retrieveHrisCompany source: |- package main @@ -8722,27 +6526,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Employments.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Companies.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedHrisEmploymentOutput != nil { + if res.UnifiedHrisCompanyOutput != nil { // handle response } } - lang: ruby - label: retrieveHrisEmployment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employments.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_employment_output.nil?\n # handle response\nend" - /hris/groups: + label: retrieveHrisCompany + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_companies.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_company_output.nil?\n # handle response\nend" + /hris/dependents: get: - operationId: listHrisGroups - summary: List Groups + operationId: listHrisDependents + summary: List Dependents parameters: - name: x-connection-token required: true @@ -8784,10 +6584,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedHrisGroupOutput' - tags: &ref_30 - - hris/groups - x-speakeasy-group: hris.groups + $ref: '#/components/schemas/UnifiedHrisDependentOutput' + tags: &ref_26 + - hris/dependents + x-speakeasy-group: hris.dependents x-speakeasy-pagination: type: cursor inputs: @@ -8798,30 +6598,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listHrisGroups - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.groups.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listHrisDependents + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.dependents.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listHrisGroups + label: listHrisDependents source: |- from panora_sdk import Panora @@ -8830,7 +6610,7 @@ paths: ) - res = s.hris.groups.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.dependents.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -8840,16 +6620,16 @@ paths: if res is None: break - lang: go - label: listHrisGroups - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Groups.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listHrisDependents + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Dependents.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listHrisGroups - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_groups.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /hris/groups/{id}: + label: listHrisDependents + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_dependents.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /hris/dependents/{id}: get: - operationId: retrieveHrisGroup - summary: Retrieve Group - description: Retrieve a Group from any connected Hris software + operationId: retrieveHrisDependent + summary: Retrieve Dependent + description: Retrieve a Dependent from any connected Hris software parameters: - name: x-connection-token required: true @@ -8860,7 +6640,7 @@ paths: - name: id required: true in: path - description: id of the group you want to retrieve. + description: id of the dependent you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -8877,33 +6657,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedHrisGroupOutput' - tags: *ref_30 - x-speakeasy-group: hris.groups + $ref: '#/components/schemas/UnifiedHrisDependentOutput' + tags: *ref_26 + x-speakeasy-group: hris.dependents x-codeSamples: - lang: typescript - label: retrieveHrisGroup - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.groups.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisDependent + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.dependents.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveHrisGroup + label: retrieveHrisDependent source: |- from panora_sdk import Panora @@ -8912,13 +6674,13 @@ paths: ) - res = s.hris.groups.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.dependents.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveHrisGroup + label: retrieveHrisDependent source: |- package main @@ -8932,27 +6694,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Groups.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Dependents.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedHrisGroupOutput != nil { + if res.UnifiedHrisDependentOutput != nil { // handle response } } - lang: ruby - label: retrieveHrisGroup - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_groups.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_group_output.nil?\n # handle response\nend" - /hris/locations: + label: retrieveHrisDependent + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_dependents.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_dependent_output.nil?\n # handle response\nend" + /hris/employeepayrollruns: get: - operationId: listHrisLocations - summary: List Locations + operationId: listHrisEmployeePayrollRun + summary: List Employee Payroll Runs parameters: - name: x-connection-token required: true @@ -8994,44 +6752,25 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedHrisLocationOutput' - tags: &ref_31 - - hris/locations - x-speakeasy-group: hris.locations + $ref: >- + #/components/schemas/UnifiedHrisEmployeepayrollrunOutput + tags: &ref_27 + - hris/employeepayrollruns + x-speakeasy-group: hris.employeepayrollruns x-speakeasy-pagination: type: cursor inputs: - - name: cursor - in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor - x-codeSamples: - - lang: typescript - label: listHrisLocations - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.locations.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + - name: cursor + in: parameters + type: cursor + outputs: + nextCursor: $.next_cursor + x-codeSamples: + - lang: typescript + label: listHrisEmployeePayrollRun + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employeepayrollruns.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listHrisLocations + label: listHrisEmployeePayrollRun source: |- from panora_sdk import Panora @@ -9040,7 +6779,7 @@ paths: ) - res = s.hris.locations.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.employeepayrollruns.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -9050,16 +6789,16 @@ paths: if res is None: break - lang: go - label: listHrisLocations - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Locations.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listHrisEmployeePayrollRun + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Employeepayrollruns.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listHrisLocations - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_locations.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /hris/locations/{id}: + label: listHrisEmployeePayrollRun + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employeepayrollruns.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /hris/employeepayrollruns/{id}: get: - operationId: retrieveHrisLocation - summary: Retrieve Location - description: Retrieve a Location from any connected Hris software + operationId: retrieveHrisEmployeePayrollRun + summary: Retrieve Employee Payroll Run + description: Retrieve Employee Payroll Run from any connected Hris software parameters: - name: x-connection-token required: true @@ -9070,7 +6809,7 @@ paths: - name: id required: true in: path - description: id of the location you want to retrieve. + description: id of the employeepayrollrun you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -9087,33 +6826,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedHrisLocationOutput' - tags: *ref_31 - x-speakeasy-group: hris.locations + $ref: '#/components/schemas/UnifiedHrisEmployeepayrollrunOutput' + tags: *ref_27 + x-speakeasy-group: hris.employeepayrollruns x-codeSamples: - lang: typescript - label: retrieveHrisLocation - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.locations.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisEmployeePayrollRun + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employeepayrollruns.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveHrisLocation + label: retrieveHrisEmployeePayrollRun source: |- from panora_sdk import Panora @@ -9122,13 +6843,13 @@ paths: ) - res = s.hris.locations.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.employeepayrollruns.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveHrisLocation + label: retrieveHrisEmployeePayrollRun source: |- package main @@ -9142,27 +6863,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Locations.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Employeepayrollruns.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedHrisLocationOutput != nil { + if res.UnifiedHrisEmployeepayrollrunOutput != nil { // handle response } } - lang: ruby - label: retrieveHrisLocation - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_locations.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_location_output.nil?\n # handle response\nend" - /hris/paygroups: + label: retrieveHrisEmployeePayrollRun + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employeepayrollruns.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_employeepayrollrun_output.nil?\n # handle response\nend" + /hris/employees: get: - operationId: listHrisPaygroups - summary: List Pay Groups + operationId: listHrisEmployees + summary: List Employees parameters: - name: x-connection-token required: true @@ -9204,10 +6921,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedHrisPaygroupOutput' - tags: &ref_32 - - hris/paygroups - x-speakeasy-group: hris.paygroups + $ref: '#/components/schemas/UnifiedHrisEmployeeOutput' + tags: &ref_28 + - hris/employees + x-speakeasy-group: hris.employees x-speakeasy-pagination: type: cursor inputs: @@ -9218,30 +6935,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listHrisPaygroups - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.paygroups.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listHrisEmployees + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employees.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listHrisPaygroups + label: listHrisEmployees source: |- from panora_sdk import Panora @@ -9250,7 +6947,7 @@ paths: ) - res = s.hris.paygroups.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.employees.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -9260,16 +6957,164 @@ paths: if res is None: break - lang: go - label: listHrisPaygroups - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Paygroups.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listHrisEmployees + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Employees.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listHrisPaygroups - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_paygroups.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /hris/paygroups/{id}: + label: listHrisEmployees + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employees.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createHrisEmployee + summary: Create Employees + description: Create Employees in any supported Hris software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original Hris software. + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedHrisEmployeeInput' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedHrisEmployeeOutput' + tags: *ref_28 + x-speakeasy-group: hris.employees + x-codeSamples: + - lang: typescript + label: createHrisEmployee + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employees.create({\n xConnectionToken: \"\",\n unifiedHrisEmployeeInput: {\n groups: [\n \"Group1\",\n \"Group2\",\n ],\n locations: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n employeeNumber: \"EMP001\",\n companyId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n firstName: \"John\",\n lastName: \"Doe\",\n preferredName: \"Johnny\",\n displayFullName: \"John Doe\",\n username: \"johndoe\",\n workEmail: \"john.doe@company.com\",\n personalEmail: \"john.doe@personal.com\",\n mobilePhoneNumber: \"+1234567890\",\n employments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n ssn: \"123-45-6789\",\n gender: \"MALE\",\n ethnicity: \"AMERICAN_INDIAN_OR_ALASKA_NATIVE\",\n maritalStatus: \"Married\",\n dateOfBirth: new Date(\"1990-01-01\"),\n startDate: new Date(\"2020-01-01\"),\n employmentStatus: \"ACTIVE\",\n terminationDate: new Date(\"2025-01-01\"),\n avatarUrl: \"https://example.com/avatar.jpg\",\n managerId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createHrisEmployee + source: |- + import dateutil.parser + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.hris.employees.create(x_connection_token="", unified_hris_employee_input={ + "groups": [ + "Group1", + "Group2", + ], + "locations": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + "employee_number": "EMP001", + "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "first_name": "John", + "last_name": "Doe", + "preferred_name": "Johnny", + "display_full_name": "John Doe", + "username": "johndoe", + "work_email": "john.doe@company.com", + "personal_email": "john.doe@personal.com", + "mobile_phone_number": "+1234567890", + "employments": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + "ssn": "123-45-6789", + "gender": "MALE", + "ethnicity": "AMERICAN_INDIAN_OR_ALASKA_NATIVE", + "marital_status": "Married", + "date_of_birth": dateutil.parser.isoparse("1990-01-01"), + "start_date": dateutil.parser.isoparse("2020-01-01"), + "employment_status": "ACTIVE", + "termination_date": dateutil.parser.isoparse("2025-01-01"), + "avatar_url": "https://example.com/avatar.jpg", + "manager_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "field_mappings": {}, + }) + + if res is not None: + # handle response + pass + - lang: go + label: createHrisEmployee + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Hris.Employees.Create(ctx, "", components.UnifiedHrisEmployeeInput{ + Groups: []string{ + "Group1", + "Group2", + }, + Locations: []string{ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }, + EmployeeNumber: gosdk.String("EMP001"), + CompanyID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + FirstName: gosdk.String("John"), + LastName: gosdk.String("Doe"), + PreferredName: gosdk.String("Johnny"), + DisplayFullName: gosdk.String("John Doe"), + Username: gosdk.String("johndoe"), + WorkEmail: gosdk.String("john.doe@company.com"), + PersonalEmail: gosdk.String("john.doe@personal.com"), + MobilePhoneNumber: gosdk.String("+1234567890"), + Employments: []string{ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }, + Ssn: gosdk.String("123-45-6789"), + Gender: gosdk.String("MALE"), + Ethnicity: gosdk.String("AMERICAN_INDIAN_OR_ALASKA_NATIVE"), + MaritalStatus: gosdk.String("Married"), + DateOfBirth: types.MustNewTimeFromString("1990-01-01"), + StartDate: types.MustNewTimeFromString("2020-01-01"), + EmploymentStatus: gosdk.String("ACTIVE"), + TerminationDate: types.MustNewTimeFromString("2025-01-01"), + AvatarURL: gosdk.String("https://example.com/avatar.jpg"), + ManagerID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + FieldMappings: &components.UnifiedHrisEmployeeInputFieldMappings{}, + }, nil) + if err != nil { + log.Fatal(err) + } + if res.UnifiedHrisEmployeeOutput != nil { + // handle response + } + } + - lang: ruby + label: createHrisEmployee + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employees.create(x_connection_token=\"\", unified_hris_employee_input=::OpenApiSDK::Shared::UnifiedHrisEmployeeInput.new(\n groups: [\n \"Group1\",\n \"Group2\",\n ],\n locations: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n employee_number: \"EMP001\",\n company_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n first_name: \"John\",\n last_name: \"Doe\",\n preferred_name: \"Johnny\",\n display_full_name: \"John Doe\",\n username: \"johndoe\",\n work_email: \"john.doe@company.com\",\n personal_email: \"john.doe@personal.com\",\n mobile_phone_number: \"+1234567890\",\n employments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n ssn: \"123-45-6789\",\n gender: \"MALE\",\n ethnicity: \"AMERICAN_INDIAN_OR_ALASKA_NATIVE\",\n marital_status: \"Married\",\n date_of_birth: DateTime.iso8601('1990-01-01'),\n start_date: DateTime.iso8601('2020-01-01'),\n employment_status: \"ACTIVE\",\n termination_date: DateTime.iso8601('2025-01-01'),\n avatar_url: \"https://example.com/avatar.jpg\",\n manager_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: ::OpenApiSDK::Shared::UnifiedHrisEmployeeInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_hris_employee_output.nil?\n # handle response\nend" + /hris/employees/{id}: get: - operationId: retrieveHrisPaygroup - summary: Retrieve Pay Group - description: Retrieve a Pay Group from any connected Hris software + operationId: retrieveHrisEmployee + summary: Retrieve Employee + description: Retrieve an Employee from any connected Hris software parameters: - name: x-connection-token required: true @@ -9280,7 +7125,7 @@ paths: - name: id required: true in: path - description: id of the paygroup you want to retrieve. + description: id of the employee you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -9297,33 +7142,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedHrisPaygroupOutput' - tags: *ref_32 - x-speakeasy-group: hris.paygroups + $ref: '#/components/schemas/UnifiedHrisEmployeeOutput' + tags: *ref_28 + x-speakeasy-group: hris.employees x-codeSamples: - lang: typescript - label: retrieveHrisPaygroup - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.paygroups.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisEmployee + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employees.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveHrisPaygroup + label: retrieveHrisEmployee source: |- from panora_sdk import Panora @@ -9332,13 +7159,13 @@ paths: ) - res = s.hris.paygroups.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.employees.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveHrisPaygroup + label: retrieveHrisEmployee source: |- package main @@ -9352,27 +7179,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Paygroups.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Employees.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedHrisPaygroupOutput != nil { + if res.UnifiedHrisEmployeeOutput != nil { // handle response } } - lang: ruby - label: retrieveHrisPaygroup - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_paygroups.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_paygroup_output.nil?\n # handle response\nend" - /hris/payrollruns: + label: retrieveHrisEmployee + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employees.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_employee_output.nil?\n # handle response\nend" + /hris/employerbenefits: get: - operationId: listHrisPayrollRuns - summary: List Payroll Runs + operationId: listHrisEmployerBenefits + summary: List Employer Benefits parameters: - name: x-connection-token required: true @@ -9414,10 +7237,11 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedHrisPayrollrunOutput' - tags: &ref_33 - - hris/payrollruns - x-speakeasy-group: hris.payrollruns + $ref: >- + #/components/schemas/UnifiedHrisEmployerbenefitOutput + tags: &ref_29 + - hris/employerbenefits + x-speakeasy-group: hris.employerbenefits x-speakeasy-pagination: type: cursor inputs: @@ -9428,30 +7252,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listHrisPayrollRuns - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.payrollruns.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listHrisEmployerBenefits + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employerbenefits.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listHrisPayrollRuns + label: listHrisEmployerBenefits source: |- from panora_sdk import Panora @@ -9460,7 +7264,7 @@ paths: ) - res = s.hris.payrollruns.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.employerbenefits.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -9470,16 +7274,16 @@ paths: if res is None: break - lang: go - label: listHrisPayrollRuns - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Payrollruns.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listHrisEmployerBenefits + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Employerbenefits.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listHrisPayrollRuns - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_payrollruns.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /hris/payrollruns/{id}: + label: listHrisEmployerBenefits + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employerbenefits.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /hris/employerbenefits/{id}: get: - operationId: retrieveHrisPayrollRun - summary: Retrieve Payroll Run - description: Retrieve a Payroll Run from any connected Hris software + operationId: retrieveHrisEmployerBenefit + summary: Retrieve Employer Benefit + description: Retrieve an Employer Benefit from any connected Hris software parameters: - name: x-connection-token required: true @@ -9490,7 +7294,7 @@ paths: - name: id required: true in: path - description: id of the payroll run you want to retrieve. + description: id of the employer benefit you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -9507,33 +7311,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedHrisPayrollrunOutput' - tags: *ref_33 - x-speakeasy-group: hris.payrollruns + $ref: '#/components/schemas/UnifiedHrisEmployerbenefitOutput' + tags: *ref_29 + x-speakeasy-group: hris.employerbenefits x-codeSamples: - lang: typescript - label: retrieveHrisPayrollRun - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.payrollruns.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisEmployerBenefit + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employerbenefits.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveHrisPayrollRun + label: retrieveHrisEmployerBenefit source: |- from panora_sdk import Panora @@ -9542,13 +7328,13 @@ paths: ) - res = s.hris.payrollruns.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.employerbenefits.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveHrisPayrollRun + label: retrieveHrisEmployerBenefit source: |- package main @@ -9562,27 +7348,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Payrollruns.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Employerbenefits.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedHrisPayrollrunOutput != nil { + if res.UnifiedHrisEmployerbenefitOutput != nil { // handle response } } - lang: ruby - label: retrieveHrisPayrollRun - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_payrollruns.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_payrollrun_output.nil?\n # handle response\nend" - /hris/timeoffs: + label: retrieveHrisEmployerBenefit + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employerbenefits.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_employerbenefit_output.nil?\n # handle response\nend" + /hris/employments: get: - operationId: listHrisTimeoffs - summary: List Time Offs + operationId: listHrisEmployments + summary: List Employments parameters: - name: x-connection-token required: true @@ -9624,10 +7406,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedHrisTimeoffOutput' - tags: &ref_34 - - hris/timeoffs - x-speakeasy-group: hris.timeoffs + $ref: '#/components/schemas/UnifiedHrisEmploymentOutput' + tags: &ref_30 + - hris/employments + x-speakeasy-group: hris.employments x-speakeasy-pagination: type: cursor inputs: @@ -9638,30 +7420,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listHrisTimeoffs - source: |- - import { Panora } from "@panora/sdk"; - - 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", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listHrisEmployments + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listHrisTimeoffs + label: listHrisEmployments source: |- from panora_sdk import Panora @@ -9670,7 +7432,7 @@ paths: ) - res = s.hris.timeoffs.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.employments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -9680,131 +7442,16 @@ paths: if res is None: break - lang: go - label: listHrisTimeoffs - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Timeoffs.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listHrisTimeoffs - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timeoffs.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createHrisTimeoff - summary: Create Timeoffs - description: Create Timeoffs in any supported Hris software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Hris software. - schema: - type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedHrisTimeoffInput' - responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedHrisTimeoffOutput' - tags: *ref_34 - x-speakeasy-group: hris.timeoffs - x-codeSamples: - - lang: typescript - label: createHrisTimeoff - source: |- - import { Panora } from "@panora/sdk"; - import { - UnifiedHrisTimeoffInputRequestType, - UnifiedHrisTimeoffInputStatus, - UnifiedHrisTimeoffInputUnits, - } from "@panora/sdk/models/components"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.timeoffs.create({ - xConnectionToken: "", - unifiedHrisTimeoffInput: { - employee: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - approver: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - status: UnifiedHrisTimeoffInputStatus.Requested, - employeeNote: "Annual vacation", - units: UnifiedHrisTimeoffInputUnits.Days, - amount: 5, - requestType: UnifiedHrisTimeoffInputRequestType.Vacation, - startTime: new Date("2024-07-01T09:00:00Z"), - endTime: new Date("2024-07-05T17:00:00Z"), - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: createHrisTimeoff - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.hris.timeoffs.create(x_connection_token="", unified_hris_timeoff_input={}) - - if res is not None: - # handle response - pass - - lang: go - label: createHrisTimeoff - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - unifiedHrisTimeoffInput := components.UnifiedHrisTimeoffInput{} - ctx := context.Background() - res, err := s.Hris.Timeoffs.Create(ctx, xConnectionToken, unifiedHrisTimeoffInput, nil) - if err != nil { - log.Fatal(err) - } - if res.UnifiedHrisTimeoffOutput != nil { - // handle response - } - } + label: listHrisEmployments + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Employments.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: createHrisTimeoff - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timeoffs.create(x_connection_token=\"\", unified_hris_timeoff_input=::OpenApiSDK::Shared::UnifiedHrisTimeoffInput.new(), remote_data=false)\n\nif ! res.unified_hris_timeoff_output.nil?\n # handle response\nend" - /hris/timeoffs/{id}: + label: listHrisEmployments + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /hris/employments/{id}: get: - operationId: retrieveHrisTimeoff - summary: Retrieve Time Off - description: Retrieve a Time Off from any connected Hris software + operationId: retrieveHrisEmployment + summary: Retrieve Employment + description: Retrieve an Employment from any connected Hris software parameters: - name: x-connection-token required: true @@ -9815,7 +7462,7 @@ paths: - name: id required: true in: path - description: id of the time off you want to retrieve. + description: id of the employment you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -9832,33 +7479,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedHrisTimeoffOutput' - tags: *ref_34 - x-speakeasy-group: hris.timeoffs + $ref: '#/components/schemas/UnifiedHrisEmploymentOutput' + tags: *ref_30 + x-speakeasy-group: hris.employments x-codeSamples: - lang: typescript - label: retrieveHrisTimeoff - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.timeoffs.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisEmployment + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employments.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveHrisTimeoff + label: retrieveHrisEmployment source: |- from panora_sdk import Panora @@ -9867,13 +7496,13 @@ paths: ) - res = s.hris.timeoffs.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.employments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveHrisTimeoff + label: retrieveHrisEmployment source: |- package main @@ -9887,27 +7516,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Timeoffs.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Employments.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedHrisTimeoffOutput != nil { + if res.UnifiedHrisEmploymentOutput != nil { // handle response } } - lang: ruby - label: retrieveHrisTimeoff - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timeoffs.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_timeoff_output.nil?\n # handle response\nend" - /hris/timeoffbalances: + label: retrieveHrisEmployment + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_employments.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_employment_output.nil?\n # handle response\nend" + /hris/groups: get: - operationId: listHrisTimeoffbalances - summary: List TimeoffBalances + operationId: listHrisGroups + summary: List Groups parameters: - name: x-connection-token required: true @@ -9949,10 +7574,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedHrisTimeoffbalanceOutput' - tags: &ref_35 - - hris/timeoffbalances - x-speakeasy-group: hris.timeoffbalances + $ref: '#/components/schemas/UnifiedHrisGroupOutput' + tags: &ref_31 + - hris/groups + x-speakeasy-group: hris.groups x-speakeasy-pagination: type: cursor inputs: @@ -9963,30 +7588,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listHrisTimeoffbalances - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.timeoffbalances.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listHrisGroups + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.groups.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listHrisTimeoffbalances + label: listHrisGroups source: |- from panora_sdk import Panora @@ -9995,7 +7600,7 @@ paths: ) - res = s.hris.timeoffbalances.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.groups.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -10005,16 +7610,16 @@ paths: if res is None: break - lang: go - label: listHrisTimeoffbalances - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Hris.Timeoffbalances.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listHrisGroups + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Groups.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listHrisTimeoffbalances - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timeoffbalances.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /hris/timeoffbalances/{id}: + label: listHrisGroups + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_groups.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /hris/groups/{id}: get: - operationId: retrieveHrisTimeoffbalance - summary: Retrieve Time off Balances - description: Retrieve Time off Balances from any connected Hris software + operationId: retrieveHrisGroup + summary: Retrieve Group + description: Retrieve a Group from any connected Hris software parameters: - name: x-connection-token required: true @@ -10025,7 +7630,7 @@ paths: - name: id required: true in: path - description: id of the timeoffbalance you want to retrieve. + description: id of the group you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -10042,33 +7647,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedHrisTimeoffbalanceOutput' - tags: *ref_35 - x-speakeasy-group: hris.timeoffbalances + $ref: '#/components/schemas/UnifiedHrisGroupOutput' + tags: *ref_31 + x-speakeasy-group: hris.groups x-codeSamples: - lang: typescript - label: retrieveHrisTimeoffbalance - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.timeoffbalances.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisGroup + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.groups.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveHrisTimeoffbalance + label: retrieveHrisGroup source: |- from panora_sdk import Panora @@ -10077,13 +7664,13 @@ paths: ) - res = s.hris.timeoffbalances.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.groups.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveHrisTimeoffbalance + label: retrieveHrisGroup source: |- package main @@ -10097,27 +7684,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Hris.Timeoffbalances.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Groups.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedHrisTimeoffbalanceOutput != nil { + if res.UnifiedHrisGroupOutput != nil { // handle response } } - lang: ruby - label: retrieveHrisTimeoffbalance - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timeoffbalances.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_timeoffbalance_output.nil?\n # handle response\nend" - /hris/timesheetentries: + label: retrieveHrisGroup + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_groups.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_group_output.nil?\n # handle response\nend" + /hris/locations: get: - operationId: listHrisTimesheetentries - summary: List Timesheetentries + operationId: listHrisLocations + summary: List Locations parameters: - name: x-connection-token required: true @@ -10159,10 +7742,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedHrisTimesheetEntryOutput' - tags: &ref_36 - - hris/timesheetentries - x-speakeasy-group: hris.timesheetentries + $ref: '#/components/schemas/UnifiedHrisLocationOutput' + tags: &ref_32 + - hris/locations + x-speakeasy-group: hris.locations x-speakeasy-pagination: type: cursor inputs: @@ -10173,93 +7756,38 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listHrisTimesheetentries + label: listHrisLocations + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.locations.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + - lang: python + label: listHrisLocations source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.hris.timesheetentries.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } + from panora_sdk import Panora - run(); - post: - operationId: createHrisTimesheetentry - summary: Create Timesheetentrys - description: Create Timesheetentrys in any supported Hris software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - description: Set to true to include data from the original Hris software. - schema: - type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedHrisTimesheetEntryInput' - responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedHrisTimesheetEntryOutput' - tags: *ref_36 - x-speakeasy-group: hris.timesheetentries - x-codeSamples: - - lang: typescript - label: createHrisTimesheetentry - source: |- - import { Panora } from "@panora/sdk"; + s = Panora( + api_key="", + ) - const panora = new Panora({ - apiKey: "", - }); - async function run() { - const result = await panora.hris.timesheetentries.create({ - xConnectionToken: "", - unifiedHrisTimesheetEntryInput: { - hoursWorked: 40, - startTime: new Date("2024-10-01T08:00:00Z"), - endTime: new Date("2024-10-01T16:00:00Z"), - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteWasDeleted: false, - fieldMappings: {}, - }, - }); + res = s.hris.locations.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - // Handle the result - console.log(result) - } + if res is not None: + while True: + # handle items - run(); - /hris/timesheetentries/{id}: + res = res.Next() + if res is None: + break + - lang: go + label: listHrisLocations + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Locations.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + - lang: ruby + label: listHrisLocations + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_locations.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /hris/locations/{id}: get: - operationId: retrieveHrisTimesheetentry - summary: Retrieve Timesheetentry - description: Retrieve an Timesheetentry from any connected Hris software + operationId: retrieveHrisLocation + summary: Retrieve Location + description: Retrieve a Location from any connected Hris software parameters: - name: x-connection-token required: true @@ -10270,7 +7798,7 @@ paths: - name: id required: true in: path - description: id of the timesheetentry you want to retrieve. + description: id of the location you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -10287,35 +7815,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedHrisTimesheetEntryOutput' - tags: *ref_36 - x-speakeasy-group: hris.timesheetentries + $ref: '#/components/schemas/UnifiedHrisLocationOutput' + tags: *ref_32 + x-speakeasy-group: hris.locations x-codeSamples: - lang: typescript - label: retrieveHrisTimesheetentry + label: retrieveHrisLocation + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.locations.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: retrieveHrisLocation source: |- - import { Panora } from "@panora/sdk"; + from panora_sdk import Panora - const panora = new Panora({ - apiKey: "", - }); + s = Panora( + api_key="", + ) - async function run() { - const result = await panora.hris.timesheetentries.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - // Handle the result - console.log(result) - } + res = s.hris.locations.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) - run(); - /marketingautomation/actions: + if res is not None: + # handle response + pass + - lang: go + label: retrieveHrisLocation + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Hris.Locations.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedHrisLocationOutput != nil { + // handle response + } + } + - lang: ruby + label: retrieveHrisLocation + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_locations.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_location_output.nil?\n # handle response\nend" + /hris/paygroups: get: - operationId: listMarketingautomationAction - summary: List Actions + operationId: listHrisPaygroups + summary: List Pay Groups parameters: - name: x-connection-token required: true @@ -10357,11 +7910,10 @@ paths: data: type: array items: - $ref: >- - #/components/schemas/UnifiedMarketingautomationActionOutput - tags: &ref_37 - - marketingautomation/actions - x-speakeasy-group: marketingautomation.actions + $ref: '#/components/schemas/UnifiedHrisPaygroupOutput' + tags: &ref_33 + - hris/paygroups + x-speakeasy-group: hris.paygroups x-speakeasy-pagination: type: cursor inputs: @@ -10370,32 +7922,12 @@ paths: type: cursor outputs: nextCursor: $.next_cursor - x-codeSamples: - - lang: typescript - label: listMarketingautomationAction - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.actions.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + x-codeSamples: + - lang: typescript + label: listHrisPaygroups + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.paygroups.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listMarketingautomationAction + label: listHrisPaygroups source: |- from panora_sdk import Panora @@ -10404,7 +7936,7 @@ paths: ) - res = s.marketingautomation.actions.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.paygroups.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -10414,15 +7946,16 @@ paths: if res is None: break - lang: go - label: listMarketingautomationAction - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Marketingautomation.Actions.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listHrisPaygroups + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Paygroups.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listMarketingautomationAction - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_actions.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createMarketingautomationAction - summary: Create Action - description: Create a action in any supported Marketingautomation software + label: listHrisPaygroups + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_paygroups.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /hris/paygroups/{id}: + get: + operationId: retrieveHrisPaygroup + summary: Retrieve Pay Group + description: Retrieve a Pay Group from any connected Hris software parameters: - name: x-connection-token required: true @@ -10430,53 +7963,35 @@ paths: description: The connection token schema: type: string + - name: id + required: true + in: path + description: id of the paygroup you want to retrieve. + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + schema: + type: string - name: remote_data required: false in: query - description: >- - Set to true to include data from the original Marketingautomation software. + description: Set to true to include data from the original Hris software. example: false schema: type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedMarketingautomationActionInput' responses: - '201': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationActionOutput' - tags: *ref_37 - x-speakeasy-group: marketingautomation.actions + $ref: '#/components/schemas/UnifiedHrisPaygroupOutput' + tags: *ref_33 + x-speakeasy-group: hris.paygroups x-codeSamples: - lang: typescript - label: createMarketingautomationAction - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.actions.create({ - xConnectionToken: "", - remoteData: false, - unifiedMarketingautomationActionInput: {}, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisPaygroup + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.paygroups.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createMarketingautomationAction + label: retrieveHrisPaygroup source: |- from panora_sdk import Panora @@ -10485,19 +8000,18 @@ paths: ) - res = s.marketingautomation.actions.create(x_connection_token="", unified_marketingautomation_action_input={}, remote_data=False) + res = s.hris.paygroups.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: createMarketingautomationAction + label: retrieveHrisPaygroup source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" "log" ) @@ -10506,28 +8020,110 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedMarketingautomationActionInput := components.UnifiedMarketingautomationActionInput{} - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Actions.Create(ctx, xConnectionToken, unifiedMarketingautomationActionInput, remoteData) + res, err := s.Hris.Paygroups.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationActionOutput != nil { + if res.UnifiedHrisPaygroupOutput != nil { // handle response } } - lang: ruby - label: createMarketingautomationAction - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_actions.create(x_connection_token=\"\", unified_marketingautomation_action_input=::OpenApiSDK::Shared::UnifiedMarketingautomationActionInput.new(), remote_data=false)\n\nif ! res.unified_marketingautomation_action_output.nil?\n # handle response\nend" - /marketingautomation/actions/{id}: + label: retrieveHrisPaygroup + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_paygroups.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_paygroup_output.nil?\n # handle response\nend" + /hris/payrollruns: get: - operationId: retrieveMarketingautomationAction - summary: Retrieve Actions - description: Retrieve Actions from any connected Marketingautomation software + operationId: listHrisPayrollRuns + summary: List Payroll Runs + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: true + description: Set to true to include data from the original software. + schema: + type: boolean + - name: limit + required: false + in: query + example: 10 + description: Set to get the number of records. + schema: + default: 50 + type: number + - name: cursor + required: false + in: query + example: 1b8b05bb-5273-4012-b520-8657b0b90874 + description: Set to get the number of records after this cursor. + schema: + type: string + responses: + '200': + description: '' + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: '#/components/schemas/UnifiedHrisPayrollrunOutput' + tags: &ref_34 + - hris/payrollruns + x-speakeasy-group: hris.payrollruns + x-speakeasy-pagination: + type: cursor + inputs: + - name: cursor + in: parameters + type: cursor + outputs: + nextCursor: $.next_cursor + x-codeSamples: + - lang: typescript + label: listHrisPayrollRuns + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.payrollruns.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + - lang: python + label: listHrisPayrollRuns + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.hris.payrollruns.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + + if res is not None: + while True: + # handle items + + res = res.Next() + if res is None: + break + - lang: go + label: listHrisPayrollRuns + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Payrollruns.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + - lang: ruby + label: listHrisPayrollRuns + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_payrollruns.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /hris/payrollruns/{id}: + get: + operationId: retrieveHrisPayrollRun + summary: Retrieve Payroll Run + description: Retrieve a Payroll Run from any connected Hris software parameters: - name: x-connection-token required: true @@ -10538,15 +8134,14 @@ paths: - name: id required: true in: path - description: id of the action you want to retrieve. + description: id of the payroll run you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query - description: >- - Set to true to include data from the original Marketingautomation software. + description: Set to true to include data from the original Hris software. example: false schema: type: boolean @@ -10556,33 +8151,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationActionOutput' - tags: *ref_37 - x-speakeasy-group: marketingautomation.actions + $ref: '#/components/schemas/UnifiedHrisPayrollrunOutput' + tags: *ref_34 + x-speakeasy-group: hris.payrollruns x-codeSamples: - lang: typescript - label: retrieveMarketingautomationAction - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.actions.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisPayrollRun + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.payrollruns.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveMarketingautomationAction + label: retrieveHrisPayrollRun source: |- from panora_sdk import Panora @@ -10591,13 +8168,13 @@ paths: ) - res = s.marketingautomation.actions.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.payrollruns.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveMarketingautomationAction + label: retrieveHrisPayrollRun source: |- package main @@ -10611,27 +8188,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Actions.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Payrollruns.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationActionOutput != nil { + if res.UnifiedHrisPayrollrunOutput != nil { // handle response } } - lang: ruby - label: retrieveMarketingautomationAction - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_actions.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_action_output.nil?\n # handle response\nend" - /marketingautomation/automations: + label: retrieveHrisPayrollRun + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_payrollruns.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_payrollrun_output.nil?\n # handle response\nend" + /hris/timeoffs: get: - operationId: listMarketingautomationAutomations - summary: List Automations + operationId: listHrisTimeoffs + summary: List Time Offs parameters: - name: x-connection-token required: true @@ -10673,11 +8246,10 @@ paths: data: type: array items: - $ref: >- - #/components/schemas/UnifiedMarketingautomationAutomationOutput - tags: &ref_38 - - marketingautomation/automations - x-speakeasy-group: marketingautomation.automations + $ref: '#/components/schemas/UnifiedHrisTimeoffOutput' + tags: &ref_35 + - hris/timeoffs + x-speakeasy-group: hris.timeoffs x-speakeasy-pagination: type: cursor inputs: @@ -10688,30 +8260,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listMarketingautomationAutomations - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.automations.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listHrisTimeoffs + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timeoffs.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listMarketingautomationAutomations + label: listHrisTimeoffs source: |- from panora_sdk import Panora @@ -10720,7 +8272,7 @@ paths: ) - res = s.marketingautomation.automations.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.timeoffs.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -10730,15 +8282,15 @@ paths: if res is None: break - lang: go - label: listMarketingautomationAutomations - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Marketingautomation.Automations.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listHrisTimeoffs + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Timeoffs.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listMarketingautomationAutomations - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_automations.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listHrisTimeoffs + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timeoffs.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createMarketingautomationAutomation - summary: Create Automation - description: Create a automation in any supported Marketingautomation software + operationId: createHrisTimeoff + summary: Create Timeoffs + description: Create Timeoffs in any supported Hris software parameters: - name: x-connection-token required: true @@ -10749,9 +8301,7 @@ paths: - name: remote_data required: false in: query - description: >- - Set to true to include data from the original Marketingautomation software. - example: false + description: Set to true to include data from the original Hris software. schema: type: boolean requestBody: @@ -10759,42 +8309,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationAutomationInput' + $ref: '#/components/schemas/UnifiedHrisTimeoffInput' responses: '201': description: '' content: application/json: schema: - $ref: >- - #/components/schemas/UnifiedMarketingautomationAutomationOutput - tags: *ref_38 - x-speakeasy-group: marketingautomation.automations + $ref: '#/components/schemas/UnifiedHrisTimeoffOutput' + tags: *ref_35 + x-speakeasy-group: hris.timeoffs x-codeSamples: - lang: typescript - label: createMarketingautomationAutomation - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.automations.create({ - xConnectionToken: "", - remoteData: false, - unifiedMarketingautomationAutomationInput: {}, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createHrisTimeoff + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timeoffs.create({\n xConnectionToken: \"\",\n unifiedHrisTimeoffInput: {\n employee: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n approver: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n status: \"REQUESTED\",\n employeeNote: \"Annual vacation\",\n units: \"DAYS\",\n amount: 5,\n requestType: \"VACATION\",\n startTime: new Date(\"2024-07-01T09:00:00Z\"),\n endTime: new Date(\"2024-07-05T17:00:00Z\"),\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createMarketingautomationAutomation + label: createHrisTimeoff source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -10802,20 +8334,32 @@ paths: ) - res = s.marketingautomation.automations.create(x_connection_token="", unified_marketingautomation_automation_input={}, remote_data=False) + res = s.hris.timeoffs.create(x_connection_token="", unified_hris_timeoff_input={ + "employee": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "approver": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "status": "REQUESTED", + "employee_note": "Annual vacation", + "units": "DAYS", + "amount": 5, + "request_type": "VACATION", + "start_time": dateutil.parser.isoparse("2024-07-01T09:00:00Z"), + "end_time": dateutil.parser.isoparse("2024-07-05T17:00:00Z"), + "field_mappings": {}, + }) if res is not None: # handle response pass - lang: go - label: createMarketingautomationAutomation + label: createHrisTimeoff source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -10823,28 +8367,35 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedMarketingautomationAutomationInput := components.UnifiedMarketingautomationAutomationInput{} - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Automations.Create(ctx, xConnectionToken, unifiedMarketingautomationAutomationInput, remoteData) + res, err := s.Hris.Timeoffs.Create(ctx, "", components.UnifiedHrisTimeoffInput{ + Employee: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Approver: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Status: gosdk.String("REQUESTED"), + EmployeeNote: gosdk.String("Annual vacation"), + Units: gosdk.String("DAYS"), + Amount: gosdk.Float64(5), + RequestType: gosdk.String("VACATION"), + StartTime: types.MustNewTimeFromString("2024-07-01T09:00:00Z"), + EndTime: types.MustNewTimeFromString("2024-07-05T17:00:00Z"), + FieldMappings: &components.UnifiedHrisTimeoffInputFieldMappings{}, + }, nil) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationAutomationOutput != nil { + if res.UnifiedHrisTimeoffOutput != nil { // handle response } } - lang: ruby - label: createMarketingautomationAutomation - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_automations.create(x_connection_token=\"\", unified_marketingautomation_automation_input=::OpenApiSDK::Shared::UnifiedMarketingautomationAutomationInput.new(), remote_data=false)\n\nif ! res.unified_marketingautomation_automation_output.nil?\n # handle response\nend" - /marketingautomation/automations/{id}: + label: createHrisTimeoff + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timeoffs.create(x_connection_token=\"\", unified_hris_timeoff_input=::OpenApiSDK::Shared::UnifiedHrisTimeoffInput.new(\n employee: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n approver: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n status: \"REQUESTED\",\n employee_note: \"Annual vacation\",\n units: \"DAYS\",\n amount: 5.0,\n request_type: \"VACATION\",\n start_time: DateTime.iso8601('2024-07-01T09:00:00Z'),\n end_time: DateTime.iso8601('2024-07-05T17:00:00Z'),\n field_mappings: ::OpenApiSDK::Shared::UnifiedHrisTimeoffInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_hris_timeoff_output.nil?\n # handle response\nend" + /hris/timeoffs/{id}: get: - operationId: retrieveMarketingautomationAutomation - summary: Retrieve Automation - description: Retrieve an Automation from any connected Marketingautomation software + operationId: retrieveHrisTimeoff + summary: Retrieve Time Off + description: Retrieve a Time Off from any connected Hris software parameters: - name: x-connection-token required: true @@ -10855,15 +8406,14 @@ paths: - name: id required: true in: path - description: id of the automation you want to retrieve. + description: id of the time off you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query - description: >- - Set to true to include data from the original Marketingautomation software. + description: Set to true to include data from the original Hris software. example: false schema: type: boolean @@ -10873,34 +8423,15 @@ paths: content: application/json: schema: - $ref: >- - #/components/schemas/UnifiedMarketingautomationAutomationOutput - tags: *ref_38 - x-speakeasy-group: marketingautomation.automations + $ref: '#/components/schemas/UnifiedHrisTimeoffOutput' + tags: *ref_35 + x-speakeasy-group: hris.timeoffs x-codeSamples: - lang: typescript - label: retrieveMarketingautomationAutomation - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.automations.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisTimeoff + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timeoffs.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveMarketingautomationAutomation + label: retrieveHrisTimeoff source: |- from panora_sdk import Panora @@ -10909,13 +8440,13 @@ paths: ) - res = s.marketingautomation.automations.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.timeoffs.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveMarketingautomationAutomation + label: retrieveHrisTimeoff source: |- package main @@ -10929,27 +8460,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Automations.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Timeoffs.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationAutomationOutput != nil { + if res.UnifiedHrisTimeoffOutput != nil { // handle response } } - lang: ruby - label: retrieveMarketingautomationAutomation - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_automations.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_automation_output.nil?\n # handle response\nend" - /marketingautomation/campaigns: + label: retrieveHrisTimeoff + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timeoffs.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_timeoff_output.nil?\n # handle response\nend" + /hris/timeoffbalances: get: - operationId: listMarketingautomationCampaigns - summary: List Campaigns + operationId: listHrisTimeoffbalances + summary: List TimeoffBalances parameters: - name: x-connection-token required: true @@ -10991,11 +8518,10 @@ paths: data: type: array items: - $ref: >- - #/components/schemas/UnifiedMarketingautomationCampaignOutput - tags: &ref_39 - - marketingautomation/campaigns - x-speakeasy-group: marketingautomation.campaigns + $ref: '#/components/schemas/UnifiedHrisTimeoffbalanceOutput' + tags: &ref_36 + - hris/timeoffbalances + x-speakeasy-group: hris.timeoffbalances x-speakeasy-pagination: type: cursor inputs: @@ -11006,30 +8532,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listMarketingautomationCampaigns - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.campaigns.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listHrisTimeoffbalances + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timeoffbalances.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listMarketingautomationCampaigns + label: listHrisTimeoffbalances source: |- from panora_sdk import Panora @@ -11038,7 +8544,7 @@ paths: ) - res = s.marketingautomation.campaigns.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.timeoffbalances.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -11048,120 +8554,16 @@ paths: if res is None: break - lang: go - label: listMarketingautomationCampaigns - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Marketingautomation.Campaigns.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listMarketingautomationCampaigns - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_campaigns.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createMarketingautomationCampaign - summary: Create Campaign - description: Create a campaign in any supported Marketingautomation software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - description: >- - Set to true to include data from the original Marketingautomation software. - example: false - schema: - type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedMarketingautomationCampaignInput' - responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedMarketingautomationCampaignOutput' - tags: *ref_39 - x-speakeasy-group: marketingautomation.campaigns - x-codeSamples: - - lang: typescript - label: createMarketingautomationCampaign - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.campaigns.create({ - xConnectionToken: "", - remoteData: false, - unifiedMarketingautomationCampaignInput: {}, - }); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: createMarketingautomationCampaign - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.marketingautomation.campaigns.create(x_connection_token="", unified_marketingautomation_campaign_input={}, remote_data=False) - - if res is not None: - # handle response - pass - - lang: go - label: createMarketingautomationCampaign - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - unifiedMarketingautomationCampaignInput := components.UnifiedMarketingautomationCampaignInput{} - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Marketingautomation.Campaigns.Create(ctx, xConnectionToken, unifiedMarketingautomationCampaignInput, remoteData) - if err != nil { - log.Fatal(err) - } - if res.UnifiedMarketingautomationCampaignOutput != nil { - // handle response - } - } + label: listHrisTimeoffbalances + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Timeoffbalances.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: createMarketingautomationCampaign - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_campaigns.create(x_connection_token=\"\", unified_marketingautomation_campaign_input=::OpenApiSDK::Shared::UnifiedMarketingautomationCampaignInput.new(), remote_data=false)\n\nif ! res.unified_marketingautomation_campaign_output.nil?\n # handle response\nend" - /marketingautomation/campaigns/{id}: + label: listHrisTimeoffbalances + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timeoffbalances.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /hris/timeoffbalances/{id}: get: - operationId: retrieveMarketingautomationCampaign - summary: Retrieve Campaign - description: Retrieve a Campaign from any connected Marketingautomation software + operationId: retrieveHrisTimeoffbalance + summary: Retrieve Time off Balances + description: Retrieve Time off Balances from any connected Hris software parameters: - name: x-connection-token required: true @@ -11172,15 +8574,14 @@ paths: - name: id required: true in: path - description: id of the campaign you want to retrieve. + description: id of the timeoffbalance you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query - description: >- - Set to true to include data from the original Marketingautomation software. + description: Set to true to include data from the original Hris software. example: false schema: type: boolean @@ -11188,35 +8589,17 @@ paths: '200': description: '' content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedMarketingautomationCampaignOutput' - tags: *ref_39 - x-speakeasy-group: marketingautomation.campaigns - x-codeSamples: - - lang: typescript - label: retrieveMarketingautomationCampaign - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.campaigns.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + application/json: + schema: + $ref: '#/components/schemas/UnifiedHrisTimeoffbalanceOutput' + tags: *ref_36 + x-speakeasy-group: hris.timeoffbalances + x-codeSamples: + - lang: typescript + label: retrieveHrisTimeoffbalance + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timeoffbalances.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveMarketingautomationCampaign + label: retrieveHrisTimeoffbalance source: |- from panora_sdk import Panora @@ -11225,13 +8608,13 @@ paths: ) - res = s.marketingautomation.campaigns.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.timeoffbalances.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveMarketingautomationCampaign + label: retrieveHrisTimeoffbalance source: |- package main @@ -11245,27 +8628,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Campaigns.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Timeoffbalances.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationCampaignOutput != nil { + if res.UnifiedHrisTimeoffbalanceOutput != nil { // handle response } } - lang: ruby - label: retrieveMarketingautomationCampaign - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_campaigns.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_campaign_output.nil?\n # handle response\nend" - /marketingautomation/contacts: + label: retrieveHrisTimeoffbalance + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timeoffbalances.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_timeoffbalance_output.nil?\n # handle response\nend" + /hris/timesheetentries: get: - operationId: listMarketingAutomationContacts - summary: List Contacts + operationId: listHrisTimesheetentries + summary: List Timesheetentries parameters: - name: x-connection-token required: true @@ -11307,11 +8686,10 @@ paths: data: type: array items: - $ref: >- - #/components/schemas/UnifiedMarketingautomationContactOutput - tags: &ref_40 - - marketingautomation/contacts - x-speakeasy-group: marketingautomation.contacts + $ref: '#/components/schemas/UnifiedHrisTimesheetEntryOutput' + tags: &ref_37 + - hris/timesheetentries + x-speakeasy-group: hris.timesheetentries x-speakeasy-pagination: type: cursor inputs: @@ -11322,30 +8700,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listMarketingAutomationContacts - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.contacts.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listHrisTimesheetentries + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timesheetentries.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listMarketingAutomationContacts + label: listHrisTimesheetentries source: |- from panora_sdk import Panora @@ -11354,7 +8712,7 @@ paths: ) - res = s.marketingautomation.contacts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.timesheetentries.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -11364,15 +8722,15 @@ paths: if res is None: break - lang: go - label: listMarketingAutomationContacts - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Marketingautomation.Contacts.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listHrisTimesheetentries + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Hris.Timesheetentries.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listMarketingAutomationContacts - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_contacts.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listHrisTimesheetentries + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timesheetentries.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createMarketingAutomationContact - summary: Create Contact - description: Create a contact in any supported Marketingautomation software + operationId: createHrisTimesheetentry + summary: Create Timesheetentrys + description: Create Timesheetentrys in any supported Hris software parameters: - name: x-connection-token required: true @@ -11383,9 +8741,7 @@ paths: - name: remote_data required: false in: query - description: >- - Set to true to include data from the original Marketingautomation software. - example: false + description: Set to true to include data from the original Hris software. schema: type: boolean requestBody: @@ -11393,41 +8749,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationContactInput' + $ref: '#/components/schemas/UnifiedHrisTimesheetEntryInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationContactOutput' - tags: *ref_40 - x-speakeasy-group: marketingautomation.contacts + $ref: '#/components/schemas/UnifiedHrisTimesheetEntryOutput' + tags: *ref_37 + x-speakeasy-group: hris.timesheetentries x-codeSamples: - lang: typescript - label: createMarketingAutomationContact - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.contacts.create({ - xConnectionToken: "", - remoteData: false, - unifiedMarketingautomationContactInput: {}, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createHrisTimesheetentry + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timesheetentries.create({\n xConnectionToken: \"\",\n unifiedHrisTimesheetEntryInput: {\n hoursWorked: 40,\n startTime: new Date(\"2024-10-01T08:00:00Z\"),\n endTime: new Date(\"2024-10-01T16:00:00Z\"),\n employeeId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteWasDeleted: false,\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createMarketingAutomationContact + label: createHrisTimesheetentry source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -11435,20 +8774,28 @@ paths: ) - res = s.marketingautomation.contacts.create(x_connection_token="", unified_marketingautomation_contact_input={}, remote_data=False) + res = s.hris.timesheetentries.create(x_connection_token="", unified_hris_timesheet_entry_input={ + "hours_worked": 40, + "start_time": dateutil.parser.isoparse("2024-10-01T08:00:00Z"), + "end_time": dateutil.parser.isoparse("2024-10-01T16:00:00Z"), + "employee_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "remote_was_deleted": False, + "field_mappings": {}, + }) if res is not None: # handle response pass - lang: go - label: createMarketingAutomationContact + label: createHrisTimesheetentry source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -11456,28 +8803,31 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedMarketingautomationContactInput := components.UnifiedMarketingautomationContactInput{} - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Contacts.Create(ctx, xConnectionToken, unifiedMarketingautomationContactInput, remoteData) + res, err := s.Hris.Timesheetentries.Create(ctx, "", components.UnifiedHrisTimesheetEntryInput{ + HoursWorked: gosdk.Float64(40), + StartTime: types.MustNewTimeFromString("2024-10-01T08:00:00Z"), + EndTime: types.MustNewTimeFromString("2024-10-01T16:00:00Z"), + EmployeeID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + RemoteWasDeleted: gosdk.Bool(false), + FieldMappings: &components.UnifiedHrisTimesheetEntryInputFieldMappings{}, + }, nil) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationContactOutput != nil { + if res.UnifiedHrisTimesheetEntryOutput != nil { // handle response } } - lang: ruby - label: createMarketingAutomationContact - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_contacts.create(x_connection_token=\"\", unified_marketingautomation_contact_input=::OpenApiSDK::Shared::UnifiedMarketingautomationContactInput.new(), remote_data=false)\n\nif ! res.unified_marketingautomation_contact_output.nil?\n # handle response\nend" - /marketingautomation/contacts/{id}: + label: createHrisTimesheetentry + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timesheetentries.create(x_connection_token=\"\", unified_hris_timesheet_entry_input=::OpenApiSDK::Shared::UnifiedHrisTimesheetEntryInput.new(\n hours_worked: 40.0,\n start_time: DateTime.iso8601('2024-10-01T08:00:00Z'),\n end_time: DateTime.iso8601('2024-10-01T16:00:00Z'),\n employee_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remote_was_deleted: false,\n field_mappings: ::OpenApiSDK::Shared::UnifiedHrisTimesheetEntryInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_hris_timesheet_entry_output.nil?\n # handle response\nend" + /hris/timesheetentries/{id}: get: - operationId: retrieveMarketingAutomationContact - summary: Retrieve Contacts - description: Retrieve Contacts from any connected Marketingautomation software + operationId: retrieveHrisTimesheetentry + summary: Retrieve Timesheetentry + description: Retrieve an Timesheetentry from any connected Hris software parameters: - name: x-connection-token required: true @@ -11488,15 +8838,14 @@ paths: - name: id required: true in: path - description: id of the contact you want to retrieve. + description: id of the timesheetentry you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query - description: >- - Set to true to include data from the original Marketingautomation software. + description: Set to true to include data from the original Hris software. example: false schema: type: boolean @@ -11506,33 +8855,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationContactOutput' - tags: *ref_40 - x-speakeasy-group: marketingautomation.contacts + $ref: '#/components/schemas/UnifiedHrisTimesheetEntryOutput' + tags: *ref_37 + x-speakeasy-group: hris.timesheetentries x-codeSamples: - lang: typescript - label: retrieveMarketingAutomationContact - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.contacts.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveHrisTimesheetentry + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timesheetentries.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveMarketingAutomationContact + label: retrieveHrisTimesheetentry source: |- from panora_sdk import Panora @@ -11541,13 +8872,13 @@ paths: ) - res = s.marketingautomation.contacts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.timesheetentries.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveMarketingAutomationContact + label: retrieveHrisTimesheetentry source: |- package main @@ -11561,27 +8892,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Contacts.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Hris.Timesheetentries.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationContactOutput != nil { + if res.UnifiedHrisTimesheetEntryOutput != nil { // handle response } } - lang: ruby - label: retrieveMarketingAutomationContact - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_contacts.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_contact_output.nil?\n # handle response\nend" - /marketingautomation/emails: + label: retrieveHrisTimesheetentry + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.hris_timesheetentries.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_hris_timesheet_entry_output.nil?\n # handle response\nend" + /marketingautomation/actions: get: - operationId: listMarketingautomationEmails - summary: List Emails + operationId: listMarketingautomationAction + summary: List Actions parameters: - name: x-connection-token required: true @@ -11624,10 +8951,10 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedMarketingautomationEmailOutput - tags: &ref_41 - - marketingautomation/emails - x-speakeasy-group: marketingautomation.emails + #/components/schemas/UnifiedMarketingautomationActionOutput + tags: &ref_38 + - marketingautomation/actions + x-speakeasy-group: marketingautomation.actions x-speakeasy-pagination: type: cursor inputs: @@ -11638,30 +8965,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listMarketingautomationEmails - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.emails.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listMarketingautomationAction + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.actions.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listMarketingautomationEmails + label: listMarketingautomationAction source: |- from panora_sdk import Panora @@ -11670,7 +8977,7 @@ paths: ) - res = s.marketingautomation.emails.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.marketingautomation.actions.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -11680,16 +8987,98 @@ paths: if res is None: break - lang: go - label: listMarketingautomationEmails - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Marketingautomation.Emails.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listMarketingautomationAction + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Marketingautomation.Actions.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + - lang: ruby + label: listMarketingautomationAction + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_actions.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createMarketingautomationAction + summary: Create Action + description: Create a action in any supported Marketingautomation software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + description: >- + Set to true to include data from the original Marketingautomation software. + example: false + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedMarketingautomationActionInput' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedMarketingautomationActionOutput' + tags: *ref_38 + x-speakeasy-group: marketingautomation.actions + x-codeSamples: + - lang: typescript + label: createMarketingautomationAction + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.actions.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedMarketingautomationActionInput: {},\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createMarketingautomationAction + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.marketingautomation.actions.create(x_connection_token="", unified_marketingautomation_action_input={}, remote_data=False) + + if res is not None: + # handle response + pass + - lang: go + label: createMarketingautomationAction + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Marketingautomation.Actions.Create(ctx, "", components.UnifiedMarketingautomationActionInput{}, gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedMarketingautomationActionOutput != nil { + // handle response + } + } - lang: ruby - label: listMarketingautomationEmails - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_emails.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /marketingautomation/emails/{id}: + label: createMarketingautomationAction + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_actions.create(x_connection_token=\"\", unified_marketingautomation_action_input=::OpenApiSDK::Shared::UnifiedMarketingautomationActionInput.new(), remote_data=false)\n\nif ! res.unified_marketingautomation_action_output.nil?\n # handle response\nend" + /marketingautomation/actions/{id}: get: - operationId: retrieveMarketingautomationEmail - summary: Retrieve Email - description: Retrieve an Email from any connected Marketingautomation software + operationId: retrieveMarketingautomationAction + summary: Retrieve Actions + description: Retrieve Actions from any connected Marketingautomation software parameters: - name: x-connection-token required: true @@ -11700,7 +9089,7 @@ paths: - name: id required: true in: path - description: id of the email you want to retrieve. + description: id of the action you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -11718,33 +9107,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationEmailOutput' - tags: *ref_41 - x-speakeasy-group: marketingautomation.emails + $ref: '#/components/schemas/UnifiedMarketingautomationActionOutput' + tags: *ref_38 + x-speakeasy-group: marketingautomation.actions x-codeSamples: - lang: typescript - label: retrieveMarketingautomationEmail - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.emails.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveMarketingautomationAction + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.actions.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveMarketingautomationEmail + label: retrieveMarketingautomationAction source: |- from panora_sdk import Panora @@ -11753,13 +9124,13 @@ paths: ) - res = s.marketingautomation.emails.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.actions.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveMarketingautomationEmail + label: retrieveMarketingautomationAction source: |- package main @@ -11773,27 +9144,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Emails.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Marketingautomation.Actions.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationEmailOutput != nil { + if res.UnifiedMarketingautomationActionOutput != nil { // handle response } } - lang: ruby - label: retrieveMarketingautomationEmail - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_emails.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_email_output.nil?\n # handle response\nend" - /marketingautomation/events: + label: retrieveMarketingautomationAction + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_actions.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_action_output.nil?\n # handle response\nend" + /marketingautomation/automations: get: - operationId: listMarketingAutomationEvents - summary: List Events + operationId: listMarketingautomationAutomations + summary: List Automations parameters: - name: x-connection-token required: true @@ -11836,10 +9203,10 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedMarketingautomationEventOutput - tags: &ref_42 - - marketingautomation/events - x-speakeasy-group: marketingautomation.events + #/components/schemas/UnifiedMarketingautomationAutomationOutput + tags: &ref_39 + - marketingautomation/automations + x-speakeasy-group: marketingautomation.automations x-speakeasy-pagination: type: cursor inputs: @@ -11850,30 +9217,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listMarketingAutomationEvents - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.events.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listMarketingautomationAutomations + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.automations.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listMarketingAutomationEvents + label: listMarketingautomationAutomations source: |- from panora_sdk import Panora @@ -11882,7 +9229,7 @@ paths: ) - res = s.marketingautomation.events.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.marketingautomation.automations.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -11892,16 +9239,99 @@ paths: if res is None: break - lang: go - label: listMarketingAutomationEvents - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Marketingautomation.Events.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listMarketingautomationAutomations + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Marketingautomation.Automations.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listMarketingAutomationEvents - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_events.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /marketingautomation/events/{id}: + label: listMarketingautomationAutomations + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_automations.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createMarketingautomationAutomation + summary: Create Automation + description: Create a automation in any supported Marketingautomation software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + description: >- + Set to true to include data from the original Marketingautomation software. + example: false + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedMarketingautomationAutomationInput' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: >- + #/components/schemas/UnifiedMarketingautomationAutomationOutput + tags: *ref_39 + x-speakeasy-group: marketingautomation.automations + x-codeSamples: + - lang: typescript + label: createMarketingautomationAutomation + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.automations.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedMarketingautomationAutomationInput: {},\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createMarketingautomationAutomation + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.marketingautomation.automations.create(x_connection_token="", unified_marketingautomation_automation_input={}, remote_data=False) + + if res is not None: + # handle response + pass + - lang: go + label: createMarketingautomationAutomation + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Marketingautomation.Automations.Create(ctx, "", components.UnifiedMarketingautomationAutomationInput{}, gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedMarketingautomationAutomationOutput != nil { + // handle response + } + } + - lang: ruby + label: createMarketingautomationAutomation + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_automations.create(x_connection_token=\"\", unified_marketingautomation_automation_input=::OpenApiSDK::Shared::UnifiedMarketingautomationAutomationInput.new(), remote_data=false)\n\nif ! res.unified_marketingautomation_automation_output.nil?\n # handle response\nend" + /marketingautomation/automations/{id}: get: - operationId: retrieveMarketingautomationEvent - summary: Retrieve Event - description: Retrieve an Event from any connected Marketingautomation software + operationId: retrieveMarketingautomationAutomation + summary: Retrieve Automation + description: Retrieve an Automation from any connected Marketingautomation software parameters: - name: x-connection-token required: true @@ -11912,7 +9342,7 @@ paths: - name: id required: true in: path - description: id of the event you want to retrieve. + description: id of the automation you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -11930,33 +9360,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationEventOutput' - tags: *ref_42 - x-speakeasy-group: marketingautomation.events + $ref: >- + #/components/schemas/UnifiedMarketingautomationAutomationOutput + tags: *ref_39 + x-speakeasy-group: marketingautomation.automations x-codeSamples: - lang: typescript - label: retrieveMarketingautomationEvent - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.events.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveMarketingautomationAutomation + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.automations.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveMarketingautomationEvent + label: retrieveMarketingautomationAutomation source: |- from panora_sdk import Panora @@ -11965,13 +9378,13 @@ paths: ) - res = s.marketingautomation.events.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.automations.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveMarketingautomationEvent + label: retrieveMarketingautomationAutomation source: |- package main @@ -11985,27 +9398,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Events.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Marketingautomation.Automations.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationEventOutput != nil { + if res.UnifiedMarketingautomationAutomationOutput != nil { // handle response } } - lang: ruby - label: retrieveMarketingautomationEvent - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_events.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_event_output.nil?\n # handle response\nend" - /marketingautomation/lists: + label: retrieveMarketingautomationAutomation + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_automations.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_automation_output.nil?\n # handle response\nend" + /marketingautomation/campaigns: get: - operationId: listMarketingautomationLists - summary: List Lists + operationId: listMarketingautomationCampaigns + summary: List Campaigns parameters: - name: x-connection-token required: true @@ -12048,44 +9457,24 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedMarketingautomationListOutput - tags: &ref_43 - - marketingautomation/lists - x-speakeasy-group: marketingautomation.lists + #/components/schemas/UnifiedMarketingautomationCampaignOutput + tags: &ref_40 + - marketingautomation/campaigns + x-speakeasy-group: marketingautomation.campaigns x-speakeasy-pagination: type: cursor inputs: - name: cursor in: parameters - type: cursor - outputs: - nextCursor: $.next_cursor - x-codeSamples: - - lang: typescript - label: listMarketingautomationLists - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.lists.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + type: cursor + outputs: + nextCursor: $.next_cursor + x-codeSamples: + - lang: typescript + label: listMarketingautomationCampaigns + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.campaigns.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listMarketingautomationLists + label: listMarketingautomationCampaigns source: |- from panora_sdk import Panora @@ -12094,7 +9483,7 @@ paths: ) - res = s.marketingautomation.lists.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.marketingautomation.campaigns.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -12104,15 +9493,15 @@ paths: if res is None: break - lang: go - label: listMarketingautomationLists - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Marketingautomation.Lists.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listMarketingautomationCampaigns + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Marketingautomation.Campaigns.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listMarketingautomationLists - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_lists.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listMarketingautomationCampaigns + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_campaigns.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createMarketingautomationList - summary: Create Lists - description: Create Lists in any supported Marketingautomation software + operationId: createMarketingautomationCampaign + summary: Create Campaign + description: Create a campaign in any supported Marketingautomation software parameters: - name: x-connection-token required: true @@ -12125,6 +9514,7 @@ paths: in: query description: >- Set to true to include data from the original Marketingautomation software. + example: false schema: type: boolean requestBody: @@ -12132,39 +9522,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationListInput' + $ref: '#/components/schemas/UnifiedMarketingautomationCampaignInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationListOutput' - tags: *ref_43 - x-speakeasy-group: marketingautomation.lists + $ref: '#/components/schemas/UnifiedMarketingautomationCampaignOutput' + tags: *ref_40 + x-speakeasy-group: marketingautomation.campaigns x-codeSamples: - lang: typescript - label: createMarketingautomationList - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.lists.create({ - xConnectionToken: "", - unifiedMarketingautomationListInput: {}, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createMarketingautomationCampaign + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.campaigns.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedMarketingautomationCampaignInput: {},\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createMarketingautomationList + label: createMarketingautomationCampaign source: |- from panora_sdk import Panora @@ -12173,20 +9546,20 @@ paths: ) - res = s.marketingautomation.lists.create(x_connection_token="", unified_marketingautomation_list_input={}) + res = s.marketingautomation.campaigns.create(x_connection_token="", unified_marketingautomation_campaign_input={}, remote_data=False) if res is not None: # handle response pass - lang: go - label: createMarketingautomationList + label: createMarketingautomationCampaign source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -12194,26 +9567,24 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedMarketingautomationListInput := components.UnifiedMarketingautomationListInput{} ctx := context.Background() - res, err := s.Marketingautomation.Lists.Create(ctx, xConnectionToken, unifiedMarketingautomationListInput, nil) + res, err := s.Marketingautomation.Campaigns.Create(ctx, "", components.UnifiedMarketingautomationCampaignInput{}, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationListOutput != nil { + if res.UnifiedMarketingautomationCampaignOutput != nil { // handle response } } - lang: ruby - label: createMarketingautomationList - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_lists.create(x_connection_token=\"\", unified_marketingautomation_list_input=::OpenApiSDK::Shared::UnifiedMarketingautomationListInput.new(), remote_data=false)\n\nif ! res.unified_marketingautomation_list_output.nil?\n # handle response\nend" - /marketingautomation/lists/{id}: + label: createMarketingautomationCampaign + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_campaigns.create(x_connection_token=\"\", unified_marketingautomation_campaign_input=::OpenApiSDK::Shared::UnifiedMarketingautomationCampaignInput.new(), remote_data=false)\n\nif ! res.unified_marketingautomation_campaign_output.nil?\n # handle response\nend" + /marketingautomation/campaigns/{id}: get: - operationId: retrieveMarketingautomationList - summary: Retrieve List - description: Retrieve a List from any connected Marketingautomation software + operationId: retrieveMarketingautomationCampaign + summary: Retrieve Campaign + description: Retrieve a Campaign from any connected Marketingautomation software parameters: - name: x-connection-token required: true @@ -12224,7 +9595,7 @@ paths: - name: id required: true in: path - description: id of the list you want to retrieve. + description: id of the campaign you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -12242,33 +9613,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationListOutput' - tags: *ref_43 - x-speakeasy-group: marketingautomation.lists + $ref: '#/components/schemas/UnifiedMarketingautomationCampaignOutput' + tags: *ref_40 + x-speakeasy-group: marketingautomation.campaigns x-codeSamples: - lang: typescript - label: retrieveMarketingautomationList - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.lists.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveMarketingautomationCampaign + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.campaigns.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveMarketingautomationList + label: retrieveMarketingautomationCampaign source: |- from panora_sdk import Panora @@ -12277,13 +9630,13 @@ paths: ) - res = s.marketingautomation.lists.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.campaigns.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveMarketingautomationList + label: retrieveMarketingautomationCampaign source: |- package main @@ -12297,27 +9650,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Lists.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Marketingautomation.Campaigns.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationListOutput != nil { + if res.UnifiedMarketingautomationCampaignOutput != nil { // handle response } } - lang: ruby - label: retrieveMarketingautomationList - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_lists.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_list_output.nil?\n # handle response\nend" - /marketingautomation/messages: + label: retrieveMarketingautomationCampaign + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_campaigns.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_campaign_output.nil?\n # handle response\nend" + /marketingautomation/contacts: get: - operationId: listMarketingautomationMessages - summary: List Messages + operationId: listMarketingAutomationContacts + summary: List Contacts parameters: - name: x-connection-token required: true @@ -12360,10 +9709,10 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedMarketingautomationMessageOutput - tags: &ref_44 - - marketingautomation/messages - x-speakeasy-group: marketingautomation.messages + #/components/schemas/UnifiedMarketingautomationContactOutput + tags: &ref_41 + - marketingautomation/contacts + x-speakeasy-group: marketingautomation.contacts x-speakeasy-pagination: type: cursor inputs: @@ -12374,30 +9723,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listMarketingautomationMessages - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.messages.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listMarketingAutomationContacts + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.contacts.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listMarketingautomationMessages + label: listMarketingAutomationContacts source: |- from panora_sdk import Panora @@ -12406,7 +9735,7 @@ paths: ) - res = s.marketingautomation.messages.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.marketingautomation.contacts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -12416,16 +9745,98 @@ paths: if res is None: break - lang: go - label: listMarketingautomationMessages - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Marketingautomation.Messages.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listMarketingAutomationContacts + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Marketingautomation.Contacts.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listMarketingautomationMessages - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_messages.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /marketingautomation/messages/{id}: + label: listMarketingAutomationContacts + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_contacts.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createMarketingAutomationContact + summary: Create Contact + description: Create a contact in any supported Marketingautomation software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + description: >- + Set to true to include data from the original Marketingautomation software. + example: false + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedMarketingautomationContactInput' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedMarketingautomationContactOutput' + tags: *ref_41 + x-speakeasy-group: marketingautomation.contacts + x-codeSamples: + - lang: typescript + label: createMarketingAutomationContact + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.contacts.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedMarketingautomationContactInput: {},\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createMarketingAutomationContact + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.marketingautomation.contacts.create(x_connection_token="", unified_marketingautomation_contact_input={}, remote_data=False) + + if res is not None: + # handle response + pass + - lang: go + label: createMarketingAutomationContact + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Marketingautomation.Contacts.Create(ctx, "", components.UnifiedMarketingautomationContactInput{}, gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedMarketingautomationContactOutput != nil { + // handle response + } + } + - lang: ruby + label: createMarketingAutomationContact + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_contacts.create(x_connection_token=\"\", unified_marketingautomation_contact_input=::OpenApiSDK::Shared::UnifiedMarketingautomationContactInput.new(), remote_data=false)\n\nif ! res.unified_marketingautomation_contact_output.nil?\n # handle response\nend" + /marketingautomation/contacts/{id}: get: - operationId: retrieveMarketingautomationMessage - summary: Retrieve Messages - description: Retrieve Messages from any connected Marketingautomation software + operationId: retrieveMarketingAutomationContact + summary: Retrieve Contacts + description: Retrieve Contacts from any connected Marketingautomation software parameters: - name: x-connection-token required: true @@ -12436,7 +9847,7 @@ paths: - name: id required: true in: path - description: id of the message you want to retrieve. + description: id of the contact you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -12454,33 +9865,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationMessageOutput' - tags: *ref_44 - x-speakeasy-group: marketingautomation.messages + $ref: '#/components/schemas/UnifiedMarketingautomationContactOutput' + tags: *ref_41 + x-speakeasy-group: marketingautomation.contacts x-codeSamples: - lang: typescript - label: retrieveMarketingautomationMessage - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.messages.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveMarketingAutomationContact + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.contacts.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveMarketingautomationMessage + label: retrieveMarketingAutomationContact source: |- from panora_sdk import Panora @@ -12489,13 +9882,13 @@ paths: ) - res = s.marketingautomation.messages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.contacts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveMarketingautomationMessage + label: retrieveMarketingAutomationContact source: |- package main @@ -12509,27 +9902,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Messages.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Marketingautomation.Contacts.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationMessageOutput != nil { + if res.UnifiedMarketingautomationContactOutput != nil { // handle response } } - lang: ruby - label: retrieveMarketingautomationMessage - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_messages.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_message_output.nil?\n # handle response\nend" - /marketingautomation/templates: + label: retrieveMarketingAutomationContact + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_contacts.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_contact_output.nil?\n # handle response\nend" + /marketingautomation/emails: get: - operationId: listMarketingautomationTemplates - summary: List Templates + operationId: listMarketingautomationEmails + summary: List Emails parameters: - name: x-connection-token required: true @@ -12572,10 +9961,10 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedMarketingautomationTemplateOutput - tags: &ref_45 - - marketingautomation/templates - x-speakeasy-group: marketingautomation.templates + #/components/schemas/UnifiedMarketingautomationEmailOutput + tags: &ref_42 + - marketingautomation/emails + x-speakeasy-group: marketingautomation.emails x-speakeasy-pagination: type: cursor inputs: @@ -12586,30 +9975,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listMarketingautomationTemplates - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.templates.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listMarketingautomationEmails + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.emails.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listMarketingautomationTemplates + label: listMarketingautomationEmails source: |- from panora_sdk import Panora @@ -12618,7 +9987,7 @@ paths: ) - res = s.marketingautomation.templates.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.marketingautomation.emails.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -12628,116 +9997,16 @@ paths: if res is None: break - lang: go - label: listMarketingautomationTemplates - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Marketingautomation.Templates.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listMarketingautomationTemplates - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_templates.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createMarketingautomationTemplate - summary: Create Template - description: Create a template in any supported Marketingautomation software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - description: >- - Set to true to include data from the original Marketingautomation software. - schema: - type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedMarketingautomationTemplateInput' - responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedMarketingautomationTemplateOutput' - tags: *ref_45 - x-speakeasy-group: marketingautomation.templates - x-codeSamples: - - lang: typescript - label: createMarketingautomationTemplate - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.templates.create({ - xConnectionToken: "", - unifiedMarketingautomationTemplateInput: {}, - }); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: createMarketingautomationTemplate - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.marketingautomation.templates.create(x_connection_token="", unified_marketingautomation_template_input={}) - - if res is not None: - # handle response - pass - - lang: go - label: createMarketingautomationTemplate - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - unifiedMarketingautomationTemplateInput := components.UnifiedMarketingautomationTemplateInput{} - ctx := context.Background() - res, err := s.Marketingautomation.Templates.Create(ctx, xConnectionToken, unifiedMarketingautomationTemplateInput, nil) - if err != nil { - log.Fatal(err) - } - if res.UnifiedMarketingautomationTemplateOutput != nil { - // handle response - } - } + label: listMarketingautomationEmails + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Marketingautomation.Emails.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: createMarketingautomationTemplate - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_templates.create(x_connection_token=\"\", unified_marketingautomation_template_input=::OpenApiSDK::Shared::UnifiedMarketingautomationTemplateInput.new(), remote_data=false)\n\nif ! res.unified_marketingautomation_template_output.nil?\n # handle response\nend" - /marketingautomation/templates/{id}: + label: listMarketingautomationEmails + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_emails.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /marketingautomation/emails/{id}: get: - operationId: retrieveMarketingautomationTemplate - summary: Retrieve Template - description: Retrieve a Template from any connected Marketingautomation software + operationId: retrieveMarketingautomationEmail + summary: Retrieve Email + description: Retrieve an Email from any connected Marketingautomation software parameters: - name: x-connection-token required: true @@ -12748,7 +10017,7 @@ paths: - name: id required: true in: path - description: id of the template you want to retrieve. + description: id of the email you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -12766,33 +10035,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedMarketingautomationTemplateOutput' - tags: *ref_45 - x-speakeasy-group: marketingautomation.templates + $ref: '#/components/schemas/UnifiedMarketingautomationEmailOutput' + tags: *ref_42 + x-speakeasy-group: marketingautomation.emails x-codeSamples: - lang: typescript - label: retrieveMarketingautomationTemplate - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.templates.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveMarketingautomationEmail + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.emails.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveMarketingautomationTemplate + label: retrieveMarketingautomationEmail source: |- from panora_sdk import Panora @@ -12801,13 +10052,13 @@ paths: ) - res = s.marketingautomation.templates.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.emails.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveMarketingautomationTemplate + label: retrieveMarketingautomationEmail source: |- package main @@ -12821,27 +10072,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Templates.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Marketingautomation.Emails.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationTemplateOutput != nil { + if res.UnifiedMarketingautomationEmailOutput != nil { // handle response } } - lang: ruby - label: retrieveMarketingautomationTemplate - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_templates.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_template_output.nil?\n # handle response\nend" - /marketingautomation/users: + label: retrieveMarketingautomationEmail + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_emails.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_email_output.nil?\n # handle response\nend" + /marketingautomation/events: get: - operationId: listMarketingAutomationUsers - summary: List Users + operationId: listMarketingAutomationEvents + summary: List Events parameters: - name: x-connection-token required: true @@ -12884,10 +10131,10 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedMarketingautomationUserOutput - tags: &ref_46 - - marketingautomation/users - x-speakeasy-group: marketingautomation.users + #/components/schemas/UnifiedMarketingautomationEventOutput + tags: &ref_43 + - marketingautomation/events + x-speakeasy-group: marketingautomation.events x-speakeasy-pagination: type: cursor inputs: @@ -12898,30 +10145,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listMarketingAutomationUsers - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.users.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listMarketingAutomationEvents + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.events.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listMarketingAutomationUsers + label: listMarketingAutomationEvents source: |- from panora_sdk import Panora @@ -12930,7 +10157,7 @@ paths: ) - res = s.marketingautomation.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.marketingautomation.events.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -12940,16 +10167,16 @@ paths: if res is None: break - lang: go - label: listMarketingAutomationUsers - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Marketingautomation.Users.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listMarketingAutomationEvents + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Marketingautomation.Events.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listMarketingAutomationUsers - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_users.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /marketingautomation/users/{id}: + label: listMarketingAutomationEvents + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_events.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /marketingautomation/events/{id}: get: - operationId: retrieveMarketingAutomationUser - summary: Retrieve Users - description: Retrieve Users from any connected Marketingautomation software + operationId: retrieveMarketingautomationEvent + summary: Retrieve Event + description: Retrieve an Event from any connected Marketingautomation software parameters: - name: x-connection-token required: true @@ -12960,7 +10187,7 @@ paths: - name: id required: true in: path - description: id of the user you want to retrieve. + description: id of the event you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -12976,35 +10203,17 @@ paths: '200': description: '' content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedMarketingautomationUserOutput' - tags: *ref_46 - x-speakeasy-group: marketingautomation.users - x-codeSamples: - - lang: typescript - label: retrieveMarketingAutomationUser - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.marketingautomation.users.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + application/json: + schema: + $ref: '#/components/schemas/UnifiedMarketingautomationEventOutput' + tags: *ref_43 + x-speakeasy-group: marketingautomation.events + x-codeSamples: + - lang: typescript + label: retrieveMarketingautomationEvent + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.events.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveMarketingAutomationUser + label: retrieveMarketingautomationEvent source: |- from panora_sdk import Panora @@ -13013,13 +10222,13 @@ paths: ) - res = s.marketingautomation.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.events.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveMarketingAutomationUser + label: retrieveMarketingautomationEvent source: |- package main @@ -13033,27 +10242,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Marketingautomation.Users.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Marketingautomation.Events.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedMarketingautomationUserOutput != nil { + if res.UnifiedMarketingautomationEventOutput != nil { // handle response } } - lang: ruby - label: retrieveMarketingAutomationUser - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_users.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_user_output.nil?\n # handle response\nend" - /ats/activities: + label: retrieveMarketingautomationEvent + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_events.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_event_output.nil?\n # handle response\nend" + /marketingautomation/lists: get: - operationId: listAtsActivity - summary: List Activities + operationId: listMarketingautomationLists + summary: List Lists parameters: - name: x-connection-token required: true @@ -13095,10 +10300,11 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsActivityOutput' - tags: &ref_47 - - ats/activities - x-speakeasy-group: ats.activities + $ref: >- + #/components/schemas/UnifiedMarketingautomationListOutput + tags: &ref_44 + - marketingautomation/lists + x-speakeasy-group: marketingautomation.lists x-speakeasy-pagination: type: cursor inputs: @@ -13109,30 +10315,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsActivity - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.activities.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listMarketingautomationLists + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.lists.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsActivity + label: listMarketingautomationLists source: |- from panora_sdk import Panora @@ -13141,7 +10327,7 @@ paths: ) - res = s.ats.activities.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.marketingautomation.lists.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -13151,15 +10337,15 @@ paths: if res is None: break - lang: go - label: listAtsActivity - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Activities.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listMarketingautomationLists + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Marketingautomation.Lists.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsActivity - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_activities.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listMarketingautomationLists + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_lists.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createAtsActivity - summary: Create Activities - description: Create Activities in any supported Ats software + operationId: createMarketingautomationList + summary: Create Lists + description: Create Lists in any supported Marketingautomation software parameters: - name: x-connection-token required: true @@ -13170,8 +10356,8 @@ paths: - name: remote_data required: false in: query - description: Set to true to include data from the original Ats software. - example: false + description: >- + Set to true to include data from the original Marketingautomation software. schema: type: boolean requestBody: @@ -13179,55 +10365,212 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsActivityInput' + $ref: '#/components/schemas/UnifiedMarketingautomationListInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsActivityOutput' - tags: *ref_47 - x-speakeasy-group: ats.activities + $ref: '#/components/schemas/UnifiedMarketingautomationListOutput' + tags: *ref_44 + x-speakeasy-group: marketingautomation.lists x-codeSamples: - lang: typescript - label: createAtsActivity + label: createMarketingautomationList + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.lists.create({\n xConnectionToken: \"\",\n unifiedMarketingautomationListInput: {},\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createMarketingautomationList source: |- - import { Panora } from "@panora/sdk"; - import { UnifiedAtsActivityInputActivityType, UnifiedAtsActivityInputVisibility } from "@panora/sdk/models/components"; + from panora_sdk import Panora - const panora = new Panora({ - apiKey: "", - }); + s = Panora( + api_key="", + ) - 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", - }, - }, - }); - // Handle the result - console.log(result) + res = s.marketingautomation.lists.create(x_connection_token="", unified_marketingautomation_list_input={}) + + if res is not None: + # handle response + pass + - lang: go + label: createMarketingautomationList + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Marketingautomation.Lists.Create(ctx, "", components.UnifiedMarketingautomationListInput{}, nil) + if err != nil { + log.Fatal(err) + } + if res.UnifiedMarketingautomationListOutput != nil { + // handle response + } } + - lang: ruby + label: createMarketingautomationList + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_lists.create(x_connection_token=\"\", unified_marketingautomation_list_input=::OpenApiSDK::Shared::UnifiedMarketingautomationListInput.new(), remote_data=false)\n\nif ! res.unified_marketingautomation_list_output.nil?\n # handle response\nend" + /marketingautomation/lists/{id}: + get: + operationId: retrieveMarketingautomationList + summary: Retrieve List + description: Retrieve a List from any connected Marketingautomation software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: id + required: true + in: path + description: id of the list you want to retrieve. + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + schema: + type: string + - name: remote_data + required: false + in: query + description: >- + Set to true to include data from the original Marketingautomation software. + example: false + schema: + type: boolean + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedMarketingautomationListOutput' + tags: *ref_44 + x-speakeasy-group: marketingautomation.lists + x-codeSamples: + - lang: typescript + label: retrieveMarketingautomationList + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.lists.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: retrieveMarketingautomationList + source: |- + from panora_sdk import Panora - run(); + s = Panora( + api_key="", + ) + + + res = s.marketingautomation.lists.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + + if res is not None: + # handle response + pass + - lang: go + label: retrieveMarketingautomationList + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Marketingautomation.Lists.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedMarketingautomationListOutput != nil { + // handle response + } + } + - lang: ruby + label: retrieveMarketingautomationList + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_lists.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_list_output.nil?\n # handle response\nend" + /marketingautomation/messages: + get: + operationId: listMarketingautomationMessages + summary: List Messages + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: true + description: Set to true to include data from the original software. + schema: + type: boolean + - name: limit + required: false + in: query + example: 10 + description: Set to get the number of records. + schema: + default: 50 + type: number + - name: cursor + required: false + in: query + example: 1b8b05bb-5273-4012-b520-8657b0b90874 + description: Set to get the number of records after this cursor. + schema: + type: string + responses: + '200': + description: '' + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: >- + #/components/schemas/UnifiedMarketingautomationMessageOutput + tags: &ref_45 + - marketingautomation/messages + x-speakeasy-group: marketingautomation.messages + x-speakeasy-pagination: + type: cursor + inputs: + - name: cursor + in: parameters + type: cursor + outputs: + nextCursor: $.next_cursor + x-codeSamples: + - lang: typescript + label: listMarketingautomationMessages + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.messages.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: createAtsActivity + label: listMarketingautomationMessages source: |- - import dateutil.parser - import panora_sdk from panora_sdk import Panora s = Panora( @@ -13235,72 +10578,26 @@ paths: ) - res = s.ats.activities.create(x_connection_token="", unified_ats_activity_input={ - "activity_type": panora_sdk.UnifiedAtsActivityInputActivityType.NOTE, - "subject": "Email subject", - "body": "Dear Diana, I love you", - "visibility": panora_sdk.UnifiedAtsActivityInputVisibility.PUBLIC, - "candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "remote_created_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, remote_data=False) + res = s.marketingautomation.messages.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - lang: go - label: createAtsActivity - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "github.com/panoratech/go-sdk/types" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - unifiedAtsActivityInput := components.UnifiedAtsActivityInput{ - ActivityType: components.UnifiedAtsActivityInputActivityTypeNote.ToPointer(), - Subject: gosdk.String("Email subject"), - Body: gosdk.String("Dear Diana, I love you"), - Visibility: components.UnifiedAtsActivityInputVisibilityPublic.ToPointer(), - CandidateID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - RemoteCreatedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), - FieldMappings: map[string]any{ - "fav_dish": "broccoli", - "fav_color": "red", - }, - } + while True: + # handle items - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Ats.Activities.Create(ctx, xConnectionToken, unifiedAtsActivityInput, remoteData) - if err != nil { - log.Fatal(err) - } - if res.UnifiedAtsActivityOutput != nil { - // handle response - } - } + res = res.Next() + if res is None: + break + - lang: go + label: listMarketingautomationMessages + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Marketingautomation.Messages.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: createAtsActivity - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_activities.create(x_connection_token=\"\", unified_ats_activity_input=::OpenApiSDK::Shared::UnifiedAtsActivityInput.new(\n activity_type: ::OpenApiSDK::Shared::UnifiedAtsActivityInputActivityType::NOTE,\n subject: \"Email subject\",\n body: \"Dear Diana, I love you\",\n visibility: ::OpenApiSDK::Shared::UnifiedAtsActivityInputVisibility::PUBLIC,\n candidate_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remote_created_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n field_mappings: {\n \"online\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_ats_activity_output.nil?\n # handle response\nend" - /ats/activities/{id}: + label: listMarketingautomationMessages + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_messages.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /marketingautomation/messages/{id}: get: - operationId: retrieveAtsActivity - summary: Retrieve Activities - description: Retrieve Activities from any connected Ats software + operationId: retrieveMarketingautomationMessage + summary: Retrieve Messages + description: Retrieve Messages from any connected Marketingautomation software parameters: - name: x-connection-token required: true @@ -13311,14 +10608,15 @@ paths: - name: id required: true in: path - description: id of the activity you want to retrieve. + description: id of the message you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query - description: Set to true to include data from the original Ats software. + description: >- + Set to true to include data from the original Marketingautomation software. example: false schema: type: boolean @@ -13328,33 +10626,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsActivityOutput' - tags: *ref_47 - x-speakeasy-group: ats.activities + $ref: '#/components/schemas/UnifiedMarketingautomationMessageOutput' + tags: *ref_45 + x-speakeasy-group: marketingautomation.messages x-codeSamples: - lang: typescript - label: retrieveAtsActivity - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.activities.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveMarketingautomationMessage + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.messages.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsActivity + label: retrieveMarketingautomationMessage source: |- from panora_sdk import Panora @@ -13363,13 +10643,13 @@ paths: ) - res = s.ats.activities.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.messages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsActivity + label: retrieveMarketingautomationMessage source: |- package main @@ -13383,27 +10663,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Activities.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Marketingautomation.Messages.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsActivityOutput != nil { + if res.UnifiedMarketingautomationMessageOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsActivity - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_activities.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_activity_output.nil?\n # handle response\nend" - /ats/applications: + label: retrieveMarketingautomationMessage + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_messages.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_message_output.nil?\n # handle response\nend" + /marketingautomation/templates: get: - operationId: listAtsApplication - summary: List Applications + operationId: listMarketingautomationTemplates + summary: List Templates parameters: - name: x-connection-token required: true @@ -13445,10 +10721,11 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsApplicationOutput' - tags: &ref_48 - - ats/applications - x-speakeasy-group: ats.applications + $ref: >- + #/components/schemas/UnifiedMarketingautomationTemplateOutput + tags: &ref_46 + - marketingautomation/templates + x-speakeasy-group: marketingautomation.templates x-speakeasy-pagination: type: cursor inputs: @@ -13459,30 +10736,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsApplication - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.applications.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listMarketingautomationTemplates + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.templates.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsApplication + label: listMarketingautomationTemplates source: |- from panora_sdk import Panora @@ -13491,7 +10748,7 @@ paths: ) - res = s.ats.applications.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.marketingautomation.templates.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -13501,15 +10758,15 @@ paths: if res is None: break - lang: go - label: listAtsApplication - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Applications.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listMarketingautomationTemplates + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Marketingautomation.Templates.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsApplication - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_applications.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listMarketingautomationTemplates + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_templates.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createAtsApplication - summary: Create Applications - description: Create Applications in any supported Ats software + operationId: createMarketingautomationTemplate + summary: Create Template + description: Create a template in any supported Marketingautomation software parameters: - name: x-connection-token required: true @@ -13520,8 +10777,8 @@ paths: - name: remote_data required: false in: query - description: Set to true to include data from the original Ats software. - example: false + description: >- + Set to true to include data from the original Marketingautomation software. schema: type: boolean requestBody: @@ -13529,59 +10786,107 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsApplicationInput' + $ref: '#/components/schemas/UnifiedMarketingautomationTemplateInput' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedMarketingautomationTemplateOutput' + tags: *ref_46 + x-speakeasy-group: marketingautomation.templates + x-codeSamples: + - lang: typescript + label: createMarketingautomationTemplate + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.templates.create({\n xConnectionToken: \"\",\n unifiedMarketingautomationTemplateInput: {},\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createMarketingautomationTemplate + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.marketingautomation.templates.create(x_connection_token="", unified_marketingautomation_template_input={}) + + if res is not None: + # handle response + pass + - lang: go + label: createMarketingautomationTemplate + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Marketingautomation.Templates.Create(ctx, "", components.UnifiedMarketingautomationTemplateInput{}, nil) + if err != nil { + log.Fatal(err) + } + if res.UnifiedMarketingautomationTemplateOutput != nil { + // handle response + } + } + - lang: ruby + label: createMarketingautomationTemplate + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_templates.create(x_connection_token=\"\", unified_marketingautomation_template_input=::OpenApiSDK::Shared::UnifiedMarketingautomationTemplateInput.new(), remote_data=false)\n\nif ! res.unified_marketingautomation_template_output.nil?\n # handle response\nend" + /marketingautomation/templates/{id}: + get: + operationId: retrieveMarketingautomationTemplate + summary: Retrieve Template + description: Retrieve a Template from any connected Marketingautomation software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: id + required: true + in: path + description: id of the template you want to retrieve. + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + schema: + type: string + - name: remote_data + required: false + in: query + description: >- + Set to true to include data from the original Marketingautomation software. + example: false + schema: + type: boolean responses: - '201': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsApplicationOutput' - tags: *ref_48 - x-speakeasy-group: ats.applications + $ref: '#/components/schemas/UnifiedMarketingautomationTemplateOutput' + tags: *ref_46 + x-speakeasy-group: marketingautomation.templates x-codeSamples: - lang: typescript - label: createAtsApplication - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.applications.create({ - 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", - }, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveMarketingautomationTemplate + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.templates.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createAtsApplication + label: retrieveMarketingautomationTemplate source: |- - import dateutil.parser from panora_sdk import Panora s = Panora( @@ -13589,37 +10894,18 @@ paths: ) - res = s.ats.applications.create(x_connection_token="", unified_ats_application_input={ - "applied_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "rejected_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "offers": [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "12345678-1234-1234-1234-123456789012", - ], - "source": "Source Name", - "credited_to": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "current_stage": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "reject_reason": "Candidate not experienced enough", - "candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "job_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, remote_data=False) + res = s.marketingautomation.templates.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: createAtsApplication + label: retrieveMarketingautomationTemplate source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "github.com/panoratech/go-sdk/types" "context" "log" ) @@ -13628,45 +10914,111 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - unifiedAtsApplicationInput := components.UnifiedAtsApplicationInput{ - AppliedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), - RejectedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), - Offers: []string{ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "12345678-1234-1234-1234-123456789012", - }, - Source: gosdk.String("Source Name"), - CreditedTo: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - CurrentStage: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - RejectReason: gosdk.String("Candidate not experienced enough"), - CandidateID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - JobID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - FieldMappings: map[string]any{ - "fav_dish": "broccoli", - "fav_color": "red", - }, - } - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Applications.Create(ctx, xConnectionToken, unifiedAtsApplicationInput, remoteData) + res, err := s.Marketingautomation.Templates.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsApplicationOutput != nil { + if res.UnifiedMarketingautomationTemplateOutput != nil { // handle response } } - lang: ruby - label: createAtsApplication - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_applications.create(x_connection_token=\"\", unified_ats_application_input=::OpenApiSDK::Shared::UnifiedAtsApplicationInput.new(\n applied_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n rejected_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n offers: [\n \"\",\n ],\n source: \"Source Name\",\n credited_to: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n current_stage: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n reject_reason: \"Candidate not experienced enough\",\n candidate_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n job_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"online\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_ats_application_output.nil?\n # handle response\nend" - /ats/applications/{id}: + label: retrieveMarketingautomationTemplate + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_templates.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_template_output.nil?\n # handle response\nend" + /marketingautomation/users: get: - operationId: retrieveAtsApplication - summary: Retrieve Applications - description: Retrieve Applications from any connected Ats software + operationId: listMarketingAutomationUsers + summary: List Users + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: true + description: Set to true to include data from the original software. + schema: + type: boolean + - name: limit + required: false + in: query + example: 10 + description: Set to get the number of records. + schema: + default: 50 + type: number + - name: cursor + required: false + in: query + example: 1b8b05bb-5273-4012-b520-8657b0b90874 + description: Set to get the number of records after this cursor. + schema: + type: string + responses: + '200': + description: '' + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginatedDto' + - properties: + data: + type: array + items: + $ref: >- + #/components/schemas/UnifiedMarketingautomationUserOutput + tags: &ref_47 + - marketingautomation/users + x-speakeasy-group: marketingautomation.users + x-speakeasy-pagination: + type: cursor + inputs: + - name: cursor + in: parameters + type: cursor + outputs: + nextCursor: $.next_cursor + x-codeSamples: + - lang: typescript + label: listMarketingAutomationUsers + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.users.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + - lang: python + label: listMarketingAutomationUsers + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.marketingautomation.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + + if res is not None: + while True: + # handle items + + res = res.Next() + if res is None: + break + - lang: go + label: listMarketingAutomationUsers + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Marketingautomation.Users.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + - lang: ruby + label: listMarketingAutomationUsers + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_users.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /marketingautomation/users/{id}: + get: + operationId: retrieveMarketingAutomationUser + summary: Retrieve Users + description: Retrieve Users from any connected Marketingautomation software parameters: - name: x-connection-token required: true @@ -13677,14 +11029,15 @@ paths: - name: id required: true in: path - description: id of the application you want to retrieve. + description: id of the user you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query - description: Set to true to include data from the original Ats software. + description: >- + Set to true to include data from the original Marketingautomation software. example: false schema: type: boolean @@ -13694,33 +11047,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsApplicationOutput' - tags: *ref_48 - x-speakeasy-group: ats.applications + $ref: '#/components/schemas/UnifiedMarketingautomationUserOutput' + tags: *ref_47 + x-speakeasy-group: marketingautomation.users x-codeSamples: - lang: typescript - label: retrieveAtsApplication - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.applications.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveMarketingAutomationUser + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.users.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsApplication + label: retrieveMarketingAutomationUser source: |- from panora_sdk import Panora @@ -13729,13 +11064,13 @@ paths: ) - res = s.ats.applications.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsApplication + label: retrieveMarketingAutomationUser source: |- package main @@ -13749,27 +11084,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Applications.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Marketingautomation.Users.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsApplicationOutput != nil { + if res.UnifiedMarketingautomationUserOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsApplication - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_applications.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_application_output.nil?\n # handle response\nend" - /ats/attachments: + label: retrieveMarketingAutomationUser + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.marketingautomation_users.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_marketingautomation_user_output.nil?\n # handle response\nend" + /ats/activities: get: - operationId: listAtsAttachment - summary: List Attachments + operationId: listAtsActivity + summary: List Activities parameters: - name: x-connection-token required: true @@ -13811,10 +11142,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsAttachmentOutput' - tags: &ref_49 - - ats/attachments - x-speakeasy-group: ats.attachments + $ref: '#/components/schemas/UnifiedAtsActivityOutput' + tags: &ref_48 + - ats/activities + x-speakeasy-group: ats.activities x-speakeasy-pagination: type: cursor inputs: @@ -13825,30 +11156,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsAttachment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.attachments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsActivity + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.activities.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsAttachment + label: listAtsActivity source: |- from panora_sdk import Panora @@ -13857,7 +11168,7 @@ paths: ) - res = s.ats.attachments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.activities.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -13867,15 +11178,15 @@ paths: if res is None: break - lang: go - label: listAtsAttachment - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Attachments.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsActivity + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Activities.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsAttachment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_attachments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listAtsActivity + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_activities.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createAtsAttachment - summary: Create Attachments - description: Create Attachments in any supported ATS software + operationId: createAtsActivity + summary: Create Activities + description: Create Activities in any supported Ats software parameters: - name: x-connection-token required: true @@ -13895,55 +11206,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsAttachmentInput' + $ref: '#/components/schemas/UnifiedAtsActivityInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsAttachmentOutput' - tags: *ref_49 - x-speakeasy-group: ats.attachments + $ref: '#/components/schemas/UnifiedAtsActivityOutput' + tags: *ref_48 + x-speakeasy-group: ats.activities x-codeSamples: - lang: typescript - 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.ats.attachments.create({ - xConnectionToken: "", - 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 - console.log(result) - } - - run(); + label: createAtsActivity + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.activities.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAtsActivityInput: {\n activityType: \"NOTE\",\n subject: \"Email subject\",\n body: \"Dear Diana, I love you\",\n visibility: \"PUBLIC\",\n candidateId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteCreatedAt: new Date(\"2024-10-01T12:00:00Z\"),\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createAtsAttachment + label: createAtsActivity source: |- import dateutil.parser - import panora_sdk from panora_sdk import Panora s = Panora( @@ -13951,13 +11231,13 @@ paths: ) - res = s.ats.attachments.create(x_connection_token="", unified_ats_attachment_input={ - "file_url": "https://example.com/file.pdf", - "file_name": "file.pdf", - "attachment_type": panora_sdk.UnifiedAtsAttachmentInputAttachmentType.RESUME, - "remote_created_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "remote_modified_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + res = s.ats.activities.create(x_connection_token="", unified_ats_activity_input={ + "activity_type": "NOTE", + "subject": "Email subject", + "body": "Dear Diana, I love you", + "visibility": "PUBLIC", "candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "remote_created_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), "field_mappings": { "fav_dish": "broccoli", "fav_color": "red", @@ -13968,15 +11248,15 @@ paths: # handle response pass - lang: go - label: createAtsAttachment + label: createAtsActivity source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "github.com/panoratech/go-sdk/types" "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -13984,39 +11264,35 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedAtsAttachmentInput := components.UnifiedAtsAttachmentInput{ - FileURL: gosdk.String("https://example.com/file.pdf"), - FileName: gosdk.String("file.pdf"), - AttachmentType: components.UnifiedAtsAttachmentInputAttachmentTypeResume.ToPointer(), - RemoteCreatedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), - RemoteModifiedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + ctx := context.Background() + res, err := s.Ats.Activities.Create(ctx, "", components.UnifiedAtsActivityInput{ + ActivityType: gosdk.String("NOTE"), + Subject: gosdk.String("Email subject"), + Body: gosdk.String("Dear Diana, I love you"), + Visibility: gosdk.String("PUBLIC"), CandidateID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + RemoteCreatedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), FieldMappings: map[string]any{ "fav_dish": "broccoli", "fav_color": "red", }, - } - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Ats.Attachments.Create(ctx, xConnectionToken, unifiedAtsAttachmentInput, remoteData) + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsAttachmentOutput != nil { + if res.UnifiedAtsActivityOutput != nil { // handle response } } - lang: ruby - label: createAtsAttachment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_attachments.create(x_connection_token=\"\", unified_ats_attachment_input=::OpenApiSDK::Shared::UnifiedAtsAttachmentInput.new(\n file_url: \"https://example.com/file.pdf\",\n file_name: \"file.pdf\",\n attachment_type: ::OpenApiSDK::Shared::UnifiedAtsAttachmentInputAttachmentType::RESUME,\n remote_created_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n remote_modified_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n candidate_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"online\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_ats_attachment_output.nil?\n # handle response\nend" - /ats/attachments/{id}: + label: createAtsActivity + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_activities.create(x_connection_token=\"\", unified_ats_activity_input=::OpenApiSDK::Shared::UnifiedAtsActivityInput.new(\n activity_type: \"NOTE\",\n subject: \"Email subject\",\n body: \"Dear Diana, I love you\",\n visibility: \"PUBLIC\",\n candidate_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remote_created_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_ats_activity_output.nil?\n # handle response\nend" + /ats/activities/{id}: get: - operationId: retrieveAtsAttachment - summary: Retrieve Attachments - description: Retrieve Attachments from any connected Ats software + operationId: retrieveAtsActivity + summary: Retrieve Activities + description: Retrieve Activities from any connected Ats software parameters: - name: x-connection-token required: true @@ -14027,7 +11303,7 @@ paths: - name: id required: true in: path - description: id of the attachment you want to retrieve. + description: id of the activity you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -14044,33 +11320,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsAttachmentOutput' - tags: *ref_49 - x-speakeasy-group: ats.attachments + $ref: '#/components/schemas/UnifiedAtsActivityOutput' + tags: *ref_48 + x-speakeasy-group: ats.activities x-codeSamples: - lang: typescript - label: retrieveAtsAttachment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.attachments.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsActivity + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.activities.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsAttachment + label: retrieveAtsActivity source: |- from panora_sdk import Panora @@ -14079,13 +11337,13 @@ paths: ) - res = s.ats.attachments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.activities.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsAttachment + label: retrieveAtsActivity source: |- package main @@ -14099,27 +11357,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Attachments.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Activities.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsAttachmentOutput != nil { + if res.UnifiedAtsActivityOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsAttachment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_attachments.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_attachment_output.nil?\n # handle response\nend" - /ats/candidates: + label: retrieveAtsActivity + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_activities.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_activity_output.nil?\n # handle response\nend" + /ats/applications: get: - operationId: listAtsCandidate - summary: List Candidates + operationId: listAtsApplication + summary: List Applications parameters: - name: x-connection-token required: true @@ -14161,10 +11415,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsCandidateOutput' - tags: &ref_50 - - ats/candidates - x-speakeasy-group: ats.candidates + $ref: '#/components/schemas/UnifiedAtsApplicationOutput' + tags: &ref_49 + - ats/applications + x-speakeasy-group: ats.applications x-speakeasy-pagination: type: cursor inputs: @@ -14175,30 +11429,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsCandidate - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.candidates.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsApplication + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.applications.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsCandidate + label: listAtsApplication source: |- from panora_sdk import Panora @@ -14207,7 +11441,7 @@ paths: ) - res = s.ats.candidates.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.applications.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -14217,15 +11451,15 @@ paths: if res is None: break - lang: go - label: listAtsCandidate - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Candidates.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsApplication + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Applications.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsCandidate - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_candidates.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listAtsApplication + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_applications.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createAtsCandidate - summary: Create Candidates - description: Create Candidates in any supported Ats software + operationId: createAtsApplication + summary: Create Applications + description: Create Applications in any supported Ats software parameters: - name: x-connection-token required: true @@ -14245,87 +11479,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsCandidateInput' + $ref: '#/components/schemas/UnifiedAtsApplicationInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsCandidateOutput' - tags: *ref_50 - x-speakeasy-group: ats.candidates + $ref: '#/components/schemas/UnifiedAtsApplicationOutput' + tags: *ref_49 + x-speakeasy-group: ats.applications x-codeSamples: - lang: typescript - 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.ats.candidates.create({ - 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", - }, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createAtsApplication + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.applications.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAtsApplicationInput: {\n appliedAt: new Date(\"2024-10-01T12:00:00Z\"),\n rejectedAt: new Date(\"2024-10-01T12:00:00Z\"),\n offers: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n \"12345678-1234-1234-1234-123456789012\",\n ],\n source: \"Source Name\",\n creditedTo: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n currentStage: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n rejectReason: \"Candidate not experienced enough\",\n candidateId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n jobId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createAtsCandidate + label: createAtsApplication source: |- import dateutil.parser - import panora_sdk from panora_sdk import Panora s = Panora( @@ -14333,45 +11504,19 @@ paths: ) - res = s.ats.candidates.create(x_connection_token="", unified_ats_candidate_input={ - "first_name": "Joe", - "last_name": "Doe", - "company": "Acme", - "title": "Analyst", - "locations": "New York", - "is_private": False, - "email_reachable": True, - "remote_created_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "remote_modified_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "last_interaction_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "attachments": [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - "applications": [ + res = s.ats.applications.create(x_connection_token="", unified_ats_application_input={ + "applied_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "rejected_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "offers": [ "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "12345678-1234-1234-1234-123456789012", ], - "tags": [ - "tag_1", - "tag_2", - ], - "urls": [ - { - "url": "mywebsite.com", - "url_type": "WEBSITE", - }, - ], - "phone_numbers": [ - { - "phone_number": "+33660688899", - "phone_type": panora_sdk.PhoneType.WORK, - }, - ], - "email_addresses": [ - { - "email_address": "joedoe@gmail.com", - "email_address_type": panora_sdk.EmailAddressType.WORK, - }, - ], + "source": "Source Name", + "credited_to": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "current_stage": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "reject_reason": "Candidate not experienced enough", + "candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "job_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": { "fav_dish": "broccoli", "fav_color": "red", @@ -14382,15 +11527,15 @@ paths: # handle response pass - lang: go - label: createAtsCandidate + label: createAtsApplication source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "github.com/panoratech/go-sdk/types" "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -14398,79 +11543,41 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - unifiedAtsCandidateInput := components.UnifiedAtsCandidateInput{ - FirstName: gosdk.String("Joe"), - LastName: gosdk.String("Doe"), - Company: gosdk.String("Acme"), - Title: gosdk.String("Analyst"), - Locations: gosdk.String("New York"), - IsPrivate: gosdk.Bool(false), - EmailReachable: gosdk.Bool(true), - RemoteCreatedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), - RemoteModifiedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), - LastInteractionAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), - Attachments: []components.UnifiedAtsCandidateInputAttachments{ - components.CreateUnifiedAtsCandidateInputAttachmentsStr( - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ), - }, - Applications: []components.UnifiedAtsCandidateInputApplications{ - components.CreateUnifiedAtsCandidateInputApplicationsStr( + + ctx := context.Background() + res, err := s.Ats.Applications.Create(ctx, "", components.UnifiedAtsApplicationInput{ + AppliedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + RejectedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + Offers: []string{ "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ), - }, - Tags: []components.UnifiedAtsCandidateInputTags{ - components.CreateUnifiedAtsCandidateInputTagsStr( - "tag_1", - ), - components.CreateUnifiedAtsCandidateInputTagsStr( - "tag_2", - ), - }, - Urls: []components.URL{ - components.URL{ - URL: gosdk.String("mywebsite.com"), - URLType: gosdk.String("WEBSITE"), - }, - }, - PhoneNumbers: []components.Phone{ - components.Phone{ - PhoneNumber: gosdk.String("+33660688899"), - PhoneType: components.PhoneTypeWork.ToPointer(), - }, - }, - EmailAddresses: []components.Email{ - components.Email{ - EmailAddress: gosdk.String("joedoe@gmail.com"), - EmailAddressType: components.EmailAddressTypeWork.ToPointer(), - }, + "12345678-1234-1234-1234-123456789012", }, + Source: gosdk.String("Source Name"), + CreditedTo: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + CurrentStage: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + RejectReason: gosdk.String("Candidate not experienced enough"), + CandidateID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + JobID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), FieldMappings: map[string]any{ "fav_dish": "broccoli", "fav_color": "red", }, - } - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Ats.Candidates.Create(ctx, xConnectionToken, unifiedAtsCandidateInput, remoteData) + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsCandidateOutput != nil { + if res.UnifiedAtsApplicationOutput != nil { // handle response } } - lang: ruby - label: createAtsCandidate - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_candidates.create(x_connection_token=\"\", unified_ats_candidate_input=::OpenApiSDK::Shared::UnifiedAtsCandidateInput.new(\n first_name: \"Joe\",\n last_name: \"Doe\",\n company: \"Acme\",\n title: \"Analyst\",\n locations: \"New York\",\n is_private: false,\n email_reachable: true,\n remote_created_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n remote_modified_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n last_interaction_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n attachments: [\n \"\",\n ],\n applications: [\n \"\",\n ],\n tags: [\n \"\",\n ],\n urls: [\n ::OpenApiSDK::Shared::Url.new(\n url: \"http://limp-pastry.org\",\n url_type: \"\",\n ),\n ],\n phone_numbers: [\n ::OpenApiSDK::Shared::Phone.new(\n phone_number: \"\",\n phone_type: ::OpenApiSDK::Shared::PhoneType::MOBILE,\n ),\n ],\n email_addresses: [\n ::OpenApiSDK::Shared::Email.new(\n email_address: \"Bria99@gmail.com\",\n email_address_type: ::OpenApiSDK::Shared::EmailAddressType::WORK,\n ),\n ],\n field_mappings: {\n \"abnormally\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_ats_candidate_output.nil?\n # handle response\nend" - /ats/candidates/{id}: + label: createAtsApplication + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_applications.create(x_connection_token=\"\", unified_ats_application_input=::OpenApiSDK::Shared::UnifiedAtsApplicationInput.new(\n applied_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n rejected_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n offers: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n \"12345678-1234-1234-1234-123456789012\",\n ],\n source: \"Source Name\",\n credited_to: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n current_stage: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n reject_reason: \"Candidate not experienced enough\",\n candidate_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n job_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_ats_application_output.nil?\n # handle response\nend" + /ats/applications/{id}: get: - operationId: retrieveAtsCandidate - summary: Retrieve Candidates - description: Retrieve Candidates from any connected Ats software + operationId: retrieveAtsApplication + summary: Retrieve Applications + description: Retrieve Applications from any connected Ats software parameters: - name: x-connection-token required: true @@ -14481,7 +11588,7 @@ paths: - name: id required: true in: path - description: id of the candidate you want to retrieve. + description: id of the application you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -14498,33 +11605,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsCandidateOutput' - tags: *ref_50 - x-speakeasy-group: ats.candidates + $ref: '#/components/schemas/UnifiedAtsApplicationOutput' + tags: *ref_49 + x-speakeasy-group: ats.applications x-codeSamples: - lang: typescript - label: retrieveAtsCandidate - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.candidates.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsApplication + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.applications.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsCandidate + label: retrieveAtsApplication source: |- from panora_sdk import Panora @@ -14533,13 +11622,13 @@ paths: ) - res = s.ats.candidates.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.applications.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsCandidate + label: retrieveAtsApplication source: |- package main @@ -14553,27 +11642,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Candidates.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Applications.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsCandidateOutput != nil { + if res.UnifiedAtsApplicationOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsCandidate - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_candidates.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_candidate_output.nil?\n # handle response\nend" - /ats/departments: + label: retrieveAtsApplication + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_applications.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_application_output.nil?\n # handle response\nend" + /ats/attachments: get: - operationId: listAtsDepartments - summary: List Departments + operationId: listAtsAttachment + summary: List Attachments parameters: - name: x-connection-token required: true @@ -14615,10 +11700,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsDepartmentOutput' - tags: &ref_51 - - ats/departments - x-speakeasy-group: ats.departments + $ref: '#/components/schemas/UnifiedAtsAttachmentOutput' + tags: &ref_50 + - ats/attachments + x-speakeasy-group: ats.attachments x-speakeasy-pagination: type: cursor inputs: @@ -14629,30 +11714,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsDepartments - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.departments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsAttachment + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.attachments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsDepartments + label: listAtsAttachment source: |- from panora_sdk import Panora @@ -14661,7 +11726,7 @@ paths: ) - res = s.ats.departments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.attachments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -14671,16 +11736,121 @@ paths: if res is None: break - lang: go - label: listAtsDepartments - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Departments.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsAttachment + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Attachments.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsDepartments - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_departments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ats/departments/{id}: + label: listAtsAttachment + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_attachments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createAtsAttachment + summary: Create Attachments + description: Create Attachments in any supported ATS software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original Ats software. + example: false + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedAtsAttachmentInput' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedAtsAttachmentOutput' + tags: *ref_50 + x-speakeasy-group: ats.attachments + x-codeSamples: + - lang: typescript + label: createAtsAttachment + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.attachments.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAtsAttachmentInput: {\n fileUrl: \"https://example.com/file.pdf\",\n fileName: \"file.pdf\",\n attachmentType: \"RESUME\",\n remoteCreatedAt: new Date(\"2024-10-01T12:00:00Z\"),\n remoteModifiedAt: new Date(\"2024-10-01T12:00:00Z\"),\n candidateId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createAtsAttachment + source: |- + import dateutil.parser + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.ats.attachments.create(x_connection_token="", unified_ats_attachment_input={ + "file_url": "https://example.com/file.pdf", + "file_name": "file.pdf", + "attachment_type": "RESUME", + "remote_created_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "remote_modified_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "field_mappings": { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, remote_data=False) + + if res is not None: + # handle response + pass + - lang: go + label: createAtsAttachment + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Ats.Attachments.Create(ctx, "", components.UnifiedAtsAttachmentInput{ + FileURL: gosdk.String("https://example.com/file.pdf"), + FileName: gosdk.String("file.pdf"), + AttachmentType: gosdk.String("RESUME"), + RemoteCreatedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + RemoteModifiedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + CandidateID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + FieldMappings: map[string]any{ + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedAtsAttachmentOutput != nil { + // handle response + } + } + - lang: ruby + label: createAtsAttachment + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_attachments.create(x_connection_token=\"\", unified_ats_attachment_input=::OpenApiSDK::Shared::UnifiedAtsAttachmentInput.new(\n file_url: \"https://example.com/file.pdf\",\n file_name: \"file.pdf\",\n attachment_type: \"RESUME\",\n remote_created_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n remote_modified_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n candidate_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_ats_attachment_output.nil?\n # handle response\nend" + /ats/attachments/{id}: get: - operationId: retrieveAtsDepartment - summary: Retrieve Departments - description: Retrieve Departments from any connected Ats software + operationId: retrieveAtsAttachment + summary: Retrieve Attachments + description: Retrieve Attachments from any connected Ats software parameters: - name: x-connection-token required: true @@ -14691,7 +11861,7 @@ paths: - name: id required: true in: path - description: id of the department you want to retrieve. + description: id of the attachment you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -14708,33 +11878,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsDepartmentOutput' - tags: *ref_51 - x-speakeasy-group: ats.departments + $ref: '#/components/schemas/UnifiedAtsAttachmentOutput' + tags: *ref_50 + x-speakeasy-group: ats.attachments x-codeSamples: - lang: typescript - label: retrieveAtsDepartment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.departments.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsAttachment + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.attachments.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsDepartment + label: retrieveAtsAttachment source: |- from panora_sdk import Panora @@ -14743,13 +11895,13 @@ paths: ) - res = s.ats.departments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.attachments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsDepartment + label: retrieveAtsAttachment source: |- package main @@ -14763,27 +11915,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Departments.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Attachments.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsDepartmentOutput != nil { + if res.UnifiedAtsAttachmentOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsDepartment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_departments.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_department_output.nil?\n # handle response\nend" - /ats/interviews: + label: retrieveAtsAttachment + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_attachments.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_attachment_output.nil?\n # handle response\nend" + /ats/candidates: get: - operationId: listAtsInterview - summary: List Interviews + operationId: listAtsCandidate + summary: List Candidates parameters: - name: x-connection-token required: true @@ -14825,10 +11973,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsInterviewOutput' - tags: &ref_52 - - ats/interviews - x-speakeasy-group: ats.interviews + $ref: '#/components/schemas/UnifiedAtsCandidateOutput' + tags: &ref_51 + - ats/candidates + x-speakeasy-group: ats.candidates x-speakeasy-pagination: type: cursor inputs: @@ -14839,30 +11987,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsInterview - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.interviews.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsCandidate + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.candidates.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsInterview + label: listAtsCandidate source: |- from panora_sdk import Panora @@ -14871,7 +11999,7 @@ paths: ) - res = s.ats.interviews.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.candidates.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -14881,15 +12009,15 @@ paths: if res is None: break - lang: go - label: listAtsInterview - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Interviews.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsCandidate + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Candidates.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsInterview - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_interviews.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listAtsCandidate + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_candidates.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createAtsInterview - summary: Create Interviews - description: Create Interviews in any supported Ats software + operationId: createAtsCandidate + summary: Create Candidates + description: Create Candidates in any supported Ats software parameters: - name: x-connection-token required: true @@ -14909,61 +12037,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsInterviewInput' + $ref: '#/components/schemas/UnifiedAtsCandidateInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsInterviewOutput' - tags: *ref_52 - x-speakeasy-group: ats.interviews + $ref: '#/components/schemas/UnifiedAtsCandidateOutput' + tags: *ref_51 + x-speakeasy-group: ats.candidates x-codeSamples: - lang: typescript - 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.create({ - 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", - }, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createAtsCandidate + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.candidates.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAtsCandidateInput: {\n firstName: \"Joe\",\n lastName: \"Doe\",\n company: \"Acme\",\n title: \"Analyst\",\n locations: \"New York\",\n isPrivate: false,\n emailReachable: true,\n remoteCreatedAt: new Date(\"2024-10-01T12:00:00Z\"),\n remoteModifiedAt: new Date(\"2024-10-01T12:00:00Z\"),\n lastInteractionAt: new Date(\"2024-10-01T12:00:00Z\"),\n attachments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n applications: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n tags: [\n \"tag_1\",\n \"tag_2\",\n ],\n urls: [\n {\n url: \"mywebsite.com\",\n urlType: \"WEBSITE\",\n },\n ],\n phoneNumbers: [\n {\n phoneNumber: \"+33660688899\",\n phoneType: \"WORK\",\n },\n ],\n emailAddresses: [\n {\n emailAddress: \"joedoe@gmail.com\",\n emailAddressType: \"WORK\",\n },\n ],\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createAtsInterview + label: createAtsCandidate source: |- import dateutil.parser - import panora_sdk from panora_sdk import Panora s = Panora( @@ -14971,19 +12062,45 @@ paths: ) - res = s.ats.interviews.create(x_connection_token="", unified_ats_interview_input={ - "status": panora_sdk.UnifiedAtsInterviewInputStatus.SCHEDULED, - "application_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "job_interview_stage_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "organized_by": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "interviewers": [ + res = s.ats.candidates.create(x_connection_token="", unified_ats_candidate_input={ + "first_name": "Joe", + "last_name": "Doe", + "company": "Acme", + "title": "Analyst", + "locations": "New York", + "is_private": False, + "email_reachable": True, + "remote_created_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "remote_modified_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "last_interaction_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "attachments": [ "801f9ede-c698-4e66-a7fc-48d19eebaa4f", ], - "location": "San Francisco", - "start_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "end_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "remote_created_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), - "remote_updated_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "applications": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + "tags": [ + "tag_1", + "tag_2", + ], + "urls": [ + { + "url": "mywebsite.com", + "url_type": "WEBSITE", + }, + ], + "phone_numbers": [ + { + "phone_number": "+33660688899", + "phone_type": "WORK", + }, + ], + "email_addresses": [ + { + "email_address": "joedoe@gmail.com", + "email_address_type": "WORK", + }, + ], "field_mappings": { "fav_dish": "broccoli", "fav_color": "red", @@ -14994,15 +12111,15 @@ paths: # handle response pass - lang: go - label: createAtsInterview + label: createAtsCandidate source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "github.com/panoratech/go-sdk/types" "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -15010,45 +12127,75 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedAtsInterviewInput := components.UnifiedAtsInterviewInput{ - Status: components.UnifiedAtsInterviewInputStatusScheduled.ToPointer(), - ApplicationID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - JobInterviewStageID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - OrganizedBy: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - Interviewers: []string{ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - }, - Location: gosdk.String("San Francisco"), - StartAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), - EndAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + ctx := context.Background() + res, err := s.Ats.Candidates.Create(ctx, "", components.UnifiedAtsCandidateInput{ + FirstName: gosdk.String("Joe"), + LastName: gosdk.String("Doe"), + Company: gosdk.String("Acme"), + Title: gosdk.String("Analyst"), + Locations: gosdk.String("New York"), + IsPrivate: gosdk.Bool(false), + EmailReachable: gosdk.Bool(true), RemoteCreatedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), - RemoteUpdatedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + RemoteModifiedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + LastInteractionAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + Attachments: []components.UnifiedAtsCandidateInputAttachments{ + components.CreateUnifiedAtsCandidateInputAttachmentsStr( + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ), + }, + Applications: []components.UnifiedAtsCandidateInputApplications{ + components.CreateUnifiedAtsCandidateInputApplicationsStr( + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ), + }, + Tags: []components.UnifiedAtsCandidateInputTags{ + components.CreateUnifiedAtsCandidateInputTagsStr( + "tag_1", + ), + components.CreateUnifiedAtsCandidateInputTagsStr( + "tag_2", + ), + }, + Urls: []components.URL{ + components.URL{ + URL: gosdk.String("mywebsite.com"), + URLType: gosdk.String("WEBSITE"), + }, + }, + PhoneNumbers: []components.Phone{ + components.Phone{ + PhoneNumber: gosdk.String("+33660688899"), + PhoneType: gosdk.String("WORK"), + }, + }, + EmailAddresses: []components.Email{ + components.Email{ + EmailAddress: gosdk.String("joedoe@gmail.com"), + EmailAddressType: gosdk.String("WORK"), + }, + }, FieldMappings: map[string]any{ "fav_dish": "broccoli", "fav_color": "red", }, - } - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Ats.Interviews.Create(ctx, xConnectionToken, unifiedAtsInterviewInput, remoteData) + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsInterviewOutput != nil { + if res.UnifiedAtsCandidateOutput != nil { // handle response } } - lang: ruby - label: createAtsInterview - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_interviews.create(x_connection_token=\"\", unified_ats_interview_input=::OpenApiSDK::Shared::UnifiedAtsInterviewInput.new(\n status: ::OpenApiSDK::Shared::UnifiedAtsInterviewInputStatus::SCHEDULED,\n application_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n job_interview_stage_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n organized_by: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n interviewers: [\n \"\",\n ],\n location: \"San Francisco\",\n start_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n end_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n remote_created_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n remote_updated_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n field_mappings: {\n \"online\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_ats_interview_output.nil?\n # handle response\nend" - /ats/interviews/{id}: + label: createAtsCandidate + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_candidates.create(x_connection_token=\"\", unified_ats_candidate_input=::OpenApiSDK::Shared::UnifiedAtsCandidateInput.new(\n first_name: \"Joe\",\n last_name: \"Doe\",\n company: \"Acme\",\n title: \"Analyst\",\n locations: \"New York\",\n is_private: false,\n email_reachable: true,\n remote_created_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n remote_modified_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n last_interaction_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n attachments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n applications: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n tags: [\n \"tag_1\",\n \"tag_2\",\n ],\n urls: [\n ::OpenApiSDK::Shared::Url.new(\n url: \"mywebsite.com\",\n url_type: \"WEBSITE\",\n ),\n ],\n phone_numbers: [\n ::OpenApiSDK::Shared::Phone.new(\n phone_number: \"+33660688899\",\n phone_type: \"WORK\",\n ),\n ],\n email_addresses: [\n ::OpenApiSDK::Shared::Email.new(\n email_address: \"joedoe@gmail.com\",\n email_address_type: \"WORK\",\n ),\n ],\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_ats_candidate_output.nil?\n # handle response\nend" + /ats/candidates/{id}: get: - operationId: retrieveAtsInterview - summary: Retrieve Interviews - description: Retrieve Interviews from any connected Ats software + operationId: retrieveAtsCandidate + summary: Retrieve Candidates + description: Retrieve Candidates from any connected Ats software parameters: - name: x-connection-token required: true @@ -15059,7 +12206,7 @@ paths: - name: id required: true in: path - description: id of the interview you want to retrieve. + description: id of the candidate you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -15076,33 +12223,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsInterviewOutput' - tags: *ref_52 - x-speakeasy-group: ats.interviews + $ref: '#/components/schemas/UnifiedAtsCandidateOutput' + tags: *ref_51 + x-speakeasy-group: ats.candidates x-codeSamples: - lang: typescript - label: retrieveAtsInterview - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.interviews.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsCandidate + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.candidates.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsInterview + label: retrieveAtsCandidate source: |- from panora_sdk import Panora @@ -15111,13 +12240,13 @@ paths: ) - res = s.ats.interviews.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.candidates.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsInterview + label: retrieveAtsCandidate source: |- package main @@ -15131,27 +12260,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Interviews.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Candidates.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsInterviewOutput != nil { + if res.UnifiedAtsCandidateOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsInterview - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_interviews.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_interview_output.nil?\n # handle response\nend" - /ats/jobinterviewstages: + label: retrieveAtsCandidate + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_candidates.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_candidate_output.nil?\n # handle response\nend" + /ats/departments: get: - operationId: listAtsJobInterviewStage - summary: List JobInterviewStages + operationId: listAtsDepartments + summary: List Departments parameters: - name: x-connection-token required: true @@ -15190,14 +12315,13 @@ paths: allOf: - $ref: '#/components/schemas/PaginatedDto' - properties: - data: - type: array - items: - $ref: >- - #/components/schemas/UnifiedAtsJobinterviewstageOutput - tags: &ref_53 - - ats/jobinterviewstages - x-speakeasy-group: ats.jobinterviewstages + data: + type: array + items: + $ref: '#/components/schemas/UnifiedAtsDepartmentOutput' + tags: &ref_52 + - ats/departments + x-speakeasy-group: ats.departments x-speakeasy-pagination: type: cursor inputs: @@ -15208,30 +12332,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsJobInterviewStage - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.jobinterviewstages.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsDepartments + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.departments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsJobInterviewStage + label: listAtsDepartments source: |- from panora_sdk import Panora @@ -15240,7 +12344,7 @@ paths: ) - res = s.ats.jobinterviewstages.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.departments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -15250,16 +12354,16 @@ paths: if res is None: break - lang: go - label: listAtsJobInterviewStage - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Jobinterviewstages.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsDepartments + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Departments.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsJobInterviewStage - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_jobinterviewstages.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ats/jobinterviewstages/{id}: + label: listAtsDepartments + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_departments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ats/departments/{id}: get: - operationId: retrieveAtsJobInterviewStage - summary: Retrieve Job Interview Stages - description: Retrieve Job Interview Stages from any connected Ats software + operationId: retrieveAtsDepartment + summary: Retrieve Departments + description: Retrieve Departments from any connected Ats software parameters: - name: x-connection-token required: true @@ -15270,7 +12374,7 @@ paths: - name: id required: true in: path - description: id of the jobinterviewstage you want to retrieve. + description: id of the department you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -15287,33 +12391,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsJobinterviewstageOutput' - tags: *ref_53 - x-speakeasy-group: ats.jobinterviewstages + $ref: '#/components/schemas/UnifiedAtsDepartmentOutput' + tags: *ref_52 + x-speakeasy-group: ats.departments x-codeSamples: - lang: typescript - label: retrieveAtsJobInterviewStage - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.jobinterviewstages.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsDepartment + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.departments.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsJobInterviewStage + label: retrieveAtsDepartment source: |- from panora_sdk import Panora @@ -15322,13 +12408,13 @@ paths: ) - res = s.ats.jobinterviewstages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.departments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsJobInterviewStage + label: retrieveAtsDepartment source: |- package main @@ -15342,27 +12428,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Jobinterviewstages.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Departments.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsJobinterviewstageOutput != nil { + if res.UnifiedAtsDepartmentOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsJobInterviewStage - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_jobinterviewstages.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_jobinterviewstage_output.nil?\n # handle response\nend" - /ats/jobs: + label: retrieveAtsDepartment + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_departments.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_department_output.nil?\n # handle response\nend" + /ats/interviews: get: - operationId: listAtsJob - summary: List Jobs + operationId: listAtsInterview + summary: List Interviews parameters: - name: x-connection-token required: true @@ -15404,10 +12486,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsJobOutput' - tags: &ref_54 - - ats/jobs - x-speakeasy-group: ats.jobs + $ref: '#/components/schemas/UnifiedAtsInterviewOutput' + tags: &ref_53 + - ats/interviews + x-speakeasy-group: ats.interviews x-speakeasy-pagination: type: cursor inputs: @@ -15418,30 +12500,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsJob - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.jobs.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsInterview + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.interviews.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsJob + label: listAtsInterview source: |- from panora_sdk import Panora @@ -15450,7 +12512,7 @@ paths: ) - res = s.ats.jobs.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.interviews.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -15460,16 +12522,133 @@ paths: if res is None: break - lang: go - label: listAtsJob - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Jobs.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsInterview + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Interviews.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsJob - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_jobs.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ats/jobs/{id}: + label: listAtsInterview + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_interviews.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createAtsInterview + summary: Create Interviews + description: Create Interviews in any supported Ats software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + description: Set to true to include data from the original Ats software. + example: false + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedAtsInterviewInput' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedAtsInterviewOutput' + tags: *ref_53 + x-speakeasy-group: ats.interviews + x-codeSamples: + - lang: typescript + label: createAtsInterview + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.interviews.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAtsInterviewInput: {\n status: \"SCHEDULED\",\n applicationId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n jobInterviewStageId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n organizedBy: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n interviewers: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n location: \"San Francisco\",\n startAt: new Date(\"2024-10-01T12:00:00Z\"),\n endAt: new Date(\"2024-10-01T12:00:00Z\"),\n remoteCreatedAt: new Date(\"2024-10-01T12:00:00Z\"),\n remoteUpdatedAt: new Date(\"2024-10-01T12:00:00Z\"),\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createAtsInterview + source: |- + import dateutil.parser + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.ats.interviews.create(x_connection_token="", unified_ats_interview_input={ + "status": "SCHEDULED", + "application_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "job_interview_stage_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "organized_by": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "interviewers": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + "location": "San Francisco", + "start_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "end_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "remote_created_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "remote_updated_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "field_mappings": { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, remote_data=False) + + if res is not None: + # handle response + pass + - lang: go + label: createAtsInterview + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Ats.Interviews.Create(ctx, "", components.UnifiedAtsInterviewInput{ + Status: gosdk.String("SCHEDULED"), + ApplicationID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + JobInterviewStageID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + OrganizedBy: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Interviewers: []string{ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }, + Location: gosdk.String("San Francisco"), + StartAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + EndAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + RemoteCreatedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + RemoteUpdatedAt: types.MustNewTimeFromString("2024-10-01T12:00:00Z"), + FieldMappings: map[string]any{ + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedAtsInterviewOutput != nil { + // handle response + } + } + - lang: ruby + label: createAtsInterview + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_interviews.create(x_connection_token=\"\", unified_ats_interview_input=::OpenApiSDK::Shared::UnifiedAtsInterviewInput.new(\n status: \"SCHEDULED\",\n application_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n job_interview_stage_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n organized_by: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n interviewers: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n location: \"San Francisco\",\n start_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n end_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n remote_created_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n remote_updated_at: DateTime.iso8601('2024-10-01T12:00:00Z'),\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_ats_interview_output.nil?\n # handle response\nend" + /ats/interviews/{id}: get: - operationId: retrieveAtsJob - summary: Retrieve Jobs - description: Retrieve Jobs from any connected Ats software + operationId: retrieveAtsInterview + summary: Retrieve Interviews + description: Retrieve Interviews from any connected Ats software parameters: - name: x-connection-token required: true @@ -15480,7 +12659,7 @@ paths: - name: id required: true in: path - description: id of the job you want to retrieve. + description: id of the interview you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -15497,33 +12676,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsJobOutput' - tags: *ref_54 - x-speakeasy-group: ats.jobs + $ref: '#/components/schemas/UnifiedAtsInterviewOutput' + tags: *ref_53 + x-speakeasy-group: ats.interviews x-codeSamples: - lang: typescript - label: retrieveAtsJob - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.jobs.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsInterview + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.interviews.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsJob + label: retrieveAtsInterview source: |- from panora_sdk import Panora @@ -15532,13 +12693,13 @@ paths: ) - res = s.ats.jobs.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.interviews.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsJob + label: retrieveAtsInterview source: |- package main @@ -15552,27 +12713,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Jobs.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Interviews.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsJobOutput != nil { + if res.UnifiedAtsInterviewOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsJob - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_jobs.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_job_output.nil?\n # handle response\nend" - /ats/offers: + label: retrieveAtsInterview + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_interviews.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_interview_output.nil?\n # handle response\nend" + /ats/jobinterviewstages: get: - operationId: listAtsOffer - summary: List Offers + operationId: listAtsJobInterviewStage + summary: List JobInterviewStages parameters: - name: x-connection-token required: true @@ -15614,10 +12771,11 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsOfferOutput' - tags: &ref_55 - - ats/offers - x-speakeasy-group: ats.offers + $ref: >- + #/components/schemas/UnifiedAtsJobinterviewstageOutput + tags: &ref_54 + - ats/jobinterviewstages + x-speakeasy-group: ats.jobinterviewstages x-speakeasy-pagination: type: cursor inputs: @@ -15628,30 +12786,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsOffer - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.offers.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsJobInterviewStage + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.jobinterviewstages.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsOffer + label: listAtsJobInterviewStage source: |- from panora_sdk import Panora @@ -15660,7 +12798,7 @@ paths: ) - res = s.ats.offers.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.jobinterviewstages.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -15670,16 +12808,16 @@ paths: if res is None: break - lang: go - label: listAtsOffer - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Offers.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsJobInterviewStage + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Jobinterviewstages.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsOffer - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_offers.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ats/offers/{id}: + label: listAtsJobInterviewStage + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_jobinterviewstages.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ats/jobinterviewstages/{id}: get: - operationId: retrieveAtsOffer - summary: Retrieve Offers - description: Retrieve Offers from any connected Ats software + operationId: retrieveAtsJobInterviewStage + summary: Retrieve Job Interview Stages + description: Retrieve Job Interview Stages from any connected Ats software parameters: - name: x-connection-token required: true @@ -15690,7 +12828,7 @@ paths: - name: id required: true in: path - description: id of the offer you want to retrieve. + description: id of the jobinterviewstage you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -15707,33 +12845,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsOfferOutput' - tags: *ref_55 - x-speakeasy-group: ats.offers + $ref: '#/components/schemas/UnifiedAtsJobinterviewstageOutput' + tags: *ref_54 + x-speakeasy-group: ats.jobinterviewstages x-codeSamples: - lang: typescript - label: retrieveAtsOffer - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.offers.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsJobInterviewStage + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.jobinterviewstages.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsOffer + label: retrieveAtsJobInterviewStage source: |- from panora_sdk import Panora @@ -15742,13 +12862,13 @@ paths: ) - res = s.ats.offers.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.jobinterviewstages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsOffer + label: retrieveAtsJobInterviewStage source: |- package main @@ -15762,27 +12882,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Offers.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Jobinterviewstages.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsOfferOutput != nil { + if res.UnifiedAtsJobinterviewstageOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsOffer - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_offers.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_offer_output.nil?\n # handle response\nend" - /ats/offices: + label: retrieveAtsJobInterviewStage + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_jobinterviewstages.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_jobinterviewstage_output.nil?\n # handle response\nend" + /ats/jobs: get: - operationId: listAtsOffice - summary: List Offices + operationId: listAtsJob + summary: List Jobs parameters: - name: x-connection-token required: true @@ -15824,10 +12940,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsOfficeOutput' - tags: &ref_56 - - ats/offices - x-speakeasy-group: ats.offices + $ref: '#/components/schemas/UnifiedAtsJobOutput' + tags: &ref_55 + - ats/jobs + x-speakeasy-group: ats.jobs x-speakeasy-pagination: type: cursor inputs: @@ -15838,30 +12954,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsOffice - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.offices.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsJob + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.jobs.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsOffice + label: listAtsJob source: |- from panora_sdk import Panora @@ -15870,7 +12966,7 @@ paths: ) - res = s.ats.offices.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.jobs.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -15880,16 +12976,16 @@ paths: if res is None: break - lang: go - label: listAtsOffice - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Offices.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsJob + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Jobs.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsOffice - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_offices.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ats/offices/{id}: + label: listAtsJob + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_jobs.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ats/jobs/{id}: get: - operationId: retrieveAtsOffice - summary: Retrieve Offices - description: Retrieve Offices from any connected Ats software + operationId: retrieveAtsJob + summary: Retrieve Jobs + description: Retrieve Jobs from any connected Ats software parameters: - name: x-connection-token required: true @@ -15900,7 +12996,7 @@ paths: - name: id required: true in: path - description: id of the office you want to retrieve. + description: id of the job you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -15917,33 +13013,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsOfficeOutput' - tags: *ref_56 - x-speakeasy-group: ats.offices + $ref: '#/components/schemas/UnifiedAtsJobOutput' + tags: *ref_55 + x-speakeasy-group: ats.jobs x-codeSamples: - lang: typescript - label: retrieveAtsOffice - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.offices.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsJob + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.jobs.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsOffice + label: retrieveAtsJob source: |- from panora_sdk import Panora @@ -15952,13 +13030,13 @@ paths: ) - res = s.ats.offices.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.jobs.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsOffice + label: retrieveAtsJob source: |- package main @@ -15972,27 +13050,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Offices.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Jobs.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsOfficeOutput != nil { + if res.UnifiedAtsJobOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsOffice - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_offices.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_office_output.nil?\n # handle response\nend" - /ats/rejectreasons: + label: retrieveAtsJob + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_jobs.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_job_output.nil?\n # handle response\nend" + /ats/offers: get: - operationId: listAtsRejectReasons - summary: List RejectReasons + operationId: listAtsOffer + summary: List Offers parameters: - name: x-connection-token required: true @@ -16034,10 +13108,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsRejectreasonOutput' - tags: &ref_57 - - ats/rejectreasons - x-speakeasy-group: ats.rejectreasons + $ref: '#/components/schemas/UnifiedAtsOfferOutput' + tags: &ref_56 + - ats/offers + x-speakeasy-group: ats.offers x-speakeasy-pagination: type: cursor inputs: @@ -16048,30 +13122,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsRejectReasons - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.rejectreasons.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsOffer + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.offers.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsRejectReasons + label: listAtsOffer source: |- from panora_sdk import Panora @@ -16080,7 +13134,7 @@ paths: ) - res = s.ats.rejectreasons.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.offers.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -16090,16 +13144,16 @@ paths: if res is None: break - lang: go - label: listAtsRejectReasons - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Rejectreasons.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsOffer + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Offers.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsRejectReasons - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_rejectreasons.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ats/rejectreasons/{id}: + label: listAtsOffer + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_offers.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ats/offers/{id}: get: - operationId: retrieveAtsRejectReason - summary: Retrieve Reject Reasons - description: Retrieve Reject Reasons from any connected Ats software + operationId: retrieveAtsOffer + summary: Retrieve Offers + description: Retrieve Offers from any connected Ats software parameters: - name: x-connection-token required: true @@ -16110,7 +13164,7 @@ paths: - name: id required: true in: path - description: id of the rejectreason you want to retrieve. + description: id of the offer you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -16127,33 +13181,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsRejectreasonOutput' - tags: *ref_57 - x-speakeasy-group: ats.rejectreasons + $ref: '#/components/schemas/UnifiedAtsOfferOutput' + tags: *ref_56 + x-speakeasy-group: ats.offers x-codeSamples: - lang: typescript - label: retrieveAtsRejectReason - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.rejectreasons.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsOffer + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.offers.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsRejectReason + label: retrieveAtsOffer source: |- from panora_sdk import Panora @@ -16162,13 +13198,13 @@ paths: ) - res = s.ats.rejectreasons.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.offers.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsRejectReason + label: retrieveAtsOffer source: |- package main @@ -16182,27 +13218,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Rejectreasons.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Offers.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsRejectreasonOutput != nil { + if res.UnifiedAtsOfferOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsRejectReason - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_rejectreasons.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_rejectreason_output.nil?\n # handle response\nend" - /ats/scorecards: + label: retrieveAtsOffer + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_offers.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_offer_output.nil?\n # handle response\nend" + /ats/offices: get: - operationId: listAtsScorecard - summary: List ScoreCards + operationId: listAtsOffice + summary: List Offices parameters: - name: x-connection-token required: true @@ -16244,10 +13276,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsScorecardOutput' - tags: &ref_58 - - ats/scorecards - x-speakeasy-group: ats.scorecards + $ref: '#/components/schemas/UnifiedAtsOfficeOutput' + tags: &ref_57 + - ats/offices + x-speakeasy-group: ats.offices x-speakeasy-pagination: type: cursor inputs: @@ -16258,30 +13290,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsScorecard - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.scorecards.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsOffice + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.offices.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsScorecard + label: listAtsOffice source: |- from panora_sdk import Panora @@ -16290,7 +13302,7 @@ paths: ) - res = s.ats.scorecards.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.offices.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -16300,16 +13312,16 @@ paths: if res is None: break - lang: go - label: listAtsScorecard - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Scorecards.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsOffice + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Offices.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsScorecard - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_scorecards.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ats/scorecards/{id}: + label: listAtsOffice + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_offices.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ats/offices/{id}: get: - operationId: retrieveAtsScorecard - summary: Retrieve Score Cards - description: Retrieve Score Cards from any connected Ats software + operationId: retrieveAtsOffice + summary: Retrieve Offices + description: Retrieve Offices from any connected Ats software parameters: - name: x-connection-token required: true @@ -16320,7 +13332,7 @@ paths: - name: id required: true in: path - description: id of the scorecard you want to retrieve. + description: id of the office you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -16337,33 +13349,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsScorecardOutput' - tags: *ref_58 - x-speakeasy-group: ats.scorecards + $ref: '#/components/schemas/UnifiedAtsOfficeOutput' + tags: *ref_57 + x-speakeasy-group: ats.offices x-codeSamples: - lang: typescript - label: retrieveAtsScorecard - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.scorecards.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsOffice + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.offices.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsScorecard + label: retrieveAtsOffice source: |- from panora_sdk import Panora @@ -16372,13 +13366,13 @@ paths: ) - res = s.ats.scorecards.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.offices.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsScorecard + label: retrieveAtsOffice source: |- package main @@ -16392,27 +13386,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Scorecards.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Offices.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsScorecardOutput != nil { + if res.UnifiedAtsOfficeOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsScorecard - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_scorecards.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_scorecard_output.nil?\n # handle response\nend" - /ats/tags: + label: retrieveAtsOffice + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_offices.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_office_output.nil?\n # handle response\nend" + /ats/rejectreasons: get: - operationId: listAtsTags - summary: List Tags + operationId: listAtsRejectReasons + summary: List RejectReasons parameters: - name: x-connection-token required: true @@ -16454,10 +13444,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsTagOutput' - tags: &ref_59 - - ats/tags - x-speakeasy-group: ats.tags + $ref: '#/components/schemas/UnifiedAtsRejectreasonOutput' + tags: &ref_58 + - ats/rejectreasons + x-speakeasy-group: ats.rejectreasons x-speakeasy-pagination: type: cursor inputs: @@ -16468,30 +13458,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsTags - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.tags.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsRejectReasons + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.rejectreasons.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsTags + label: listAtsRejectReasons source: |- from panora_sdk import Panora @@ -16500,7 +13470,7 @@ paths: ) - res = s.ats.tags.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.rejectreasons.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -16510,16 +13480,16 @@ paths: if res is None: break - lang: go - label: listAtsTags - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Tags.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsRejectReasons + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Rejectreasons.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsTags - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_tags.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ats/tags/{id}: + label: listAtsRejectReasons + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_rejectreasons.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ats/rejectreasons/{id}: get: - operationId: retrieveAtsTag - summary: Retrieve Tags - description: Retrieve Tags from any connected Ats software + operationId: retrieveAtsRejectReason + summary: Retrieve Reject Reasons + description: Retrieve Reject Reasons from any connected Ats software parameters: - name: x-connection-token required: true @@ -16530,7 +13500,7 @@ paths: - name: id required: true in: path - description: id of the tag you want to retrieve. + description: id of the rejectreason you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -16547,33 +13517,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsTagOutput' - tags: *ref_59 - x-speakeasy-group: ats.tags + $ref: '#/components/schemas/UnifiedAtsRejectreasonOutput' + tags: *ref_58 + x-speakeasy-group: ats.rejectreasons x-codeSamples: - lang: typescript - label: retrieveAtsTag - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.tags.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsRejectReason + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.rejectreasons.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsTag + label: retrieveAtsRejectReason source: |- from panora_sdk import Panora @@ -16582,13 +13534,13 @@ paths: ) - res = s.ats.tags.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.rejectreasons.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsTag + label: retrieveAtsRejectReason source: |- package main @@ -16602,27 +13554,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Tags.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Rejectreasons.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsTagOutput != nil { + if res.UnifiedAtsRejectreasonOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsTag - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_tags.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_tag_output.nil?\n # handle response\nend" - /ats/users: + label: retrieveAtsRejectReason + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_rejectreasons.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_rejectreason_output.nil?\n # handle response\nend" + /ats/scorecards: get: - operationId: listAtsUsers - summary: List Users + operationId: listAtsScorecard + summary: List ScoreCards parameters: - name: x-connection-token required: true @@ -16664,10 +13612,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsUserOutput' - tags: &ref_60 - - ats/users - x-speakeasy-group: ats.users + $ref: '#/components/schemas/UnifiedAtsScorecardOutput' + tags: &ref_59 + - ats/scorecards + x-speakeasy-group: ats.scorecards x-speakeasy-pagination: type: cursor inputs: @@ -16678,30 +13626,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsUsers - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.users.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsScorecard + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.scorecards.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsUsers + label: listAtsScorecard source: |- from panora_sdk import Panora @@ -16710,7 +13638,7 @@ paths: ) - res = s.ats.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.scorecards.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -16720,16 +13648,16 @@ paths: if res is None: break - lang: go - label: listAtsUsers - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Users.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsScorecard + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Scorecards.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsUsers - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_users.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ats/users/{id}: + label: listAtsScorecard + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_scorecards.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ats/scorecards/{id}: get: - operationId: retrieveAtsUser - summary: Retrieve Users - description: Retrieve Users from any connected Ats software + operationId: retrieveAtsScorecard + summary: Retrieve Score Cards + description: Retrieve Score Cards from any connected Ats software parameters: - name: x-connection-token required: true @@ -16740,7 +13668,7 @@ paths: - name: id required: true in: path - description: id of the user you want to retrieve. + description: id of the scorecard you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string @@ -16757,33 +13685,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsUserOutput' - tags: *ref_60 - x-speakeasy-group: ats.users + $ref: '#/components/schemas/UnifiedAtsScorecardOutput' + tags: *ref_59 + x-speakeasy-group: ats.scorecards x-codeSamples: - lang: typescript - label: retrieveAtsUser - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.users.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsScorecard + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.scorecards.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsUser + label: retrieveAtsScorecard source: |- from panora_sdk import Panora @@ -16792,13 +13702,13 @@ paths: ) - res = s.ats.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.scorecards.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsUser + label: retrieveAtsScorecard source: |- package main @@ -16812,27 +13722,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ats.Users.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Scorecards.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsUserOutput != nil { + if res.UnifiedAtsScorecardOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsUser - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_users.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_user_output.nil?\n # handle response\nend" - /ats/eeocs: + label: retrieveAtsScorecard + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_scorecards.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_scorecard_output.nil?\n # handle response\nend" + /ats/tags: get: - operationId: listAtsEeocs - summary: List Eeocss + operationId: listAtsTags + summary: List Tags parameters: - name: x-connection-token required: true @@ -16874,10 +13780,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAtsEeocsOutput' - tags: &ref_61 - - ats/eeocs - x-speakeasy-group: ats.eeocs + $ref: '#/components/schemas/UnifiedAtsTagOutput' + tags: &ref_60 + - ats/tags + x-speakeasy-group: ats.tags x-speakeasy-pagination: type: cursor inputs: @@ -16888,30 +13794,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAtsEeocs - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.eeocs.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsTags + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.tags.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAtsEeocs + label: listAtsTags source: |- from panora_sdk import Panora @@ -16920,7 +13806,7 @@ paths: ) - res = s.ats.eeocs.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.tags.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -16930,16 +13816,16 @@ paths: if res is None: break - lang: go - label: listAtsEeocs - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ats.Eeocs.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsTags + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Tags.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAtsEeocs - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_eeocs.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /ats/eeocs/{id}: + label: listAtsTags + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_tags.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ats/tags/{id}: get: - operationId: retrieveAtsEeocs - summary: Retrieve Eeocs - description: Retrieve a eeocs from any connected Ats software + operationId: retrieveAtsTag + summary: Retrieve Tags + description: Retrieve Tags from any connected Ats software parameters: - name: x-connection-token required: true @@ -16950,13 +13836,15 @@ paths: - name: id required: true in: path - description: id of the eeocs you want to retrieve. + description: id of the tag you want to retrieve. + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f schema: type: string - name: remote_data required: false in: query description: Set to true to include data from the original Ats software. + example: false schema: type: boolean responses: @@ -16965,32 +13853,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAtsEeocsOutput' - tags: *ref_61 - x-speakeasy-group: ats.eeocs + $ref: '#/components/schemas/UnifiedAtsTagOutput' + tags: *ref_60 + x-speakeasy-group: ats.tags x-codeSamples: - lang: typescript - label: retrieveAtsEeocs - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.eeocs.retrieve({ - xConnectionToken: "", - id: "", - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsTag + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.tags.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAtsEeocs + label: retrieveAtsTag source: |- from panora_sdk import Panora @@ -16999,13 +13870,13 @@ paths: ) - res = s.ats.eeocs.retrieve(x_connection_token="", id="") + res = s.ats.tags.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAtsEeocs + label: retrieveAtsTag source: |- package main @@ -17019,25 +13890,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "" ctx := context.Background() - res, err := s.Ats.Eeocs.Retrieve(ctx, xConnectionToken, id, nil) + res, err := s.Ats.Tags.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAtsEeocsOutput != nil { + if res.UnifiedAtsTagOutput != nil { // handle response } } - lang: ruby - label: retrieveAtsEeocs - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_eeocs.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.unified_ats_eeocs_output.nil?\n # handle response\nend" - /accounting/accounts: + label: retrieveAtsTag + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_tags.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_tag_output.nil?\n # handle response\nend" + /ats/users: get: - operationId: listAccountingAccounts - summary: List Accounts + operationId: listAtsUsers + summary: List Users parameters: - name: x-connection-token required: true @@ -17079,10 +13948,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAccountingAccountOutput' - tags: &ref_62 - - accounting/accounts - x-speakeasy-group: accounting.accounts + $ref: '#/components/schemas/UnifiedAtsUserOutput' + tags: &ref_61 + - ats/users + x-speakeasy-group: ats.users x-speakeasy-pagination: type: cursor inputs: @@ -17093,30 +13962,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingAccounts - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.accounts.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsUsers + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.users.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingAccounts + label: listAtsUsers source: |- from panora_sdk import Panora @@ -17125,7 +13974,7 @@ paths: ) - res = s.accounting.accounts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -17135,132 +13984,16 @@ paths: if res is None: break - lang: go - label: listAccountingAccounts - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Accounts.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listAccountingAccounts - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_accounts.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createAccountingAccount - summary: Create Accounts - description: Create accounts in any supported Accounting software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: false - description: Set to true to include data from the original Accounting software. - schema: - type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedAccountingAccountInput' - responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedAccountingAccountOutput' - tags: *ref_62 - x-speakeasy-group: accounting.accounts - x-codeSamples: - - lang: typescript - label: createAccountingAccount - source: |- - import { Panora } from "@panora/sdk"; - import { UnifiedAccountingAccountInputCurrency } from "@panora/sdk/models/components"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.accounts.create({ - xConnectionToken: "", - remoteData: false, - unifiedAccountingAccountInput: { - name: "Cash", - description: "Main cash account for daily operations", - classification: "Asset", - type: "Current Asset", - status: "Active", - currentBalance: 10000, - currency: UnifiedAccountingAccountInputCurrency.Usd, - accountNumber: "1000", - parentAccount: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: createAccountingAccount - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.accounting.accounts.create(x_connection_token="", unified_accounting_account_input={}, remote_data=False) - - if res is not None: - # handle response - pass - - lang: go - label: createAccountingAccount - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - unifiedAccountingAccountInput := components.UnifiedAccountingAccountInput{} - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Accounting.Accounts.Create(ctx, xConnectionToken, unifiedAccountingAccountInput, remoteData) - if err != nil { - log.Fatal(err) - } - if res.UnifiedAccountingAccountOutput != nil { - // handle response - } - } + label: listAtsUsers + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Users.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: createAccountingAccount - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_accounts.create(x_connection_token=\"\", unified_accounting_account_input=::OpenApiSDK::Shared::UnifiedAccountingAccountInput.new(), remote_data=false)\n\nif ! res.unified_accounting_account_output.nil?\n # handle response\nend" - /accounting/accounts/{id}: + label: listAtsUsers + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_users.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ats/users/{id}: get: - operationId: retrieveAccountingAccount - summary: Retrieve Accounts - description: Retrieve Accounts from any connected Accounting software + operationId: retrieveAtsUser + summary: Retrieve Users + description: Retrieve Users from any connected Ats software parameters: - name: x-connection-token required: true @@ -17271,15 +14004,15 @@ paths: - name: id required: true in: path + description: id of the user you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the account you want to retrieve. schema: type: string - name: remote_data required: false in: query + description: Set to true to include data from the original Ats software. example: false - description: Set to true to include data from the original Accounting software. schema: type: boolean responses: @@ -17288,33 +14021,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingAccountOutput' - tags: *ref_62 - x-speakeasy-group: accounting.accounts + $ref: '#/components/schemas/UnifiedAtsUserOutput' + tags: *ref_61 + x-speakeasy-group: ats.users x-codeSamples: - lang: typescript - label: retrieveAccountingAccount - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.accounts.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsUser + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.users.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingAccount + label: retrieveAtsUser source: |- from panora_sdk import Panora @@ -17323,13 +14038,13 @@ paths: ) - res = s.accounting.accounts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingAccount + label: retrieveAtsUser source: |- package main @@ -17343,27 +14058,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Accounts.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Users.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingAccountOutput != nil { + if res.UnifiedAtsUserOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingAccount - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_accounts.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_account_output.nil?\n # handle response\nend" - /accounting/addresses: + label: retrieveAtsUser + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_users.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_ats_user_output.nil?\n # handle response\nend" + /ats/eeocs: get: - operationId: listAccountingAddress - summary: List Addresss + operationId: listAtsEeocs + summary: List Eeocss parameters: - name: x-connection-token required: true @@ -17405,10 +14116,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAccountingAddressOutput' - tags: &ref_63 - - accounting/addresses - x-speakeasy-group: accounting.addresses + $ref: '#/components/schemas/UnifiedAtsEeocsOutput' + tags: &ref_62 + - ats/eeocs + x-speakeasy-group: ats.eeocs x-speakeasy-pagination: type: cursor inputs: @@ -17419,30 +14130,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingAddress - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.addresses.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAtsEeocs + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.eeocs.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingAddress + label: listAtsEeocs source: |- from panora_sdk import Panora @@ -17451,7 +14142,7 @@ paths: ) - res = s.accounting.addresses.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.eeocs.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -17461,16 +14152,16 @@ paths: if res is None: break - lang: go - label: listAccountingAddress - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Addresses.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAtsEeocs + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ats.Eeocs.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingAddress - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_addresses.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /accounting/addresses/{id}: + label: listAtsEeocs + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_eeocs.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /ats/eeocs/{id}: get: - operationId: retrieveAccountingAddress - summary: Retrieve Addresses - description: Retrieve Addresses from any connected Accounting software + operationId: retrieveAtsEeocs + summary: Retrieve Eeocs + description: Retrieve a eeocs from any connected Ats software parameters: - name: x-connection-token required: true @@ -17481,15 +14172,13 @@ paths: - name: id required: true in: path - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the address you want to retrieve. + description: id of the eeocs you want to retrieve. schema: type: string - name: remote_data required: false in: query - example: false - description: Set to true to include data from the original Accounting software. + description: Set to true to include data from the original Ats software. schema: type: boolean responses: @@ -17498,33 +14187,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingAddressOutput' - tags: *ref_63 - x-speakeasy-group: accounting.addresses + $ref: '#/components/schemas/UnifiedAtsEeocsOutput' + tags: *ref_62 + x-speakeasy-group: ats.eeocs x-codeSamples: - lang: typescript - label: retrieveAccountingAddress - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.addresses.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAtsEeocs + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.eeocs.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingAddress + label: retrieveAtsEeocs source: |- from panora_sdk import Panora @@ -17533,13 +14204,13 @@ paths: ) - res = s.accounting.addresses.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.eeocs.retrieve(x_connection_token="", id="") if res is not None: # handle response pass - lang: go - label: retrieveAccountingAddress + label: retrieveAtsEeocs source: |- package main @@ -17553,27 +14224,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Addresses.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ats.Eeocs.Retrieve(ctx, "", "", nil) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingAddressOutput != nil { + if res.UnifiedAtsEeocsOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingAddress - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_addresses.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_address_output.nil?\n # handle response\nend" - /accounting/attachments: + label: retrieveAtsEeocs + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ats_eeocs.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.unified_ats_eeocs_output.nil?\n # handle response\nend" + /accounting/accounts: get: - operationId: listAccountingAttachments - summary: List Attachments + operationId: listAccountingAccounts + summary: List Accounts parameters: - name: x-connection-token required: true @@ -17615,11 +14282,10 @@ paths: data: type: array items: - $ref: >- - #/components/schemas/UnifiedAccountingAttachmentOutput - tags: &ref_64 - - accounting/attachments - x-speakeasy-group: accounting.attachments + $ref: '#/components/schemas/UnifiedAccountingAccountOutput' + tags: &ref_63 + - accounting/accounts + x-speakeasy-group: accounting.accounts x-speakeasy-pagination: type: cursor inputs: @@ -17630,30 +14296,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingAttachments - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.attachments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingAccounts + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.accounts.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingAttachments + label: listAccountingAccounts source: |- from panora_sdk import Panora @@ -17662,7 +14308,7 @@ paths: ) - res = s.accounting.attachments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.accounts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -17672,15 +14318,15 @@ paths: if res is None: break - lang: go - label: listAccountingAttachments - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Attachments.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingAccounts + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Accounts.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingAttachments - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_attachments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listAccountingAccounts + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_accounts.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createAccountingAttachment - summary: Create Attachments - description: Create attachments in any supported Accounting software + operationId: createAccountingAccount + summary: Create Accounts + description: Create accounts in any supported Accounting software parameters: - name: x-connection-token required: true @@ -17700,45 +14346,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingAttachmentInput' + $ref: '#/components/schemas/UnifiedAccountingAccountInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingAttachmentOutput' - tags: *ref_64 - x-speakeasy-group: accounting.attachments + $ref: '#/components/schemas/UnifiedAccountingAccountOutput' + tags: *ref_63 + x-speakeasy-group: accounting.accounts x-codeSamples: - lang: typescript - label: createAccountingAttachment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.attachments.create({ - xConnectionToken: "", - remoteData: false, - unifiedAccountingAttachmentInput: { - fileName: "invoice.pdf", - fileUrl: "https://example.com/files/invoice.pdf", - accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createAccountingAccount + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.accounts.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingAccountInput: {\n name: \"Cash\",\n description: \"Main cash account for daily operations\",\n classification: \"Asset\",\n type: \"Current Asset\",\n status: \"Active\",\n currentBalance: 10000,\n currency: \"USD\",\n accountNumber: \"1000\",\n parentAccount: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createAccountingAttachment + label: createAccountingAccount source: |- from panora_sdk import Panora @@ -17747,20 +14370,32 @@ paths: ) - res = s.accounting.attachments.create(x_connection_token="", unified_accounting_attachment_input={}, remote_data=False) + res = s.accounting.accounts.create(x_connection_token="", unified_accounting_account_input={ + "name": "Cash", + "description": "Main cash account for daily operations", + "classification": "Asset", + "type": "Current Asset", + "status": "Active", + "current_balance": 10000, + "currency": "USD", + "account_number": "1000", + "parent_account": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "field_mappings": {}, + }, remote_data=False) if res is not None: # handle response pass - lang: go - label: createAccountingAttachment + label: createAccountingAccount source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -17768,28 +14403,36 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedAccountingAttachmentInput := components.UnifiedAccountingAttachmentInput{} - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Attachments.Create(ctx, xConnectionToken, unifiedAccountingAttachmentInput, remoteData) + res, err := s.Accounting.Accounts.Create(ctx, "", components.UnifiedAccountingAccountInput{ + Name: gosdk.String("Cash"), + Description: gosdk.String("Main cash account for daily operations"), + Classification: gosdk.String("Asset"), + Type: gosdk.String("Current Asset"), + Status: gosdk.String("Active"), + CurrentBalance: gosdk.Float64(10000), + Currency: gosdk.String("USD"), + AccountNumber: gosdk.String("1000"), + ParentAccount: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + CompanyInfoID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + FieldMappings: &components.UnifiedAccountingAccountInputFieldMappings{}, + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingAttachmentOutput != nil { + if res.UnifiedAccountingAccountOutput != nil { // handle response } } - lang: ruby - label: createAccountingAttachment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_attachments.create(x_connection_token=\"\", unified_accounting_attachment_input=::OpenApiSDK::Shared::UnifiedAccountingAttachmentInput.new(), remote_data=false)\n\nif ! res.unified_accounting_attachment_output.nil?\n # handle response\nend" - /accounting/attachments/{id}: + label: createAccountingAccount + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_accounts.create(x_connection_token=\"\", unified_accounting_account_input=::OpenApiSDK::Shared::UnifiedAccountingAccountInput.new(\n name: \"Cash\",\n description: \"Main cash account for daily operations\",\n classification: \"Asset\",\n type: \"Current Asset\",\n status: \"Active\",\n current_balance: 10000.0,\n currency: \"USD\",\n account_number: \"1000\",\n parent_account: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n company_info_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: ::OpenApiSDK::Shared::UnifiedAccountingAccountInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_accounting_account_output.nil?\n # handle response\nend" + /accounting/accounts/{id}: get: - operationId: retrieveAccountingAttachment - summary: Retrieve Attachments - description: Retrieve attachments from any connected Accounting software + operationId: retrieveAccountingAccount + summary: Retrieve Accounts + description: Retrieve Accounts from any connected Accounting software parameters: - name: x-connection-token required: true @@ -17801,7 +14444,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the attachment you want to retrieve. + description: id of the account you want to retrieve. schema: type: string - name: remote_data @@ -17817,33 +14460,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingAttachmentOutput' - tags: *ref_64 - x-speakeasy-group: accounting.attachments + $ref: '#/components/schemas/UnifiedAccountingAccountOutput' + tags: *ref_63 + x-speakeasy-group: accounting.accounts x-codeSamples: - lang: typescript - label: retrieveAccountingAttachment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.attachments.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingAccount + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.accounts.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingAttachment + label: retrieveAccountingAccount source: |- from panora_sdk import Panora @@ -17852,13 +14477,13 @@ paths: ) - res = s.accounting.attachments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.accounts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingAttachment + label: retrieveAccountingAccount source: |- package main @@ -17872,27 +14497,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Attachments.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Accounts.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingAttachmentOutput != nil { + if res.UnifiedAccountingAccountOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingAttachment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_attachments.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_attachment_output.nil?\n # handle response\nend" - /accounting/balancesheets: + label: retrieveAccountingAccount + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_accounts.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_account_output.nil?\n # handle response\nend" + /accounting/addresses: get: - operationId: listAccountingBalanceSheets - summary: List BalanceSheets + operationId: listAccountingAddress + summary: List Addresss parameters: - name: x-connection-token required: true @@ -17934,11 +14555,10 @@ paths: data: type: array items: - $ref: >- - #/components/schemas/UnifiedAccountingBalancesheetOutput - tags: &ref_65 - - accounting/balancesheets - x-speakeasy-group: accounting.balancesheets + $ref: '#/components/schemas/UnifiedAccountingAddressOutput' + tags: &ref_64 + - accounting/addresses + x-speakeasy-group: accounting.addresses x-speakeasy-pagination: type: cursor inputs: @@ -17949,30 +14569,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingBalanceSheets - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.balancesheets.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingAddress + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.addresses.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingBalanceSheets + label: listAccountingAddress source: |- from panora_sdk import Panora @@ -17981,7 +14581,7 @@ paths: ) - res = s.accounting.balancesheets.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.addresses.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -17991,16 +14591,16 @@ paths: if res is None: break - lang: go - label: listAccountingBalanceSheets - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Balancesheets.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingAddress + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Addresses.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingBalanceSheets - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_balancesheets.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /accounting/balancesheets/{id}: + label: listAccountingAddress + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_addresses.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /accounting/addresses/{id}: get: - operationId: retrieveAccountingBalanceSheet - summary: Retrieve BalanceSheets - description: Retrieve BalanceSheets from any connected Accounting software + operationId: retrieveAccountingAddress + summary: Retrieve Addresses + description: Retrieve Addresses from any connected Accounting software parameters: - name: x-connection-token required: true @@ -18012,7 +14612,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the balancesheet you want to retrieve. + description: id of the address you want to retrieve. schema: type: string - name: remote_data @@ -18028,33 +14628,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingBalancesheetOutput' - tags: *ref_65 - x-speakeasy-group: accounting.balancesheets + $ref: '#/components/schemas/UnifiedAccountingAddressOutput' + tags: *ref_64 + x-speakeasy-group: accounting.addresses x-codeSamples: - lang: typescript - label: retrieveAccountingBalanceSheet - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.balancesheets.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingAddress + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.addresses.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingBalanceSheet + label: retrieveAccountingAddress source: |- from panora_sdk import Panora @@ -18063,13 +14645,13 @@ paths: ) - res = s.accounting.balancesheets.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.addresses.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingBalanceSheet + label: retrieveAccountingAddress source: |- package main @@ -18083,27 +14665,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Balancesheets.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Addresses.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingBalancesheetOutput != nil { + if res.UnifiedAccountingAddressOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingBalanceSheet - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_balancesheets.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_balancesheet_output.nil?\n # handle response\nend" - /accounting/cashflowstatements: + label: retrieveAccountingAddress + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_addresses.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_address_output.nil?\n # handle response\nend" + /accounting/attachments: get: - operationId: listAccountingCashflowStatement - summary: List CashflowStatements + operationId: listAccountingAttachments + summary: List Attachments parameters: - name: x-connection-token required: true @@ -18146,10 +14724,10 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedAccountingCashflowstatementOutput - tags: &ref_66 - - accounting/cashflowstatements - x-speakeasy-group: accounting.cashflowstatements + #/components/schemas/UnifiedAccountingAttachmentOutput + tags: &ref_65 + - accounting/attachments + x-speakeasy-group: accounting.attachments x-speakeasy-pagination: type: cursor inputs: @@ -18160,30 +14738,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingCashflowStatement - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.cashflowstatements.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingAttachments + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.attachments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingCashflowStatement + label: listAccountingAttachments source: |- from panora_sdk import Panora @@ -18192,7 +14750,7 @@ paths: ) - res = s.accounting.cashflowstatements.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.attachments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -18202,16 +14760,107 @@ paths: if res is None: break - lang: go - label: listAccountingCashflowStatement - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Cashflowstatements.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingAttachments + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Attachments.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingCashflowStatement - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_cashflowstatements.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /accounting/cashflowstatements/{id}: + label: listAccountingAttachments + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_attachments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createAccountingAttachment + summary: Create Attachments + description: Create attachments in any supported Accounting software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: false + description: Set to true to include data from the original Accounting software. + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedAccountingAttachmentInput' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedAccountingAttachmentOutput' + tags: *ref_65 + x-speakeasy-group: accounting.attachments + x-codeSamples: + - lang: typescript + label: createAccountingAttachment + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.attachments.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingAttachmentInput: {\n fileName: \"invoice.pdf\",\n fileUrl: \"https://example.com/files/invoice.pdf\",\n accountId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createAccountingAttachment + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.accounting.attachments.create(x_connection_token="", unified_accounting_attachment_input={ + "file_name": "invoice.pdf", + "file_url": "https://example.com/files/invoice.pdf", + "account_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "field_mappings": {}, + }, remote_data=False) + + if res is not None: + # handle response + pass + - lang: go + label: createAccountingAttachment + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Accounting.Attachments.Create(ctx, "", components.UnifiedAccountingAttachmentInput{ + FileName: gosdk.String("invoice.pdf"), + FileURL: gosdk.String("https://example.com/files/invoice.pdf"), + AccountID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + FieldMappings: &components.UnifiedAccountingAttachmentInputFieldMappings{}, + }, gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedAccountingAttachmentOutput != nil { + // handle response + } + } + - lang: ruby + label: createAccountingAttachment + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_attachments.create(x_connection_token=\"\", unified_accounting_attachment_input=::OpenApiSDK::Shared::UnifiedAccountingAttachmentInput.new(\n file_name: \"invoice.pdf\",\n file_url: \"https://example.com/files/invoice.pdf\",\n account_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: ::OpenApiSDK::Shared::UnifiedAccountingAttachmentInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_accounting_attachment_output.nil?\n # handle response\nend" + /accounting/attachments/{id}: get: - operationId: retrieveAccountingCashflowStatement - summary: Retrieve Cashflow Statements - description: Retrieve Cashflow Statements from any connected Accounting software + operationId: retrieveAccountingAttachment + summary: Retrieve Attachments + description: Retrieve attachments from any connected Accounting software parameters: - name: x-connection-token required: true @@ -18223,7 +14872,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the cashflowstatement you want to retrieve. + description: id of the attachment you want to retrieve. schema: type: string - name: remote_data @@ -18239,33 +14888,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingCashflowstatementOutput' - tags: *ref_66 - x-speakeasy-group: accounting.cashflowstatements + $ref: '#/components/schemas/UnifiedAccountingAttachmentOutput' + tags: *ref_65 + x-speakeasy-group: accounting.attachments x-codeSamples: - lang: typescript - label: retrieveAccountingCashflowStatement - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.cashflowstatements.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingAttachment + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.attachments.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingCashflowStatement + label: retrieveAccountingAttachment source: |- from panora_sdk import Panora @@ -18274,13 +14905,13 @@ paths: ) - res = s.accounting.cashflowstatements.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.attachments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingCashflowStatement + label: retrieveAccountingAttachment source: |- package main @@ -18294,27 +14925,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Cashflowstatements.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Attachments.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingCashflowstatementOutput != nil { + if res.UnifiedAccountingAttachmentOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingCashflowStatement - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_cashflowstatements.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_cashflowstatement_output.nil?\n # handle response\nend" - /accounting/companyinfos: + label: retrieveAccountingAttachment + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_attachments.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_attachment_output.nil?\n # handle response\nend" + /accounting/balancesheets: get: - operationId: listAccountingCompanyInfos - summary: List CompanyInfos + operationId: listAccountingBalanceSheets + summary: List BalanceSheets parameters: - name: x-connection-token required: true @@ -18357,10 +14984,10 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedAccountingCompanyinfoOutput - tags: &ref_67 - - accounting/companyinfos - x-speakeasy-group: accounting.companyinfos + #/components/schemas/UnifiedAccountingBalancesheetOutput + tags: &ref_66 + - accounting/balancesheets + x-speakeasy-group: accounting.balancesheets x-speakeasy-pagination: type: cursor inputs: @@ -18371,30 +14998,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingCompanyInfos - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.companyinfos.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingBalanceSheets + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.balancesheets.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingCompanyInfos + label: listAccountingBalanceSheets source: |- from panora_sdk import Panora @@ -18403,7 +15010,7 @@ paths: ) - res = s.accounting.companyinfos.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.balancesheets.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -18413,16 +15020,16 @@ paths: if res is None: break - lang: go - label: listAccountingCompanyInfos - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Companyinfos.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingBalanceSheets + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Balancesheets.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingCompanyInfos - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_companyinfos.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /accounting/companyinfos/{id}: + label: listAccountingBalanceSheets + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_balancesheets.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /accounting/balancesheets/{id}: get: - operationId: retrieveAccountingCompanyInfo - summary: Retrieve Company Infos - description: Retrieve Company Infos from any connected Accounting software + operationId: retrieveAccountingBalanceSheet + summary: Retrieve BalanceSheets + description: Retrieve BalanceSheets from any connected Accounting software parameters: - name: x-connection-token required: true @@ -18434,7 +15041,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the companyinfo you want to retrieve. + description: id of the balancesheet you want to retrieve. schema: type: string - name: remote_data @@ -18450,33 +15057,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingCompanyinfoOutput' - tags: *ref_67 - x-speakeasy-group: accounting.companyinfos + $ref: '#/components/schemas/UnifiedAccountingBalancesheetOutput' + tags: *ref_66 + x-speakeasy-group: accounting.balancesheets x-codeSamples: - lang: typescript - label: retrieveAccountingCompanyInfo - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.companyinfos.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingBalanceSheet + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.balancesheets.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingCompanyInfo + label: retrieveAccountingBalanceSheet source: |- from panora_sdk import Panora @@ -18485,13 +15074,13 @@ paths: ) - res = s.accounting.companyinfos.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.balancesheets.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingCompanyInfo + label: retrieveAccountingBalanceSheet source: |- package main @@ -18505,27 +15094,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Companyinfos.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Balancesheets.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingCompanyinfoOutput != nil { + if res.UnifiedAccountingBalancesheetOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingCompanyInfo - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_companyinfos.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_companyinfo_output.nil?\n # handle response\nend" - /accounting/contacts: + label: retrieveAccountingBalanceSheet + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_balancesheets.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_balancesheet_output.nil?\n # handle response\nend" + /accounting/cashflowstatements: get: - operationId: listAccountingContacts - summary: List Contacts + operationId: listAccountingCashflowStatement + summary: List CashflowStatements parameters: - name: x-connection-token required: true @@ -18567,10 +15152,11 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAccountingContactOutput' - tags: &ref_68 - - accounting/contacts - x-speakeasy-group: accounting.contacts + $ref: >- + #/components/schemas/UnifiedAccountingCashflowstatementOutput + tags: &ref_67 + - accounting/cashflowstatements + x-speakeasy-group: accounting.cashflowstatements x-speakeasy-pagination: type: cursor inputs: @@ -18581,30 +15167,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingContacts - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.contacts.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingCashflowStatement + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.cashflowstatements.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingContacts + label: listAccountingCashflowStatement source: |- from panora_sdk import Panora @@ -18613,7 +15179,7 @@ paths: ) - res = s.accounting.contacts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.cashflowstatements.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -18623,131 +15189,16 @@ paths: if res is None: break - lang: go - label: listAccountingContacts - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Contacts.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listAccountingContacts - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_contacts.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createAccountingContact - summary: Create Contacts - description: Create contacts in any supported Accounting software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: false - description: Set to true to include data from the original Accounting software. - schema: - type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedAccountingContactInput' - responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedAccountingContactOutput' - tags: *ref_68 - x-speakeasy-group: accounting.contacts - x-codeSamples: - - lang: typescript - label: createAccountingContact - source: |- - import { Panora } from "@panora/sdk"; - import { UnifiedAccountingContactInputCurrency } from "@panora/sdk/models/components"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.contacts.create({ - xConnectionToken: "", - remoteData: false, - unifiedAccountingContactInput: { - name: "John Doe", - isSupplier: true, - isCustomer: false, - emailAddress: "john.doe@example.com", - taxNumber: "123456789", - status: "Active", - currency: UnifiedAccountingContactInputCurrency.Usd, - remoteUpdatedAt: "2024-06-15T12:00:00Z", - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: createAccountingContact - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.accounting.contacts.create(x_connection_token="", unified_accounting_contact_input={}, remote_data=False) - - if res is not None: - # handle response - pass - - lang: go - label: createAccountingContact - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - unifiedAccountingContactInput := components.UnifiedAccountingContactInput{} - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Accounting.Contacts.Create(ctx, xConnectionToken, unifiedAccountingContactInput, remoteData) - if err != nil { - log.Fatal(err) - } - if res.UnifiedAccountingContactOutput != nil { - // handle response - } - } + label: listAccountingCashflowStatement + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Cashflowstatements.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: createAccountingContact - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_contacts.create(x_connection_token=\"\", unified_accounting_contact_input=::OpenApiSDK::Shared::UnifiedAccountingContactInput.new(), remote_data=false)\n\nif ! res.unified_accounting_contact_output.nil?\n # handle response\nend" - /accounting/contacts/{id}: + label: listAccountingCashflowStatement + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_cashflowstatements.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /accounting/cashflowstatements/{id}: get: - operationId: retrieveAccountingContact - summary: Retrieve Contacts - description: Retrieve Contacts from any connected Accounting software + operationId: retrieveAccountingCashflowStatement + summary: Retrieve Cashflow Statements + description: Retrieve Cashflow Statements from any connected Accounting software parameters: - name: x-connection-token required: true @@ -18759,7 +15210,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the contact you want to retrieve. + description: id of the cashflowstatement you want to retrieve. schema: type: string - name: remote_data @@ -18775,33 +15226,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingContactOutput' - tags: *ref_68 - x-speakeasy-group: accounting.contacts + $ref: '#/components/schemas/UnifiedAccountingCashflowstatementOutput' + tags: *ref_67 + x-speakeasy-group: accounting.cashflowstatements x-codeSamples: - lang: typescript - label: retrieveAccountingContact - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.contacts.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingCashflowStatement + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.cashflowstatements.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingContact + label: retrieveAccountingCashflowStatement source: |- from panora_sdk import Panora @@ -18810,13 +15243,13 @@ paths: ) - res = s.accounting.contacts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.cashflowstatements.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingContact + label: retrieveAccountingCashflowStatement source: |- package main @@ -18830,27 +15263,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Contacts.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Cashflowstatements.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingContactOutput != nil { + if res.UnifiedAccountingCashflowstatementOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingContact - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_contacts.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_contact_output.nil?\n # handle response\nend" - /accounting/creditnotes: + label: retrieveAccountingCashflowStatement + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_cashflowstatements.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_cashflowstatement_output.nil?\n # handle response\nend" + /accounting/companyinfos: get: - operationId: listAccountingCreditNote - summary: List CreditNotes + operationId: listAccountingCompanyInfos + summary: List CompanyInfos parameters: - name: x-connection-token required: true @@ -18893,10 +15322,10 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedAccountingCreditnoteOutput - tags: &ref_69 - - accounting/creditnotes - x-speakeasy-group: accounting.creditnotes + #/components/schemas/UnifiedAccountingCompanyinfoOutput + tags: &ref_68 + - accounting/companyinfos + x-speakeasy-group: accounting.companyinfos x-speakeasy-pagination: type: cursor inputs: @@ -18907,30 +15336,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingCreditNote - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.creditnotes.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingCompanyInfos + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.companyinfos.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingCreditNote + label: listAccountingCompanyInfos source: |- from panora_sdk import Panora @@ -18939,7 +15348,7 @@ paths: ) - res = s.accounting.creditnotes.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.companyinfos.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -18949,16 +15358,16 @@ paths: if res is None: break - lang: go - label: listAccountingCreditNote - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Creditnotes.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingCompanyInfos + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Companyinfos.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingCreditNote - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_creditnotes.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /accounting/creditnotes/{id}: - get: - operationId: retrieveAccountingCreditNote - summary: Retrieve Credit Notes - description: Retrieve Credit Notes from any connected Accounting software + label: listAccountingCompanyInfos + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_companyinfos.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /accounting/companyinfos/{id}: + get: + operationId: retrieveAccountingCompanyInfo + summary: Retrieve Company Infos + description: Retrieve Company Infos from any connected Accounting software parameters: - name: x-connection-token required: true @@ -18970,7 +15379,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the creditnote you want to retrieve. + description: id of the companyinfo you want to retrieve. schema: type: string - name: remote_data @@ -18986,33 +15395,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingCreditnoteOutput' - tags: *ref_69 - x-speakeasy-group: accounting.creditnotes + $ref: '#/components/schemas/UnifiedAccountingCompanyinfoOutput' + tags: *ref_68 + x-speakeasy-group: accounting.companyinfos x-codeSamples: - lang: typescript - label: retrieveAccountingCreditNote - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.creditnotes.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingCompanyInfo + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.companyinfos.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingCreditNote + label: retrieveAccountingCompanyInfo source: |- from panora_sdk import Panora @@ -19021,13 +15412,13 @@ paths: ) - res = s.accounting.creditnotes.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.companyinfos.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingCreditNote + label: retrieveAccountingCompanyInfo source: |- package main @@ -19041,27 +15432,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Creditnotes.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Companyinfos.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingCreditnoteOutput != nil { + if res.UnifiedAccountingCompanyinfoOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingCreditNote - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_creditnotes.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_creditnote_output.nil?\n # handle response\nend" - /accounting/expenses: + label: retrieveAccountingCompanyInfo + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_companyinfos.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_companyinfo_output.nil?\n # handle response\nend" + /accounting/contacts: get: - operationId: listAccountingExpense - summary: List Expenses + operationId: listAccountingContacts + summary: List Contacts parameters: - name: x-connection-token required: true @@ -19103,10 +15490,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAccountingExpenseOutput' - tags: &ref_70 - - accounting/expenses - x-speakeasy-group: accounting.expenses + $ref: '#/components/schemas/UnifiedAccountingContactOutput' + tags: &ref_69 + - accounting/contacts + x-speakeasy-group: accounting.contacts x-speakeasy-pagination: type: cursor inputs: @@ -19117,30 +15504,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingExpense - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.expenses.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingContacts + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.contacts.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingExpense + label: listAccountingContacts source: |- from panora_sdk import Panora @@ -19149,7 +15516,7 @@ paths: ) - res = s.accounting.expenses.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.contacts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -19159,15 +15526,15 @@ paths: if res is None: break - lang: go - label: listAccountingExpense - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Expenses.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingContacts + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Contacts.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingExpense - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_expenses.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listAccountingContacts + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_contacts.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createAccountingExpense - summary: Create Expenses - description: Create Expenses in any supported Accounting software + operationId: createAccountingContact + summary: Create Contacts + description: Create contacts in any supported Accounting software parameters: - name: x-connection-token required: true @@ -19187,69 +15554,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingExpenseInput' + $ref: '#/components/schemas/UnifiedAccountingContactInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingExpenseOutput' - tags: *ref_70 - x-speakeasy-group: accounting.expenses + $ref: '#/components/schemas/UnifiedAccountingContactOutput' + tags: *ref_69 + x-speakeasy-group: accounting.contacts x-codeSamples: - lang: typescript - label: createAccountingExpense - source: |- - import { Panora } from "@panora/sdk"; - import { UnifiedAccountingExpenseInputCurrency } from "@panora/sdk/models/components"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.expenses.create({ - xConnectionToken: "", - remoteData: false, - unifiedAccountingExpenseInput: { - transactionDate: new Date("2024-06-15T12:00:00Z"), - totalAmount: 10000, - subTotal: 9000, - totalTaxAmount: 1000, - currency: UnifiedAccountingExpenseInputCurrency.Usd, - exchangeRate: "1.2", - memo: "Business lunch with client", - accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - trackingCategories: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - lineItems: [ - { - name: "Net Income", - value: 100000, - type: "Operating Activities", - parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "report_item_1234", - remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), - }, - ], - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createAccountingContact + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.contacts.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingContactInput: {\n name: \"John Doe\",\n isSupplier: true,\n isCustomer: false,\n emailAddress: \"john.doe@example.com\",\n taxNumber: \"123456789\",\n status: \"Active\",\n currency: \"USD\",\n remoteUpdatedAt: \"2024-06-15T12:00:00Z\",\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createAccountingExpense + label: createAccountingContact source: |- from panora_sdk import Panora @@ -19258,20 +15578,31 @@ paths: ) - res = s.accounting.expenses.create(x_connection_token="", unified_accounting_expense_input={}, remote_data=False) + res = s.accounting.contacts.create(x_connection_token="", unified_accounting_contact_input={ + "name": "John Doe", + "is_supplier": True, + "is_customer": False, + "email_address": "john.doe@example.com", + "tax_number": "123456789", + "status": "Active", + "currency": "USD", + "remote_updated_at": "2024-06-15T12:00:00Z", + "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "field_mappings": {}, + }, remote_data=False) if res is not None: # handle response pass - lang: go - label: createAccountingExpense + label: createAccountingContact source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -19279,28 +15610,35 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - unifiedAccountingExpenseInput := components.UnifiedAccountingExpenseInput{} - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Expenses.Create(ctx, xConnectionToken, unifiedAccountingExpenseInput, remoteData) + res, err := s.Accounting.Contacts.Create(ctx, "", components.UnifiedAccountingContactInput{ + Name: gosdk.String("John Doe"), + IsSupplier: gosdk.Bool(true), + IsCustomer: gosdk.Bool(false), + EmailAddress: gosdk.String("john.doe@example.com"), + TaxNumber: gosdk.String("123456789"), + Status: gosdk.String("Active"), + Currency: gosdk.String("USD"), + RemoteUpdatedAt: gosdk.String("2024-06-15T12:00:00Z"), + CompanyInfoID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + FieldMappings: &components.UnifiedAccountingContactInputFieldMappings{}, + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingExpenseOutput != nil { + if res.UnifiedAccountingContactOutput != nil { // handle response } } - lang: ruby - label: createAccountingExpense - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_expenses.create(x_connection_token=\"\", unified_accounting_expense_input=::OpenApiSDK::Shared::UnifiedAccountingExpenseInput.new(), remote_data=false)\n\nif ! res.unified_accounting_expense_output.nil?\n # handle response\nend" - /accounting/expenses/{id}: + label: createAccountingContact + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_contacts.create(x_connection_token=\"\", unified_accounting_contact_input=::OpenApiSDK::Shared::UnifiedAccountingContactInput.new(\n name: \"John Doe\",\n is_supplier: true,\n is_customer: false,\n email_address: \"john.doe@example.com\",\n tax_number: \"123456789\",\n status: \"Active\",\n currency: \"USD\",\n remote_updated_at: \"2024-06-15T12:00:00Z\",\n company_info_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: ::OpenApiSDK::Shared::UnifiedAccountingContactInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_accounting_contact_output.nil?\n # handle response\nend" + /accounting/contacts/{id}: get: - operationId: retrieveAccountingExpense - summary: Retrieve Expenses - description: Retrieve Expenses from any connected Accounting software + operationId: retrieveAccountingContact + summary: Retrieve Contacts + description: Retrieve Contacts from any connected Accounting software parameters: - name: x-connection-token required: true @@ -19312,7 +15650,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the expense you want to retrieve. + description: id of the contact you want to retrieve. schema: type: string - name: remote_data @@ -19328,33 +15666,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingExpenseOutput' - tags: *ref_70 - x-speakeasy-group: accounting.expenses + $ref: '#/components/schemas/UnifiedAccountingContactOutput' + tags: *ref_69 + x-speakeasy-group: accounting.contacts x-codeSamples: - lang: typescript - label: retrieveAccountingExpense - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.expenses.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingContact + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.contacts.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingExpense + label: retrieveAccountingContact source: |- from panora_sdk import Panora @@ -19363,13 +15683,13 @@ paths: ) - res = s.accounting.expenses.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.contacts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingExpense + label: retrieveAccountingContact source: |- package main @@ -19383,27 +15703,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Expenses.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Contacts.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingExpenseOutput != nil { + if res.UnifiedAccountingContactOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingExpense - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_expenses.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_expense_output.nil?\n # handle response\nend" - /accounting/incomestatements: + label: retrieveAccountingContact + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_contacts.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_contact_output.nil?\n # handle response\nend" + /accounting/creditnotes: get: - operationId: listAccountingIncomeStatement - summary: List IncomeStatements + operationId: listAccountingCreditNote + summary: List CreditNotes parameters: - name: x-connection-token required: true @@ -19446,10 +15762,10 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedAccountingIncomestatementOutput - tags: &ref_71 - - accounting/incomestatements - x-speakeasy-group: accounting.incomestatements + #/components/schemas/UnifiedAccountingCreditnoteOutput + tags: &ref_70 + - accounting/creditnotes + x-speakeasy-group: accounting.creditnotes x-speakeasy-pagination: type: cursor inputs: @@ -19460,30 +15776,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingIncomeStatement - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.incomestatements.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingCreditNote + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.creditnotes.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingIncomeStatement + label: listAccountingCreditNote source: |- from panora_sdk import Panora @@ -19492,7 +15788,7 @@ paths: ) - res = s.accounting.incomestatements.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.creditnotes.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -19502,16 +15798,16 @@ paths: if res is None: break - lang: go - label: listAccountingIncomeStatement - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Incomestatements.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingCreditNote + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Creditnotes.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingIncomeStatement - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_incomestatements.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /accounting/incomestatements/{id}: + label: listAccountingCreditNote + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_creditnotes.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /accounting/creditnotes/{id}: get: - operationId: retrieveAccountingIncomeStatement - summary: Retrieve Income Statements - description: Retrieve Income Statements from any connected Accounting software + operationId: retrieveAccountingCreditNote + summary: Retrieve Credit Notes + description: Retrieve Credit Notes from any connected Accounting software parameters: - name: x-connection-token required: true @@ -19523,7 +15819,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the incomestatement you want to retrieve. + description: id of the creditnote you want to retrieve. schema: type: string - name: remote_data @@ -19539,33 +15835,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingIncomestatementOutput' - tags: *ref_71 - x-speakeasy-group: accounting.incomestatements + $ref: '#/components/schemas/UnifiedAccountingCreditnoteOutput' + tags: *ref_70 + x-speakeasy-group: accounting.creditnotes x-codeSamples: - lang: typescript - label: retrieveAccountingIncomeStatement - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.incomestatements.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingCreditNote + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.creditnotes.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingIncomeStatement + label: retrieveAccountingCreditNote source: |- from panora_sdk import Panora @@ -19574,13 +15852,13 @@ paths: ) - res = s.accounting.incomestatements.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.creditnotes.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingIncomeStatement + label: retrieveAccountingCreditNote source: |- package main @@ -19594,27 +15872,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Incomestatements.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Creditnotes.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingIncomestatementOutput != nil { + if res.UnifiedAccountingCreditnoteOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingIncomeStatement - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_incomestatements.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_incomestatement_output.nil?\n # handle response\nend" - /accounting/invoices: + label: retrieveAccountingCreditNote + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_creditnotes.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_creditnote_output.nil?\n # handle response\nend" + /accounting/expenses: get: - operationId: listAccountingInvoice - summary: List Invoices + operationId: listAccountingExpense + summary: List Expenses parameters: - name: x-connection-token required: true @@ -19656,10 +15930,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAccountingInvoiceOutput' - tags: &ref_72 - - accounting/invoices - x-speakeasy-group: accounting.invoices + $ref: '#/components/schemas/UnifiedAccountingExpenseOutput' + tags: &ref_71 + - accounting/expenses + x-speakeasy-group: accounting.expenses x-speakeasy-pagination: type: cursor inputs: @@ -19670,30 +15944,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingInvoice - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.invoices.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingExpense + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.expenses.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingInvoice + label: listAccountingExpense source: |- from panora_sdk import Panora @@ -19702,7 +15956,7 @@ paths: ) - res = s.accounting.invoices.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.expenses.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -19712,15 +15966,15 @@ paths: if res is None: break - lang: go - label: listAccountingInvoice - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Invoices.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingExpense + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Expenses.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingInvoice - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_invoices.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listAccountingExpense + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_expenses.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createAccountingInvoice - summary: Create Invoices - description: Create invoices in any supported Accounting software + operationId: createAccountingExpense + summary: Create Expenses + description: Create Expenses in any supported Accounting software parameters: - name: x-connection-token required: true @@ -19740,77 +15994,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingInvoiceInput' + $ref: '#/components/schemas/UnifiedAccountingExpenseInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingInvoiceOutput' - tags: *ref_72 - x-speakeasy-group: accounting.invoices + $ref: '#/components/schemas/UnifiedAccountingExpenseOutput' + tags: *ref_71 + x-speakeasy-group: accounting.expenses x-codeSamples: - lang: typescript - label: createAccountingInvoice - source: |- - import { Panora } from "@panora/sdk"; - import { UnifiedAccountingInvoiceInputCurrency } from "@panora/sdk/models/components"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.invoices.create({ - xConnectionToken: "", - remoteData: false, - unifiedAccountingInvoiceInput: { - type: "Sales", - number: "INV-001", - issueDate: new Date("2024-06-15T12:00:00Z"), - dueDate: new Date("2024-07-15T12:00:00Z"), - paidOnDate: new Date("2024-07-10T12:00:00Z"), - memo: "Payment for services rendered", - currency: UnifiedAccountingInvoiceInputCurrency.Usd, - exchangeRate: "1.2", - totalDiscount: 1000, - subTotal: 10000, - status: "Paid", - totalTaxAmount: 1000, - totalAmount: 11000, - balance: 0, - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - accountingPeriodId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - trackingCategories: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - lineItems: [ - { - name: "Net Income", - value: 100000, - type: "Operating Activities", - parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "report_item_1234", - remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), - }, - ], - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createAccountingExpense + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.expenses.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingExpenseInput: {\n transactionDate: new Date(\"2024-06-15T12:00:00Z\"),\n totalAmount: 10000,\n subTotal: 9000,\n totalTaxAmount: 1000,\n currency: \"USD\",\n exchangeRate: \"1.2\",\n memo: \"Business lunch with client\",\n accountId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n trackingCategories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n lineItems: [\n {\n name: \"Net Income\",\n value: 100000,\n type: \"Operating Activities\",\n parentItem: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteId: \"report_item_1234\",\n remoteGeneratedAt: new Date(\"2024-07-01T12:00:00Z\"),\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n createdAt: new Date(\"2024-06-15T12:00:00Z\"),\n modifiedAt: new Date(\"2024-06-15T12:00:00Z\"),\n },\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createAccountingInvoice + label: createAccountingExpense source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -19818,20 +16019,49 @@ paths: ) - res = s.accounting.invoices.create(x_connection_token="", unified_accounting_invoice_input={}, remote_data=False) + res = s.accounting.expenses.create(x_connection_token="", unified_accounting_expense_input={ + "transaction_date": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + "total_amount": 10000, + "sub_total": 9000, + "total_tax_amount": 1000, + "currency": "USD", + "exchange_rate": "1.2", + "memo": "Business lunch with client", + "account_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "tracking_categories": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + "line_items": [ + { + "name": "Net Income", + "value": 100000, + "type": "Operating Activities", + "parent_item": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "remote_id": "report_item_1234", + "remote_generated_at": dateutil.parser.isoparse("2024-07-01T12:00:00Z"), + "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "created_at": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + "modified_at": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + }, + ], + "field_mappings": {}, + }, remote_data=False) if res is not None: # handle response pass - lang: go - label: createAccountingInvoice + label: createAccountingExpense source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -19839,28 +16069,52 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedAccountingInvoiceInput := components.UnifiedAccountingInvoiceInput{} - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Invoices.Create(ctx, xConnectionToken, unifiedAccountingInvoiceInput, remoteData) + res, err := s.Accounting.Expenses.Create(ctx, "", components.UnifiedAccountingExpenseInput{ + TransactionDate: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + TotalAmount: gosdk.Float64(10000), + SubTotal: gosdk.Float64(9000), + TotalTaxAmount: gosdk.Float64(1000), + Currency: gosdk.String("USD"), + ExchangeRate: gosdk.String("1.2"), + Memo: gosdk.String("Business lunch with client"), + AccountID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + ContactID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + CompanyInfoID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + TrackingCategories: []string{ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }, + LineItems: []components.LineItem{ + components.LineItem{ + Name: gosdk.String("Net Income"), + Value: gosdk.Float64(100000), + Type: gosdk.String("Operating Activities"), + ParentItem: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + RemoteID: gosdk.String("report_item_1234"), + RemoteGeneratedAt: types.MustNewTimeFromString("2024-07-01T12:00:00Z"), + CompanyInfoID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + CreatedAt: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + ModifiedAt: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + }, + }, + FieldMappings: &components.UnifiedAccountingExpenseInputFieldMappings{}, + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingInvoiceOutput != nil { + if res.UnifiedAccountingExpenseOutput != nil { // handle response } } - lang: ruby - label: createAccountingInvoice - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_invoices.create(x_connection_token=\"\", unified_accounting_invoice_input=::OpenApiSDK::Shared::UnifiedAccountingInvoiceInput.new(), remote_data=false)\n\nif ! res.unified_accounting_invoice_output.nil?\n # handle response\nend" - /accounting/invoices/{id}: + label: createAccountingExpense + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_expenses.create(x_connection_token=\"\", unified_accounting_expense_input=::OpenApiSDK::Shared::UnifiedAccountingExpenseInput.new(\n transaction_date: DateTime.iso8601('2024-06-15T12:00:00Z'),\n total_amount: 10000.0,\n sub_total: 9000.0,\n total_tax_amount: 1000.0,\n currency: \"USD\",\n exchange_rate: \"1.2\",\n memo: \"Business lunch with client\",\n account_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contact_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n company_info_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n tracking_categories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n line_items: [\n ::OpenApiSDK::Shared::LineItem.new(\n name: \"Net Income\",\n value: 100000.0,\n type: \"Operating Activities\",\n parent_item: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remote_id: \"report_item_1234\",\n remote_generated_at: DateTime.iso8601('2024-07-01T12:00:00Z'),\n company_info_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n created_at: DateTime.iso8601('2024-06-15T12:00:00Z'),\n modified_at: DateTime.iso8601('2024-06-15T12:00:00Z'),\n ),\n ],\n field_mappings: ::OpenApiSDK::Shared::UnifiedAccountingExpenseInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_accounting_expense_output.nil?\n # handle response\nend" + /accounting/expenses/{id}: get: - operationId: retrieveAccountingInvoice - summary: Retrieve Invoices - description: Retrieve Invoices from any connected Accounting software + operationId: retrieveAccountingExpense + summary: Retrieve Expenses + description: Retrieve Expenses from any connected Accounting software parameters: - name: x-connection-token required: true @@ -19872,7 +16126,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the invoice you want to retrieve. + description: id of the expense you want to retrieve. schema: type: string - name: remote_data @@ -19888,33 +16142,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingInvoiceOutput' - tags: *ref_72 - x-speakeasy-group: accounting.invoices + $ref: '#/components/schemas/UnifiedAccountingExpenseOutput' + tags: *ref_71 + x-speakeasy-group: accounting.expenses x-codeSamples: - lang: typescript - label: retrieveAccountingInvoice - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.invoices.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingExpense + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.expenses.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingInvoice + label: retrieveAccountingExpense source: |- from panora_sdk import Panora @@ -19923,13 +16159,13 @@ paths: ) - res = s.accounting.invoices.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.expenses.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingInvoice + label: retrieveAccountingExpense source: |- package main @@ -19943,27 +16179,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Invoices.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Expenses.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingInvoiceOutput != nil { + if res.UnifiedAccountingExpenseOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingInvoice - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_invoices.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_invoice_output.nil?\n # handle response\nend" - /accounting/items: + label: retrieveAccountingExpense + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_expenses.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_expense_output.nil?\n # handle response\nend" + /accounting/incomestatements: get: - operationId: listAccountingItem - summary: List Items + operationId: listAccountingIncomeStatement + summary: List IncomeStatements parameters: - name: x-connection-token required: true @@ -20005,10 +16237,11 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAccountingItemOutput' - tags: &ref_73 - - accounting/items - x-speakeasy-group: accounting.items + $ref: >- + #/components/schemas/UnifiedAccountingIncomestatementOutput + tags: &ref_72 + - accounting/incomestatements + x-speakeasy-group: accounting.incomestatements x-speakeasy-pagination: type: cursor inputs: @@ -20019,30 +16252,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingItem - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.items.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingIncomeStatement + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.incomestatements.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingItem + label: listAccountingIncomeStatement source: |- from panora_sdk import Panora @@ -20051,7 +16264,7 @@ paths: ) - res = s.accounting.items.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.incomestatements.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -20061,16 +16274,16 @@ paths: if res is None: break - lang: go - label: listAccountingItem - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Items.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingIncomeStatement + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Incomestatements.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingItem - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_items.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /accounting/items/{id}: + label: listAccountingIncomeStatement + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_incomestatements.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /accounting/incomestatements/{id}: get: - operationId: retrieveAccountingItem - summary: Retrieve Items - description: Retrieve Items from any connected Accounting software + operationId: retrieveAccountingIncomeStatement + summary: Retrieve Income Statements + description: Retrieve Income Statements from any connected Accounting software parameters: - name: x-connection-token required: true @@ -20082,7 +16295,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the item you want to retrieve. + description: id of the incomestatement you want to retrieve. schema: type: string - name: remote_data @@ -20098,33 +16311,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingItemOutput' - tags: *ref_73 - x-speakeasy-group: accounting.items + $ref: '#/components/schemas/UnifiedAccountingIncomestatementOutput' + tags: *ref_72 + x-speakeasy-group: accounting.incomestatements x-codeSamples: - lang: typescript - label: retrieveAccountingItem - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.items.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingIncomeStatement + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.incomestatements.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingItem + label: retrieveAccountingIncomeStatement source: |- from panora_sdk import Panora @@ -20133,13 +16328,13 @@ paths: ) - res = s.accounting.items.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.incomestatements.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingItem + label: retrieveAccountingIncomeStatement source: |- package main @@ -20153,27 +16348,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Items.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Incomestatements.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingItemOutput != nil { + if res.UnifiedAccountingIncomestatementOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingItem - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_items.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_item_output.nil?\n # handle response\nend" - /accounting/journalentries: + label: retrieveAccountingIncomeStatement + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_incomestatements.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_incomestatement_output.nil?\n # handle response\nend" + /accounting/invoices: get: - operationId: listAccountingJournalEntry - summary: List JournalEntrys + operationId: listAccountingInvoice + summary: List Invoices parameters: - name: x-connection-token required: true @@ -20215,45 +16406,24 @@ paths: data: type: array items: - $ref: >- - #/components/schemas/UnifiedAccountingJournalentryOutput - tags: &ref_74 - - accounting/journalentries - x-speakeasy-group: accounting.journalentries + $ref: '#/components/schemas/UnifiedAccountingInvoiceOutput' + tags: &ref_73 + - accounting/invoices + x-speakeasy-group: accounting.invoices x-speakeasy-pagination: type: cursor inputs: - name: cursor in: parameters type: cursor - outputs: - nextCursor: $.next_cursor - x-codeSamples: - - lang: typescript - label: listAccountingJournalEntry - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.journalentries.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + outputs: + nextCursor: $.next_cursor + x-codeSamples: + - lang: typescript + label: listAccountingInvoice + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.invoices.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingJournalEntry + label: listAccountingInvoice source: |- from panora_sdk import Panora @@ -20262,7 +16432,7 @@ paths: ) - res = s.accounting.journalentries.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.invoices.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -20272,15 +16442,15 @@ paths: if res is None: break - lang: go - label: listAccountingJournalEntry - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Journalentries.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingInvoice + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Invoices.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingJournalEntry - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_journalentries.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listAccountingInvoice + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_invoices.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createAccountingJournalEntry - summary: Create Journal Entries - description: Create Journal Entries in any supported Accounting software + operationId: createAccountingInvoice + summary: Create Invoices + description: Create invoices in any supported Accounting software parameters: - name: x-connection-token required: true @@ -20300,76 +16470,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingJournalentryInput' + $ref: '#/components/schemas/UnifiedAccountingInvoiceInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingJournalentryOutput' - tags: *ref_74 - x-speakeasy-group: accounting.journalentries + $ref: '#/components/schemas/UnifiedAccountingInvoiceOutput' + tags: *ref_73 + x-speakeasy-group: accounting.invoices x-codeSamples: - lang: typescript - label: createAccountingJournalEntry - source: |- - import { Panora } from "@panora/sdk"; - import { UnifiedAccountingJournalentryInputCurrency } from "@panora/sdk/models/components"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.journalentries.create({ - xConnectionToken: "", - remoteData: false, - unifiedAccountingJournalentryInput: { - transactionDate: new Date("2024-06-15T12:00:00Z"), - payments: [ - "payment1", - "payment2", - ], - appliedPayments: [ - "appliedPayment1", - "appliedPayment2", - ], - memo: "Monthly expense journal entry", - currency: UnifiedAccountingJournalentryInputCurrency.Usd, - exchangeRate: "1.2", - idAccCompanyInfo: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - journalNumber: "JE-001", - trackingCategories: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - idAccAccountingPeriod: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - postingStatus: "Posted", - lineItems: [ - { - name: "Net Income", - value: 100000, - type: "Operating Activities", - parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "report_item_1234", - remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), - }, - ], - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createAccountingInvoice + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.invoices.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingInvoiceInput: {\n type: \"Sales\",\n number: \"INV-001\",\n issueDate: new Date(\"2024-06-15T12:00:00Z\"),\n dueDate: new Date(\"2024-07-15T12:00:00Z\"),\n paidOnDate: new Date(\"2024-07-10T12:00:00Z\"),\n memo: \"Payment for services rendered\",\n currency: \"USD\",\n exchangeRate: \"1.2\",\n totalDiscount: 1000,\n subTotal: 10000,\n status: \"Paid\",\n totalTaxAmount: 1000,\n totalAmount: 11000,\n balance: 0,\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n accountingPeriodId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n trackingCategories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n lineItems: [\n {\n name: \"Net Income\",\n value: 100000,\n type: \"Operating Activities\",\n parentItem: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteId: \"report_item_1234\",\n remoteGeneratedAt: new Date(\"2024-07-01T12:00:00Z\"),\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n createdAt: new Date(\"2024-06-15T12:00:00Z\"),\n modifiedAt: new Date(\"2024-06-15T12:00:00Z\"),\n },\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createAccountingJournalEntry + label: createAccountingInvoice source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -20377,20 +16495,56 @@ paths: ) - res = s.accounting.journalentries.create(x_connection_token="", unified_accounting_journalentry_input={}, remote_data=False) + res = s.accounting.invoices.create(x_connection_token="", unified_accounting_invoice_input={ + "type": "Sales", + "number": "INV-001", + "issue_date": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + "due_date": dateutil.parser.isoparse("2024-07-15T12:00:00Z"), + "paid_on_date": dateutil.parser.isoparse("2024-07-10T12:00:00Z"), + "memo": "Payment for services rendered", + "currency": "USD", + "exchange_rate": "1.2", + "total_discount": 1000, + "sub_total": 10000, + "status": "Paid", + "total_tax_amount": 1000, + "total_amount": 11000, + "balance": 0, + "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "accounting_period_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "tracking_categories": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + "line_items": [ + { + "name": "Net Income", + "value": 100000, + "type": "Operating Activities", + "parent_item": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "remote_id": "report_item_1234", + "remote_generated_at": dateutil.parser.isoparse("2024-07-01T12:00:00Z"), + "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "created_at": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + "modified_at": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + }, + ], + "field_mappings": {}, + }, remote_data=False) if res is not None: # handle response pass - lang: go - label: createAccountingJournalEntry + label: createAccountingInvoice source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -20398,28 +16552,59 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedAccountingJournalentryInput := components.UnifiedAccountingJournalentryInput{} - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Journalentries.Create(ctx, xConnectionToken, unifiedAccountingJournalentryInput, remoteData) + res, err := s.Accounting.Invoices.Create(ctx, "", components.UnifiedAccountingInvoiceInput{ + Type: gosdk.String("Sales"), + Number: gosdk.String("INV-001"), + IssueDate: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + DueDate: types.MustNewTimeFromString("2024-07-15T12:00:00Z"), + PaidOnDate: types.MustNewTimeFromString("2024-07-10T12:00:00Z"), + Memo: gosdk.String("Payment for services rendered"), + Currency: gosdk.String("USD"), + ExchangeRate: gosdk.String("1.2"), + TotalDiscount: gosdk.Float64(1000), + SubTotal: gosdk.Float64(10000), + Status: gosdk.String("Paid"), + TotalTaxAmount: gosdk.Float64(1000), + TotalAmount: gosdk.Float64(11000), + Balance: gosdk.Float64(0), + ContactID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + AccountingPeriodID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + TrackingCategories: []string{ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }, + LineItems: []components.LineItem{ + components.LineItem{ + Name: gosdk.String("Net Income"), + Value: gosdk.Float64(100000), + Type: gosdk.String("Operating Activities"), + ParentItem: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + RemoteID: gosdk.String("report_item_1234"), + RemoteGeneratedAt: types.MustNewTimeFromString("2024-07-01T12:00:00Z"), + CompanyInfoID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + CreatedAt: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + ModifiedAt: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + }, + }, + FieldMappings: &components.UnifiedAccountingInvoiceInputFieldMappings{}, + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingJournalentryOutput != nil { + if res.UnifiedAccountingInvoiceOutput != nil { // handle response } } - lang: ruby - label: createAccountingJournalEntry - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_journalentries.create(x_connection_token=\"\", unified_accounting_journalentry_input=::OpenApiSDK::Shared::UnifiedAccountingJournalentryInput.new(), remote_data=false)\n\nif ! res.unified_accounting_journalentry_output.nil?\n # handle response\nend" - /accounting/journalentries/{id}: + label: createAccountingInvoice + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_invoices.create(x_connection_token=\"\", unified_accounting_invoice_input=::OpenApiSDK::Shared::UnifiedAccountingInvoiceInput.new(\n type: \"Sales\",\n number: \"INV-001\",\n issue_date: DateTime.iso8601('2024-06-15T12:00:00Z'),\n due_date: DateTime.iso8601('2024-07-15T12:00:00Z'),\n paid_on_date: DateTime.iso8601('2024-07-10T12:00:00Z'),\n memo: \"Payment for services rendered\",\n currency: \"USD\",\n exchange_rate: \"1.2\",\n total_discount: 1000.0,\n sub_total: 10000.0,\n status: \"Paid\",\n total_tax_amount: 1000.0,\n total_amount: 11000.0,\n balance: 0.0,\n contact_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n accounting_period_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n tracking_categories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n line_items: [\n ::OpenApiSDK::Shared::LineItem.new(\n name: \"Net Income\",\n value: 100000.0,\n type: \"Operating Activities\",\n parent_item: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remote_id: \"report_item_1234\",\n remote_generated_at: DateTime.iso8601('2024-07-01T12:00:00Z'),\n company_info_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n created_at: DateTime.iso8601('2024-06-15T12:00:00Z'),\n modified_at: DateTime.iso8601('2024-06-15T12:00:00Z'),\n ),\n ],\n field_mappings: ::OpenApiSDK::Shared::UnifiedAccountingInvoiceInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_accounting_invoice_output.nil?\n # handle response\nend" + /accounting/invoices/{id}: get: - operationId: retrieveAccountingJournalEntry - summary: Retrieve Journal Entries - description: Retrieve Journal Entries from any connected Accounting software + operationId: retrieveAccountingInvoice + summary: Retrieve Invoices + description: Retrieve Invoices from any connected Accounting software parameters: - name: x-connection-token required: true @@ -20431,7 +16616,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the journalentry you want to retrieve. + description: id of the invoice you want to retrieve. schema: type: string - name: remote_data @@ -20447,33 +16632,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingJournalentryOutput' - tags: *ref_74 - x-speakeasy-group: accounting.journalentries + $ref: '#/components/schemas/UnifiedAccountingInvoiceOutput' + tags: *ref_73 + x-speakeasy-group: accounting.invoices x-codeSamples: - lang: typescript - label: retrieveAccountingJournalEntry - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.journalentries.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingInvoice + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.invoices.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingJournalEntry + label: retrieveAccountingInvoice source: |- from panora_sdk import Panora @@ -20482,13 +16649,13 @@ paths: ) - res = s.accounting.journalentries.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.invoices.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingJournalEntry + label: retrieveAccountingInvoice source: |- package main @@ -20502,27 +16669,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Journalentries.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Invoices.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingJournalentryOutput != nil { + if res.UnifiedAccountingInvoiceOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingJournalEntry - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_journalentries.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_journalentry_output.nil?\n # handle response\nend" - /accounting/payments: + label: retrieveAccountingInvoice + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_invoices.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_invoice_output.nil?\n # handle response\nend" + /accounting/items: get: - operationId: listAccountingPayment - summary: List Payments + operationId: listAccountingItem + summary: List Items parameters: - name: x-connection-token required: true @@ -20564,10 +16727,10 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAccountingPaymentOutput' - tags: &ref_75 - - accounting/payments - x-speakeasy-group: accounting.payments + $ref: '#/components/schemas/UnifiedAccountingItemOutput' + tags: &ref_74 + - accounting/items + x-speakeasy-group: accounting.items x-speakeasy-pagination: type: cursor inputs: @@ -20578,30 +16741,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingPayment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.payments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingItem + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.items.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingPayment + label: listAccountingItem source: |- from panora_sdk import Panora @@ -20610,7 +16753,7 @@ paths: ) - res = s.accounting.payments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.items.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -20620,148 +16763,16 @@ paths: if res is None: break - lang: go - label: listAccountingPayment - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Payments.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listAccountingPayment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_payments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createAccountingPayment - summary: Create Payments - description: Create Payments in any supported Accounting software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: false - description: Set to true to include data from the original Accounting software. - schema: - type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedAccountingPaymentInput' - responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedAccountingPaymentOutput' - tags: *ref_75 - x-speakeasy-group: accounting.payments - x-codeSamples: - - lang: typescript - label: createAccountingPayment - source: |- - import { Panora } from "@panora/sdk"; - import { UnifiedAccountingPaymentInputCurrency } from "@panora/sdk/models/components"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.payments.create({ - xConnectionToken: "", - remoteData: false, - unifiedAccountingPaymentInput: { - invoiceId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - transactionDate: new Date("2024-06-15T12:00:00Z"), - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - currency: UnifiedAccountingPaymentInputCurrency.Usd, - exchangeRate: "1.2", - totalAmount: 10000, - type: "Credit Card", - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - accountingPeriodId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - trackingCategories: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - lineItems: [ - { - name: "Net Income", - value: 100000, - type: "Operating Activities", - parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "report_item_1234", - remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), - }, - ], - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) - } - - run(); - - lang: python - label: createAccountingPayment - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.accounting.payments.create(x_connection_token="", unified_accounting_payment_input={}, remote_data=False) - - if res is not None: - # handle response - pass - - lang: go - label: createAccountingPayment - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - unifiedAccountingPaymentInput := components.UnifiedAccountingPaymentInput{} - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Accounting.Payments.Create(ctx, xConnectionToken, unifiedAccountingPaymentInput, remoteData) - if err != nil { - log.Fatal(err) - } - if res.UnifiedAccountingPaymentOutput != nil { - // handle response - } - } + label: listAccountingItem + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Items.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: createAccountingPayment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_payments.create(x_connection_token=\"\", unified_accounting_payment_input=::OpenApiSDK::Shared::UnifiedAccountingPaymentInput.new(), remote_data=false)\n\nif ! res.unified_accounting_payment_output.nil?\n # handle response\nend" - /accounting/payments/{id}: + label: listAccountingItem + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_items.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /accounting/items/{id}: get: - operationId: retrieveAccountingPayment - summary: Retrieve Payments - description: Retrieve Payments from any connected Accounting software + operationId: retrieveAccountingItem + summary: Retrieve Items + description: Retrieve Items from any connected Accounting software parameters: - name: x-connection-token required: true @@ -20773,7 +16784,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the payment you want to retrieve. + description: id of the item you want to retrieve. schema: type: string - name: remote_data @@ -20789,33 +16800,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingPaymentOutput' - tags: *ref_75 - x-speakeasy-group: accounting.payments + $ref: '#/components/schemas/UnifiedAccountingItemOutput' + tags: *ref_74 + x-speakeasy-group: accounting.items x-codeSamples: - lang: typescript - label: retrieveAccountingPayment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.payments.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingItem + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.items.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingPayment + label: retrieveAccountingItem source: |- from panora_sdk import Panora @@ -20824,13 +16817,13 @@ paths: ) - res = s.accounting.payments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.items.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingPayment + label: retrieveAccountingItem source: |- package main @@ -20844,27 +16837,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Payments.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Items.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingPaymentOutput != nil { + if res.UnifiedAccountingItemOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingPayment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_payments.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_payment_output.nil?\n # handle response\nend" - /accounting/phonenumbers: + label: retrieveAccountingItem + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_items.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_item_output.nil?\n # handle response\nend" + /accounting/journalentries: get: - operationId: listAccountingPhonenumber - summary: List PhoneNumbers + operationId: listAccountingJournalEntry + summary: List JournalEntrys parameters: - name: x-connection-token required: true @@ -20907,10 +16896,10 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedAccountingPhonenumberOutput - tags: &ref_76 - - accounting/phonenumbers - x-speakeasy-group: accounting.phonenumbers + #/components/schemas/UnifiedAccountingJournalentryOutput + tags: &ref_75 + - accounting/journalentries + x-speakeasy-group: accounting.journalentries x-speakeasy-pagination: type: cursor inputs: @@ -20921,30 +16910,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingPhonenumber - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.phonenumbers.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingJournalEntry + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.journalentries.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingPhonenumber + label: listAccountingJournalEntry source: |- from panora_sdk import Panora @@ -20953,7 +16922,7 @@ paths: ) - res = s.accounting.phonenumbers.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.journalentries.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -20963,16 +16932,167 @@ paths: if res is None: break - lang: go - label: listAccountingPhonenumber - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Phonenumbers.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingJournalEntry + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Journalentries.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingPhonenumber - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_phonenumbers.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /accounting/phonenumbers/{id}: + label: listAccountingJournalEntry + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_journalentries.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createAccountingJournalEntry + summary: Create Journal Entries + description: Create Journal Entries in any supported Accounting software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: false + description: Set to true to include data from the original Accounting software. + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedAccountingJournalentryInput' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedAccountingJournalentryOutput' + tags: *ref_75 + x-speakeasy-group: accounting.journalentries + x-codeSamples: + - lang: typescript + label: createAccountingJournalEntry + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.journalentries.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingJournalentryInput: {\n transactionDate: new Date(\"2024-06-15T12:00:00Z\"),\n payments: [\n \"payment1\",\n \"payment2\",\n ],\n appliedPayments: [\n \"appliedPayment1\",\n \"appliedPayment2\",\n ],\n memo: \"Monthly expense journal entry\",\n currency: \"USD\",\n exchangeRate: \"1.2\",\n idAccCompanyInfo: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n journalNumber: \"JE-001\",\n trackingCategories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n idAccAccountingPeriod: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n postingStatus: \"Posted\",\n lineItems: [\n {\n name: \"Net Income\",\n value: 100000,\n type: \"Operating Activities\",\n parentItem: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteId: \"report_item_1234\",\n remoteGeneratedAt: new Date(\"2024-07-01T12:00:00Z\"),\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n createdAt: new Date(\"2024-06-15T12:00:00Z\"),\n modifiedAt: new Date(\"2024-06-15T12:00:00Z\"),\n },\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - lang: python + label: createAccountingJournalEntry + source: |- + import dateutil.parser + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.accounting.journalentries.create(x_connection_token="", unified_accounting_journalentry_input={ + "transaction_date": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + "payments": [ + "payment1", + "payment2", + ], + "applied_payments": [ + "appliedPayment1", + "appliedPayment2", + ], + "memo": "Monthly expense journal entry", + "currency": "USD", + "exchange_rate": "1.2", + "id_acc_company_info": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "journal_number": "JE-001", + "tracking_categories": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + "id_acc_accounting_period": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "posting_status": "Posted", + "line_items": [ + { + "name": "Net Income", + "value": 100000, + "type": "Operating Activities", + "parent_item": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "remote_id": "report_item_1234", + "remote_generated_at": dateutil.parser.isoparse("2024-07-01T12:00:00Z"), + "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "created_at": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + "modified_at": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + }, + ], + "field_mappings": {}, + }, remote_data=False) + + if res is not None: + # handle response + pass + - lang: go + label: createAccountingJournalEntry + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Accounting.Journalentries.Create(ctx, "", components.UnifiedAccountingJournalentryInput{ + TransactionDate: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + Payments: []string{ + "payment1", + "payment2", + }, + AppliedPayments: []string{ + "appliedPayment1", + "appliedPayment2", + }, + Memo: gosdk.String("Monthly expense journal entry"), + Currency: gosdk.String("USD"), + ExchangeRate: gosdk.String("1.2"), + IDAccCompanyInfo: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + JournalNumber: gosdk.String("JE-001"), + TrackingCategories: []string{ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }, + IDAccAccountingPeriod: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + PostingStatus: gosdk.String("Posted"), + LineItems: []components.LineItem{ + components.LineItem{ + Name: gosdk.String("Net Income"), + Value: gosdk.Float64(100000), + Type: gosdk.String("Operating Activities"), + ParentItem: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + RemoteID: gosdk.String("report_item_1234"), + RemoteGeneratedAt: types.MustNewTimeFromString("2024-07-01T12:00:00Z"), + CompanyInfoID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + CreatedAt: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + ModifiedAt: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + }, + }, + FieldMappings: &components.UnifiedAccountingJournalentryInputFieldMappings{}, + }, gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedAccountingJournalentryOutput != nil { + // handle response + } + } + - lang: ruby + label: createAccountingJournalEntry + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_journalentries.create(x_connection_token=\"\", unified_accounting_journalentry_input=::OpenApiSDK::Shared::UnifiedAccountingJournalentryInput.new(\n transaction_date: DateTime.iso8601('2024-06-15T12:00:00Z'),\n payments: [\n \"payment1\",\n \"payment2\",\n ],\n applied_payments: [\n \"appliedPayment1\",\n \"appliedPayment2\",\n ],\n memo: \"Monthly expense journal entry\",\n currency: \"USD\",\n exchange_rate: \"1.2\",\n id_acc_company_info: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n journal_number: \"JE-001\",\n tracking_categories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n id_acc_accounting_period: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n posting_status: \"Posted\",\n line_items: [\n ::OpenApiSDK::Shared::LineItem.new(\n name: \"Net Income\",\n value: 100000.0,\n type: \"Operating Activities\",\n parent_item: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remote_id: \"report_item_1234\",\n remote_generated_at: DateTime.iso8601('2024-07-01T12:00:00Z'),\n company_info_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n created_at: DateTime.iso8601('2024-06-15T12:00:00Z'),\n modified_at: DateTime.iso8601('2024-06-15T12:00:00Z'),\n ),\n ],\n field_mappings: ::OpenApiSDK::Shared::UnifiedAccountingJournalentryInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_accounting_journalentry_output.nil?\n # handle response\nend" + /accounting/journalentries/{id}: get: - operationId: retrieveAccountingPhonenumber - summary: Retrieve Phone Numbers - description: Retrieve Phone Numbers from any connected Accounting software + operationId: retrieveAccountingJournalEntry + summary: Retrieve Journal Entries + description: Retrieve Journal Entries from any connected Accounting software parameters: - name: x-connection-token required: true @@ -20984,7 +17104,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the phonenumber you want to retrieve. + description: id of the journalentry you want to retrieve. schema: type: string - name: remote_data @@ -21000,33 +17120,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingPhonenumberOutput' - tags: *ref_76 - x-speakeasy-group: accounting.phonenumbers + $ref: '#/components/schemas/UnifiedAccountingJournalentryOutput' + tags: *ref_75 + x-speakeasy-group: accounting.journalentries x-codeSamples: - lang: typescript - label: retrieveAccountingPhonenumber - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.phonenumbers.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingJournalEntry + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.journalentries.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingPhonenumber + label: retrieveAccountingJournalEntry source: |- from panora_sdk import Panora @@ -21035,13 +17137,13 @@ paths: ) - res = s.accounting.phonenumbers.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.journalentries.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingPhonenumber + label: retrieveAccountingJournalEntry source: |- package main @@ -21055,27 +17157,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Phonenumbers.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Journalentries.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingPhonenumberOutput != nil { + if res.UnifiedAccountingJournalentryOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingPhonenumber - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_phonenumbers.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_phonenumber_output.nil?\n # handle response\nend" - /accounting/purchaseorders: + label: retrieveAccountingJournalEntry + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_journalentries.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_journalentry_output.nil?\n # handle response\nend" + /accounting/payments: get: - operationId: listAccountingPurchaseOrder - summary: List PurchaseOrders + operationId: listAccountingPayment + summary: List Payments parameters: - name: x-connection-token required: true @@ -21117,11 +17215,10 @@ paths: data: type: array items: - $ref: >- - #/components/schemas/UnifiedAccountingPurchaseorderOutput - tags: &ref_77 - - accounting/purchaseorders - x-speakeasy-group: accounting.purchaseorders + $ref: '#/components/schemas/UnifiedAccountingPaymentOutput' + tags: &ref_76 + - accounting/payments + x-speakeasy-group: accounting.payments x-speakeasy-pagination: type: cursor inputs: @@ -21130,32 +17227,12 @@ paths: type: cursor outputs: nextCursor: $.next_cursor - x-codeSamples: - - lang: typescript - label: listAccountingPurchaseOrder - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.purchaseorders.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + x-codeSamples: + - lang: typescript + label: listAccountingPayment + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.payments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingPurchaseOrder + label: listAccountingPayment source: |- from panora_sdk import Panora @@ -21164,7 +17241,7 @@ paths: ) - res = s.accounting.purchaseorders.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.payments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -21174,15 +17251,15 @@ paths: if res is None: break - lang: go - label: listAccountingPurchaseOrder - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Purchaseorders.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingPayment + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Payments.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingPurchaseOrder - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_purchaseorders.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + label: listAccountingPayment + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_payments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" post: - operationId: createAccountingPurchaseOrder - summary: Create Purchase Orders - description: Create Purchase Orders in any supported Accounting software + operationId: createAccountingPayment + summary: Create Payments + description: Create Payments in any supported Accounting software parameters: - name: x-connection-token required: true @@ -21202,73 +17279,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingPurchaseorderInput' + $ref: '#/components/schemas/UnifiedAccountingPaymentInput' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingPurchaseorderOutput' - tags: *ref_77 - x-speakeasy-group: accounting.purchaseorders + $ref: '#/components/schemas/UnifiedAccountingPaymentOutput' + tags: *ref_76 + x-speakeasy-group: accounting.payments x-codeSamples: - lang: typescript - label: createAccountingPurchaseOrder - source: |- - import { Panora } from "@panora/sdk"; - import { UnifiedAccountingPurchaseorderInputCurrency } from "@panora/sdk/models/components"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.purchaseorders.create({ - xConnectionToken: "", - remoteData: false, - unifiedAccountingPurchaseorderInput: { - status: "Pending", - issueDate: new Date("2024-06-15T12:00:00Z"), - purchaseOrderNumber: "PO-001", - deliveryDate: new Date("2024-07-15T12:00:00Z"), - deliveryAddress: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - customer: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - vendor: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - memo: "Purchase order for Q3 inventory", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - totalAmount: 100000, - currency: UnifiedAccountingPurchaseorderInputCurrency.Usd, - exchangeRate: "1.2", - trackingCategories: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - accountingPeriodId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - lineItems: [ - { - name: "Net Income", - value: 100000, - type: "Operating Activities", - parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "report_item_1234", - remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), - }, - ], - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + label: createAccountingPayment + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.payments.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingPaymentInput: {\n invoiceId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n transactionDate: new Date(\"2024-06-15T12:00:00Z\"),\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n accountId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n currency: \"USD\",\n exchangeRate: \"1.2\",\n totalAmount: 10000,\n type: \"Credit Card\",\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n accountingPeriodId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n trackingCategories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n lineItems: [\n {\n name: \"Net Income\",\n value: 100000,\n type: \"Operating Activities\",\n parentItem: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteId: \"report_item_1234\",\n remoteGeneratedAt: new Date(\"2024-07-01T12:00:00Z\"),\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n createdAt: new Date(\"2024-06-15T12:00:00Z\"),\n modifiedAt: new Date(\"2024-06-15T12:00:00Z\"),\n },\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: createAccountingPurchaseOrder + label: createAccountingPayment source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -21276,20 +17304,49 @@ paths: ) - res = s.accounting.purchaseorders.create(x_connection_token="", unified_accounting_purchaseorder_input={}, remote_data=False) + res = s.accounting.payments.create(x_connection_token="", unified_accounting_payment_input={ + "invoice_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "transaction_date": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "account_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "currency": "USD", + "exchange_rate": "1.2", + "total_amount": 10000, + "type": "Credit Card", + "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "accounting_period_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "tracking_categories": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + "line_items": [ + { + "name": "Net Income", + "value": 100000, + "type": "Operating Activities", + "parent_item": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "remote_id": "report_item_1234", + "remote_generated_at": dateutil.parser.isoparse("2024-07-01T12:00:00Z"), + "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "created_at": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + "modified_at": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + }, + ], + "field_mappings": {}, + }, remote_data=False) if res is not None: # handle response pass - lang: go - label: createAccountingPurchaseOrder + label: createAccountingPayment source: |- package main import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -21297,28 +17354,52 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedAccountingPurchaseorderInput := components.UnifiedAccountingPurchaseorderInput{} - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Purchaseorders.Create(ctx, xConnectionToken, unifiedAccountingPurchaseorderInput, remoteData) + res, err := s.Accounting.Payments.Create(ctx, "", components.UnifiedAccountingPaymentInput{ + InvoiceID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + TransactionDate: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + ContactID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + AccountID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Currency: gosdk.String("USD"), + ExchangeRate: gosdk.String("1.2"), + TotalAmount: gosdk.Float64(10000), + Type: gosdk.String("Credit Card"), + CompanyInfoID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + AccountingPeriodID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + TrackingCategories: []string{ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }, + LineItems: []components.LineItem{ + components.LineItem{ + Name: gosdk.String("Net Income"), + Value: gosdk.Float64(100000), + Type: gosdk.String("Operating Activities"), + ParentItem: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + RemoteID: gosdk.String("report_item_1234"), + RemoteGeneratedAt: types.MustNewTimeFromString("2024-07-01T12:00:00Z"), + CompanyInfoID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + CreatedAt: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + ModifiedAt: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + }, + }, + FieldMappings: &components.UnifiedAccountingPaymentInputFieldMappings{}, + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingPurchaseorderOutput != nil { + if res.UnifiedAccountingPaymentOutput != nil { // handle response } } - lang: ruby - label: createAccountingPurchaseOrder - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_purchaseorders.create(x_connection_token=\"\", unified_accounting_purchaseorder_input=::OpenApiSDK::Shared::UnifiedAccountingPurchaseorderInput.new(), remote_data=false)\n\nif ! res.unified_accounting_purchaseorder_output.nil?\n # handle response\nend" - /accounting/purchaseorders/{id}: + label: createAccountingPayment + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_payments.create(x_connection_token=\"\", unified_accounting_payment_input=::OpenApiSDK::Shared::UnifiedAccountingPaymentInput.new(\n invoice_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n transaction_date: DateTime.iso8601('2024-06-15T12:00:00Z'),\n contact_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n account_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n currency: \"USD\",\n exchange_rate: \"1.2\",\n total_amount: 10000.0,\n type: \"Credit Card\",\n company_info_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n accounting_period_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n tracking_categories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n line_items: [\n ::OpenApiSDK::Shared::LineItem.new(\n name: \"Net Income\",\n value: 100000.0,\n type: \"Operating Activities\",\n parent_item: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remote_id: \"report_item_1234\",\n remote_generated_at: DateTime.iso8601('2024-07-01T12:00:00Z'),\n company_info_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n created_at: DateTime.iso8601('2024-06-15T12:00:00Z'),\n modified_at: DateTime.iso8601('2024-06-15T12:00:00Z'),\n ),\n ],\n field_mappings: ::OpenApiSDK::Shared::UnifiedAccountingPaymentInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_accounting_payment_output.nil?\n # handle response\nend" + /accounting/payments/{id}: get: - operationId: retrieveAccountingPurchaseOrder - summary: Retrieve Purchase Orders - description: Retrieve Purchase Orders from any connected Accounting software + operationId: retrieveAccountingPayment + summary: Retrieve Payments + description: Retrieve Payments from any connected Accounting software parameters: - name: x-connection-token required: true @@ -21330,7 +17411,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the purchaseorder you want to retrieve. + description: id of the payment you want to retrieve. schema: type: string - name: remote_data @@ -21346,33 +17427,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingPurchaseorderOutput' - tags: *ref_77 - x-speakeasy-group: accounting.purchaseorders + $ref: '#/components/schemas/UnifiedAccountingPaymentOutput' + tags: *ref_76 + x-speakeasy-group: accounting.payments x-codeSamples: - lang: typescript - label: retrieveAccountingPurchaseOrder - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.purchaseorders.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingPayment + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.payments.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingPurchaseOrder + label: retrieveAccountingPayment source: |- from panora_sdk import Panora @@ -21381,13 +17444,13 @@ paths: ) - res = s.accounting.purchaseorders.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.payments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingPurchaseOrder + label: retrieveAccountingPayment source: |- package main @@ -21401,27 +17464,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Purchaseorders.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Payments.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingPurchaseorderOutput != nil { + if res.UnifiedAccountingPaymentOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingPurchaseOrder - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_purchaseorders.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_purchaseorder_output.nil?\n # handle response\nend" - /accounting/taxrates: + label: retrieveAccountingPayment + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_payments.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_payment_output.nil?\n # handle response\nend" + /accounting/phonenumbers: get: - operationId: listAccountingTaxRate - summary: List TaxRates + operationId: listAccountingPhonenumber + summary: List PhoneNumbers parameters: - name: x-connection-token required: true @@ -21463,10 +17522,11 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedAccountingTaxrateOutput' - tags: &ref_78 - - accounting/taxrates - x-speakeasy-group: accounting.taxrates + $ref: >- + #/components/schemas/UnifiedAccountingPhonenumberOutput + tags: &ref_77 + - accounting/phonenumbers + x-speakeasy-group: accounting.phonenumbers x-speakeasy-pagination: type: cursor inputs: @@ -21477,30 +17537,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingTaxRate - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.taxrates.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingPhonenumber + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.phonenumbers.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingTaxRate + label: listAccountingPhonenumber source: |- from panora_sdk import Panora @@ -21509,7 +17549,7 @@ paths: ) - res = s.accounting.taxrates.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.phonenumbers.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -21519,16 +17559,16 @@ paths: if res is None: break - lang: go - label: listAccountingTaxRate - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Taxrates.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingPhonenumber + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Phonenumbers.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingTaxRate - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_taxrates.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /accounting/taxrates/{id}: + label: listAccountingPhonenumber + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_phonenumbers.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /accounting/phonenumbers/{id}: get: - operationId: retrieveAccountingTaxRate - summary: Retrieve Tax Rates - description: Retrieve Tax Rates from any connected Accounting software + operationId: retrieveAccountingPhonenumber + summary: Retrieve Phone Numbers + description: Retrieve Phone Numbers from any connected Accounting software parameters: - name: x-connection-token required: true @@ -21540,7 +17580,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the taxrate you want to retrieve. + description: id of the phonenumber you want to retrieve. schema: type: string - name: remote_data @@ -21556,33 +17596,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingTaxrateOutput' - tags: *ref_78 - x-speakeasy-group: accounting.taxrates + $ref: '#/components/schemas/UnifiedAccountingPhonenumberOutput' + tags: *ref_77 + x-speakeasy-group: accounting.phonenumbers x-codeSamples: - lang: typescript - label: retrieveAccountingTaxRate - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.taxrates.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingPhonenumber + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.phonenumbers.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingTaxRate + label: retrieveAccountingPhonenumber source: |- from panora_sdk import Panora @@ -21591,13 +17613,13 @@ paths: ) - res = s.accounting.taxrates.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.phonenumbers.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingTaxRate + label: retrieveAccountingPhonenumber source: |- package main @@ -21611,27 +17633,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Taxrates.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Phonenumbers.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingTaxrateOutput != nil { + if res.UnifiedAccountingPhonenumberOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingTaxRate - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_taxrates.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_taxrate_output.nil?\n # handle response\nend" - /accounting/trackingcategories: + label: retrieveAccountingPhonenumber + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_phonenumbers.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_phonenumber_output.nil?\n # handle response\nend" + /accounting/purchaseorders: get: - operationId: listAccountingTrackingCategorys - summary: List TrackingCategorys + operationId: listAccountingPurchaseOrder + summary: List PurchaseOrders parameters: - name: x-connection-token required: true @@ -21674,10 +17692,10 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedAccountingTrackingcategoryOutput - tags: &ref_79 - - accounting/trackingcategories - x-speakeasy-group: accounting.trackingcategories + #/components/schemas/UnifiedAccountingPurchaseorderOutput + tags: &ref_78 + - accounting/purchaseorders + x-speakeasy-group: accounting.purchaseorders x-speakeasy-pagination: type: cursor inputs: @@ -21688,31 +17706,74 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingTrackingCategorys - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.trackingcategories.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingPurchaseOrder + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.purchaseorders.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + - lang: python + label: listAccountingPurchaseOrder + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.accounting.purchaseorders.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + + if res is not None: + while True: + # handle items + + res = res.Next() + if res is None: + break + - lang: go + label: listAccountingPurchaseOrder + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Purchaseorders.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + - lang: ruby + label: listAccountingPurchaseOrder + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_purchaseorders.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + post: + operationId: createAccountingPurchaseOrder + summary: Create Purchase Orders + description: Create Purchase Orders in any supported Accounting software + parameters: + - name: x-connection-token + required: true + in: header + description: The connection token + schema: + type: string + - name: remote_data + required: false + in: query + example: false + description: Set to true to include data from the original Accounting software. + schema: + type: boolean + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedAccountingPurchaseorderInput' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedAccountingPurchaseorderOutput' + tags: *ref_78 + x-speakeasy-group: accounting.purchaseorders + x-codeSamples: + - lang: typescript + label: createAccountingPurchaseOrder + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.purchaseorders.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingPurchaseorderInput: {\n status: \"Pending\",\n issueDate: new Date(\"2024-06-15T12:00:00Z\"),\n purchaseOrderNumber: \"PO-001\",\n deliveryDate: new Date(\"2024-07-15T12:00:00Z\"),\n deliveryAddress: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n customer: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n vendor: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n memo: \"Purchase order for Q3 inventory\",\n companyId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n totalAmount: 100000,\n currency: \"USD\",\n exchangeRate: \"1.2\",\n trackingCategories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n accountingPeriodId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n lineItems: [\n {\n name: \"Net Income\",\n value: 100000,\n type: \"Operating Activities\",\n parentItem: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteId: \"report_item_1234\",\n remoteGeneratedAt: new Date(\"2024-07-01T12:00:00Z\"),\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n createdAt: new Date(\"2024-06-15T12:00:00Z\"),\n modifiedAt: new Date(\"2024-06-15T12:00:00Z\"),\n },\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: listAccountingTrackingCategorys + label: createAccountingPurchaseOrder source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -21720,26 +17781,108 @@ paths: ) - res = s.accounting.trackingcategories.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.purchaseorders.create(x_connection_token="", unified_accounting_purchaseorder_input={ + "status": "Pending", + "issue_date": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + "purchase_order_number": "PO-001", + "delivery_date": dateutil.parser.isoparse("2024-07-15T12:00:00Z"), + "delivery_address": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "customer": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "vendor": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "memo": "Purchase order for Q3 inventory", + "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "total_amount": 100000, + "currency": "USD", + "exchange_rate": "1.2", + "tracking_categories": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + "accounting_period_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "line_items": [ + { + "name": "Net Income", + "value": 100000, + "type": "Operating Activities", + "parent_item": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "remote_id": "report_item_1234", + "remote_generated_at": dateutil.parser.isoparse("2024-07-01T12:00:00Z"), + "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "created_at": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + "modified_at": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + }, + ], + "field_mappings": {}, + }, remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break + # handle response + pass - lang: go - label: listAccountingTrackingCategorys - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Trackingcategories.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: createAccountingPurchaseOrder + source: |- + package main + + import( + gosdk "github.com/panoratech/go-sdk" + "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" + "log" + ) + + func main() { + s := gosdk.New( + gosdk.WithSecurity(""), + ) + + ctx := context.Background() + res, err := s.Accounting.Purchaseorders.Create(ctx, "", components.UnifiedAccountingPurchaseorderInput{ + Status: gosdk.String("Pending"), + IssueDate: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + PurchaseOrderNumber: gosdk.String("PO-001"), + DeliveryDate: types.MustNewTimeFromString("2024-07-15T12:00:00Z"), + DeliveryAddress: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Customer: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Vendor: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Memo: gosdk.String("Purchase order for Q3 inventory"), + CompanyID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + TotalAmount: gosdk.Float64(100000), + Currency: gosdk.String("USD"), + ExchangeRate: gosdk.String("1.2"), + TrackingCategories: []string{ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }, + AccountingPeriodID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + LineItems: []components.LineItem{ + components.LineItem{ + Name: gosdk.String("Net Income"), + Value: gosdk.Float64(100000), + Type: gosdk.String("Operating Activities"), + ParentItem: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + RemoteID: gosdk.String("report_item_1234"), + RemoteGeneratedAt: types.MustNewTimeFromString("2024-07-01T12:00:00Z"), + CompanyInfoID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + CreatedAt: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + ModifiedAt: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + }, + }, + FieldMappings: &components.UnifiedAccountingPurchaseorderInputFieldMappings{}, + }, gosdk.Bool(false)) + if err != nil { + log.Fatal(err) + } + if res.UnifiedAccountingPurchaseorderOutput != nil { + // handle response + } + } - lang: ruby - label: listAccountingTrackingCategorys - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_trackingcategories.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /accounting/trackingcategories/{id}: + label: createAccountingPurchaseOrder + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_purchaseorders.create(x_connection_token=\"\", unified_accounting_purchaseorder_input=::OpenApiSDK::Shared::UnifiedAccountingPurchaseorderInput.new(\n status: \"Pending\",\n issue_date: DateTime.iso8601('2024-06-15T12:00:00Z'),\n purchase_order_number: \"PO-001\",\n delivery_date: DateTime.iso8601('2024-07-15T12:00:00Z'),\n delivery_address: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n customer: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n vendor: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n memo: \"Purchase order for Q3 inventory\",\n company_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n total_amount: 100000.0,\n currency: \"USD\",\n exchange_rate: \"1.2\",\n tracking_categories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n accounting_period_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n line_items: [\n ::OpenApiSDK::Shared::LineItem.new(\n name: \"Net Income\",\n value: 100000.0,\n type: \"Operating Activities\",\n parent_item: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remote_id: \"report_item_1234\",\n remote_generated_at: DateTime.iso8601('2024-07-01T12:00:00Z'),\n company_info_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n created_at: DateTime.iso8601('2024-06-15T12:00:00Z'),\n modified_at: DateTime.iso8601('2024-06-15T12:00:00Z'),\n ),\n ],\n field_mappings: ::OpenApiSDK::Shared::UnifiedAccountingPurchaseorderInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_accounting_purchaseorder_output.nil?\n # handle response\nend" + /accounting/purchaseorders/{id}: get: - operationId: retrieveAccountingTrackingCategory - summary: Retrieve Tracking Categories - description: Retrieve Tracking Categories from any connected Accounting software + operationId: retrieveAccountingPurchaseOrder + summary: Retrieve Purchase Orders + description: Retrieve Purchase Orders from any connected Accounting software parameters: - name: x-connection-token required: true @@ -21751,7 +17894,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the trackingcategory you want to retrieve. + description: id of the purchaseorder you want to retrieve. schema: type: string - name: remote_data @@ -21767,33 +17910,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingTrackingcategoryOutput' - tags: *ref_79 - x-speakeasy-group: accounting.trackingcategories + $ref: '#/components/schemas/UnifiedAccountingPurchaseorderOutput' + tags: *ref_78 + x-speakeasy-group: accounting.purchaseorders x-codeSamples: - lang: typescript - label: retrieveAccountingTrackingCategory - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.trackingcategories.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingPurchaseOrder + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.purchaseorders.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingTrackingCategory + label: retrieveAccountingPurchaseOrder source: |- from panora_sdk import Panora @@ -21802,13 +17927,13 @@ paths: ) - res = s.accounting.trackingcategories.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.purchaseorders.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingTrackingCategory + label: retrieveAccountingPurchaseOrder source: |- package main @@ -21822,27 +17947,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Trackingcategories.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Purchaseorders.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingTrackingcategoryOutput != nil { + if res.UnifiedAccountingPurchaseorderOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingTrackingCategory - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_trackingcategories.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_trackingcategory_output.nil?\n # handle response\nend" - /accounting/transactions: + label: retrieveAccountingPurchaseOrder + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_purchaseorders.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_purchaseorder_output.nil?\n # handle response\nend" + /accounting/taxrates: get: - operationId: listAccountingTransaction - summary: List Transactions + operationId: listAccountingTaxRate + summary: List TaxRates parameters: - name: x-connection-token required: true @@ -21884,11 +18005,10 @@ paths: data: type: array items: - $ref: >- - #/components/schemas/UnifiedAccountingTransactionOutput - tags: &ref_80 - - accounting/transactions - x-speakeasy-group: accounting.transactions + $ref: '#/components/schemas/UnifiedAccountingTaxrateOutput' + tags: &ref_79 + - accounting/taxrates + x-speakeasy-group: accounting.taxrates x-speakeasy-pagination: type: cursor inputs: @@ -21899,30 +18019,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingTransaction - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.transactions.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingTaxRate + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.taxrates.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingTransaction + label: listAccountingTaxRate source: |- from panora_sdk import Panora @@ -21931,7 +18031,7 @@ paths: ) - res = s.accounting.transactions.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.taxrates.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -21941,16 +18041,16 @@ paths: if res is None: break - lang: go - label: listAccountingTransaction - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Transactions.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingTaxRate + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Taxrates.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingTransaction - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_transactions.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /accounting/transactions/{id}: + label: listAccountingTaxRate + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_taxrates.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /accounting/taxrates/{id}: get: - operationId: retrieveAccountingTransaction - summary: Retrieve Transactions - description: Retrieve Transactions from any connected Accounting software + operationId: retrieveAccountingTaxRate + summary: Retrieve Tax Rates + description: Retrieve Tax Rates from any connected Accounting software parameters: - name: x-connection-token required: true @@ -21962,7 +18062,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the transaction you want to retrieve. + description: id of the taxrate you want to retrieve. schema: type: string - name: remote_data @@ -21978,33 +18078,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingTransactionOutput' - tags: *ref_80 - x-speakeasy-group: accounting.transactions + $ref: '#/components/schemas/UnifiedAccountingTaxrateOutput' + tags: *ref_79 + x-speakeasy-group: accounting.taxrates x-codeSamples: - lang: typescript - label: retrieveAccountingTransaction - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.transactions.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingTaxRate + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.taxrates.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingTransaction + label: retrieveAccountingTaxRate source: |- from panora_sdk import Panora @@ -22013,13 +18095,13 @@ paths: ) - res = s.accounting.transactions.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.taxrates.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingTransaction + label: retrieveAccountingTaxRate source: |- package main @@ -22033,27 +18115,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Transactions.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Taxrates.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingTransactionOutput != nil { + if res.UnifiedAccountingTaxrateOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingTransaction - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_transactions.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_transaction_output.nil?\n # handle response\nend" - /accounting/vendorcredits: + label: retrieveAccountingTaxRate + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_taxrates.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_taxrate_output.nil?\n # handle response\nend" + /accounting/trackingcategories: get: - operationId: listAccountingVendorCredit - summary: List VendorCredits + operationId: listAccountingTrackingCategorys + summary: List TrackingCategorys parameters: - name: x-connection-token required: true @@ -22096,10 +18174,10 @@ paths: type: array items: $ref: >- - #/components/schemas/UnifiedAccountingVendorcreditOutput - tags: &ref_81 - - accounting/vendorcredits - x-speakeasy-group: accounting.vendorcredits + #/components/schemas/UnifiedAccountingTrackingcategoryOutput + tags: &ref_80 + - accounting/trackingcategories + x-speakeasy-group: accounting.trackingcategories x-speakeasy-pagination: type: cursor inputs: @@ -22110,30 +18188,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listAccountingVendorCredit - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.vendorcredits.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingTrackingCategorys + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.trackingcategories.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listAccountingVendorCredit + label: listAccountingTrackingCategorys source: |- from panora_sdk import Panora @@ -22142,7 +18200,7 @@ paths: ) - res = s.accounting.vendorcredits.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.trackingcategories.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -22152,16 +18210,16 @@ paths: if res is None: break - lang: go - label: listAccountingVendorCredit - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Accounting.Vendorcredits.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingTrackingCategorys + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Trackingcategories.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listAccountingVendorCredit - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_vendorcredits.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /accounting/vendorcredits/{id}: + label: listAccountingTrackingCategorys + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_trackingcategories.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /accounting/trackingcategories/{id}: get: - operationId: retrieveAccountingVendorCredit - summary: Retrieve Vendor Credits - description: Retrieve Vendor Credits from any connected Accounting software + operationId: retrieveAccountingTrackingCategory + summary: Retrieve Tracking Categories + description: Retrieve Tracking Categories from any connected Accounting software parameters: - name: x-connection-token required: true @@ -22173,7 +18231,7 @@ paths: required: true in: path example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: id of the vendorcredit you want to retrieve. + description: id of the trackingcategory you want to retrieve. schema: type: string - name: remote_data @@ -22189,33 +18247,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedAccountingVendorcreditOutput' - tags: *ref_81 - x-speakeasy-group: accounting.vendorcredits + $ref: '#/components/schemas/UnifiedAccountingTrackingcategoryOutput' + tags: *ref_80 + x-speakeasy-group: accounting.trackingcategories x-codeSamples: - lang: typescript - label: retrieveAccountingVendorCredit - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.accounting.vendorcredits.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingTrackingCategory + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.trackingcategories.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveAccountingVendorCredit + label: retrieveAccountingTrackingCategory source: |- from panora_sdk import Panora @@ -22224,13 +18264,13 @@ paths: ) - res = s.accounting.vendorcredits.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.trackingcategories.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveAccountingVendorCredit + label: retrieveAccountingTrackingCategory source: |- package main @@ -22244,27 +18284,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Accounting.Vendorcredits.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Trackingcategories.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedAccountingVendorcreditOutput != nil { + if res.UnifiedAccountingTrackingcategoryOutput != nil { // handle response } } - lang: ruby - label: retrieveAccountingVendorCredit - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_vendorcredits.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_vendorcredit_output.nil?\n # handle response\nend" - /filestorage/drives: + label: retrieveAccountingTrackingCategory + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_trackingcategories.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_trackingcategory_output.nil?\n # handle response\nend" + /accounting/transactions: get: - operationId: listFilestorageDrives - summary: List Drives + operationId: listAccountingTransaction + summary: List Transactions parameters: - name: x-connection-token required: true @@ -22306,10 +18342,11 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedFilestorageDriveOutput' - tags: &ref_82 - - filestorage/drives - x-speakeasy-group: filestorage.drives + $ref: >- + #/components/schemas/UnifiedAccountingTransactionOutput + tags: &ref_81 + - accounting/transactions + x-speakeasy-group: accounting.transactions x-speakeasy-pagination: type: cursor inputs: @@ -22320,30 +18357,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listFilestorageDrives - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.filestorage.drives.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + label: listAccountingTransaction + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.transactions.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: listFilestorageDrives + label: listAccountingTransaction source: |- from panora_sdk import Panora @@ -22352,7 +18369,7 @@ paths: ) - res = s.filestorage.drives.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.transactions.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -22362,16 +18379,16 @@ paths: if res is None: break - lang: go - label: listFilestorageDrives - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Filestorage.Drives.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + label: listAccountingTransaction + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Transactions.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: listFilestorageDrives - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_drives.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - /filestorage/drives/{id}: + label: listAccountingTransaction + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_transactions.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /accounting/transactions/{id}: get: - operationId: retrieveFilestorageDrive - summary: Retrieve Drive - description: Retrieve a Drive from any connected file storage service + operationId: retrieveAccountingTransaction + summary: Retrieve Transactions + description: Retrieve Transactions from any connected Accounting software parameters: - name: x-connection-token required: true @@ -22382,15 +18399,15 @@ paths: - name: id required: true in: path - description: id of the drive you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: id of the transaction you want to retrieve. schema: type: string - name: remote_data required: false in: query - description: Set to true to include data from the original file storage service. example: false + description: Set to true to include data from the original Accounting software. schema: type: boolean responses: @@ -22399,33 +18416,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedFilestorageDriveOutput' - tags: *ref_82 - x-speakeasy-group: filestorage.drives + $ref: '#/components/schemas/UnifiedAccountingTransactionOutput' + tags: *ref_81 + x-speakeasy-group: accounting.transactions x-codeSamples: - lang: typescript - label: retrieveFilestorageDrive - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.filestorage.drives.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingTransaction + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.transactions.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveFilestorageDrive + label: retrieveAccountingTransaction source: |- from panora_sdk import Panora @@ -22434,13 +18433,13 @@ paths: ) - res = s.filestorage.drives.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.transactions.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveFilestorageDrive + label: retrieveAccountingTransaction source: |- package main @@ -22454,27 +18453,23 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Filestorage.Drives.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Transactions.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedFilestorageDriveOutput != nil { + if res.UnifiedAccountingTransactionOutput != nil { // handle response } } - lang: ruby - label: retrieveFilestorageDrive - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_drives.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_filestorage_drive_output.nil?\n # handle response\nend" - /filestorage/files: + label: retrieveAccountingTransaction + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_transactions.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_transaction_output.nil?\n # handle response\nend" + /accounting/vendorcredits: get: - operationId: listFilestorageFile - summary: List Files + operationId: listAccountingVendorCredit + summary: List VendorCredits parameters: - name: x-connection-token required: true @@ -22516,10 +18511,11 @@ paths: data: type: array items: - $ref: '#/components/schemas/UnifiedFilestorageFileOutput' - tags: &ref_83 - - filestorage/files - x-speakeasy-group: filestorage.files + $ref: >- + #/components/schemas/UnifiedAccountingVendorcreditOutput + tags: &ref_82 + - accounting/vendorcredits + x-speakeasy-group: accounting.vendorcredits x-speakeasy-pagination: type: cursor inputs: @@ -22530,122 +18526,10 @@ paths: nextCursor: $.next_cursor x-codeSamples: - lang: typescript - label: listFilestorageFile - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.filestorage.files.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); - - lang: python - label: listFilestorageFile - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.filestorage.files.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - - if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - lang: go - label: listFilestorageFile - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Filestorage.Files.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - - lang: ruby - label: listFilestorageFile - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_files.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" - post: - operationId: createFilestorageFile - summary: Create Files - description: Create Files in any supported Filestorage software - parameters: - - name: x-connection-token - required: true - in: header - description: The connection token - schema: - type: string - - name: remote_data - required: false - in: query - example: false - description: Set to true to include data from the original Accounting software. - schema: - type: boolean - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedFilestorageFileInput' - responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedFilestorageFileOutput' - tags: *ref_83 - x-speakeasy-group: filestorage.files - x-codeSamples: - - lang: typescript - label: createFilestorageFile - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.filestorage.files.create({ - xConnectionToken: "", - 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 - console.log(result) - } - - run(); + label: listAccountingVendorCredit + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.vendorcredits.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python - label: createFilestorageFile + label: listAccountingVendorCredit source: |- from panora_sdk import Panora @@ -22654,73 +18538,26 @@ paths: ) - res = s.filestorage.files.create(x_connection_token="", unified_filestorage_file_input={ - "name": "my_paris_photo.png", - "file_url": "https://example.com/my_paris_photo.png", - "mime_type": "application/pdf", - "size": "1024", - "folder_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "permission": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "shared_link": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, remote_data=False) - - if res is not None: - # handle response - pass - - lang: go - label: createFilestorageFile - source: |- - package main - - import( - gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" - "context" - "log" - ) - - func main() { - s := gosdk.New( - gosdk.WithSecurity(""), - ) - var xConnectionToken string = "" - - unifiedFilestorageFileInput := components.UnifiedFilestorageFileInput{ - Name: gosdk.String("my_paris_photo.png"), - FileURL: gosdk.String("https://example.com/my_paris_photo.png"), - MimeType: gosdk.String("application/pdf"), - Size: gosdk.String("1024"), - FolderID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - Permission: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - SharedLink: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), - FieldMappings: map[string]any{ - "fav_dish": "broccoli", - "fav_color": "red", - }, - } - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Filestorage.Files.Create(ctx, xConnectionToken, unifiedFilestorageFileInput, remoteData) - if err != nil { - log.Fatal(err) - } - if res.UnifiedFilestorageFileOutput != nil { - // handle response - } - } + res = s.accounting.vendorcredits.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + + if res is not None: + while True: + # handle items + + res = res.Next() + if res is None: + break + - lang: go + label: listAccountingVendorCredit + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Accounting.Vendorcredits.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby - label: createFilestorageFile - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_files.create(x_connection_token=\"\", unified_filestorage_file_input=::OpenApiSDK::Shared::UnifiedFilestorageFileInput.new(\n name: \"my_paris_photo.png\",\n file_url: \"https://example.com/my_paris_photo.png\",\n mime_type: \"application/pdf\",\n size: \"1024\",\n folder_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n permission: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n shared_link: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"online\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_filestorage_file_output.nil?\n # handle response\nend" - /filestorage/files/{id}: + label: listAccountingVendorCredit + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_vendorcredits.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" + /accounting/vendorcredits/{id}: get: - operationId: retrieveFilestorageFile - summary: Retrieve Files - description: Retrieve Files from any connected Filestorage software + operationId: retrieveAccountingVendorCredit + summary: Retrieve Vendor Credits + description: Retrieve Vendor Credits from any connected Accounting software parameters: - name: x-connection-token required: true @@ -22731,15 +18568,15 @@ paths: - name: id required: true in: path - description: id of the file you want to retrieve. example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: id of the vendorcredit you want to retrieve. schema: type: string - name: remote_data required: false in: query - description: Set to true to include data from the original File Storage software. example: false + description: Set to true to include data from the original Accounting software. schema: type: boolean responses: @@ -22748,33 +18585,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UnifiedFilestorageFileOutput' - tags: *ref_83 - x-speakeasy-group: filestorage.files + $ref: '#/components/schemas/UnifiedAccountingVendorcreditOutput' + tags: *ref_82 + x-speakeasy-group: accounting.vendorcredits x-codeSamples: - lang: typescript - label: retrieveFilestorageFile - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.filestorage.files.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + label: retrieveAccountingVendorCredit + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.vendorcredits.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python - label: retrieveFilestorageFile + label: retrieveAccountingVendorCredit source: |- from panora_sdk import Panora @@ -22783,13 +18602,13 @@ paths: ) - res = s.filestorage.files.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.vendorcredits.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - lang: go - label: retrieveFilestorageFile + label: retrieveAccountingVendorCredit source: |- package main @@ -22803,23 +18622,19 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Filestorage.Files.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Accounting.Vendorcredits.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } - if res.UnifiedFilestorageFileOutput != nil { + if res.UnifiedAccountingVendorcreditOutput != nil { // handle response } } - lang: ruby - label: retrieveFilestorageFile - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_files.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_filestorage_file_output.nil?\n # handle response\nend" + label: retrieveAccountingVendorCredit + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.accounting_vendorcredits.retrieve(x_connection_token=\"\", id=\"801f9ede-c698-4e66-a7fc-48d19eebaa4f\", remote_data=false)\n\nif ! res.unified_accounting_vendorcredit_output.nil?\n # handle response\nend" /filestorage/folders: get: operationId: listFilestorageFolder @@ -22866,7 +18681,7 @@ paths: type: array items: $ref: '#/components/schemas/UnifiedFilestorageFolderOutput' - tags: &ref_84 + tags: &ref_83 - filestorage/folders x-speakeasy-group: filestorage.folders x-speakeasy-pagination: @@ -22880,27 +18695,7 @@ paths: x-codeSamples: - lang: typescript label: listFilestorageFolder - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.filestorage.folders.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.folders.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python label: listFilestorageFolder source: |- @@ -22922,7 +18717,7 @@ paths: break - lang: go label: listFilestorageFolder - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Filestorage.Folders.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Filestorage.Folders.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby label: listFilestorageFolder source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_folders.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" @@ -22957,43 +18752,12 @@ paths: application/json: schema: $ref: '#/components/schemas/UnifiedFilestorageFolderOutput' - tags: *ref_84 + tags: *ref_83 x-speakeasy-group: filestorage.folders x-codeSamples: - lang: typescript label: createFilestorageFolder - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - 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", - }, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.folders.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedFilestorageFolderInput: {\n name: \"school\",\n size: \"2048\",\n folderUrl: \"https://example.com/school\",\n description: \"All things school related\",\n driveId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n parentFolderId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n sharedLink: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n permission: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: createFilestorageFolder source: |- @@ -23029,8 +18793,8 @@ paths: import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -23038,9 +18802,9 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedFilestorageFolderInput := components.UnifiedFilestorageFolderInput{ + ctx := context.Background() + res, err := s.Filestorage.Folders.Create(ctx, "", components.UnifiedFilestorageFolderInput{ Name: gosdk.String("school"), Size: gosdk.String("2048"), FolderURL: gosdk.String("https://example.com/school"), @@ -23053,11 +18817,7 @@ paths: "fav_dish": "broccoli", "fav_color": "red", }, - } - - var remoteData *bool = gosdk.Bool(false) - ctx := context.Background() - res, err := s.Filestorage.Folders.Create(ctx, xConnectionToken, unifiedFilestorageFolderInput, remoteData) + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } @@ -23067,7 +18827,7 @@ paths: } - lang: ruby label: createFilestorageFolder - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_folders.create(x_connection_token=\"\", unified_filestorage_folder_input=::OpenApiSDK::Shared::UnifiedFilestorageFolderInput.new(\n name: \"school\",\n size: \"2048\",\n folder_url: \"https://example.com/school\",\n description: \"All things school related\",\n drive_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n parent_folder_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n shared_link: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n permission: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"online\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_filestorage_folder_output.nil?\n # handle response\nend" + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_folders.create(x_connection_token=\"\", unified_filestorage_folder_input=::OpenApiSDK::Shared::UnifiedFilestorageFolderInput.new(\n name: \"school\",\n size: \"2048\",\n folder_url: \"https://example.com/school\",\n description: \"All things school related\",\n drive_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n parent_folder_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n shared_link: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n permission: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_filestorage_folder_output.nil?\n # handle response\nend" /filestorage/folders/{id}: get: operationId: retrieveFilestorageFolder @@ -23101,30 +18861,12 @@ paths: application/json: schema: $ref: '#/components/schemas/UnifiedFilestorageFolderOutput' - tags: *ref_84 + tags: *ref_83 x-speakeasy-group: filestorage.folders x-codeSamples: - lang: typescript label: retrieveFilestorageFolder - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.filestorage.folders.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.folders.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: retrieveFilestorageFolder source: |- @@ -23155,13 +18897,9 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Filestorage.Folders.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Filestorage.Folders.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } @@ -23218,7 +18956,7 @@ paths: type: array items: $ref: '#/components/schemas/UnifiedFilestorageGroupOutput' - tags: &ref_85 + tags: &ref_84 - filestorage/groups x-speakeasy-group: filestorage.groups x-speakeasy-pagination: @@ -23232,27 +18970,7 @@ paths: x-codeSamples: - lang: typescript label: listFilestorageGroup - source: |- - import { Panora } from "@panora/sdk"; - - 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", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.groups.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python label: listFilestorageGroup source: |- @@ -23274,7 +18992,7 @@ paths: break - lang: go label: listFilestorageGroup - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Filestorage.Groups.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Filestorage.Groups.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby label: listFilestorageGroup source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_groups.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" @@ -23311,30 +19029,12 @@ paths: application/json: schema: $ref: '#/components/schemas/UnifiedFilestorageGroupOutput' - tags: *ref_85 + tags: *ref_84 x-speakeasy-group: filestorage.groups x-codeSamples: - lang: typescript label: retrieveFilestorageGroup - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.filestorage.groups.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.groups.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: retrieveFilestorageGroup source: |- @@ -23365,13 +19065,9 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Filestorage.Groups.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Filestorage.Groups.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } @@ -23428,7 +19124,7 @@ paths: type: array items: $ref: '#/components/schemas/UnifiedFilestorageUserOutput' - tags: &ref_86 + tags: &ref_85 - filestorage/users x-speakeasy-group: filestorage.users x-speakeasy-pagination: @@ -23442,27 +19138,7 @@ paths: x-codeSamples: - lang: typescript label: listFilestorageUsers - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.filestorage.users.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.users.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python label: listFilestorageUsers source: |- @@ -23484,7 +19160,7 @@ paths: break - lang: go label: listFilestorageUsers - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Filestorage.Users.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Filestorage.Users.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby label: listFilestorageUsers source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.filestorage_users.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" @@ -23521,30 +19197,12 @@ paths: application/json: schema: $ref: '#/components/schemas/UnifiedFilestorageUserOutput' - tags: *ref_86 + tags: *ref_85 x-speakeasy-group: filestorage.users x-codeSamples: - lang: typescript label: retrieveFilestorageUser - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.filestorage.users.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.users.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: retrieveFilestorageUser source: |- @@ -23575,13 +19233,9 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Filestorage.Users.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Filestorage.Users.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } @@ -23638,7 +19292,7 @@ paths: type: array items: $ref: '#/components/schemas/UnifiedEcommerceProductOutput' - tags: &ref_87 + tags: &ref_86 - ecommerce/products x-speakeasy-group: ecommerce.products x-speakeasy-pagination: @@ -23652,27 +19306,7 @@ paths: x-codeSamples: - lang: typescript label: listEcommerceProducts - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ecommerce.products.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.products.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python label: listEcommerceProducts source: |- @@ -23694,7 +19328,7 @@ paths: break - lang: go label: listEcommerceProducts - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ecommerce.Products.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ecommerce.Products.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby label: listEcommerceProducts source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_products.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" @@ -23729,47 +19363,12 @@ paths: application/json: schema: $ref: '#/components/schemas/UnifiedEcommerceProductOutput' - tags: *ref_87 + tags: *ref_86 x-speakeasy-group: ecommerce.products x-codeSamples: - lang: typescript label: createEcommerceProduct - source: |- - import { Panora } from "@panora/sdk"; - import { UnifiedEcommerceProductInputProductStatus } from "@panora/sdk/models/components"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ecommerce.products.create({ - xConnectionToken: "", - remoteData: false, - unifiedEcommerceProductInput: { - productUrl: "https://product_url/tee", - productType: "teeshirt", - productStatus: UnifiedEcommerceProductInputProductStatus.Active, - imagesUrls: [ - "https://myproduct/image", - ], - description: "best tee ever", - vendor: "vendor_extern", - variants: [ - {}, - ], - tags: [ - "tag_1", - ], - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.products.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedEcommerceProductInput: {\n productUrl: \"https://product_url/tee\",\n productType: \"teeshirt\",\n productStatus: \"ACTIVE\",\n imagesUrls: [\n \"https://myproduct/image\",\n ],\n description: \"best tee ever\",\n vendor: \"vendor_extern\",\n variants: [\n {},\n ],\n tags: [\n \"tag_1\",\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: createEcommerceProduct source: |- @@ -23780,7 +19379,23 @@ paths: ) - res = s.ecommerce.products.create(x_connection_token="", unified_ecommerce_product_input={}, remote_data=False) + res = s.ecommerce.products.create(x_connection_token="", unified_ecommerce_product_input={ + "product_url": "https://product_url/tee", + "product_type": "teeshirt", + "product_status": "ACTIVE", + "images_urls": [ + "https://myproduct/image", + ], + "description": "best tee ever", + "vendor": "vendor_extern", + "variants": [ + {}, + ], + "tags": [ + "tag_1", + ], + "field_mappings": {}, + }, remote_data=False) if res is not None: # handle response @@ -23792,8 +19407,8 @@ paths: import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -23801,13 +19416,25 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - - unifiedEcommerceProductInput := components.UnifiedEcommerceProductInput{} - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ecommerce.Products.Create(ctx, xConnectionToken, unifiedEcommerceProductInput, remoteData) + res, err := s.Ecommerce.Products.Create(ctx, "", components.UnifiedEcommerceProductInput{ + ProductURL: gosdk.String("https://product_url/tee"), + ProductType: gosdk.String("teeshirt"), + ProductStatus: gosdk.String("ACTIVE"), + ImagesUrls: []string{ + "https://myproduct/image", + }, + Description: gosdk.String("best tee ever"), + Vendor: gosdk.String("vendor_extern"), + Variants: []components.Variant{ + components.Variant{}, + }, + Tags: []string{ + "tag_1", + }, + FieldMappings: &components.UnifiedEcommerceProductInputFieldMappings{}, + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } @@ -23817,7 +19444,7 @@ paths: } - lang: ruby label: createEcommerceProduct - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_products.create(x_connection_token=\"\", unified_ecommerce_product_input=::OpenApiSDK::Shared::UnifiedEcommerceProductInput.new(), remote_data=false)\n\nif ! res.unified_ecommerce_product_output.nil?\n # handle response\nend" + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_products.create(x_connection_token=\"\", unified_ecommerce_product_input=::OpenApiSDK::Shared::UnifiedEcommerceProductInput.new(\n product_url: \"https://product_url/tee\",\n product_type: \"teeshirt\",\n product_status: \"ACTIVE\",\n images_urls: [\n \"https://myproduct/image\",\n ],\n description: \"best tee ever\",\n vendor: \"vendor_extern\",\n variants: [\n ::OpenApiSDK::Shared::Variant.new(),\n ],\n tags: [\n \"tag_1\",\n ],\n field_mappings: ::OpenApiSDK::Shared::UnifiedEcommerceProductInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_ecommerce_product_output.nil?\n # handle response\nend" /ecommerce/products/{id}: get: operationId: retrieveEcommerceProduct @@ -23845,33 +19472,16 @@ paths: responses: '200': description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UnifiedEcommerceProductOutput' - tags: *ref_87 - x-speakeasy-group: ecommerce.products - x-codeSamples: - - lang: typescript - label: retrieveEcommerceProduct - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ecommerce.products.retrieve({ - xConnectionToken: "", - id: "", - }); - - // Handle the result - console.log(result) - } - - run(); + content: + application/json: + schema: + $ref: '#/components/schemas/UnifiedEcommerceProductOutput' + tags: *ref_86 + x-speakeasy-group: ecommerce.products + x-codeSamples: + - lang: typescript + label: retrieveEcommerceProduct + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.products.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: retrieveEcommerceProduct source: |- @@ -23902,11 +19512,9 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "" ctx := context.Background() - res, err := s.Ecommerce.Products.Retrieve(ctx, xConnectionToken, id, nil) + res, err := s.Ecommerce.Products.Retrieve(ctx, "", "", nil) if err != nil { log.Fatal(err) } @@ -23916,7 +19524,7 @@ paths: } - lang: ruby label: retrieveEcommerceProduct - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_products.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.unified_ecommerce_product_output.nil?\n # handle response\nend" + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_products.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.unified_ecommerce_product_output.nil?\n # handle response\nend" /ecommerce/orders: get: operationId: listEcommerceOrders @@ -23963,7 +19571,7 @@ paths: type: array items: $ref: '#/components/schemas/UnifiedEcommerceOrderOutput' - tags: &ref_88 + tags: &ref_87 - ecommerce/orders x-speakeasy-group: ecommerce.orders x-speakeasy-pagination: @@ -23977,27 +19585,7 @@ paths: x-codeSamples: - lang: typescript label: listEcommerceOrders - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ecommerce.orders.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.orders.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python label: listEcommerceOrders source: |- @@ -24019,7 +19607,7 @@ paths: break - lang: go label: listEcommerceOrders - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ecommerce.Orders.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ecommerce.Orders.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby label: listEcommerceOrders source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_orders.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" @@ -24054,64 +19642,16 @@ paths: application/json: schema: $ref: '#/components/schemas/UnifiedEcommerceOrderOutput' - tags: *ref_88 + tags: *ref_87 x-speakeasy-group: ecommerce.orders x-codeSamples: - lang: typescript label: createEcommerceOrder - source: |- - import { Panora } from "@panora/sdk"; - import { - UnifiedEcommerceOrderInputCurrency, - UnifiedEcommerceOrderInputFulfillmentStatus, - UnifiedEcommerceOrderInputOrderStatus, - UnifiedEcommerceOrderInputPaymentStatus, - } from "@panora/sdk/models/components"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ecommerce.orders.create({ - xConnectionToken: "", - remoteData: false, - unifiedEcommerceOrderInput: { - orderStatus: UnifiedEcommerceOrderInputOrderStatus.Unshipped, - orderNumber: "19823838833", - paymentStatus: UnifiedEcommerceOrderInputPaymentStatus.Success, - currency: UnifiedEcommerceOrderInputCurrency.Aud, - totalPrice: 300, - totalDiscount: 10, - totalShipping: 120, - totalTax: 120, - fulfillmentStatus: UnifiedEcommerceOrderInputFulfillmentStatus.Pending, - customerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - items: [ - { - name: "Net Income", - value: 100000, - type: "Operating Activities", - parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "12345", - remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), - }, - ], - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.orders.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedEcommerceOrderInput: {\n orderStatus: \"UNSHIPPED\",\n orderNumber: \"19823838833\",\n paymentStatus: \"SUCCESS\",\n currency: \"AUD\",\n totalPrice: 300,\n totalDiscount: 10,\n totalShipping: 120,\n totalTax: 120,\n fulfillmentStatus: \"PENDING\",\n customerId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n items: [\n {\n name: \"Net Income\",\n value: 100000,\n type: \"Operating Activities\",\n parentItem: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteId: \"12345\",\n remoteGeneratedAt: new Date(\"2024-07-01T12:00:00Z\"),\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n createdAt: new Date(\"2024-06-15T12:00:00Z\"),\n modifiedAt: new Date(\"2024-06-15T12:00:00Z\"),\n },\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: createEcommerceOrder source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -24119,7 +19659,32 @@ paths: ) - res = s.ecommerce.orders.create(x_connection_token="", unified_ecommerce_order_input={}, remote_data=False) + res = s.ecommerce.orders.create(x_connection_token="", unified_ecommerce_order_input={ + "order_status": "UNSHIPPED", + "order_number": "19823838833", + "payment_status": "SUCCESS", + "currency": "AUD", + "total_price": 300, + "total_discount": 10, + "total_shipping": 120, + "total_tax": 120, + "fulfillment_status": "PENDING", + "customer_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "items": [ + { + "name": "Net Income", + "value": 100000, + "type": "Operating Activities", + "parent_item": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "remote_id": "12345", + "remote_generated_at": dateutil.parser.isoparse("2024-07-01T12:00:00Z"), + "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "created_at": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + "modified_at": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), + }, + ], + "field_mappings": {}, + }, remote_data=False) if res is not None: # handle response @@ -24131,8 +19696,9 @@ paths: import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/types" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -24140,13 +19706,34 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedEcommerceOrderInput := components.UnifiedEcommerceOrderInput{} - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ecommerce.Orders.Create(ctx, xConnectionToken, unifiedEcommerceOrderInput, remoteData) + res, err := s.Ecommerce.Orders.Create(ctx, "", components.UnifiedEcommerceOrderInput{ + OrderStatus: gosdk.String("UNSHIPPED"), + OrderNumber: gosdk.String("19823838833"), + PaymentStatus: gosdk.String("SUCCESS"), + Currency: gosdk.String("AUD"), + TotalPrice: gosdk.Float64(300), + TotalDiscount: gosdk.Float64(10), + TotalShipping: gosdk.Float64(120), + TotalTax: gosdk.Float64(120), + FulfillmentStatus: gosdk.String("PENDING"), + CustomerID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + Items: []components.LineItem{ + components.LineItem{ + Name: gosdk.String("Net Income"), + Value: gosdk.Float64(100000), + Type: gosdk.String("Operating Activities"), + ParentItem: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + RemoteID: gosdk.String("12345"), + RemoteGeneratedAt: types.MustNewTimeFromString("2024-07-01T12:00:00Z"), + CompanyInfoID: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), + CreatedAt: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + ModifiedAt: types.MustNewTimeFromString("2024-06-15T12:00:00Z"), + }, + }, + FieldMappings: &components.UnifiedEcommerceOrderInputFieldMappings{}, + }, gosdk.Bool(false)) if err != nil { log.Fatal(err) } @@ -24156,7 +19743,7 @@ paths: } - lang: ruby label: createEcommerceOrder - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_orders.create(x_connection_token=\"\", unified_ecommerce_order_input=::OpenApiSDK::Shared::UnifiedEcommerceOrderInput.new(), remote_data=false)\n\nif ! res.unified_ecommerce_order_output.nil?\n # handle response\nend" + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_orders.create(x_connection_token=\"\", unified_ecommerce_order_input=::OpenApiSDK::Shared::UnifiedEcommerceOrderInput.new(\n order_status: \"UNSHIPPED\",\n order_number: \"19823838833\",\n payment_status: \"SUCCESS\",\n currency: \"AUD\",\n total_price: 300.0,\n total_discount: 10.0,\n total_shipping: 120.0,\n total_tax: 120.0,\n fulfillment_status: \"PENDING\",\n customer_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n items: [\n ::OpenApiSDK::Shared::LineItem.new(\n name: \"Net Income\",\n value: 100000.0,\n type: \"Operating Activities\",\n parent_item: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remote_id: \"12345\",\n remote_generated_at: DateTime.iso8601('2024-07-01T12:00:00Z'),\n company_info_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n created_at: DateTime.iso8601('2024-06-15T12:00:00Z'),\n modified_at: DateTime.iso8601('2024-06-15T12:00:00Z'),\n ),\n ],\n field_mappings: ::OpenApiSDK::Shared::UnifiedEcommerceOrderInputFieldMappings.new(),\n), remote_data=false)\n\nif ! res.unified_ecommerce_order_output.nil?\n # handle response\nend" /ecommerce/orders/{id}: get: operationId: retrieveEcommerceOrder @@ -24188,29 +19775,12 @@ paths: application/json: schema: $ref: '#/components/schemas/UnifiedEcommerceOrderOutput' - tags: *ref_88 + tags: *ref_87 x-speakeasy-group: ecommerce.orders x-codeSamples: - lang: typescript label: retrieveEcommerceOrder - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ecommerce.orders.retrieve({ - xConnectionToken: "", - id: "", - }); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.orders.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: retrieveEcommerceOrder source: |- @@ -24241,11 +19811,9 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "" ctx := context.Background() - res, err := s.Ecommerce.Orders.Retrieve(ctx, xConnectionToken, id, nil) + res, err := s.Ecommerce.Orders.Retrieve(ctx, "", "", nil) if err != nil { log.Fatal(err) } @@ -24255,7 +19823,7 @@ paths: } - lang: ruby label: retrieveEcommerceOrder - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_orders.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.unified_ecommerce_order_output.nil?\n # handle response\nend" + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_orders.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.unified_ecommerce_order_output.nil?\n # handle response\nend" /ecommerce/customers: get: operationId: listEcommerceCustomers @@ -24302,7 +19870,7 @@ paths: type: array items: $ref: '#/components/schemas/UnifiedEcommerceCustomerOutput' - tags: &ref_89 + tags: &ref_88 - ecommerce/customers x-speakeasy-group: ecommerce.customers x-speakeasy-pagination: @@ -24316,27 +19884,7 @@ paths: x-codeSamples: - lang: typescript label: listEcommerceCustomers - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ecommerce.customers.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.customers.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python label: listEcommerceCustomers source: |- @@ -24358,7 +19906,7 @@ paths: break - lang: go label: listEcommerceCustomers - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ecommerce.Customers.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ecommerce.Customers.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby label: listEcommerceCustomers source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_customers.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" @@ -24393,29 +19941,12 @@ paths: application/json: schema: $ref: '#/components/schemas/UnifiedEcommerceCustomerOutput' - tags: *ref_89 + tags: *ref_88 x-speakeasy-group: ecommerce.customers x-codeSamples: - lang: typescript label: retrieveEcommerceCustomer - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ecommerce.customers.retrieve({ - xConnectionToken: "", - id: "", - }); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.customers.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: retrieveEcommerceCustomer source: |- @@ -24446,11 +19977,9 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "" ctx := context.Background() - res, err := s.Ecommerce.Customers.Retrieve(ctx, xConnectionToken, id, nil) + res, err := s.Ecommerce.Customers.Retrieve(ctx, "", "", nil) if err != nil { log.Fatal(err) } @@ -24460,7 +19989,7 @@ paths: } - lang: ruby label: retrieveEcommerceCustomer - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_customers.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.unified_ecommerce_customer_output.nil?\n # handle response\nend" + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_customers.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.unified_ecommerce_customer_output.nil?\n # handle response\nend" /ecommerce/fulfillments: get: operationId: listEcommerceFulfillments @@ -24508,7 +20037,7 @@ paths: items: $ref: >- #/components/schemas/UnifiedEcommerceFulfillmentOutput - tags: &ref_90 + tags: &ref_89 - ecommerce/fulfillments x-speakeasy-group: ecommerce.fulfillments x-speakeasy-pagination: @@ -24522,27 +20051,7 @@ paths: x-codeSamples: - lang: typescript label: listEcommerceFulfillments - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ecommerce.fulfillments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.fulfillments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python label: listEcommerceFulfillments source: |- @@ -24564,7 +20073,7 @@ paths: break - lang: go label: listEcommerceFulfillments - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ecommerce.Fulfillments.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ecommerce.Fulfillments.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby label: listEcommerceFulfillments source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_fulfillments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" @@ -24599,29 +20108,12 @@ paths: application/json: schema: $ref: '#/components/schemas/UnifiedEcommerceFulfillmentOutput' - tags: *ref_90 + tags: *ref_89 x-speakeasy-group: ecommerce.fulfillments x-codeSamples: - lang: typescript label: retrieveEcommerceFulfillment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ecommerce.fulfillments.retrieve({ - xConnectionToken: "", - id: "", - }); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.fulfillments.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: retrieveEcommerceFulfillment source: |- @@ -24652,11 +20144,9 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "" ctx := context.Background() - res, err := s.Ecommerce.Fulfillments.Retrieve(ctx, xConnectionToken, id, nil) + res, err := s.Ecommerce.Fulfillments.Retrieve(ctx, "", "", nil) if err != nil { log.Fatal(err) } @@ -24666,7 +20156,7 @@ paths: } - lang: ruby label: retrieveEcommerceFulfillment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_fulfillments.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.unified_ecommerce_fulfillment_output.nil?\n # handle response\nend" + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ecommerce_fulfillments.retrieve(x_connection_token=\"\", id=\"\", remote_data=false)\n\nif ! res.unified_ecommerce_fulfillment_output.nil?\n # handle response\nend" /ticketing/attachments: get: operationId: listTicketingAttachments @@ -24714,7 +20204,7 @@ paths: items: $ref: >- #/components/schemas/UnifiedTicketingAttachmentOutput - tags: &ref_91 + tags: &ref_90 - ticketing/attachments x-speakeasy-group: ticketing.attachments x-speakeasy-pagination: @@ -24728,27 +20218,7 @@ paths: x-codeSamples: - lang: typescript label: listTicketingAttachments - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.attachments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // handle page - } - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.attachments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - lang: python label: listTicketingAttachments source: |- @@ -24770,7 +20240,7 @@ paths: break - lang: go label: listTicketingAttachments - source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n var xConnectionToken string = \"\"\n\n var remoteData *bool = gosdk.Bool(true)\n\n var limit *float64 = gosdk.Float64(10)\n\n var cursor *string = gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n ctx := context.Background()\n res, err := s.Ticketing.Attachments.List(ctx, xConnectionToken, remoteData, limit, cursor)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" + source: "package main\n\nimport(\n\tgosdk \"github.com/panoratech/go-sdk\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := gosdk.New(\n gosdk.WithSecurity(\"\"),\n )\n\n ctx := context.Background()\n res, err := s.Ticketing.Attachments.List(ctx, \"\", gosdk.Bool(true), gosdk.Float64(10), gosdk.String(\"1b8b05bb-5273-4012-b520-8657b0b90874\"))\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}" - lang: ruby label: listTicketingAttachments source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_attachments.list(x_connection_token=\"\", remote_data=true, limit=10.0, cursor=\"1b8b05bb-5273-4012-b520-8657b0b90874\")\n\nif ! res.object.nil?\n # handle response\nend" @@ -24804,39 +20274,12 @@ paths: application/json: schema: $ref: '#/components/schemas/UnifiedTicketingAttachmentOutput' - tags: *ref_91 + tags: *ref_90 x-speakeasy-group: ticketing.attachments x-codeSamples: - lang: typescript label: createTicketingAttachment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.attachments.create({ - 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", - }, - }, - }); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.attachments.create({\n xConnectionToken: \"\",\n unifiedTicketingAttachmentInput: {\n fileName: \"features_planning.pdf\",\n fileUrl: \"https://example.com/features_planning.pdf\",\n uploader: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ticketId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n commentId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: createTicketingAttachment source: |- @@ -24869,8 +20312,8 @@ paths: import( gosdk "github.com/panoratech/go-sdk" - "github.com/panoratech/go-sdk/models/components" "context" + "github.com/panoratech/go-sdk/models/components" "log" ) @@ -24878,9 +20321,9 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - unifiedTicketingAttachmentInput := components.UnifiedTicketingAttachmentInput{ + ctx := context.Background() + res, err := s.Ticketing.Attachments.Create(ctx, "", components.UnifiedTicketingAttachmentInput{ FileName: gosdk.String("features_planning.pdf"), FileURL: gosdk.String("https://example.com/features_planning.pdf"), Uploader: gosdk.String("801f9ede-c698-4e66-a7fc-48d19eebaa4f"), @@ -24890,9 +20333,7 @@ paths: "fav_dish": "broccoli", "fav_color": "red", }, - } - ctx := context.Background() - res, err := s.Ticketing.Attachments.Create(ctx, xConnectionToken, unifiedTicketingAttachmentInput, nil) + }, nil) if err != nil { log.Fatal(err) } @@ -24902,7 +20343,7 @@ paths: } - lang: ruby label: createTicketingAttachment - source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_attachments.create(x_connection_token=\"\", unified_ticketing_attachment_input=::OpenApiSDK::Shared::UnifiedTicketingAttachmentInput.new(\n file_name: \"features_planning.pdf\",\n file_url: \"https://example.com/features_planning.pdf\",\n uploader: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ticket_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n comment_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"online\": \"\",\n },\n ), remote_data=false)\n\nif ! res.unified_ticketing_attachment_output.nil?\n # handle response\nend" + source: "require 'panora'\n\n\ns = ::OpenApiSDK::Panora.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n api_key: \"\",\n )\n)\n\n \nres = s.ticketing_attachments.create(x_connection_token=\"\", unified_ticketing_attachment_input=::OpenApiSDK::Shared::UnifiedTicketingAttachmentInput.new(\n file_name: \"features_planning.pdf\",\n file_url: \"https://example.com/features_planning.pdf\",\n uploader: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ticket_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n comment_id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n field_mappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n), remote_data=false)\n\nif ! res.unified_ticketing_attachment_output.nil?\n # handle response\nend" /ticketing/attachments/{id}: get: operationId: retrieveTicketingAttachment @@ -24936,30 +20377,12 @@ paths: application/json: schema: $ref: '#/components/schemas/UnifiedTicketingAttachmentOutput' - tags: *ref_91 + tags: *ref_90 x-speakeasy-group: ticketing.attachments x-codeSamples: - lang: typescript label: retrieveTicketingAttachment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ticketing.attachments.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) - } - - run(); + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.attachments.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - lang: python label: retrieveTicketingAttachment source: |- @@ -24990,13 +20413,9 @@ paths: s := gosdk.New( gosdk.WithSecurity(""), ) - var xConnectionToken string = "" - var id string = "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - - var remoteData *bool = gosdk.Bool(false) ctx := context.Background() - res, err := s.Ticketing.Attachments.Retrieve(ctx, xConnectionToken, id, remoteData) + res, err := s.Ticketing.Attachments.Retrieve(ctx, "", "801f9ede-c698-4e66-a7fc-48d19eebaa4f", gosdk.Bool(false)) if err != nil { log.Fatal(err) } @@ -25027,6 +20446,216 @@ components: in: header name: x-api-key schemas: + RagQueryOutput: + type: object + properties: + chunk: + type: string + example: 'Date : 06/07/2023' + nullable: false + description: The chunk which matches the embed query + metadata: + type: object + example: + blobType: '' + text: ATTESTATION + additionalProperties: true + nullable: true + description: The metadata tied to the chunk + score: + type: number + example: 0.87 + nullable: true + description: The score + embedding: + example: + - -0.00442447886 + - -0.00116857514 + - 0.00869117491 + - -0.0361584462 + - -0.00220073434 + - 0.00946036354 + - -0.0101112155 + nullable: true + description: The embedding of the relevant chunk + type: array + items: + type: number + required: + - chunk + - metadata + - score + - embedding + QueryBody: + type: object + properties: + query: + type: string + example: When does Panora incorporated? + nullable: false + description: The query you want to received embeddings and chunks for + topK: + type: number + example: '3' + nullable: true + description: The number of most appropriate documents for your query. + required: + - query + PaginatedDto: + type: object + properties: + prev_cursor: + type: string + nullable: true + next_cursor: + type: string + nullable: true + data: + type: array + items: + type: object + required: + - prev_cursor + - next_cursor + - data + UnifiedFilestorageFileOutput: + type: object + properties: + name: + type: string + example: my_paris_photo.png + description: The name of the file + nullable: true + file_url: + type: string + example: https://example.com/my_paris_photo.png + description: The url of the file + nullable: true + mime_type: + type: string + example: application/pdf + description: The mime type of the file + nullable: true + size: + type: string + example: '1024' + description: The size of the file + nullable: true + folder_id: + type: string + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: The UUID of the folder tied to the file + nullable: true + permission: + type: string + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: The UUID of the permission tied to the file + nullable: true + shared_link: + type: string + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: The UUID of the shared link tied to the file + nullable: true + field_mappings: + type: object + example: &ref_91 + fav_dish: broccoli + fav_color: red + description: >- + The custom field mappings of the object between the remote 3rd party & Panora + nullable: true + additionalProperties: true + id: + type: string + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: The UUID of the file + nullable: true + remote_id: + type: string + example: id_1 + description: The id of the file in the context of the 3rd Party + nullable: true + remote_data: + type: object + example: + fav_dish: broccoli + fav_color: red + description: The remote data of the file in the context of the 3rd Party + nullable: true + additionalProperties: true + created_at: + format: date-time + type: string + example: '2024-10-01T12:00:00Z' + description: The created date of the object + nullable: true + modified_at: + format: date-time + type: string + example: '2024-10-01T12:00:00Z' + description: The modified date of the object + nullable: true + required: + - name + - file_url + - mime_type + - size + - folder_id + - permission + - shared_link + UnifiedFilestorageFileInput: + type: object + properties: + name: + type: string + example: my_paris_photo.png + description: The name of the file + nullable: true + file_url: + type: string + example: https://example.com/my_paris_photo.png + description: The url of the file + nullable: true + mime_type: + type: string + example: application/pdf + description: The mime type of the file + nullable: true + size: + type: string + example: '1024' + description: The size of the file + nullable: true + folder_id: + type: string + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: The UUID of the folder tied to the file + nullable: true + permission: + type: string + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: The UUID of the permission tied to the file + nullable: true + shared_link: + type: string + example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: The UUID of the shared link tied to the file + nullable: true + field_mappings: + type: object + example: *ref_91 + description: >- + The custom field mappings of the object between the remote 3rd party & Panora + nullable: true + additionalProperties: true + required: + - name + - file_url + - mime_type + - size + - folder_id + - permission + - shared_link LoginDto: type: object properties: @@ -25220,23 +20849,6 @@ components: - payload - signature - secret - PaginatedDto: - type: object - properties: - prev_cursor: - type: string - nullable: true - next_cursor: - type: string - nullable: true - data: - type: array - items: - type: object - required: - - prev_cursor - - next_cursor - - data UnifiedTicketingCommentInput: type: object properties: @@ -25259,9 +20871,6 @@ components: type: string nullable: true example: USER - enum: &ref_121 - - USER - - CONTACT description: >- The creator type of the comment. Authorized values are either USER or CONTACT ticket_id: @@ -25283,12 +20892,12 @@ components: The UUID of the user which the comment belongs to (if no contact_id specified) attachments: type: array - items: &ref_122 + items: &ref_114 oneOf: - type: string - $ref: '#/components/schemas/UnifiedTicketingAttachmentOutput' nullable: true - example: &ref_123 + example: &ref_115 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f description: The attachements UUIDs tied to the comment required: @@ -25304,9 +20913,6 @@ components: status: type: string example: OPEN - enum: &ref_92 - - OPEN - - CLOSED nullable: true description: The status of the ticket. Authorized values are OPEN or CLOSED. description: @@ -25323,11 +20929,6 @@ components: type: type: string example: BUG - enum: &ref_93 - - BUG - - SUBTASK - - TASK - - TO-DO nullable: true description: >- The type of the ticket. Authorized values are PROBLEM, QUESTION, or TASK @@ -25338,21 +20939,21 @@ components: description: The UUID of the parent ticket collections: type: array - items: &ref_94 + items: &ref_92 oneOf: - type: string - $ref: '#/components/schemas/UnifiedTicketingCollectionOutput' - example: &ref_95 + example: &ref_93 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The collection UUIDs the ticket belongs to tags: type: array - items: &ref_96 + items: &ref_94 oneOf: - type: string - $ref: '#/components/schemas/UnifiedTicketingTagOutput' - example: &ref_97 + example: &ref_95 - my_tag - urgent_tag nullable: true @@ -25366,15 +20967,11 @@ components: priority: type: string example: HIGH - enum: &ref_98 - - HIGH - - MEDIUM - - LOW nullable: true description: >- The priority of the ticket. Authorized values are HIGH, MEDIUM or LOW. assigned_to: - example: &ref_99 + example: &ref_96 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The users UUIDs the ticket is assigned to @@ -25382,7 +20979,7 @@ components: items: type: string comment: - example: &ref_100 + example: &ref_97 content: Assigned the issue ! nullable: true description: The comment of the ticket @@ -25400,17 +20997,17 @@ components: description: The UUID of the contact which the ticket belongs to attachments: type: array - items: &ref_101 + items: &ref_98 oneOf: - type: string - $ref: '#/components/schemas/UnifiedTicketingAttachmentInput' - example: &ref_102 + example: &ref_99 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f description: The attachements UUIDs tied to the ticket nullable: true field_mappings: type: object - example: &ref_103 + example: &ref_100 fav_dish: broccoli fav_color: red nullable: true @@ -25462,7 +21059,6 @@ components: status: type: string example: OPEN - enum: *ref_92 nullable: true description: The status of the ticket. Authorized values are OPEN or CLOSED. description: @@ -25479,7 +21075,6 @@ components: type: type: string example: BUG - enum: *ref_93 nullable: true description: >- The type of the ticket. Authorized values are PROBLEM, QUESTION, or TASK @@ -25490,14 +21085,14 @@ components: description: The UUID of the parent ticket collections: type: array - items: *ref_94 - example: *ref_95 + items: *ref_92 + example: *ref_93 nullable: true description: The collection UUIDs the ticket belongs to tags: type: array - items: *ref_96 - example: *ref_97 + items: *ref_94 + example: *ref_95 nullable: true description: The tags names of the ticket completed_at: @@ -25509,19 +21104,18 @@ components: priority: type: string example: HIGH - enum: *ref_98 nullable: true description: >- The priority of the ticket. Authorized values are HIGH, MEDIUM or LOW. assigned_to: - example: *ref_99 + example: *ref_96 nullable: true description: The users UUIDs the ticket is assigned to type: array items: type: string comment: - example: *ref_100 + example: *ref_97 nullable: true description: The comment of the ticket allOf: @@ -25538,13 +21132,13 @@ components: description: The UUID of the contact which the ticket belongs to attachments: type: array - items: *ref_101 - example: *ref_102 + items: *ref_98 + example: *ref_99 description: The attachements UUIDs tied to the ticket nullable: true field_mappings: type: object - example: *ref_103 + example: *ref_100 nullable: true description: >- The custom field mappings of the ticket between the remote 3rd party & Panora @@ -25781,6 +21375,45 @@ components: - vertical - provider - status + UpdatePullFrequencyDto: + type: object + properties: + crm: + type: number + example: 1800 + description: Frequency in seconds + ats: + type: number + example: 3600 + description: Frequency in seconds + hris: + type: number + example: 7200 + description: Frequency in seconds + accounting: + type: number + example: 14400 + description: Frequency in seconds + filestorage: + type: number + example: 28800 + description: Frequency in seconds + ecommerce: + type: number + example: 43200 + description: Frequency in seconds + ticketing: + type: number + example: 86400 + description: Frequency in seconds + required: + - crm + - ats + - hris + - accounting + - filestorage + - ecommerce + - ticketing Email: type: object properties: @@ -25790,9 +21423,6 @@ components: description: The email address email_address_type: type: string - enum: - - PERSONAL - - WORK nullable: true description: >- The email address type. Authorized values are either PERSONAL or WORK. @@ -25841,9 +21471,6 @@ components: description: The country address_type: type: string - enum: - - PERSONAL - - WORK nullable: true example: PERSONAL description: The address type. Authorized values are either PERSONAL or WORK. @@ -25870,9 +21497,6 @@ components: The phone number starting with a plus (+) followed by the country code (e.g +336676778890 for France) phone_type: type: string - enum: - - MOBILE - - WORK nullable: true description: The phone type. Authorized values are either MOBILE or WORK owner_type: @@ -25893,154 +21517,6 @@ components: industry: type: string example: ACCOUNTING - enum: &ref_104 - - ACCOUNTING - - AIRLINES_AVIATION - - ALTERNATIVE_DISPUTE_RESOLUTION - - ALTERNATIVE_MEDICINE - - ANIMATION - - APPAREL_FASHION - - ARCHITECTURE_PLANNING - - ARTS_AND_CRAFTS - - AUTOMOTIVE - - AVIATION_AEROSPACE - - BANKING - - BIOTECHNOLOGY - - BROADCAST_MEDIA - - BUILDING_MATERIALS - - BUSINESS_SUPPLIES_AND_EQUIPMENT - - CAPITAL_MARKETS - - CHEMICALS - - CIVIC_SOCIAL_ORGANIZATION - - CIVIL_ENGINEERING - - COMMERCIAL_REAL_ESTATE - - COMPUTER_NETWORK_SECURITY - - COMPUTER_GAMES - - COMPUTER_HARDWARE - - COMPUTER_NETWORKING - - COMPUTER_SOFTWARE - - INTERNET - - CONSTRUCTION - - CONSUMER_ELECTRONICS - - CONSUMER_GOODS - - CONSUMER_SERVICES - - COSMETICS - - DAIRY - - DEFENSE_SPACE - - DESIGN - - EDUCATION_MANAGEMENT - - E_LEARNING - - ELECTRICAL_ELECTRONIC_MANUFACTURING - - ENTERTAINMENT - - ENVIRONMENTAL_SERVICES - - EVENTS_SERVICES - - EXECUTIVE_OFFICE - - FACILITIES_SERVICES - - FARMING - - FINANCIAL_SERVICES - - FINE_ART - - FISHERY - - FOOD_BEVERAGES - - FOOD_PRODUCTION - - FUND_RAISING - - FURNITURE - - GAMBLING_CASINOS - - GLASS_CERAMICS_CONCRETE - - GOVERNMENT_ADMINISTRATION - - GOVERNMENT_RELATIONS - - GRAPHIC_DESIGN - - HEALTH_WELLNESS_AND_FITNESS - - HIGHER_EDUCATION - - HOSPITAL_HEALTH_CARE - - HOSPITALITY - - HUMAN_RESOURCES - - IMPORT_AND_EXPORT - - INDIVIDUAL_FAMILY_SERVICES - - INDUSTRIAL_AUTOMATION - - INFORMATION_SERVICES - - INFORMATION_TECHNOLOGY_AND_SERVICES - - INSURANCE - - INTERNATIONAL_AFFAIRS - - INTERNATIONAL_TRADE_AND_DEVELOPMENT - - INVESTMENT_BANKING - - INVESTMENT_MANAGEMENT - - JUDICIARY - - LAW_ENFORCEMENT - - LAW_PRACTICE - - LEGAL_SERVICES - - LEGISLATIVE_OFFICE - - LEISURE_TRAVEL_TOURISM - - LIBRARIES - - LOGISTICS_AND_SUPPLY_CHAIN - - LUXURY_GOODS_JEWELRY - - MACHINERY - - MANAGEMENT_CONSULTING - - MARITIME - - MARKET_RESEARCH - - MARKETING_AND_ADVERTISING - - MECHANICAL_OR_INDUSTRIAL_ENGINEERING - - MEDIA_PRODUCTION - - MEDICAL_DEVICES - - MEDICAL_PRACTICE - - MENTAL_HEALTH_CARE - - MILITARY - - MINING_METALS - - MOTION_PICTURES_AND_FILM - - MUSEUMS_AND_INSTITUTIONS - - MUSIC - - NANOTECHNOLOGY - - NEWSPAPERS - - NON_PROFIT_ORGANIZATION_MANAGEMENT - - OIL_ENERGY - - ONLINE_MEDIA - - OUTSOURCING_OFFSHORING - - PACKAGE_FREIGHT_DELIVERY - - PACKAGING_AND_CONTAINERS - - PAPER_FOREST_PRODUCTS - - PERFORMING_ARTS - - PHARMACEUTICALS - - PHILANTHROPY - - PHOTOGRAPHY - - PLASTICS - - POLITICAL_ORGANIZATION - - PRIMARY_SECONDARY_EDUCATION - - PRINTING - - PROFESSIONAL_TRAINING_COACHING - - PROGRAM_DEVELOPMENT - - PUBLIC_POLICY - - PUBLIC_RELATIONS_AND_COMMUNICATIONS - - PUBLIC_SAFETY - - PUBLISHING - - RAILROAD_MANUFACTURE - - RANCHING - - REAL_ESTATE - - RECREATIONAL_FACILITIES_AND_SERVICES - - RELIGIOUS_INSTITUTIONS - - RENEWABLES_ENVIRONMENT - - RESEARCH - - RESTAURANTS - - RETAIL - - SECURITY_AND_INVESTIGATIONS - - SEMICONDUCTORS - - SHIPBUILDING - - SPORTING_GOODS - - SPORTS - - STAFFING_AND_RECRUITING - - SUPERMARKETS - - TELECOMMUNICATIONS - - TEXTILES - - THINK_TANKS - - TOBACCO - - TRANSLATION_AND_LOCALIZATION - - TRANSPORTATION_TRUCKING_RAILROAD - - UTILITIES - - VENTURE_CAPITAL_PRIVATE_EQUITY - - VETERINARY - - WAREHOUSING - - WHOLESALE - - WINE_AND_SPIRITS - - WIRELESS - - WRITING_AND_EDITING description: >- The industry of the company. Authorized values can be found in the Industry enum. nullable: true @@ -26056,7 +21532,7 @@ components: nullable: true email_addresses: description: The email addresses of the company - example: &ref_105 + example: &ref_101 - email_address: acme@gmail.com email_address_type: WORK nullable: true @@ -26065,7 +21541,7 @@ components: $ref: '#/components/schemas/Email' addresses: description: The addresses of the company - example: &ref_106 + example: &ref_102 - street_1: 5th Avenue city: New York state: NY @@ -26077,7 +21553,7 @@ components: $ref: '#/components/schemas/Address' phone_numbers: description: The phone numbers of the company - example: &ref_107 + example: &ref_103 - phone_number: '+33660606067' phone_type: WORK nullable: true @@ -26086,7 +21562,7 @@ components: $ref: '#/components/schemas/Phone' field_mappings: type: object - example: &ref_108 + example: &ref_104 fav_dish: broccoli fav_color: red description: >- @@ -26134,7 +21610,6 @@ components: industry: type: string example: ACCOUNTING - enum: *ref_104 description: >- The industry of the company. Authorized values can be found in the Industry enum. nullable: true @@ -26150,28 +21625,28 @@ components: nullable: true email_addresses: description: The email addresses of the company - example: *ref_105 + example: *ref_101 nullable: true type: array items: $ref: '#/components/schemas/Email' addresses: description: The addresses of the company - example: *ref_106 + example: *ref_102 nullable: true type: array items: $ref: '#/components/schemas/Address' phone_numbers: description: The phone numbers of the company - example: *ref_107 + example: *ref_103 nullable: true type: array items: $ref: '#/components/schemas/Phone' field_mappings: type: object - example: *ref_108 + example: *ref_104 description: >- The custom field mappings of the company between the remote 3rd party & Panora nullable: true @@ -26194,7 +21669,7 @@ components: email_addresses: nullable: true description: The email addresses of the contact - example: &ref_109 + example: &ref_105 - email: john.doe@example.com type: WORK type: array @@ -26203,7 +21678,7 @@ components: phone_numbers: nullable: true description: The phone numbers of the contact - example: &ref_110 + example: &ref_106 - phone: '1234567890' type: WORK type: array @@ -26212,7 +21687,7 @@ components: addresses: nullable: true description: The addresses of the contact - example: &ref_111 + example: &ref_107 - street: 123 Main St city: Anytown state: CA @@ -26229,7 +21704,7 @@ components: example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f field_mappings: type: object - example: &ref_112 + example: &ref_108 fav_dish: broccoli fav_color: red nullable: true @@ -26285,21 +21760,21 @@ components: email_addresses: nullable: true description: The email addresses of the contact - example: *ref_109 + example: *ref_105 type: array items: $ref: '#/components/schemas/Email' phone_numbers: nullable: true description: The phone numbers of the contact - example: *ref_110 + example: *ref_106 type: array items: $ref: '#/components/schemas/Phone' addresses: nullable: true description: The addresses of the contact - example: *ref_111 + example: *ref_107 type: array items: $ref: '#/components/schemas/Address' @@ -26310,7 +21785,7 @@ components: example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f field_mappings: type: object - example: *ref_112 + example: *ref_108 nullable: true description: >- The custom field mappings of the contact between the remote 3rd party & Panora @@ -26354,7 +21829,7 @@ components: field_mappings: type: object nullable: true - example: &ref_113 + example: &ref_109 fav_dish: broccoli fav_color: red description: >- @@ -26430,7 +21905,7 @@ components: field_mappings: type: object nullable: true - example: *ref_113 + example: *ref_109 description: >- The custom field mappings of the company between the remote 3rd party & Panora additionalProperties: true @@ -26450,9 +21925,6 @@ components: type: string nullable: true example: INBOUND - enum: &ref_114 - - INBOUND - - OUTBOUND description: >- The direction of the engagement. Authorized values are INBOUND or OUTBOUND subject: @@ -26476,10 +21948,6 @@ components: type: string nullable: true example: MEETING - enum: &ref_115 - - EMAIL - - CALL - - MEETING description: >- The type of the engagement. Authorized values are EMAIL, CALL or MEETING user_id: @@ -26494,7 +21962,7 @@ components: description: The UUID of the company tied to the engagement contacts: nullable: true - example: &ref_116 + example: &ref_110 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f description: The UUIDs of contacts tied to the engagement object type: array @@ -26503,7 +21971,7 @@ components: field_mappings: type: object nullable: true - example: &ref_117 + example: &ref_111 fav_dish: broccoli fav_color: red description: >- @@ -26554,7 +22022,6 @@ components: type: string nullable: true example: INBOUND - enum: *ref_114 description: >- The direction of the engagement. Authorized values are INBOUND or OUTBOUND subject: @@ -26578,7 +22045,6 @@ components: type: string nullable: true example: MEETING - enum: *ref_115 description: >- The type of the engagement. Authorized values are EMAIL, CALL or MEETING user_id: @@ -26593,7 +22059,7 @@ components: description: The UUID of the company tied to the engagement contacts: nullable: true - example: *ref_116 + example: *ref_110 description: The UUIDs of contacts tied to the engagement object type: array items: @@ -26601,7 +22067,7 @@ components: field_mappings: type: object nullable: true - example: *ref_117 + example: *ref_111 description: >- The custom field mappings of the engagement between the remote 3rd party & Panora additionalProperties: true @@ -26637,7 +22103,7 @@ components: description: The UUID of the deal tied to the note field_mappings: type: object - example: &ref_118 + example: &ref_112 fav_dish: broccoli fav_color: red nullable: true @@ -26706,7 +22172,7 @@ components: description: The UUID of the deal tied to the note field_mappings: type: object - example: *ref_118 + example: *ref_112 nullable: true description: >- The custom field mappings of the note between the remote 3rd party & Panora @@ -26776,9 +22242,6 @@ components: status: type: string example: PENDING - enum: &ref_119 - - PENDING - - COMPLETED description: The status of the task. Authorized values are PENDING, COMPLETED. nullable: true due_date: @@ -26808,7 +22271,7 @@ components: nullable: true field_mappings: type: object - example: &ref_120 + example: &ref_113 fav_dish: broccoli fav_color: red description: >- @@ -26866,7 +22329,6 @@ components: status: type: string example: PENDING - enum: *ref_119 description: The status of the task. Authorized values are PENDING, COMPLETED. nullable: true due_date: @@ -26896,7 +22358,7 @@ components: nullable: true field_mappings: type: object - example: *ref_120 + example: *ref_113 description: >- The custom field mappings of the task between the remote 3rd party & Panora nullable: true @@ -26976,9 +22438,6 @@ components: collection_type: type: string example: PROJECT - enum: - - PROJECT - - LIST nullable: true description: "The type of the collection. Authorized values are either PROJECT or LIST " id: @@ -27035,7 +22494,6 @@ components: type: string nullable: true example: USER - enum: *ref_121 description: >- The creator type of the comment. Authorized values are either USER or CONTACT ticket_id: @@ -27057,9 +22515,9 @@ components: The UUID of the user which the comment belongs to (if no contact_id specified) attachments: type: array - items: *ref_122 + items: *ref_114 nullable: true - example: *ref_123 + example: *ref_115 description: The attachements UUIDs tied to the comment id: type: string @@ -27690,9 +23148,6 @@ components: account_type: type: string example: CHECKING - enum: - - SAVINGS - - CHECKING nullable: true description: The type of the bank account bank_name: @@ -27955,10 +23410,6 @@ components: relationship: type: string example: CHILD - enum: - - CHILD - - SPOUSE - - DOMESTIC_PARTNER nullable: true description: The relationship of the dependent to the employee date_of_birth: @@ -27970,12 +23421,6 @@ components: gender: type: string example: MALE - enum: - - MALE - - FEMALE - - NON-BINARY - - OTHER - - PREFER_NOT_TO_DISCLOSE nullable: true description: The gender of the dependent phone_number: @@ -28215,7 +23660,7 @@ components: type: object properties: groups: - example: &ref_124 + example: &ref_116 - Group1 - Group2 nullable: true @@ -28224,7 +23669,7 @@ components: items: type: string locations: - example: &ref_125 + example: &ref_117 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: UUIDs of the of the Location associated with the company @@ -28282,7 +23727,7 @@ components: nullable: true description: The mobile phone number of the employee employments: - example: &ref_126 + example: &ref_118 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true @@ -28298,37 +23743,16 @@ components: gender: type: string example: MALE - enum: &ref_127 - - MALE - - FEMALE - - NON-BINARY - - OTHER - - PREFER_NOT_TO_DISCLOSE nullable: true description: The gender of the employee ethnicity: type: string example: AMERICAN_INDIAN_OR_ALASKA_NATIVE - enum: &ref_128 - - AMERICAN_INDIAN_OR_ALASKA_NATIVE - - ASIAN_OR_INDIAN_SUBCONTINENT - - BLACK_OR_AFRICAN_AMERICAN - - HISPANIC_OR_LATINO - - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - - TWO_OR_MORE_RACES - - WHITE - - PREFER_NOT_TO_DISCLOSE nullable: true description: The ethnicity of the employee marital_status: type: string example: Married - enum: &ref_129 - - SINGLE - - MARRIED_FILING_JOINTLY - - MARRIED_FILING_SEPARATELY - - HEAD_OF_HOUSEHOLD - - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD nullable: true description: The marital status of the employee date_of_birth: @@ -28346,10 +23770,6 @@ components: employment_status: type: string example: ACTIVE - enum: &ref_130 - - ACTIVE - - PENDING - - INACTIVE nullable: true description: The employment status of the employee termination_date: @@ -28370,7 +23790,7 @@ components: description: UUID of the manager (employee) of the employee field_mappings: type: object - example: &ref_131 + example: &ref_119 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -28420,14 +23840,14 @@ components: type: object properties: groups: - example: *ref_124 + example: *ref_116 nullable: true description: The groups the employee belongs to type: array items: type: string locations: - example: *ref_125 + example: *ref_117 nullable: true description: UUIDs of the of the Location associated with the company type: array @@ -28484,7 +23904,7 @@ components: nullable: true description: The mobile phone number of the employee employments: - example: *ref_126 + example: *ref_118 nullable: true description: The employments of the employee type: array @@ -28498,19 +23918,16 @@ components: gender: type: string example: MALE - enum: *ref_127 nullable: true description: The gender of the employee ethnicity: type: string example: AMERICAN_INDIAN_OR_ALASKA_NATIVE - enum: *ref_128 nullable: true description: The ethnicity of the employee marital_status: type: string example: Married - enum: *ref_129 nullable: true description: The marital status of the employee date_of_birth: @@ -28528,7 +23945,6 @@ components: employment_status: type: string example: ACTIVE - enum: *ref_130 nullable: true description: The employment status of the employee termination_date: @@ -28549,7 +23965,7 @@ components: description: UUID of the manager (employee) of the employee field_mappings: type: object - example: *ref_131 + example: *ref_119 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -28559,12 +23975,6 @@ components: benefit_plan_type: type: string example: Health Insurance - enum: - - MEDICAL - - HEALTH_SAVINGS - - INSURANCE - - RETIREMENT - - OTHER nullable: true description: The type of the benefit plan name: @@ -28649,209 +24059,21 @@ components: pay_period: type: string example: MONTHLY - enum: - - HOUR - - DAY - - WEEK - - EVERY_TWO_WEEKS - - SEMIMONTHLY - - MONTH - - QUARTER - - EVERY_SIX_MONTHS - - YEAR nullable: true description: The pay period of the employment pay_frequency: type: string example: WEEKLY - enum: - - WEEKLY - - BIWEEKLY - - MONTHLY - - QUARTERLY - - SEMIANNUALLY - - ANNUALLY - - THIRTEEN-MONTHLY - - PRO_RATA - - SEMIMONTHLY nullable: true description: The pay frequency of the employment pay_currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the pay flsa_status: type: string example: EXEMPT - enum: - - EXEMPT - - SALARIED_NONEXEMPT - - NONEXEMPT - - OWNER nullable: true description: The FLSA status of the employment effective_date: @@ -28863,12 +24085,6 @@ components: employment_type: type: string example: FULL_TIME - enum: - - FULL_TIME - - PART_TIME - - INTERN - - CONTRACTOR - - FREELANCE nullable: true description: The type of employment pay_group_id: @@ -28945,12 +24161,6 @@ components: type: type: string example: DEPARTMENT - enum: - - TEAM - - DEPARTMENT - - COST_CENTER - - BUSINESS_UNIT - - GROUP nullable: true description: The type of the group field_mappings: @@ -29047,9 +24257,6 @@ components: location_type: type: string example: WORK - enum: - - WORK - - HOME nullable: true description: The type of the location company_id: @@ -29172,23 +24379,11 @@ components: run_state: type: string example: PAID - enum: - - PAID - - DRAFT - - APPROVED - - FAILED - - CLOSE nullable: true description: The state of the payroll run run_type: type: string example: REGULAR - enum: - - REGULAR - - OFF_CYCLE - - CORRECTION - - TERMINATION - - SIGN_ON_BONUS nullable: true description: The type of the payroll run start_date: @@ -29282,12 +24477,6 @@ components: status: type: string example: REQUESTED - enum: &ref_132 - - REQUESTED - - APPROVED - - DECLINED - - CANCELLED - - DELETED nullable: true description: The status of the time off request employee_note: @@ -29298,9 +24487,6 @@ components: units: type: string example: DAYS - enum: &ref_133 - - HOURS - - DAYS nullable: true description: The units used for the time off (e.g., Days, Hours) amount: @@ -29311,13 +24497,6 @@ components: request_type: type: string example: VACATION - enum: &ref_134 - - VACATION - - SICK - - PERSONAL - - JURY_DUTY - - VOLUNTEER - - BEREAVEMENT nullable: true description: The type of time off request start_time: @@ -29334,7 +24513,7 @@ components: description: The end time of the time off field_mappings: type: object - example: &ref_135 + example: &ref_120 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -29396,7 +24575,6 @@ components: status: type: string example: REQUESTED - enum: *ref_132 nullable: true description: The status of the time off request employee_note: @@ -29407,7 +24585,6 @@ components: units: type: string example: DAYS - enum: *ref_133 nullable: true description: The units used for the time off (e.g., Days, Hours) amount: @@ -29418,7 +24595,6 @@ components: request_type: type: string example: VACATION - enum: *ref_134 nullable: true description: The type of time off request start_time: @@ -29435,7 +24611,7 @@ components: description: The end time of the time off field_mappings: type: object - example: *ref_135 + example: *ref_120 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -29460,13 +24636,6 @@ components: policy_type: type: string example: VACATION - enum: - - VACATION - - SICK - - PERSONAL - - JURY_DUTY - - VOLUNTEER - - BEREAVEMENT nullable: true description: The type of time off policy field_mappings: @@ -29548,7 +24717,7 @@ components: description: Indicates if the timesheet entry was deleted in the remote system field_mappings: type: object - example: &ref_136 + example: &ref_121 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -29619,7 +24788,7 @@ components: description: Indicates if the timesheet entry was deleted in the remote system field_mappings: type: object - example: *ref_136 + example: *ref_121 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -29676,13 +24845,9 @@ components: properties: activity_type: type: string - enum: &ref_137 - - NOTE - - EMAIL - - OTHER example: NOTE nullable: true - description: The type of activity + description: The type of activity. NOTE, EMAIL or OTHER subject: type: string example: Email subject @@ -29695,13 +24860,9 @@ components: description: The body of the activity visibility: type: string - enum: &ref_138 - - ADMIN_ONLY - - PUBLIC - - PRIVATE example: PUBLIC nullable: true - description: The visibility of the activity + description: The visibility of the activity. ADMIN_ONLY, PUBLIC or PRIVATE candidate_id: type: string example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f @@ -29715,7 +24876,7 @@ components: description: The remote creation date of the activity field_mappings: type: object - example: &ref_139 + example: &ref_122 fav_dish: broccoli fav_color: red additionalProperties: true @@ -29757,10 +24918,9 @@ components: properties: activity_type: type: string - enum: *ref_137 example: NOTE nullable: true - description: The type of activity + description: The type of activity. NOTE, EMAIL or OTHER subject: type: string example: Email subject @@ -29773,10 +24933,9 @@ components: description: The body of the activity visibility: type: string - enum: *ref_138 example: PUBLIC nullable: true - description: The visibility of the activity + description: The visibility of the activity. ADMIN_ONLY, PUBLIC or PRIVATE candidate_id: type: string example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f @@ -29790,7 +24949,7 @@ components: description: The remote creation date of the activity field_mappings: type: object - example: *ref_139 + example: *ref_122 additionalProperties: true nullable: true description: >- @@ -29813,7 +24972,7 @@ components: offers: nullable: true description: The offers UUIDs for the application - example: &ref_140 + example: &ref_123 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f - 12345678-1234-1234-1234-123456789012 type: array @@ -29850,7 +25009,7 @@ components: example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f field_mappings: type: object - example: &ref_141 + example: &ref_124 fav_dish: broccoli fav_color: red additionalProperties: true @@ -29915,7 +25074,7 @@ components: offers: nullable: true description: The offers UUIDs for the application - example: *ref_140 + example: *ref_123 type: array items: type: string @@ -29950,7 +25109,7 @@ components: example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f field_mappings: type: object - example: *ref_141 + example: *ref_124 additionalProperties: true nullable: true description: >- @@ -29971,11 +25130,6 @@ components: attachment_type: type: string example: RESUME - enum: &ref_142 - - RESUME - - COVER_LETTER - - OFFER_LETTER - - OTHER nullable: true description: The type of the file remote_created_at: @@ -29997,7 +25151,7 @@ components: description: The UUID of the candidate field_mappings: type: object - example: &ref_143 + example: &ref_125 fav_dish: broccoli fav_color: red additionalProperties: true @@ -30050,7 +25204,6 @@ components: attachment_type: type: string example: RESUME - enum: *ref_142 nullable: true description: The type of the file remote_created_at: @@ -30072,7 +25225,7 @@ components: description: The UUID of the candidate field_mappings: type: object - example: *ref_143 + example: *ref_125 additionalProperties: true nullable: true description: >- @@ -30149,37 +25302,37 @@ components: description: The last interaction date with the candidate attachments: type: array - items: &ref_144 + items: &ref_126 oneOf: - type: string - $ref: '#/components/schemas/UnifiedAtsAttachmentOutput' - example: &ref_145 + example: &ref_127 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The attachments UUIDs of the candidate applications: type: array - items: &ref_146 + items: &ref_128 oneOf: - type: string - $ref: '#/components/schemas/UnifiedAtsApplicationOutput' - example: &ref_147 + example: &ref_129 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The applications UUIDs of the candidate tags: type: array - items: &ref_148 + items: &ref_130 oneOf: - type: string - $ref: '#/components/schemas/UnifiedAtsTagOutput' - example: &ref_149 + example: &ref_131 - tag_1 - tag_2 nullable: true description: The tags of the candidate urls: - example: &ref_150 + example: &ref_132 - url: mywebsite.com url_type: WEBSITE nullable: true @@ -30189,7 +25342,7 @@ components: items: $ref: '#/components/schemas/Url' phone_numbers: - example: &ref_151 + example: &ref_133 - phone_number: '+33660688899' phone_type: WORK nullable: true @@ -30198,7 +25351,7 @@ components: items: $ref: '#/components/schemas/Phone' email_addresses: - example: &ref_152 + example: &ref_134 - email_address: joedoe@gmail.com email_address_type: WORK nullable: true @@ -30208,7 +25361,7 @@ components: $ref: '#/components/schemas/Email' field_mappings: type: object - example: &ref_153 + example: &ref_135 fav_dish: broccoli fav_color: red additionalProperties: true @@ -30303,24 +25456,24 @@ components: description: The last interaction date with the candidate attachments: type: array - items: *ref_144 - example: *ref_145 + items: *ref_126 + example: *ref_127 nullable: true description: The attachments UUIDs of the candidate applications: type: array - items: *ref_146 - example: *ref_147 + items: *ref_128 + example: *ref_129 nullable: true description: The applications UUIDs of the candidate tags: type: array - items: *ref_148 - example: *ref_149 + items: *ref_130 + example: *ref_131 nullable: true description: The tags of the candidate urls: - example: *ref_150 + example: *ref_132 nullable: true description: >- The urls of the candidate, possible values for Url type are WEBSITE, BLOG, LINKEDIN, GITHUB, or OTHER @@ -30328,14 +25481,14 @@ components: items: $ref: '#/components/schemas/Url' phone_numbers: - example: *ref_151 + example: *ref_133 nullable: true description: The phone numbers of the candidate type: array items: $ref: '#/components/schemas/Phone' email_addresses: - example: *ref_152 + example: *ref_134 nullable: true description: The email addresses of the candidate type: array @@ -30343,7 +25496,7 @@ components: $ref: '#/components/schemas/Email' field_mappings: type: object - example: *ref_153 + example: *ref_135 additionalProperties: true nullable: true description: >- @@ -30401,10 +25554,6 @@ components: properties: status: type: string - enum: &ref_154 - - SCHEDULED - - AWAITING_FEEDBACK - - COMPLETED example: SCHEDULED nullable: true description: The status of the interview @@ -30424,7 +25573,7 @@ components: nullable: true description: The UUID of the organizer interviewers: - example: &ref_155 + example: &ref_136 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The UUIDs of the interviewers @@ -30462,7 +25611,7 @@ components: description: The remote modification date of the interview field_mappings: type: object - example: &ref_156 + example: &ref_137 fav_dish: broccoli fav_color: red additionalProperties: true @@ -30504,7 +25653,6 @@ components: properties: status: type: string - enum: *ref_154 example: SCHEDULED nullable: true description: The status of the interview @@ -30524,7 +25672,7 @@ components: nullable: true description: The UUID of the organizer interviewers: - example: *ref_155 + example: *ref_136 nullable: true description: The UUIDs of the interviewers type: array @@ -30561,7 +25709,7 @@ components: description: The remote modification date of the interview field_mappings: type: object - example: *ref_156 + example: *ref_137 additionalProperties: true nullable: true description: >- @@ -30645,22 +25793,12 @@ components: description: The code of the job status: type: string - enum: - - OPEN - - CLOSED - - DRAFT - - ARCHIVED - - PENDING example: OPEN nullable: true description: The status of the job type: type: string example: POSTING - enum: - - POSTING - - REQUISITION - - PROFILE nullable: true description: The type of the job confidential: @@ -30787,16 +25925,6 @@ components: status: type: string example: DRAFT - enum: - - DRAFT - - APPROVAL_SENT - - APPROVED - - SENT - - SENT_MANUALLY - - OPENED - - DENIED - - SIGNED - - DEPRECATED description: The status of the offer nullable: true application_id: @@ -30944,12 +26072,6 @@ components: properties: overall_recommendation: type: string - enum: - - DEFINITELY_NO - - 'NO' - - 'YES' - - STRONG_YES - - NO_DECISION example: 'YES' nullable: true description: The overall recommendation @@ -31091,12 +26213,6 @@ components: access_role: type: string example: ADMIN - enum: - - SUPER_ADMIN - - ADMIN - - TEAM_MEMBER - - LIMITED_TEAM_MEMBER - - INTERVIEWER description: The access role of the user nullable: true remote_created_at: @@ -31166,45 +26282,21 @@ components: description: The submission date of the EEOC race: type: string - enum: - - AMERICAN_INDIAN_OR_ALASKAN_NATIVE - - ASIAN - - BLACK_OR_AFRICAN_AMERICAN - - HISPANIC_OR_LATINO - - WHITE - - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - - TWO_OR_MORE_RACES - - DECLINE_TO_SELF_IDENTIFY example: AMERICAN_INDIAN_OR_ALASKAN_NATIVE nullable: true description: The race of the candidate gender: type: string example: MALE - enum: - - MALE - - FEMALE - - NON_BINARY - - OTHER - - DECLINE_TO_SELF_IDENTIFY nullable: true description: The gender of the candidate veteran_status: type: string example: I_AM_NOT_A_PROTECTED_VETERAN - enum: - - I_AM_NOT_A_PROTECTED_VETERAN - - >- - I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN - - I_DONT_WISH_TO_ANSWER nullable: true description: The veteran status of the candidate disability_status: type: string - enum: - - YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY - - NO_I_DONT_HAVE_A_DISABILITY - - I_DONT_WISH_TO_ANSWER example: YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY nullable: true description: The disability status of the candidate @@ -31283,169 +26375,6 @@ components: currency: type: string example: USD - enum: &ref_157 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the account account_number: @@ -31465,7 +26394,7 @@ components: description: The UUID of the associated company info field_mappings: type: object - example: &ref_158 + example: &ref_138 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -31536,7 +26465,6 @@ components: currency: type: string example: USD - enum: *ref_157 nullable: true description: The currency of the account account_number: @@ -31556,7 +26484,7 @@ components: description: The UUID of the associated company info field_mappings: type: object - example: *ref_158 + example: *ref_138 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -31670,7 +26598,7 @@ components: description: The UUID of the associated account field_mappings: type: object - example: &ref_159 + example: &ref_139 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -31725,7 +26653,7 @@ components: description: The UUID of the associated account field_mappings: type: object - example: *ref_159 + example: *ref_139 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -31789,169 +26717,6 @@ components: currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency used in the balance sheet company_info_id: @@ -32057,169 +26822,6 @@ components: currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency used in the cash flow statement company_id: @@ -32331,169 +26933,6 @@ components: currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency used by the company urls: @@ -32594,169 +27033,6 @@ components: type: string example: USD nullable: true - enum: &ref_160 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL description: The currency associated with the contact remote_updated_at: type: string @@ -32770,7 +27046,7 @@ components: description: The UUID of the associated company info field_mappings: type: object - example: &ref_161 + example: &ref_140 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -32842,7 +27118,6 @@ components: type: string example: USD nullable: true - enum: *ref_160 description: The currency associated with the contact remote_updated_at: type: string @@ -32856,7 +27131,7 @@ components: description: The UUID of the associated company info field_mappings: type: object - example: *ref_161 + example: *ref_140 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -32915,169 +27190,6 @@ components: currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the credit note payments: @@ -33179,169 +27291,6 @@ components: currency: type: string example: USD - enum: &ref_162 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the expense exchange_rate: @@ -33370,7 +27319,7 @@ components: nullable: true description: The UUID of the associated company info tracking_categories: - example: &ref_163 + example: &ref_141 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The UUIDs of the tracking categories associated with the expense @@ -33384,7 +27333,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: &ref_164 + example: &ref_142 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -33452,7 +27401,6 @@ components: currency: type: string example: USD - enum: *ref_162 nullable: true description: The currency of the expense exchange_rate: @@ -33481,7 +27429,7 @@ components: nullable: true description: The UUID of the associated company info tracking_categories: - example: *ref_163 + example: *ref_141 nullable: true description: The UUIDs of the tracking categories associated with the expense type: array @@ -33494,7 +27442,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: *ref_164 + example: *ref_142 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -33509,169 +27457,6 @@ components: currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency used in the income statement start_period: @@ -33779,169 +27564,6 @@ components: currency: type: string example: USD - enum: &ref_165 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the invoice exchange_rate: @@ -33990,7 +27612,7 @@ components: nullable: true description: The UUID of the associated accounting period tracking_categories: - example: &ref_166 + example: &ref_143 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true @@ -34005,7 +27627,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: &ref_167 + example: &ref_144 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -34085,7 +27707,6 @@ components: currency: type: string example: USD - enum: *ref_165 nullable: true description: The currency of the invoice exchange_rate: @@ -34134,7 +27755,7 @@ components: nullable: true description: The UUID of the associated accounting period tracking_categories: - example: *ref_166 + example: *ref_143 nullable: true description: The UUIDs of the tracking categories associated with the invoice type: array @@ -34147,7 +27768,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: *ref_167 + example: *ref_144 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -34242,7 +27863,7 @@ components: nullable: true description: The date of the transaction payments: - example: &ref_168 + example: &ref_145 - payment1 - payment2 nullable: true @@ -34251,7 +27872,7 @@ components: items: type: string applied_payments: - example: &ref_169 + example: &ref_146 - appliedPayment1 - appliedPayment2 nullable: true @@ -34267,169 +27888,6 @@ components: currency: type: string example: USD - enum: &ref_170 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the journal entry exchange_rate: @@ -34448,7 +27906,7 @@ components: nullable: true description: The journal number tracking_categories: - example: &ref_171 + example: &ref_147 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: >- @@ -34473,7 +27931,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: &ref_172 + example: &ref_148 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -34531,14 +27989,14 @@ components: nullable: true description: The date of the transaction payments: - example: *ref_168 + example: *ref_145 nullable: true description: The payments associated with the journal entry type: array items: type: string applied_payments: - example: *ref_169 + example: *ref_146 nullable: true description: The applied payments for the journal entry type: array @@ -34552,7 +28010,6 @@ components: currency: type: string example: USD - enum: *ref_170 nullable: true description: The currency of the journal entry exchange_rate: @@ -34571,7 +28028,7 @@ components: nullable: true description: The journal number tracking_categories: - example: *ref_171 + example: *ref_147 nullable: true description: >- The UUIDs of the tracking categories associated with the journal entry @@ -34595,7 +28052,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: *ref_172 + example: *ref_148 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -34626,169 +28083,6 @@ components: currency: type: string example: USD - enum: &ref_173 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the payment exchange_rate: @@ -34817,7 +28111,7 @@ components: nullable: true description: The UUID of the associated accounting period tracking_categories: - example: &ref_174 + example: &ref_149 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The UUIDs of the tracking categories associated with the payment @@ -34831,7 +28125,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: &ref_175 + example: &ref_150 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -34899,7 +28193,6 @@ components: currency: type: string example: USD - enum: *ref_173 nullable: true description: The currency of the payment exchange_rate: @@ -34928,7 +28221,7 @@ components: nullable: true description: The UUID of the associated accounting period tracking_categories: - example: *ref_174 + example: *ref_149 nullable: true description: The UUIDs of the tracking categories associated with the payment type: array @@ -34941,7 +28234,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: *ref_175 + example: *ref_150 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -35063,169 +28356,6 @@ components: currency: type: string example: USD - enum: &ref_176 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the purchase order exchange_rate: @@ -35234,7 +28364,7 @@ components: nullable: true description: The exchange rate applied to the purchase order tracking_categories: - example: &ref_177 + example: &ref_151 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: >- @@ -35254,7 +28384,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: &ref_178 + example: &ref_152 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -35361,7 +28491,6 @@ components: currency: type: string example: USD - enum: *ref_176 nullable: true description: The currency of the purchase order exchange_rate: @@ -35370,7 +28499,7 @@ components: nullable: true description: The exchange rate applied to the purchase order tracking_categories: - example: *ref_177 + example: *ref_151 nullable: true description: >- The UUIDs of the tracking categories associated with the purchase order @@ -35389,7 +28518,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: *ref_178 + example: *ref_152 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -35547,169 +28676,6 @@ components: currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the transaction tracking_categories: @@ -35817,169 +28783,6 @@ components: type: string example: USD nullable: true - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL description: The currency of the vendor credit exchange_rate: type: string @@ -36054,205 +28857,6 @@ components: additional_field: some value nullable: true description: The remote data of the vendor credit in the context of the 3rd Party - UnifiedFilestorageDriveOutput: - type: object - properties: - name: - type: string - nullable: true - example: school - description: The name of the drive - remote_created_at: - type: string - nullable: true - example: '2024-10-01T12:00:00Z' - description: When the third party s drive was created. - drive_url: - type: string - nullable: true - example: https://example.com/school - description: The url of the drive - field_mappings: - type: object - example: - fav_dish: broccoli - fav_color: red - additionalProperties: true - nullable: true - description: >- - The custom field mappings of the object between the remote 3rd party & Panora - id: - type: string - nullable: true - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: The UUID of the drive - remote_id: - type: string - nullable: true - example: id_1 - description: The id of the drive in the context of the 3rd Party - remote_data: - type: object - nullable: true - example: - fav_dish: broccoli - fav_color: red - additionalProperties: true - description: The remote data of the drive in the context of the 3rd Party - created_at: - format: date-time - type: string - nullable: true - example: '2024-10-01T12:00:00Z' - description: The created date of the object - modified_at: - format: date-time - type: string - nullable: true - example: '2024-10-01T12:00:00Z' - description: The modified date of the object - required: - - name - - remote_created_at - - drive_url - UnifiedFilestorageFileOutput: - type: object - properties: - name: - type: string - example: my_paris_photo.png - description: The name of the file - nullable: true - file_url: - type: string - example: https://example.com/my_paris_photo.png - description: The url of the file - nullable: true - mime_type: - type: string - example: application/pdf - description: The mime type of the file - nullable: true - size: - type: string - example: '1024' - description: The size of the file - nullable: true - folder_id: - type: string - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: The UUID of the folder tied to the file - nullable: true - permission: - type: string - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: The UUID of the permission tied to the file - nullable: true - shared_link: - type: string - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: The UUID of the shared link tied to the file - nullable: true - field_mappings: - type: object - example: &ref_179 - fav_dish: broccoli - fav_color: red - description: >- - The custom field mappings of the object between the remote 3rd party & Panora - nullable: true - additionalProperties: true - id: - type: string - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: The UUID of the file - nullable: true - remote_id: - type: string - example: id_1 - description: The id of the file in the context of the 3rd Party - nullable: true - remote_data: - type: object - example: - fav_dish: broccoli - fav_color: red - description: The remote data of the file in the context of the 3rd Party - nullable: true - additionalProperties: true - created_at: - format: date-time - type: string - example: '2024-10-01T12:00:00Z' - description: The created date of the object - nullable: true - modified_at: - format: date-time - type: string - example: '2024-10-01T12:00:00Z' - description: The modified date of the object - nullable: true - required: - - name - - file_url - - mime_type - - size - - folder_id - - permission - - shared_link - UnifiedFilestorageFileInput: - type: object - properties: - name: - type: string - example: my_paris_photo.png - description: The name of the file - nullable: true - file_url: - type: string - example: https://example.com/my_paris_photo.png - description: The url of the file - nullable: true - mime_type: - type: string - example: application/pdf - description: The mime type of the file - nullable: true - size: - type: string - example: '1024' - description: The size of the file - nullable: true - folder_id: - type: string - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: The UUID of the folder tied to the file - nullable: true - permission: - type: string - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: The UUID of the permission tied to the file - nullable: true - shared_link: - type: string - example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f - description: The UUID of the shared link tied to the file - nullable: true - field_mappings: - type: object - example: *ref_179 - description: >- - The custom field mappings of the object between the remote 3rd party & Panora - nullable: true - additionalProperties: true - required: - - name - - file_url - - mime_type - - size - - folder_id - - permission - - shared_link UnifiedFilestorageFolderOutput: type: object properties: @@ -36297,7 +28901,7 @@ components: description: The UUID of the permission tied to the folder field_mappings: type: object - example: &ref_180 + example: &ref_153 fav_dish: broccoli fav_color: red additionalProperties: true @@ -36387,7 +28991,7 @@ components: description: The UUID of the permission tied to the folder field_mappings: type: object - example: *ref_180 + example: *ref_153 additionalProperties: true nullable: true description: >- @@ -36548,13 +29152,9 @@ components: type: string example: ACTIVE nullable: true - enum: &ref_181 - - ARCHIVED - - ACTIVE - - DRAFT description: The status of the product. Either ACTIVE, DRAFT OR ARCHIVED. images_urls: - example: &ref_182 + example: &ref_154 - https://myproduct/image nullable: true description: The URLs of the product images @@ -36572,7 +29172,7 @@ components: nullable: true description: The vendor of the product variants: - example: &ref_183 + example: &ref_155 - title: teeshirt price: 20 sku: '3' @@ -36584,7 +29184,7 @@ components: items: $ref: '#/components/schemas/Variant' tags: - example: &ref_184 + example: &ref_156 - tag_1 nullable: true description: The tags associated with the product @@ -36593,7 +29193,7 @@ components: type: string field_mappings: type: object - example: &ref_185 + example: &ref_157 fav_dish: broccoli fav_color: red nullable: true @@ -36643,10 +29243,9 @@ components: type: string example: ACTIVE nullable: true - enum: *ref_181 description: The status of the product. Either ACTIVE, DRAFT OR ARCHIVED. images_urls: - example: *ref_182 + example: *ref_154 nullable: true description: The URLs of the product images type: array @@ -36663,13 +29262,13 @@ components: nullable: true description: The vendor of the product variants: - example: *ref_183 + example: *ref_155 description: The variants of the product type: array items: $ref: '#/components/schemas/Variant' tags: - example: *ref_184 + example: *ref_156 nullable: true description: The tags associated with the product type: array @@ -36677,7 +29276,7 @@ components: type: string field_mappings: type: object - example: *ref_185 + example: *ref_157 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -36687,11 +29286,6 @@ components: order_status: type: string example: UNSHIPPED - enum: &ref_186 - - PENDING - - UNSHIPPED - - SHIPPED - - CANCELED nullable: true description: The status of the order order_number: @@ -36702,178 +29296,12 @@ components: payment_status: type: string example: SUCCESS - enum: &ref_187 - - SUCCESS - - FAIL nullable: true description: The payment status of the order currency: type: string nullable: true example: AUD - enum: &ref_188 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL description: >- The currency of the order. Authorized value must be of type CurrencyCode (ISO 4217) total_price: @@ -36900,10 +29328,6 @@ components: type: string nullable: true example: PENDING - enum: &ref_189 - - PENDING - - FULFILLED - - CANCELED description: The fulfillment status of the order customer_id: type: string @@ -36912,7 +29336,7 @@ components: description: The UUID of the customer associated with the order items: nullable: true - example: &ref_190 + example: &ref_158 - remote_id: '12345' product_id: prod_001 variant_id: var_001 @@ -36943,7 +29367,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: &ref_191 + example: &ref_159 fav_dish: broccoli fav_color: red nullable: true @@ -36982,7 +29406,6 @@ components: order_status: type: string example: UNSHIPPED - enum: *ref_186 nullable: true description: The status of the order order_number: @@ -36993,14 +29416,12 @@ components: payment_status: type: string example: SUCCESS - enum: *ref_187 nullable: true description: The payment status of the order currency: type: string nullable: true example: AUD - enum: *ref_188 description: >- The currency of the order. Authorized value must be of type CurrencyCode (ISO 4217) total_price: @@ -37027,7 +29448,6 @@ components: type: string nullable: true example: PENDING - enum: *ref_189 description: The fulfillment status of the order customer_id: type: string @@ -37036,14 +29456,14 @@ components: description: The UUID of the customer associated with the order items: nullable: true - example: *ref_190 + example: *ref_158 description: The items in the order type: array items: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: *ref_191 + example: *ref_159 nullable: true description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -37217,7 +29637,7 @@ components: field_mappings: type: object nullable: true - example: &ref_192 + example: &ref_160 fav_dish: broccoli fav_color: red description: >- @@ -37288,7 +29708,7 @@ components: field_mappings: type: object nullable: true - example: *ref_192 + example: *ref_160 description: >- The custom field mappings of the attachment between the remote 3rd party & Panora additionalProperties: true