From 6904be4f71a514fa7b533b87f66ccc8be41fa36a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 17 Sep 2024 19:34:01 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.398.1 --- .speakeasy/gen.lock | 8049 +++++++++++------ .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 13 +- README.md | 645 +- RELEASES.md | 12 +- USAGE.md | 1 + codeSamples.yaml | 3232 ++++--- docs/models/querybody.md | 9 + docs/models/queryrequest.md | 9 + ...gsresponsebody.md => queryresponsebody.md} | 2 +- .../unifiedaccountingbalancesheetoutput.md | 2 +- docs/sdks/accounting/README.md | 5 +- docs/sdks/accounts/README.md | 14 +- docs/sdks/actions/README.md | 16 +- docs/sdks/activities/README.md | 16 +- docs/sdks/addresses/README.md | 12 +- docs/sdks/applications/README.md | 16 +- docs/sdks/ats/README.md | 5 +- docs/sdks/attachments/README.md | 16 +- docs/sdks/auth/README.md | 5 +- docs/sdks/automations/README.md | 16 +- docs/sdks/balancesheets/README.md | 12 +- docs/sdks/bankinfos/README.md | 12 +- docs/sdks/benefits/README.md | 12 +- docs/sdks/campaigns/README.md | 16 +- docs/sdks/candidates/README.md | 16 +- docs/sdks/cashflowstatements/README.md | 12 +- docs/sdks/collections/README.md | 12 +- docs/sdks/comments/README.md | 18 +- docs/sdks/companies/README.md | 16 +- docs/sdks/companyinfos/README.md | 12 +- docs/sdks/connections/README.md | 11 +- docs/sdks/contacts/README.md | 14 +- docs/sdks/creditnotes/README.md | 12 +- docs/sdks/crm/README.md | 5 +- docs/sdks/customers/README.md | 14 +- docs/sdks/deals/README.md | 16 +- docs/sdks/departments/README.md | 12 +- docs/sdks/dependents/README.md | 12 +- docs/sdks/ecommerce/README.md | 5 +- docs/sdks/eeocs/README.md | 14 +- docs/sdks/emails/README.md | 12 +- docs/sdks/employeepayrollruns/README.md | 12 +- docs/sdks/employees/README.md | 16 +- docs/sdks/employerbenefits/README.md | 12 +- docs/sdks/employments/README.md | 12 +- docs/sdks/engagements/README.md | 16 +- docs/sdks/events/README.md | 5 +- docs/sdks/expenses/README.md | 16 +- docs/sdks/fieldmappings/README.md | 19 +- docs/sdks/files/README.md | 16 +- docs/sdks/filestorage/README.md | 5 +- docs/sdks/folders/README.md | 16 +- docs/sdks/fulfillments/README.md | 14 +- docs/sdks/groups/README.md | 12 +- docs/sdks/hris/README.md | 5 +- docs/sdks/incomestatements/README.md | 12 +- docs/sdks/interviews/README.md | 16 +- docs/sdks/invoices/README.md | 16 +- docs/sdks/items/README.md | 12 +- docs/sdks/jobinterviewstages/README.md | 12 +- docs/sdks/jobs/README.md | 12 +- docs/sdks/journalentries/README.md | 16 +- docs/sdks/linkedusers/README.md | 21 +- docs/sdks/lists/README.md | 16 +- docs/sdks/locations/README.md | 12 +- docs/sdks/login/README.md | 3 +- docs/sdks/marketingautomation/README.md | 5 +- docs/sdks/messages/README.md | 12 +- docs/sdks/notes/README.md | 16 +- docs/sdks/offers/README.md | 12 +- docs/sdks/offices/README.md | 12 +- docs/sdks/orders/README.md | 18 +- docs/sdks/panora/README.md | 8 +- docs/sdks/panoraaccountingcontacts/README.md | 16 +- docs/sdks/panoraaccounts/README.md | 16 +- docs/sdks/panoraatsusers/README.md | 12 +- docs/sdks/panoraattachments/README.md | 16 +- docs/sdks/panoracompanies/README.md | 12 +- docs/sdks/panoracontacts/README.md | 18 +- docs/sdks/panoraevents/README.md | 12 +- docs/sdks/panorafilestorageusers/README.md | 12 +- docs/sdks/panoragroups/README.md | 12 +- .../README.md | 16 +- .../panoramarketingautomationusers/README.md | 12 +- docs/sdks/panoratags/README.md | 12 +- .../sdks/panoraticketingattachments/README.md | 16 +- docs/sdks/panorausers/README.md | 12 +- docs/sdks/passthrough/README.md | 5 +- docs/sdks/paygroups/README.md | 12 +- docs/sdks/payments/README.md | 16 +- docs/sdks/payrollruns/README.md | 12 +- docs/sdks/phonenumbers/README.md | 12 +- docs/sdks/products/README.md | 18 +- docs/sdks/projects/README.md | 9 +- docs/sdks/purchaseorders/README.md | 16 +- docs/sdks/query/README.md | 20 +- docs/sdks/rag/README.md | 5 +- docs/sdks/rejectreasons/README.md | 12 +- docs/sdks/retryid/README.md | 3 +- docs/sdks/scorecards/README.md | 12 +- docs/sdks/stages/README.md | 12 +- docs/sdks/sync/README.md | 15 +- docs/sdks/tags/README.md | 12 +- docs/sdks/tasks/README.md | 16 +- docs/sdks/taxrates/README.md | 12 +- docs/sdks/teams/README.md | 12 +- docs/sdks/templates/README.md | 16 +- docs/sdks/ticketing/README.md | 5 +- docs/sdks/tickets/README.md | 16 +- docs/sdks/timeoffbalances/README.md | 12 +- docs/sdks/timeoffs/README.md | 16 +- docs/sdks/timesheetentries/README.md | 16 +- docs/sdks/trackingcategories/README.md | 12 +- docs/sdks/transactions/README.md | 12 +- docs/sdks/users/README.md | 12 +- docs/sdks/vendorcredits/README.md | 12 +- docs/sdks/webhooks/README.md | 23 +- poetry.lock | 246 +- pylintrc | 3 +- pyproject.toml | 10 +- scripts/compile.sh | 2 - scripts/prepare-readme.py | 33 - scripts/publish.sh | 2 - src/panora_sdk/_hooks/sdkhooks.py | 27 +- src/panora_sdk/_hooks/types.py | 36 +- src/panora_sdk/accounting.py | 5 +- src/panora_sdk/accounts.py | 240 +- src/panora_sdk/actions.py | 392 +- src/panora_sdk/activities.py | 386 +- src/panora_sdk/addresses.py | 240 +- src/panora_sdk/applications.py | 388 +- src/panora_sdk/ats.py | 5 +- src/panora_sdk/attachments.py | 386 +- src/panora_sdk/auth.py | 5 +- src/panora_sdk/automations.py | 396 +- src/panora_sdk/balancesheets.py | 242 +- src/panora_sdk/bankinfos.py | 240 +- src/panora_sdk/basesdk.py | 100 +- src/panora_sdk/benefits.py | 240 +- src/panora_sdk/campaigns.py | 392 +- src/panora_sdk/candidates.py | 386 +- src/panora_sdk/cashflowstatements.py | 242 +- src/panora_sdk/collections.py | 240 +- src/panora_sdk/comments.py | 388 +- src/panora_sdk/companies.py | 386 +- src/panora_sdk/companyinfos.py | 242 +- src/panora_sdk/connections.py | 112 +- src/panora_sdk/contacts.py | 240 +- src/panora_sdk/creditnotes.py | 240 +- src/panora_sdk/crm.py | 5 +- src/panora_sdk/customers.py | 240 +- src/panora_sdk/deals.py | 386 +- src/panora_sdk/departments.py | 240 +- src/panora_sdk/dependents.py | 240 +- src/panora_sdk/ecommerce.py | 5 +- src/panora_sdk/eeocs.py | 240 +- src/panora_sdk/emails.py | 242 +- src/panora_sdk/employeepayrollruns.py | 242 +- src/panora_sdk/employees.py | 386 +- src/panora_sdk/employerbenefits.py | 240 +- src/panora_sdk/employments.py | 240 +- src/panora_sdk/engagements.py | 386 +- src/panora_sdk/events.py | 124 +- src/panora_sdk/expenses.py | 388 +- src/panora_sdk/fieldmappings.py | 666 +- src/panora_sdk/files.py | 388 +- src/panora_sdk/filestorage.py | 5 +- src/panora_sdk/folders.py | 388 +- src/panora_sdk/fulfillments.py | 242 +- src/panora_sdk/groups.py | 240 +- src/panora_sdk/hris.py | 5 +- src/panora_sdk/incomestatements.py | 242 +- src/panora_sdk/interviews.py | 386 +- src/panora_sdk/invoices.py | 388 +- src/panora_sdk/items.py | 240 +- src/panora_sdk/jobinterviewstages.py | 240 +- src/panora_sdk/jobs.py | 240 +- src/panora_sdk/journalentries.py | 392 +- src/panora_sdk/linkedusers.py | 580 +- src/panora_sdk/lists.py | 392 +- src/panora_sdk/locations.py | 240 +- src/panora_sdk/login.py | 116 +- src/panora_sdk/marketingautomation.py | 9 +- src/panora_sdk/messages.py | 242 +- src/panora_sdk/models/__init__.py | 3524 +------- src/panora_sdk/models/address.py | 40 +- src/panora_sdk/models/connection.py | 17 +- .../models/createaccountingaccountop.py | 33 +- .../models/createaccountingattachmentop.py | 33 +- .../models/createaccountingcontactop.py | 33 +- .../models/createaccountingexpenseop.py | 33 +- .../models/createaccountinginvoiceop.py | 33 +- .../models/createaccountingjournalentryop.py | 33 +- .../models/createaccountingpaymentop.py | 33 +- .../models/createaccountingpurchaseorderop.py | 33 +- src/panora_sdk/models/createatsactivityop.py | 33 +- .../models/createatsapplicationop.py | 33 +- .../models/createatsattachmentop.py | 33 +- src/panora_sdk/models/createatscandidateop.py | 33 +- src/panora_sdk/models/createatsinterviewop.py | 33 +- .../models/createbatchlinkeduserdto.py | 23 +- src/panora_sdk/models/createcrmcompanyop.py | 33 +- src/panora_sdk/models/createcrmcontactop.py | 33 +- src/panora_sdk/models/createcrmdealop.py | 28 +- .../models/createcrmengagementop.py | 33 +- src/panora_sdk/models/createcrmnoteop.py | 28 +- src/panora_sdk/models/createcrmtaskop.py | 28 +- .../models/createecommerceorderop.py | 33 +- .../models/createecommerceproductop.py | 33 +- .../models/createfilestoragefileop.py | 33 +- .../models/createfilestoragefolderop.py | 33 +- src/panora_sdk/models/createhrisemployeeop.py | 33 +- src/panora_sdk/models/createhristimeoffop.py | 33 +- .../models/createhristimesheetentryop.py | 33 +- src/panora_sdk/models/createlinkeduserdto.py | 23 +- .../createmarketingautomationactionop.py | 37 +- .../createmarketingautomationautomationop.py | 37 +- .../createmarketingautomationcampaignop.py | 37 +- .../createmarketingautomationcontactop.py | 37 +- .../models/createmarketingautomationlistop.py | 33 +- .../createmarketingautomationtemplateop.py | 37 +- src/panora_sdk/models/createprojectdto.py | 5 +- .../models/createticketingattachmentop.py | 33 +- .../models/createticketingcommentop.py | 33 +- .../models/createticketingticketop.py | 33 +- src/panora_sdk/models/customfieldcreatedto.py | 41 +- src/panora_sdk/models/customfieldresponse.py | 54 +- src/panora_sdk/models/deductionitem.py | 32 +- src/panora_sdk/models/definetargetfielddto.py | 28 +- src/panora_sdk/models/deleteop.py | 7 +- src/panora_sdk/models/earningitem.py | 31 +- src/panora_sdk/models/email.py | 34 +- src/panora_sdk/models/eventresponse.py | 19 +- .../models/getpanoracoreeventsop.py | 14 +- .../models/getretriedrequestresponseop.py | 9 +- src/panora_sdk/models/lineitem.py | 60 +- src/panora_sdk/models/linkeduserresponse.py | 32 +- .../models/listaccountingaccountsop.py | 63 +- .../models/listaccountingaddressop.py | 63 +- .../models/listaccountingattachmentsop.py | 63 +- .../models/listaccountingbalancesheetsop.py | 63 +- .../listaccountingcashflowstatementop.py | 63 +- .../models/listaccountingcompanyinfosop.py | 63 +- .../models/listaccountingcontactsop.py | 63 +- .../models/listaccountingcreditnoteop.py | 63 +- .../models/listaccountingexpenseop.py | 63 +- .../models/listaccountingincomestatementop.py | 63 +- .../models/listaccountinginvoiceop.py | 63 +- src/panora_sdk/models/listaccountingitemop.py | 63 +- .../models/listaccountingjournalentryop.py | 63 +- .../models/listaccountingpaymentop.py | 63 +- .../models/listaccountingphonenumberop.py | 63 +- .../models/listaccountingpurchaseorderop.py | 63 +- .../models/listaccountingtaxrateop.py | 63 +- .../listaccountingtrackingcategorysop.py | 63 +- .../models/listaccountingtransactionop.py | 63 +- .../models/listaccountingvendorcreditop.py | 63 +- src/panora_sdk/models/listatsactivityop.py | 63 +- src/panora_sdk/models/listatsapplicationop.py | 63 +- src/panora_sdk/models/listatsattachmentop.py | 63 +- src/panora_sdk/models/listatscandidateop.py | 63 +- src/panora_sdk/models/listatsdepartmentsop.py | 63 +- src/panora_sdk/models/listatseeocsop.py | 58 +- src/panora_sdk/models/listatsinterviewop.py | 63 +- .../models/listatsjobinterviewstageop.py | 63 +- src/panora_sdk/models/listatsjobop.py | 58 +- src/panora_sdk/models/listatsofferop.py | 58 +- src/panora_sdk/models/listatsofficeop.py | 63 +- .../models/listatsrejectreasonsop.py | 63 +- src/panora_sdk/models/listatsscorecardop.py | 63 +- src/panora_sdk/models/listatstagsop.py | 58 +- src/panora_sdk/models/listatsusersop.py | 58 +- src/panora_sdk/models/listcrmcompanyop.py | 63 +- src/panora_sdk/models/listcrmcontactsop.py | 63 +- src/panora_sdk/models/listcrmdealsop.py | 58 +- src/panora_sdk/models/listcrmengagementsop.py | 63 +- src/panora_sdk/models/listcrmnoteop.py | 58 +- src/panora_sdk/models/listcrmstagesop.py | 58 +- src/panora_sdk/models/listcrmtaskop.py | 58 +- src/panora_sdk/models/listcrmusersop.py | 58 +- .../models/listecommercecustomersop.py | 63 +- .../models/listecommercefulfillmentsop.py | 63 +- .../models/listecommerceordersop.py | 63 +- .../models/listecommerceproductsop.py | 63 +- .../models/listfilestoragefileop.py | 63 +- .../models/listfilestoragefolderop.py | 63 +- .../models/listfilestoragegroupop.py | 63 +- .../models/listfilestorageusersop.py | 63 +- src/panora_sdk/models/listhrisbankinfoop.py | 63 +- src/panora_sdk/models/listhrisbenefitsop.py | 63 +- src/panora_sdk/models/listhriscompaniesop.py | 63 +- src/panora_sdk/models/listhrisdependentsop.py | 63 +- .../models/listhrisemployeepayrollrunop.py | 63 +- src/panora_sdk/models/listhrisemployeesop.py | 63 +- .../models/listhrisemployerbenefitsop.py | 63 +- .../models/listhrisemploymentsop.py | 63 +- src/panora_sdk/models/listhrisgroupsop.py | 63 +- src/panora_sdk/models/listhrislocationsop.py | 63 +- src/panora_sdk/models/listhrispaygroupsop.py | 63 +- .../models/listhrispayrollrunsop.py | 63 +- .../models/listhristimeoffbalancesop.py | 63 +- src/panora_sdk/models/listhristimeoffsop.py | 63 +- .../models/listhristimesheetentriesop.py | 63 +- .../models/listmarketingautomationactionop.py | 63 +- .../listmarketingautomationautomationsop.py | 63 +- .../listmarketingautomationcampaignsop.py | 63 +- .../listmarketingautomationcontactsop.py | 63 +- .../models/listmarketingautomationemailsop.py | 63 +- .../models/listmarketingautomationeventsop.py | 63 +- .../models/listmarketingautomationlistsop.py | 63 +- .../listmarketingautomationmessagesop.py | 63 +- .../listmarketingautomationtemplatesop.py | 63 +- .../models/listmarketingautomationusersop.py | 63 +- .../models/listticketingaccountop.py | 63 +- .../models/listticketingattachmentsop.py | 63 +- .../models/listticketingcollectionsop.py | 63 +- .../models/listticketingcommentsop.py | 63 +- .../models/listticketingcontactsop.py | 63 +- src/panora_sdk/models/listticketingtagsop.py | 63 +- src/panora_sdk/models/listticketingteamsop.py | 63 +- .../models/listticketingticketop.py | 63 +- src/panora_sdk/models/listticketingusersop.py | 63 +- src/panora_sdk/models/logindto.py | 5 +- .../models/mapfieldtoproviderdto.py | 32 +- .../models/passthroughrequestdto.py | 60 +- src/panora_sdk/models/phone.py | 32 +- src/panora_sdk/models/projectresponse.py | 9 +- src/panora_sdk/models/querybody.py | 54 + src/panora_sdk/models/queryop.py | 30 + .../models/ragcontroller_queryembeddingsop.py | 13 - src/panora_sdk/models/remoteidop.py | 9 +- src/panora_sdk/models/requestop.py | 29 +- src/panora_sdk/models/resyncstatusdto.py | 27 +- .../models/retrieveaccountingaccountop.py | 27 +- .../models/retrieveaccountingaddressop.py | 27 +- .../models/retrieveaccountingattachmentop.py | 27 +- .../retrieveaccountingbalancesheetop.py | 27 +- .../retrieveaccountingcashflowstatementop.py | 27 +- .../models/retrieveaccountingcompanyinfoop.py | 27 +- .../models/retrieveaccountingcontactop.py | 27 +- .../models/retrieveaccountingcreditnoteop.py | 27 +- .../models/retrieveaccountingexpenseop.py | 27 +- .../retrieveaccountingincomestatementop.py | 27 +- .../models/retrieveaccountinginvoiceop.py | 27 +- .../models/retrieveaccountingitemop.py | 27 +- .../retrieveaccountingjournalentryop.py | 27 +- .../models/retrieveaccountingpaymentop.py | 27 +- .../models/retrieveaccountingphonenumberop.py | 27 +- .../retrieveaccountingpurchaseorderop.py | 27 +- .../models/retrieveaccountingtaxrateop.py | 27 +- .../retrieveaccountingtrackingcategoryop.py | 27 +- .../models/retrieveaccountingtransactionop.py | 27 +- .../retrieveaccountingvendorcreditop.py | 27 +- .../models/retrieveatsactivityop.py | 27 +- .../models/retrieveatsapplicationop.py | 27 +- .../models/retrieveatsattachmentop.py | 27 +- .../models/retrieveatscandidateop.py | 27 +- .../models/retrieveatsdepartmentop.py | 27 +- src/panora_sdk/models/retrieveatseeocsop.py | 27 +- .../models/retrieveatsinterviewop.py | 27 +- .../models/retrieveatsjobinterviewstageop.py | 27 +- src/panora_sdk/models/retrieveatsjobop.py | 27 +- src/panora_sdk/models/retrieveatsofferop.py | 27 +- src/panora_sdk/models/retrieveatsofficeop.py | 27 +- .../models/retrieveatsrejectreasonop.py | 27 +- .../models/retrieveatsscorecardop.py | 27 +- src/panora_sdk/models/retrieveatstagop.py | 27 +- src/panora_sdk/models/retrieveatsuserop.py | 27 +- src/panora_sdk/models/retrievecollectionop.py | 27 +- src/panora_sdk/models/retrievecrmcompanyop.py | 27 +- src/panora_sdk/models/retrievecrmcontactop.py | 27 +- src/panora_sdk/models/retrievecrmdealop.py | 27 +- .../models/retrievecrmengagementop.py | 27 +- src/panora_sdk/models/retrievecrmnoteop.py | 27 +- src/panora_sdk/models/retrievecrmstageop.py | 27 +- src/panora_sdk/models/retrievecrmtaskop.py | 27 +- src/panora_sdk/models/retrievecrmuserop.py | 27 +- .../models/retrieveecommercecustomerop.py | 27 +- .../models/retrieveecommercefulfillmentop.py | 27 +- .../models/retrieveecommerceorderop.py | 27 +- .../models/retrieveecommerceproductop.py | 27 +- .../models/retrievefilestoragefileop.py | 27 +- .../models/retrievefilestoragefolderop.py | 27 +- .../models/retrievefilestoragegroupop.py | 27 +- .../models/retrievefilestorageuserop.py | 27 +- .../models/retrievehrisbankinfoop.py | 27 +- .../models/retrievehrisbenefitop.py | 27 +- .../models/retrievehriscompanyop.py | 27 +- .../models/retrievehrisdependentop.py | 27 +- .../models/retrievehrisemployeeop.py | 27 +- .../retrievehrisemployeepayrollrunop.py | 27 +- .../models/retrievehrisemployerbenefitop.py | 27 +- .../models/retrievehrisemploymentop.py | 27 +- src/panora_sdk/models/retrievehrisgroupop.py | 27 +- .../models/retrievehrislocationop.py | 27 +- .../models/retrievehrispaygroupop.py | 27 +- .../models/retrievehrispayrollrunop.py | 27 +- .../models/retrievehristimeoffbalanceop.py | 27 +- .../models/retrievehristimeoffop.py | 27 +- .../models/retrievehristimesheetentryop.py | 27 +- src/panora_sdk/models/retrievelinkeduserop.py | 7 +- .../retrievemarketingautomationactionop.py | 27 +- ...retrievemarketingautomationautomationop.py | 27 +- .../retrievemarketingautomationcampaignop.py | 27 +- .../retrievemarketingautomationcontactop.py | 27 +- .../retrievemarketingautomationemailop.py | 27 +- .../retrievemarketingautomationeventop.py | 27 +- .../retrievemarketingautomationlistop.py | 27 +- .../retrievemarketingautomationmessageop.py | 27 +- .../retrievemarketingautomationtemplateop.py | 27 +- .../retrievemarketingautomationuserop.py | 27 +- .../models/retrieveticketingaccountop.py | 27 +- .../models/retrieveticketingattachmentop.py | 27 +- .../models/retrieveticketingcommentop.py | 57 +- .../models/retrieveticketingcontactop.py | 57 +- .../models/retrieveticketingtagop.py | 27 +- .../models/retrieveticketingteamop.py | 27 +- .../models/retrieveticketingticketop.py | 27 +- .../models/retrieveticketinguserop.py | 27 +- src/panora_sdk/models/security.py | 15 +- .../models/signatureverificationdto.py | 24 +- src/panora_sdk/models/statusop.py | 9 +- src/panora_sdk/models/taxitem.py | 32 +- .../models/unifiedaccountingaccountinput.py | 78 +- .../models/unifiedaccountingaccountoutput.py | 107 +- .../models/unifiedaccountingaddressoutput.py | 107 +- .../unifiedaccountingattachmentinput.py | 47 +- .../unifiedaccountingattachmentoutput.py | 86 +- .../unifiedaccountingbalancesheetoutput.py | 113 +- ...nifiedaccountingcashflowstatementoutput.py | 107 +- .../unifiedaccountingcompanyinfooutput.py | 104 +- .../models/unifiedaccountingcontactinput.py | 75 +- .../models/unifiedaccountingcontactoutput.py | 104 +- .../unifiedaccountingcreditnoteoutput.py | 122 +- .../models/unifiedaccountingexpenseinput.py | 83 +- .../models/unifiedaccountingexpenseoutput.py | 115 +- .../unifiedaccountingincomestatementoutput.py | 102 +- .../models/unifiedaccountinginvoiceinput.py | 101 +- .../models/unifiedaccountinginvoiceoutput.py | 133 +- .../models/unifiedaccountingitemoutput.py | 93 +- .../unifiedaccountingjournalentryinput.py | 86 +- .../unifiedaccountingjournalentryoutput.py | 116 +- .../models/unifiedaccountingpaymentinput.py | 83 +- .../models/unifiedaccountingpaymentoutput.py | 115 +- .../unifiedaccountingphonenumberoutput.py | 88 +- .../unifiedaccountingpurchaseorderinput.py | 96 +- .../unifiedaccountingpurchaseorderoutput.py | 131 +- .../models/unifiedaccountingtaxrateoutput.py | 89 +- ...unifiedaccountingtrackingcategoryoutput.py | 93 +- .../unifiedaccountingtransactionoutput.py | 112 +- .../unifiedaccountingvendorcreditoutput.py | 107 +- .../models/unifiedatsactivityinput.py | 56 +- .../models/unifiedatsactivityoutput.py | 71 +- .../models/unifiedatsapplicationinput.py | 64 +- .../models/unifiedatsapplicationoutput.py | 85 +- .../models/unifiedatsattachmentinput.py | 56 +- .../models/unifiedatsattachmentoutput.py | 71 +- .../models/unifiedatscandidateinput.py | 144 +- .../models/unifiedatscandidateoutput.py | 153 +- .../models/unifiedatsdepartmentoutput.py | 56 +- .../models/unifiedatseeocsoutput.py | 71 +- .../models/unifiedatsinterviewinput.py | 68 +- .../models/unifiedatsinterviewoutput.py | 83 +- .../unifiedatsjobinterviewstageoutput.py | 62 +- src/panora_sdk/models/unifiedatsjoboutput.py | 89 +- .../models/unifiedatsofferoutput.py | 86 +- .../models/unifiedatsofficeoutput.py | 58 +- .../models/unifiedatsrejectreasonoutput.py | 56 +- .../models/unifiedatsscorecardoutput.py | 67 +- src/panora_sdk/models/unifiedatstagoutput.py | 59 +- src/panora_sdk/models/unifiedatsuseroutput.py | 74 +- .../models/unifiedcrmcompanyinput.py | 58 +- .../models/unifiedcrmcompanyoutput.py | 85 +- .../models/unifiedcrmcontactinput.py | 54 +- .../models/unifiedcrmcontactoutput.py | 69 +- src/panora_sdk/models/unifiedcrmdealinput.py | 46 +- src/panora_sdk/models/unifiedcrmdealoutput.py | 68 +- .../models/unifiedcrmengagementinput.py | 64 +- .../models/unifiedcrmengagementoutput.py | 79 +- src/panora_sdk/models/unifiedcrmnoteinput.py | 52 +- src/panora_sdk/models/unifiedcrmnoteoutput.py | 67 +- .../models/unifiedcrmstageoutput.py | 67 +- src/panora_sdk/models/unifiedcrmtaskinput.py | 59 +- src/panora_sdk/models/unifiedcrmtaskoutput.py | 74 +- src/panora_sdk/models/unifiedcrmuseroutput.py | 57 +- .../models/unifiedecommercecustomeroutput.py | 92 +- .../unifiedecommercefulfillmentoutput.py | 98 +- .../models/unifiedecommerceorderinput.py | 81 +- .../models/unifiedecommerceorderoutput.py | 102 +- .../models/unifiedecommerceproductinput.py | 71 +- .../models/unifiedecommerceproductoutput.py | 92 +- .../models/unifiedfilestoragefileinput.py | 48 +- .../models/unifiedfilestoragefileoutput.py | 67 +- .../models/unifiedfilestoragefolderinput.py | 49 +- .../models/unifiedfilestoragefolderoutput.py | 68 +- .../models/unifiedfilestoragegroupoutput.py | 75 +- .../models/unifiedfilestorageuseroutput.py | 59 +- .../models/unifiedhrisbankinfooutput.py | 82 +- .../models/unifiedhrisbenefitoutput.py | 96 +- .../models/unifiedhriscompanyoutput.py | 87 +- .../models/unifiedhrisdependentoutput.py | 108 +- .../models/unifiedhrisemployeeinput.py | 117 +- .../models/unifiedhrisemployeeoutput.py | 144 +- .../unifiedhrisemployeepayrollrunoutput.py | 113 +- .../unifiedhrisemployerbenefitoutput.py | 95 +- .../models/unifiedhrisemploymentoutput.py | 105 +- .../models/unifiedhrisgroupoutput.py | 80 +- .../models/unifiedhrislocationoutput.py | 108 +- .../models/unifiedhrispaygroupoutput.py | 78 +- .../models/unifiedhrispayrollrunoutput.py | 93 +- .../models/unifiedhristimeoffbalanceoutput.py | 95 +- .../models/unifiedhristimeoffinput.py | 71 +- .../models/unifiedhristimeoffoutput.py | 102 +- .../models/unifiedhristimesheetentryinput.py | 66 +- .../models/unifiedhristimesheetentryoutput.py | 92 +- .../unifiedmarketingautomationactioninput.py | 3 +- .../unifiedmarketingautomationactionoutput.py | 3 +- ...ifiedmarketingautomationautomationinput.py | 3 +- ...fiedmarketingautomationautomationoutput.py | 3 +- ...unifiedmarketingautomationcampaigninput.py | 3 +- ...nifiedmarketingautomationcampaignoutput.py | 3 +- .../unifiedmarketingautomationcontactinput.py | 3 +- ...unifiedmarketingautomationcontactoutput.py | 3 +- .../unifiedmarketingautomationemailoutput.py | 3 +- .../unifiedmarketingautomationeventoutput.py | 3 +- .../unifiedmarketingautomationlistinput.py | 3 +- .../unifiedmarketingautomationlistoutput.py | 3 +- ...unifiedmarketingautomationmessageoutput.py | 3 +- ...unifiedmarketingautomationtemplateinput.py | 3 +- ...nifiedmarketingautomationtemplateoutput.py | 3 +- .../unifiedmarketingautomationuseroutput.py | 3 +- .../models/unifiedticketingaccountoutput.py | 58 +- .../models/unifiedticketingattachmentinput.py | 44 +- .../unifiedticketingattachmentoutput.py | 65 +- .../unifiedticketingcollectionoutput.py | 58 +- .../models/unifiedticketingcommentinput.py | 81 +- .../models/unifiedticketingcommentoutput.py | 100 +- .../models/unifiedticketingcontactoutput.py | 62 +- .../models/unifiedticketingtagoutput.py | 55 +- .../models/unifiedticketingteamoutput.py | 58 +- .../models/unifiedticketingticketinput.py | 230 +- .../models/unifiedticketingticketoutput.py | 225 +- .../models/unifiedticketinguseroutput.py | 63 +- .../models/updatepullfrequencydto.py | 9 +- .../models/updatepullfrequencyop.py | 3 +- src/panora_sdk/models/updatestatusop.py | 7 +- src/panora_sdk/models/url.py | 23 +- src/panora_sdk/models/variant.py | 3 +- src/panora_sdk/models/webhookdto.py | 32 +- src/panora_sdk/models/webhookresponse.py | 41 +- src/panora_sdk/notes.py | 386 +- src/panora_sdk/offers.py | 240 +- src/panora_sdk/offices.py | 240 +- src/panora_sdk/orders.py | 388 +- src/panora_sdk/panora_accounting_contacts.py | 388 +- src/panora_sdk/panora_accounts.py | 388 +- src/panora_sdk/panora_ats_users.py | 240 +- src/panora_sdk/panora_attachments.py | 392 +- src/panora_sdk/panora_companies.py | 240 +- src/panora_sdk/panora_contacts.py | 386 +- src/panora_sdk/panora_events.py | 242 +- src/panora_sdk/panora_filestorage_users.py | 240 +- src/panora_sdk/panora_groups.py | 240 +- .../panora_marketingautomation_contacts.py | 392 +- .../panora_marketingautomation_users.py | 242 +- src/panora_sdk/panora_tags.py | 240 +- .../panora_ticketing_attachments.py | 390 +- src/panora_sdk/panora_users.py | 240 +- src/panora_sdk/passthrough.py | 168 +- src/panora_sdk/paygroups.py | 240 +- src/panora_sdk/payments.py | 388 +- src/panora_sdk/payrollruns.py | 240 +- src/panora_sdk/phonenumbers.py | 242 +- src/panora_sdk/products.py | 388 +- src/panora_sdk/projects.py | 218 +- src/panora_sdk/purchaseorders.py | 392 +- src/panora_sdk/query.py | 160 +- src/panora_sdk/rag.py | 5 +- src/panora_sdk/rejectreasons.py | 240 +- src/panora_sdk/retryid_.py | 108 +- src/panora_sdk/scorecards.py | 240 +- src/panora_sdk/sdk.py | 240 +- src/panora_sdk/sdkconfiguration.py | 11 +- src/panora_sdk/stages.py | 240 +- src/panora_sdk/sync.py | 434 +- src/panora_sdk/tags.py | 240 +- src/panora_sdk/tasks.py | 386 +- src/panora_sdk/taxrates.py | 240 +- src/panora_sdk/teams.py | 240 +- src/panora_sdk/templates.py | 392 +- src/panora_sdk/ticketing.py | 5 +- src/panora_sdk/tickets.py | 388 +- src/panora_sdk/timeoffbalances.py | 240 +- src/panora_sdk/timeoffs.py | 386 +- src/panora_sdk/timesheetentries.py | 390 +- src/panora_sdk/trackingcategories.py | 242 +- src/panora_sdk/transactions.py | 242 +- src/panora_sdk/types/basemodel.py | 16 +- src/panora_sdk/users.py | 240 +- src/panora_sdk/utils/__init__.py | 11 +- src/panora_sdk/utils/eventstreaming.py | 17 +- src/panora_sdk/utils/forms.py | 19 +- src/panora_sdk/utils/headers.py | 16 +- src/panora_sdk/utils/logger.py | 6 - src/panora_sdk/utils/queryparams.py | 30 +- src/panora_sdk/utils/retries.py | 7 +- src/panora_sdk/utils/security.py | 18 +- src/panora_sdk/utils/serializers.py | 25 +- src/panora_sdk/utils/url.py | 21 +- src/panora_sdk/utils/values.py | 6 - src/panora_sdk/vendorcredits.py | 242 +- src/panora_sdk/webhooks.py | 540 +- 613 files changed, 26591 insertions(+), 38885 deletions(-) create mode 100644 docs/models/querybody.md create mode 100644 docs/models/queryrequest.md rename docs/models/{ragcontrollerqueryembeddingsresponsebody.md => queryresponsebody.md} (74%) delete mode 100644 scripts/prepare-readme.py create mode 100644 src/panora_sdk/models/querybody.py create mode 100644 src/panora_sdk/models/queryop.py delete mode 100644 src/panora_sdk/models/ragcontroller_queryembeddingsop.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 97f4e3e..06d25eb 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,25 +1,24 @@ lockVersion: 2.0.0 id: 115d0df7-1198-46c9-9d03-a640abffed12 management: - docChecksum: 4451647c3fecd12e75576c88d6e46844 + docChecksum: ef657b2aadcc7b6b8d116b9b11322b80 docVersion: "1.0" - speakeasyVersion: 1.396.9 - generationVersion: 2.415.7 - releaseVersion: 0.6.1 - configChecksum: f58b9d9faab8b135ba942cd76f46ba07 + speakeasyVersion: 1.352.2 + generationVersion: 2.385.2 + releaseVersion: 0.7.0 + configChecksum: 969fc29be808af5933aacc160337d561 repoURL: https://github.com/panoratech/python-sdk.git installationURL: https://github.com/panoratech/python-sdk.git published: true features: python: additionalDependencies: 1.0.0 - constsAndDefaults: 1.0.2 - core: 5.5.3 + constsAndDefaults: 1.0.1 + core: 5.3.3 defaultEnabledRetries: 0.2.0 - enumUnions: 0.1.0 envVarSecurityUsage: 0.3.1 flattening: 3.0.0 - globalSecurity: 3.0.2 + globalSecurity: 3.0.1 globalSecurityCallbacks: 1.0.0 globalSecurityFlattening: 1.0.0 globalServerURLs: 3.0.0 @@ -28,3849 +27,6421 @@ features: nullables: 1.0.0 pagination: 3.0.1 responseFormat: 1.0.0 - retries: 3.0.2 + retries: 3.0.0 sdkHooks: 1.0.0 - unions: 3.0.2 + unions: 3.0.1 generatedFiles: - - .gitattributes + - src/panora_sdk/sdkconfiguration.py + - src/panora_sdk/query.py + - src/panora_sdk/rag.py + - src/panora_sdk/files.py + - src/panora_sdk/folders.py + - src/panora_sdk/panora_groups.py + - src/panora_sdk/panora_filestorage_users.py + - src/panora_sdk/filestorage.py + - src/panora_sdk/login.py + - src/panora_sdk/auth.py + - src/panora_sdk/connections.py + - src/panora_sdk/webhooks.py + - src/panora_sdk/tickets.py + - src/panora_sdk/users.py + - src/panora_sdk/accounts.py + - src/panora_sdk/contacts.py + - src/panora_sdk/collections.py + - src/panora_sdk/comments.py + - src/panora_sdk/tags.py + - src/panora_sdk/teams.py + - src/panora_sdk/panora_ticketing_attachments.py + - src/panora_sdk/ticketing.py + - src/panora_sdk/sync.py + - src/panora_sdk/companies.py + - src/panora_sdk/panora_contacts.py + - src/panora_sdk/deals.py + - src/panora_sdk/engagements.py + - src/panora_sdk/notes.py + - src/panora_sdk/stages.py + - src/panora_sdk/tasks.py + - src/panora_sdk/panora_users.py + - src/panora_sdk/crm.py + - src/panora_sdk/linkedusers.py + - src/panora_sdk/projects.py + - src/panora_sdk/fieldmappings.py + - src/panora_sdk/events.py + - src/panora_sdk/retryid_.py + - src/panora_sdk/passthrough.py + - src/panora_sdk/bankinfos.py + - src/panora_sdk/benefits.py + - src/panora_sdk/panora_companies.py + - src/panora_sdk/dependents.py + - src/panora_sdk/employeepayrollruns.py + - src/panora_sdk/employees.py + - src/panora_sdk/employerbenefits.py + - src/panora_sdk/employments.py + - src/panora_sdk/groups.py + - src/panora_sdk/locations.py + - src/panora_sdk/paygroups.py + - src/panora_sdk/payrollruns.py + - src/panora_sdk/timeoffs.py + - src/panora_sdk/timeoffbalances.py + - src/panora_sdk/timesheetentries.py + - src/panora_sdk/hris.py + - src/panora_sdk/actions.py + - src/panora_sdk/automations.py + - src/panora_sdk/campaigns.py + - src/panora_sdk/panora_marketingautomation_contacts.py + - src/panora_sdk/emails.py + - src/panora_sdk/panora_events.py + - src/panora_sdk/lists.py + - src/panora_sdk/messages.py + - src/panora_sdk/templates.py + - src/panora_sdk/panora_marketingautomation_users.py + - src/panora_sdk/marketingautomation.py + - src/panora_sdk/activities.py + - src/panora_sdk/applications.py + - src/panora_sdk/attachments.py + - src/panora_sdk/candidates.py + - src/panora_sdk/departments.py + - src/panora_sdk/interviews.py + - src/panora_sdk/jobinterviewstages.py + - src/panora_sdk/jobs.py + - src/panora_sdk/offers.py + - src/panora_sdk/offices.py + - src/panora_sdk/rejectreasons.py + - src/panora_sdk/scorecards.py + - src/panora_sdk/panora_tags.py + - src/panora_sdk/panora_ats_users.py + - src/panora_sdk/eeocs.py + - src/panora_sdk/ats.py + - src/panora_sdk/panora_accounts.py + - src/panora_sdk/addresses.py + - src/panora_sdk/panora_attachments.py + - src/panora_sdk/balancesheets.py + - src/panora_sdk/cashflowstatements.py + - src/panora_sdk/companyinfos.py + - src/panora_sdk/panora_accounting_contacts.py + - src/panora_sdk/creditnotes.py + - src/panora_sdk/expenses.py + - src/panora_sdk/incomestatements.py + - src/panora_sdk/invoices.py + - src/panora_sdk/items.py + - src/panora_sdk/journalentries.py + - src/panora_sdk/payments.py + - src/panora_sdk/phonenumbers.py + - src/panora_sdk/purchaseorders.py + - src/panora_sdk/taxrates.py + - src/panora_sdk/trackingcategories.py + - src/panora_sdk/transactions.py + - src/panora_sdk/vendorcredits.py + - src/panora_sdk/accounting.py + - src/panora_sdk/products.py + - src/panora_sdk/orders.py + - src/panora_sdk/customers.py + - src/panora_sdk/fulfillments.py + - src/panora_sdk/ecommerce.py + - src/panora_sdk/sdk.py - .vscode/settings.json - - USAGE.md - - docs/models/address.md - - docs/models/applicationsmodel.md - - docs/models/attachmentsmodel.md - - docs/models/collectionsmodel.md - - docs/models/comment.md - - docs/models/connection.md - - docs/models/createaccountingaccountrequest.md - - docs/models/createaccountingattachmentrequest.md - - docs/models/createaccountingcontactrequest.md - - docs/models/createaccountingexpenserequest.md - - docs/models/createaccountinginvoicerequest.md - - docs/models/createaccountingjournalentryrequest.md - - docs/models/createaccountingpaymentrequest.md - - docs/models/createaccountingpurchaseorderrequest.md - - docs/models/createatsactivityrequest.md - - docs/models/createatsapplicationrequest.md - - docs/models/createatsattachmentrequest.md - - docs/models/createatscandidaterequest.md - - docs/models/createatsinterviewrequest.md - - docs/models/createbatchlinkeduserdto.md - - docs/models/createcrmcompanyrequest.md - - docs/models/createcrmcontactrequest.md - - docs/models/createcrmdealrequest.md - - docs/models/createcrmengagementrequest.md - - docs/models/createcrmnoterequest.md - - docs/models/createcrmtaskrequest.md - - docs/models/createdat.md - - docs/models/createecommerceorderrequest.md - - docs/models/createecommerceproductrequest.md - - docs/models/createfilestoragefilerequest.md - - docs/models/createfilestoragefolderrequest.md - - docs/models/createhrisemployeerequest.md - - docs/models/createhristimeoffrequest.md - - docs/models/createhristimesheetentryrequest.md - - docs/models/createlinkeduserdto.md - - docs/models/createmarketingautomationactionrequest.md - - docs/models/createmarketingautomationautomationrequest.md - - docs/models/createmarketingautomationcampaignrequest.md - - docs/models/createmarketingautomationcontactrequest.md - - docs/models/createmarketingautomationlistrequest.md - - docs/models/createmarketingautomationtemplaterequest.md - - docs/models/createprojectdto.md - - docs/models/createticketingattachmentrequest.md - - docs/models/createticketingcommentrequest.md - - docs/models/createticketingticketrequest.md - - docs/models/customfieldcreatedto.md - - docs/models/customfieldcreatedtodatatype.md - - docs/models/customfieldcreatedtoobjecttypeowner.md - - docs/models/customfieldresponse.md - - docs/models/customfieldresponsedatatype.md - - docs/models/data.md - - docs/models/datatype.md - - docs/models/deductionitem.md - - docs/models/definetargetfielddto.md - - docs/models/deleterequest.md - - docs/models/earningitem.md - - docs/models/email.md - - docs/models/eventresponse.md - - docs/models/eventresponsestatus.md - - docs/models/fieldmappingsmodel.md - - docs/models/getpanoracoreeventsrequest.md - - docs/models/getretriedrequestresponserequest.md - - docs/models/headers.md - - docs/models/itemsmodel.md - - docs/models/lineitem.md - - docs/models/linkeduserresponse.md - - docs/models/listaccountingaccountsrequest.md - - docs/models/listaccountingaccountsresponse.md - - docs/models/listaccountingaccountsresponsebody.md - - docs/models/listaccountingaddressrequest.md - - docs/models/listaccountingaddressresponse.md - - docs/models/listaccountingaddressresponsebody.md - - docs/models/listaccountingattachmentsrequest.md - - docs/models/listaccountingattachmentsresponse.md - - docs/models/listaccountingattachmentsresponsebody.md - - docs/models/listaccountingbalancesheetsrequest.md - - docs/models/listaccountingbalancesheetsresponse.md - - docs/models/listaccountingbalancesheetsresponsebody.md - - docs/models/listaccountingcashflowstatementrequest.md - - docs/models/listaccountingcashflowstatementresponse.md - - docs/models/listaccountingcashflowstatementresponsebody.md - - docs/models/listaccountingcompanyinfosrequest.md - - docs/models/listaccountingcompanyinfosresponse.md - - docs/models/listaccountingcompanyinfosresponsebody.md - - docs/models/listaccountingcontactsrequest.md - - docs/models/listaccountingcontactsresponse.md - - docs/models/listaccountingcontactsresponsebody.md - - docs/models/listaccountingcreditnoterequest.md - - docs/models/listaccountingcreditnoteresponse.md - - docs/models/listaccountingcreditnoteresponsebody.md - - docs/models/listaccountingexpenserequest.md - - docs/models/listaccountingexpenseresponse.md - - docs/models/listaccountingexpenseresponsebody.md - - docs/models/listaccountingincomestatementrequest.md - - docs/models/listaccountingincomestatementresponse.md - - docs/models/listaccountingincomestatementresponsebody.md - - docs/models/listaccountinginvoicerequest.md - - docs/models/listaccountinginvoiceresponse.md - - docs/models/listaccountinginvoiceresponsebody.md - - docs/models/listaccountingitemrequest.md - - docs/models/listaccountingitemresponse.md - - docs/models/listaccountingitemresponsebody.md - - docs/models/listaccountingjournalentryrequest.md - - docs/models/listaccountingjournalentryresponse.md - - docs/models/listaccountingjournalentryresponsebody.md - - docs/models/listaccountingpaymentrequest.md - - docs/models/listaccountingpaymentresponse.md - - docs/models/listaccountingpaymentresponsebody.md - - docs/models/listaccountingphonenumberrequest.md - - docs/models/listaccountingphonenumberresponse.md - - docs/models/listaccountingphonenumberresponsebody.md - - docs/models/listaccountingpurchaseorderrequest.md - - docs/models/listaccountingpurchaseorderresponse.md - - docs/models/listaccountingpurchaseorderresponsebody.md - - docs/models/listaccountingtaxraterequest.md - - docs/models/listaccountingtaxrateresponse.md - - docs/models/listaccountingtaxrateresponsebody.md - - docs/models/listaccountingtrackingcategorysrequest.md - - docs/models/listaccountingtrackingcategorysresponse.md - - docs/models/listaccountingtrackingcategorysresponsebody.md - - docs/models/listaccountingtransactionrequest.md - - docs/models/listaccountingtransactionresponse.md - - docs/models/listaccountingtransactionresponsebody.md - - docs/models/listaccountingvendorcreditrequest.md - - docs/models/listaccountingvendorcreditresponse.md - - docs/models/listaccountingvendorcreditresponsebody.md - - docs/models/listatsactivityrequest.md - - docs/models/listatsactivityresponse.md - - docs/models/listatsactivityresponsebody.md - - docs/models/listatsapplicationrequest.md - - docs/models/listatsapplicationresponse.md - - docs/models/listatsapplicationresponsebody.md - - docs/models/listatsattachmentrequest.md - - docs/models/listatsattachmentresponse.md - - docs/models/listatsattachmentresponsebody.md - - docs/models/listatscandidaterequest.md - - docs/models/listatscandidateresponse.md - - docs/models/listatscandidateresponsebody.md - - docs/models/listatsdepartmentsrequest.md - - docs/models/listatsdepartmentsresponse.md - - docs/models/listatsdepartmentsresponsebody.md - - docs/models/listatseeocsrequest.md - - docs/models/listatseeocsresponse.md - - docs/models/listatseeocsresponsebody.md - - docs/models/listatsinterviewrequest.md - - docs/models/listatsinterviewresponse.md - - docs/models/listatsinterviewresponsebody.md - - docs/models/listatsjobinterviewstagerequest.md - - docs/models/listatsjobinterviewstageresponse.md - - docs/models/listatsjobinterviewstageresponsebody.md - - docs/models/listatsjobrequest.md - - docs/models/listatsjobresponse.md - - docs/models/listatsjobresponsebody.md - - docs/models/listatsofferrequest.md - - docs/models/listatsofferresponse.md - - docs/models/listatsofferresponsebody.md - - docs/models/listatsofficerequest.md - - docs/models/listatsofficeresponse.md - - docs/models/listatsofficeresponsebody.md - - docs/models/listatsrejectreasonsrequest.md - - docs/models/listatsrejectreasonsresponse.md - - docs/models/listatsrejectreasonsresponsebody.md - - docs/models/listatsscorecardrequest.md - - docs/models/listatsscorecardresponse.md - - docs/models/listatsscorecardresponsebody.md - - docs/models/listatstagsrequest.md - - docs/models/listatstagsresponse.md - - docs/models/listatstagsresponsebody.md - - docs/models/listatsusersrequest.md - - docs/models/listatsusersresponse.md - - docs/models/listatsusersresponsebody.md - - docs/models/listcrmcompanyrequest.md - - docs/models/listcrmcompanyresponse.md - - docs/models/listcrmcompanyresponsebody.md - - docs/models/listcrmcontactsrequest.md - - docs/models/listcrmcontactsresponse.md - - docs/models/listcrmcontactsresponsebody.md - - docs/models/listcrmdealsrequest.md - - docs/models/listcrmdealsresponse.md - - docs/models/listcrmdealsresponsebody.md - - docs/models/listcrmengagementsrequest.md - - docs/models/listcrmengagementsresponse.md - - docs/models/listcrmengagementsresponsebody.md - - docs/models/listcrmnoterequest.md - - docs/models/listcrmnoteresponse.md - - docs/models/listcrmnoteresponsebody.md - - docs/models/listcrmstagesrequest.md - - docs/models/listcrmstagesresponse.md - - docs/models/listcrmstagesresponsebody.md - - docs/models/listcrmtaskrequest.md - - docs/models/listcrmtaskresponse.md - - docs/models/listcrmtaskresponsebody.md - - docs/models/listcrmusersrequest.md - - docs/models/listcrmusersresponse.md - - docs/models/listcrmusersresponsebody.md - - docs/models/listecommercecustomersrequest.md - - docs/models/listecommercecustomersresponse.md - - docs/models/listecommercecustomersresponsebody.md - - docs/models/listecommercefulfillmentsrequest.md - - docs/models/listecommercefulfillmentsresponse.md - - docs/models/listecommercefulfillmentsresponsebody.md - - docs/models/listecommerceordersrequest.md - - docs/models/listecommerceordersresponse.md - - docs/models/listecommerceordersresponsebody.md - - docs/models/listecommerceproductsrequest.md - - docs/models/listecommerceproductsresponse.md - - docs/models/listecommerceproductsresponsebody.md - - docs/models/listfilestoragefilerequest.md - - docs/models/listfilestoragefileresponse.md - - docs/models/listfilestoragefileresponsebody.md - - docs/models/listfilestoragefolderrequest.md - - docs/models/listfilestoragefolderresponse.md - - docs/models/listfilestoragefolderresponsebody.md - - docs/models/listfilestoragegrouprequest.md - - docs/models/listfilestoragegroupresponse.md - - docs/models/listfilestoragegroupresponsebody.md - - docs/models/listfilestorageusersrequest.md - - docs/models/listfilestorageusersresponse.md - - docs/models/listfilestorageusersresponsebody.md - - docs/models/listhrisbankinforequest.md - - docs/models/listhrisbankinforesponse.md - - docs/models/listhrisbankinforesponsebody.md - - docs/models/listhrisbenefitsrequest.md - - docs/models/listhrisbenefitsresponse.md - - docs/models/listhrisbenefitsresponsebody.md - - docs/models/listhriscompaniesrequest.md - - docs/models/listhriscompaniesresponse.md - - docs/models/listhriscompaniesresponsebody.md - - docs/models/listhrisdependentsrequest.md - - docs/models/listhrisdependentsresponse.md - - docs/models/listhrisdependentsresponsebody.md - - docs/models/listhrisemployeepayrollrunrequest.md - - docs/models/listhrisemployeepayrollrunresponse.md - - docs/models/listhrisemployeepayrollrunresponsebody.md - - docs/models/listhrisemployeesrequest.md - - docs/models/listhrisemployeesresponse.md - - docs/models/listhrisemployeesresponsebody.md - - docs/models/listhrisemployerbenefitsrequest.md - - docs/models/listhrisemployerbenefitsresponse.md - - docs/models/listhrisemployerbenefitsresponsebody.md - - docs/models/listhrisemploymentsrequest.md - - docs/models/listhrisemploymentsresponse.md - - docs/models/listhrisemploymentsresponsebody.md - - docs/models/listhrisgroupsrequest.md - - docs/models/listhrisgroupsresponse.md - - docs/models/listhrisgroupsresponsebody.md - - docs/models/listhrislocationsrequest.md - - docs/models/listhrislocationsresponse.md - - docs/models/listhrislocationsresponsebody.md - - docs/models/listhrispaygroupsrequest.md - - docs/models/listhrispaygroupsresponse.md - - docs/models/listhrispaygroupsresponsebody.md - - docs/models/listhrispayrollrunsrequest.md - - docs/models/listhrispayrollrunsresponse.md - - docs/models/listhrispayrollrunsresponsebody.md - - docs/models/listhristimeoffbalancesrequest.md - - docs/models/listhristimeoffbalancesresponse.md - - docs/models/listhristimeoffbalancesresponsebody.md - - docs/models/listhristimeoffsrequest.md - - docs/models/listhristimeoffsresponse.md - - docs/models/listhristimeoffsresponsebody.md - - docs/models/listhristimesheetentriesrequest.md - - docs/models/listhristimesheetentriesresponse.md - - docs/models/listhristimesheetentriesresponsebody.md - - docs/models/listmarketingautomationactionrequest.md - - docs/models/listmarketingautomationactionresponse.md - - docs/models/listmarketingautomationactionresponsebody.md - - docs/models/listmarketingautomationautomationsrequest.md - - docs/models/listmarketingautomationautomationsresponse.md - - docs/models/listmarketingautomationautomationsresponsebody.md - - docs/models/listmarketingautomationcampaignsrequest.md - - docs/models/listmarketingautomationcampaignsresponse.md - - docs/models/listmarketingautomationcampaignsresponsebody.md - - docs/models/listmarketingautomationcontactsrequest.md - - docs/models/listmarketingautomationcontactsresponse.md - - docs/models/listmarketingautomationcontactsresponsebody.md - - docs/models/listmarketingautomationemailsrequest.md - - docs/models/listmarketingautomationemailsresponse.md - - docs/models/listmarketingautomationemailsresponsebody.md - - docs/models/listmarketingautomationeventsrequest.md - - docs/models/listmarketingautomationeventsresponse.md - - docs/models/listmarketingautomationeventsresponsebody.md - - docs/models/listmarketingautomationlistsrequest.md - - docs/models/listmarketingautomationlistsresponse.md - - docs/models/listmarketingautomationlistsresponsebody.md - - docs/models/listmarketingautomationmessagesrequest.md - - docs/models/listmarketingautomationmessagesresponse.md - - docs/models/listmarketingautomationmessagesresponsebody.md - - docs/models/listmarketingautomationtemplatesrequest.md - - docs/models/listmarketingautomationtemplatesresponse.md - - docs/models/listmarketingautomationtemplatesresponsebody.md - - docs/models/listmarketingautomationusersrequest.md - - docs/models/listmarketingautomationusersresponse.md - - docs/models/listmarketingautomationusersresponsebody.md - - docs/models/listticketingaccountrequest.md - - docs/models/listticketingaccountresponse.md - - docs/models/listticketingaccountresponsebody.md - - docs/models/listticketingattachmentsrequest.md - - docs/models/listticketingattachmentsresponse.md - - docs/models/listticketingattachmentsresponsebody.md - - docs/models/listticketingcollectionsrequest.md - - docs/models/listticketingcollectionsresponse.md - - docs/models/listticketingcollectionsresponsebody.md - - docs/models/listticketingcommentsrequest.md - - docs/models/listticketingcommentsresponse.md - - docs/models/listticketingcommentsresponsebody.md - - docs/models/listticketingcontactsrequest.md - - docs/models/listticketingcontactsresponse.md - - docs/models/listticketingcontactsresponsebody.md - - docs/models/listticketingtagsrequest.md - - docs/models/listticketingtagsresponse.md - - docs/models/listticketingtagsresponsebody.md - - docs/models/listticketingteamsrequest.md - - docs/models/listticketingteamsresponse.md - - docs/models/listticketingteamsresponsebody.md - - docs/models/listticketingticketrequest.md - - docs/models/listticketingticketresponse.md - - docs/models/listticketingticketresponsebody.md - - docs/models/listticketingusersrequest.md - - docs/models/listticketingusersresponse.md - - docs/models/listticketingusersresponsebody.md - - docs/models/logindto.md - - docs/models/mapfieldtoproviderdto.md - - docs/models/method.md - - docs/models/modifiedat.md - - docs/models/objecttypeowner.md - - docs/models/ownertype.md - - docs/models/passthroughrequestdto.md - - docs/models/passthroughrequestdtomethod.md - - docs/models/pathparamvertical.md - - docs/models/phone.md - - docs/models/projectresponse.md - - docs/models/ragcontrollerqueryembeddingsresponsebody.md - - docs/models/remotedata.md - - docs/models/remoteidrequest.md - - docs/models/requestformat.md - - docs/models/requestpassthroughresponsebody.md - - docs/models/requestrequest.md - - docs/models/requestresponse.md - - docs/models/requestresponsebody.md - - docs/models/resyncstatusdto.md - - docs/models/retrieveaccountingaccountrequest.md - - docs/models/retrieveaccountingaddressrequest.md - - docs/models/retrieveaccountingattachmentrequest.md - - docs/models/retrieveaccountingbalancesheetrequest.md - - docs/models/retrieveaccountingcashflowstatementrequest.md - - docs/models/retrieveaccountingcompanyinforequest.md - - docs/models/retrieveaccountingcontactrequest.md - - docs/models/retrieveaccountingcreditnoterequest.md - - docs/models/retrieveaccountingexpenserequest.md - - docs/models/retrieveaccountingincomestatementrequest.md - - docs/models/retrieveaccountinginvoicerequest.md - - docs/models/retrieveaccountingitemrequest.md - - docs/models/retrieveaccountingjournalentryrequest.md - - docs/models/retrieveaccountingpaymentrequest.md - - docs/models/retrieveaccountingphonenumberrequest.md - - docs/models/retrieveaccountingpurchaseorderrequest.md - - docs/models/retrieveaccountingtaxraterequest.md - - docs/models/retrieveaccountingtrackingcategoryrequest.md - - docs/models/retrieveaccountingtransactionrequest.md - - docs/models/retrieveaccountingvendorcreditrequest.md - - docs/models/retrieveatsactivityrequest.md - - docs/models/retrieveatsapplicationrequest.md - - docs/models/retrieveatsattachmentrequest.md - - docs/models/retrieveatscandidaterequest.md - - docs/models/retrieveatsdepartmentrequest.md - - docs/models/retrieveatseeocsrequest.md - - docs/models/retrieveatsinterviewrequest.md - - docs/models/retrieveatsjobinterviewstagerequest.md - - docs/models/retrieveatsjobrequest.md - - docs/models/retrieveatsofferrequest.md - - docs/models/retrieveatsofficerequest.md - - docs/models/retrieveatsrejectreasonrequest.md - - docs/models/retrieveatsscorecardrequest.md - - docs/models/retrieveatstagrequest.md - - docs/models/retrieveatsuserrequest.md - - docs/models/retrievecollectionrequest.md - - docs/models/retrievecrmcompanyrequest.md - - docs/models/retrievecrmcontactrequest.md - - docs/models/retrievecrmdealrequest.md - - docs/models/retrievecrmengagementrequest.md - - docs/models/retrievecrmnoterequest.md - - docs/models/retrievecrmstagerequest.md - - docs/models/retrievecrmtaskrequest.md - - docs/models/retrievecrmuserrequest.md - - docs/models/retrieveecommercecustomerrequest.md - - docs/models/retrieveecommercefulfillmentrequest.md - - docs/models/retrieveecommerceorderrequest.md - - docs/models/retrieveecommerceproductrequest.md - - docs/models/retrievefilestoragefilerequest.md - - docs/models/retrievefilestoragefolderrequest.md - - docs/models/retrievefilestoragegrouprequest.md - - docs/models/retrievefilestorageuserrequest.md - - docs/models/retrievehrisbankinforequest.md - - docs/models/retrievehrisbenefitrequest.md - - docs/models/retrievehriscompanyrequest.md - - docs/models/retrievehrisdependentrequest.md - - docs/models/retrievehrisemployeepayrollrunrequest.md - - docs/models/retrievehrisemployeerequest.md - - docs/models/retrievehrisemployerbenefitrequest.md - - docs/models/retrievehrisemploymentrequest.md - - docs/models/retrievehrisgrouprequest.md - - docs/models/retrievehrislocationrequest.md - - docs/models/retrievehrispaygrouprequest.md - - docs/models/retrievehrispayrollrunrequest.md - - docs/models/retrievehristimeoffbalancerequest.md - - docs/models/retrievehristimeoffrequest.md - - docs/models/retrievehristimesheetentryrequest.md - - docs/models/retrievelinkeduserrequest.md - - docs/models/retrievemarketingautomationactionrequest.md - - docs/models/retrievemarketingautomationautomationrequest.md - - docs/models/retrievemarketingautomationcampaignrequest.md - - docs/models/retrievemarketingautomationcontactrequest.md - - docs/models/retrievemarketingautomationemailrequest.md - - docs/models/retrievemarketingautomationeventrequest.md - - docs/models/retrievemarketingautomationlistrequest.md - - docs/models/retrievemarketingautomationmessagerequest.md - - docs/models/retrievemarketingautomationtemplaterequest.md - - docs/models/retrievemarketingautomationuserrequest.md - - docs/models/retrieveticketingaccountrequest.md - - docs/models/retrieveticketingattachmentrequest.md - - docs/models/retrieveticketingcommentrequest.md - - docs/models/retrieveticketingcommentresponsebody.md - - docs/models/retrieveticketingcontactrequest.md - - docs/models/retrieveticketingcontactresponsebody.md - - docs/models/retrieveticketingtagrequest.md - - docs/models/retrieveticketingteamrequest.md - - docs/models/retrieveticketingticketrequest.md - - docs/models/retrieveticketinguserrequest.md - - docs/models/security.md - - docs/models/signatureverificationdto.md - - docs/models/status.md - - docs/models/statusrequest.md - - docs/models/tagsmodel.md - - docs/models/taxitem.md - - docs/models/tokentype.md - - docs/models/type.md - - docs/models/unifiedaccountingaccountinput.md - - docs/models/unifiedaccountingaccountinputfieldmappings.md - - docs/models/unifiedaccountingaccountoutput.md - - docs/models/unifiedaccountingaccountoutputfieldmappings.md - - docs/models/unifiedaccountingaccountoutputremotedata.md - - docs/models/unifiedaccountingaddressoutput.md - - docs/models/unifiedaccountingaddressoutputfieldmappings.md - - docs/models/unifiedaccountingaddressoutputremotedata.md - - docs/models/unifiedaccountingattachmentinput.md - - docs/models/unifiedaccountingattachmentinputfieldmappings.md - - docs/models/unifiedaccountingattachmentoutput.md - - docs/models/unifiedaccountingattachmentoutputfieldmappings.md - - docs/models/unifiedaccountingattachmentoutputremotedata.md - - docs/models/unifiedaccountingbalancesheetoutput.md - - docs/models/unifiedaccountingbalancesheetoutputfieldmappings.md - - docs/models/unifiedaccountingbalancesheetoutputremotedata.md - - docs/models/unifiedaccountingcashflowstatementoutput.md - - docs/models/unifiedaccountingcashflowstatementoutputfieldmappings.md - - docs/models/unifiedaccountingcashflowstatementoutputremotedata.md - - docs/models/unifiedaccountingcompanyinfooutput.md - - docs/models/unifiedaccountingcompanyinfooutputfieldmappings.md - - docs/models/unifiedaccountingcompanyinfooutputremotedata.md - - docs/models/unifiedaccountingcontactinput.md - - docs/models/unifiedaccountingcontactinputfieldmappings.md - - docs/models/unifiedaccountingcontactoutput.md - - docs/models/unifiedaccountingcontactoutputfieldmappings.md - - docs/models/unifiedaccountingcontactoutputremotedata.md - - docs/models/unifiedaccountingcreditnoteoutput.md - - docs/models/unifiedaccountingcreditnoteoutputfieldmappings.md - - docs/models/unifiedaccountingcreditnoteoutputremotedata.md - - docs/models/unifiedaccountingexpenseinput.md - - docs/models/unifiedaccountingexpenseinputfieldmappings.md - - docs/models/unifiedaccountingexpenseoutput.md - - docs/models/unifiedaccountingexpenseoutputfieldmappings.md - - docs/models/unifiedaccountingexpenseoutputremotedata.md - - docs/models/unifiedaccountingincomestatementoutput.md - - docs/models/unifiedaccountingincomestatementoutputfieldmappings.md - - docs/models/unifiedaccountingincomestatementoutputremotedata.md - - docs/models/unifiedaccountinginvoiceinput.md - - docs/models/unifiedaccountinginvoiceinputfieldmappings.md - - docs/models/unifiedaccountinginvoiceoutput.md - - docs/models/unifiedaccountinginvoiceoutputfieldmappings.md - - docs/models/unifiedaccountinginvoiceoutputremotedata.md - - docs/models/unifiedaccountingitemoutput.md - - docs/models/unifiedaccountingitemoutputfieldmappings.md - - docs/models/unifiedaccountingitemoutputremotedata.md - - docs/models/unifiedaccountingjournalentryinput.md - - docs/models/unifiedaccountingjournalentryinputfieldmappings.md - - docs/models/unifiedaccountingjournalentryoutput.md - - docs/models/unifiedaccountingjournalentryoutputfieldmappings.md - - docs/models/unifiedaccountingjournalentryoutputremotedata.md - - docs/models/unifiedaccountingpaymentinput.md - - docs/models/unifiedaccountingpaymentinputfieldmappings.md - - docs/models/unifiedaccountingpaymentoutput.md - - docs/models/unifiedaccountingpaymentoutputfieldmappings.md - - docs/models/unifiedaccountingpaymentoutputremotedata.md - - docs/models/unifiedaccountingphonenumberoutput.md - - docs/models/unifiedaccountingphonenumberoutputfieldmappings.md - - docs/models/unifiedaccountingphonenumberoutputremotedata.md - - docs/models/unifiedaccountingpurchaseorderinput.md - - docs/models/unifiedaccountingpurchaseorderinputfieldmappings.md - - docs/models/unifiedaccountingpurchaseorderoutput.md - - docs/models/unifiedaccountingpurchaseorderoutputfieldmappings.md - - docs/models/unifiedaccountingpurchaseorderoutputremotedata.md - - docs/models/unifiedaccountingtaxrateoutput.md - - docs/models/unifiedaccountingtaxrateoutputfieldmappings.md - - docs/models/unifiedaccountingtaxrateoutputremotedata.md - - docs/models/unifiedaccountingtrackingcategoryoutput.md - - docs/models/unifiedaccountingtrackingcategoryoutputfieldmappings.md - - docs/models/unifiedaccountingtrackingcategoryoutputremotedata.md - - docs/models/unifiedaccountingtransactionoutput.md - - docs/models/unifiedaccountingtransactionoutputfieldmappings.md - - docs/models/unifiedaccountingtransactionoutputremotedata.md - - docs/models/unifiedaccountingvendorcreditoutput.md - - docs/models/unifiedaccountingvendorcreditoutputfieldmappings.md - - docs/models/unifiedaccountingvendorcreditoutputremotedata.md - - docs/models/unifiedatsactivityinput.md - - docs/models/unifiedatsactivityoutput.md - - docs/models/unifiedatsapplicationinput.md - - docs/models/unifiedatsapplicationoutput.md - - docs/models/unifiedatsattachmentinput.md - - docs/models/unifiedatsattachmentoutput.md - - docs/models/unifiedatscandidateinput.md - - docs/models/unifiedatscandidateinputapplications.md - - docs/models/unifiedatscandidateinputattachments.md - - docs/models/unifiedatscandidateinputtags.md - - docs/models/unifiedatscandidateoutput.md - - docs/models/unifiedatscandidateoutputattachments.md - - docs/models/unifiedatscandidateoutputtags.md - - docs/models/unifiedatsdepartmentoutput.md - - docs/models/unifiedatseeocsoutput.md - - docs/models/unifiedatsinterviewinput.md - - docs/models/unifiedatsinterviewoutput.md - - docs/models/unifiedatsjobinterviewstageoutput.md - - docs/models/unifiedatsjoboutput.md - - docs/models/unifiedatsofferoutput.md - - docs/models/unifiedatsofferoutputcreatedat.md - - docs/models/unifiedatsofferoutputmodifiedat.md - - docs/models/unifiedatsofficeoutput.md - - docs/models/unifiedatsrejectreasonoutput.md - - docs/models/unifiedatsscorecardoutput.md - - docs/models/unifiedatstagoutput.md - - docs/models/unifiedatsuseroutput.md - - docs/models/unifiedcrmcompanyinput.md - - docs/models/unifiedcrmcompanyoutput.md - - docs/models/unifiedcrmcontactinput.md - - docs/models/unifiedcrmcontactoutput.md - - docs/models/unifiedcrmdealinput.md - - docs/models/unifiedcrmdealoutput.md - - docs/models/unifiedcrmengagementinput.md - - docs/models/unifiedcrmengagementoutput.md - - docs/models/unifiedcrmnoteinput.md - - docs/models/unifiedcrmnoteoutput.md - - docs/models/unifiedcrmstageoutput.md - - docs/models/unifiedcrmstageoutputcreatedat.md - - docs/models/unifiedcrmstageoutputmodifiedat.md - - docs/models/unifiedcrmtaskinput.md - - docs/models/unifiedcrmtaskoutput.md - - docs/models/unifiedcrmuseroutput.md - - docs/models/unifiedecommercecustomeroutput.md - - docs/models/unifiedecommercecustomeroutputfieldmappings.md - - docs/models/unifiedecommercecustomeroutputremotedata.md - - docs/models/unifiedecommercefulfillmentoutput.md - - docs/models/unifiedecommercefulfillmentoutputfieldmappings.md - - docs/models/unifiedecommercefulfillmentoutputremotedata.md - - docs/models/unifiedecommerceorderinput.md - - docs/models/unifiedecommerceorderinputfieldmappings.md - - docs/models/unifiedecommerceorderoutput.md - - docs/models/unifiedecommerceorderoutputfieldmappings.md - - docs/models/unifiedecommerceorderoutputremotedata.md - - docs/models/unifiedecommerceproductinput.md - - docs/models/unifiedecommerceproductinputfieldmappings.md - - docs/models/unifiedecommerceproductoutput.md - - docs/models/unifiedecommerceproductoutputfieldmappings.md - - docs/models/unifiedecommerceproductoutputremotedata.md - - docs/models/unifiedfilestoragefileinput.md - - docs/models/unifiedfilestoragefileoutput.md - - docs/models/unifiedfilestoragefolderinput.md - - docs/models/unifiedfilestoragefolderoutput.md - - docs/models/unifiedfilestoragegroupoutput.md - - docs/models/unifiedfilestorageuseroutput.md - - docs/models/unifiedhrisbankinfooutput.md - - docs/models/unifiedhrisbenefitoutput.md - - docs/models/unifiedhrisbenefitoutputfieldmappings.md - - docs/models/unifiedhrisbenefitoutputremotedata.md - - docs/models/unifiedhriscompanyoutput.md - - docs/models/unifiedhriscompanyoutputfieldmappings.md - - docs/models/unifiedhriscompanyoutputremotedata.md - - docs/models/unifiedhrisdependentoutput.md - - docs/models/unifiedhrisdependentoutputfieldmappings.md - - docs/models/unifiedhrisdependentoutputremotedata.md - - docs/models/unifiedhrisemployeeinput.md - - docs/models/unifiedhrisemployeeinputfieldmappings.md - - docs/models/unifiedhrisemployeeoutput.md - - docs/models/unifiedhrisemployeeoutputfieldmappings.md - - docs/models/unifiedhrisemployeeoutputremotedata.md - - docs/models/unifiedhrisemployeepayrollrunoutput.md - - docs/models/unifiedhrisemployeepayrollrunoutputfieldmappings.md - - docs/models/unifiedhrisemployeepayrollrunoutputremotedata.md - - docs/models/unifiedhrisemployerbenefitoutput.md - - docs/models/unifiedhrisemployerbenefitoutputfieldmappings.md - - docs/models/unifiedhrisemployerbenefitoutputremotedata.md - - docs/models/unifiedhrisemploymentoutput.md - - docs/models/unifiedhrisemploymentoutputfieldmappings.md - - docs/models/unifiedhrisemploymentoutputremotedata.md - - docs/models/unifiedhrisgroupoutput.md - - docs/models/unifiedhrisgroupoutputfieldmappings.md - - docs/models/unifiedhrisgroupoutputremotedata.md - - docs/models/unifiedhrislocationoutput.md - - docs/models/unifiedhrislocationoutputfieldmappings.md - - docs/models/unifiedhrislocationoutputremotedata.md - - docs/models/unifiedhrispaygroupoutput.md - - docs/models/unifiedhrispaygroupoutputfieldmappings.md - - docs/models/unifiedhrispaygroupoutputremotedata.md - - docs/models/unifiedhrispayrollrunoutput.md - - docs/models/unifiedhrispayrollrunoutputfieldmappings.md - - docs/models/unifiedhrispayrollrunoutputremotedata.md - - docs/models/unifiedhristimeoffbalanceoutput.md - - docs/models/unifiedhristimeoffbalanceoutputfieldmappings.md - - docs/models/unifiedhristimeoffbalanceoutputremotedata.md - - docs/models/unifiedhristimeoffinput.md - - docs/models/unifiedhristimeoffinputfieldmappings.md - - docs/models/unifiedhristimeoffoutput.md - - docs/models/unifiedhristimeoffoutputfieldmappings.md - - docs/models/unifiedhristimeoffoutputremotedata.md - - docs/models/unifiedhristimesheetentryinput.md - - docs/models/unifiedhristimesheetentryinputfieldmappings.md - - docs/models/unifiedhristimesheetentryoutput.md - - docs/models/unifiedhristimesheetentryoutputfieldmappings.md - - docs/models/unifiedhristimesheetentryoutputremotedata.md - - docs/models/unifiedmarketingautomationactioninput.md - - docs/models/unifiedmarketingautomationactionoutput.md - - docs/models/unifiedmarketingautomationautomationinput.md - - docs/models/unifiedmarketingautomationautomationoutput.md - - docs/models/unifiedmarketingautomationcampaigninput.md - - docs/models/unifiedmarketingautomationcampaignoutput.md - - docs/models/unifiedmarketingautomationcontactinput.md - - docs/models/unifiedmarketingautomationcontactoutput.md - - docs/models/unifiedmarketingautomationemailoutput.md - - docs/models/unifiedmarketingautomationeventoutput.md - - docs/models/unifiedmarketingautomationlistinput.md - - docs/models/unifiedmarketingautomationlistoutput.md - - docs/models/unifiedmarketingautomationmessageoutput.md - - docs/models/unifiedmarketingautomationtemplateinput.md - - docs/models/unifiedmarketingautomationtemplateoutput.md - - docs/models/unifiedmarketingautomationuseroutput.md - - docs/models/unifiedticketingaccountoutput.md - - docs/models/unifiedticketingattachmentinput.md - - docs/models/unifiedticketingattachmentoutput.md - - docs/models/unifiedticketingcollectionoutput.md - - docs/models/unifiedticketingcommentinput.md - - docs/models/unifiedticketingcommentinputattachments.md - - docs/models/unifiedticketingcommentoutput.md - - docs/models/unifiedticketingcommentoutputattachments.md - - docs/models/unifiedticketingcontactoutput.md - - docs/models/unifiedticketingtagoutput.md - - docs/models/unifiedticketingteamoutput.md - - docs/models/unifiedticketingticketinput.md - - docs/models/unifiedticketingticketinputattachments.md - - docs/models/unifiedticketingticketinputcollections.md - - docs/models/unifiedticketingticketinputcomment.md - - docs/models/unifiedticketingticketinputcommentattachments.md - - docs/models/unifiedticketingticketinputtags.md - - docs/models/unifiedticketingticketoutput.md - - docs/models/unifiedticketingticketoutputattachments.md - - docs/models/unifiedticketinguseroutput.md - - docs/models/updatepullfrequencydto.md - - docs/models/updatepullfrequencyresponsebody.md - - docs/models/updatestatusrequest.md - - docs/models/url.md - - docs/models/usersmodel.md - - docs/models/utils/retryconfig.md - - docs/models/variant.md - - docs/models/vertical.md - - docs/models/webhookdto.md - - docs/models/webhookresponse.md - - docs/sdks/accounting/README.md - - docs/sdks/accounts/README.md - - docs/sdks/actions/README.md - - docs/sdks/activities/README.md - - docs/sdks/addresses/README.md - - docs/sdks/applications/README.md - - docs/sdks/ats/README.md - - docs/sdks/attachments/README.md - - docs/sdks/auth/README.md - - docs/sdks/automations/README.md - - docs/sdks/balancesheets/README.md - - docs/sdks/bankinfos/README.md - - docs/sdks/benefits/README.md - - docs/sdks/campaigns/README.md - - docs/sdks/candidates/README.md - - docs/sdks/cashflowstatements/README.md - - docs/sdks/collections/README.md - - docs/sdks/comments/README.md - - docs/sdks/companies/README.md - - docs/sdks/companyinfos/README.md - - docs/sdks/connections/README.md - - docs/sdks/contacts/README.md - - docs/sdks/creditnotes/README.md - - docs/sdks/crm/README.md - - docs/sdks/customers/README.md - - docs/sdks/deals/README.md - - docs/sdks/departments/README.md - - docs/sdks/dependents/README.md - - docs/sdks/ecommerce/README.md - - docs/sdks/eeocs/README.md - - docs/sdks/emails/README.md - - docs/sdks/employeepayrollruns/README.md - - docs/sdks/employees/README.md - - docs/sdks/employerbenefits/README.md - - docs/sdks/employments/README.md - - docs/sdks/engagements/README.md - - docs/sdks/events/README.md - - docs/sdks/expenses/README.md - - docs/sdks/fieldmappings/README.md - - docs/sdks/files/README.md - - docs/sdks/filestorage/README.md - - docs/sdks/folders/README.md - - docs/sdks/fulfillments/README.md - - docs/sdks/groups/README.md - - docs/sdks/hris/README.md - - docs/sdks/incomestatements/README.md - - docs/sdks/interviews/README.md - - docs/sdks/invoices/README.md - - docs/sdks/items/README.md - - docs/sdks/jobinterviewstages/README.md - - docs/sdks/jobs/README.md - - docs/sdks/journalentries/README.md - - docs/sdks/linkedusers/README.md - - docs/sdks/lists/README.md - - docs/sdks/locations/README.md - - docs/sdks/login/README.md - - docs/sdks/marketingautomation/README.md - - docs/sdks/messages/README.md - - docs/sdks/notes/README.md - - docs/sdks/offers/README.md - - docs/sdks/offices/README.md - - docs/sdks/orders/README.md - - docs/sdks/panora/README.md - - docs/sdks/panoraaccountingcontacts/README.md - - docs/sdks/panoraaccounts/README.md - - docs/sdks/panoraatsusers/README.md - - docs/sdks/panoraattachments/README.md - - docs/sdks/panoracompanies/README.md - - docs/sdks/panoracontacts/README.md - - docs/sdks/panoraevents/README.md - - docs/sdks/panorafilestorageusers/README.md - - docs/sdks/panoragroups/README.md - - docs/sdks/panoramarketingautomationcontacts/README.md - - docs/sdks/panoramarketingautomationusers/README.md - - docs/sdks/panoratags/README.md - - docs/sdks/panoraticketingattachments/README.md - - docs/sdks/panorausers/README.md - - docs/sdks/passthrough/README.md - - docs/sdks/paygroups/README.md - - docs/sdks/payments/README.md - - docs/sdks/payrollruns/README.md - - docs/sdks/phonenumbers/README.md - - docs/sdks/products/README.md - - docs/sdks/projects/README.md - - docs/sdks/purchaseorders/README.md - - docs/sdks/query/README.md - - docs/sdks/rag/README.md - - docs/sdks/rejectreasons/README.md - - docs/sdks/retryid/README.md - - docs/sdks/scorecards/README.md - - docs/sdks/stages/README.md - - docs/sdks/sync/README.md - - docs/sdks/tags/README.md - - docs/sdks/tasks/README.md - - docs/sdks/taxrates/README.md - - docs/sdks/teams/README.md - - docs/sdks/templates/README.md - - docs/sdks/ticketing/README.md - - docs/sdks/tickets/README.md - - docs/sdks/timeoffbalances/README.md - - docs/sdks/timeoffs/README.md - - docs/sdks/timesheetentries/README.md - - docs/sdks/trackingcategories/README.md - - docs/sdks/transactions/README.md - - docs/sdks/users/README.md - - docs/sdks/vendorcredits/README.md - - docs/sdks/webhooks/README.md - poetry.toml - py.typed - pylintrc - pyproject.toml - scripts/compile.sh - - scripts/prepare-readme.py - scripts/publish.sh - src/panora_sdk/__init__.py - - src/panora_sdk/_hooks/__init__.py - - src/panora_sdk/_hooks/sdkhooks.py - - src/panora_sdk/_hooks/types.py - - src/panora_sdk/accounting.py - - src/panora_sdk/accounts.py - - src/panora_sdk/actions.py - - src/panora_sdk/activities.py - - src/panora_sdk/addresses.py - - src/panora_sdk/applications.py - - src/panora_sdk/ats.py - - src/panora_sdk/attachments.py - - src/panora_sdk/auth.py - - src/panora_sdk/automations.py - - src/panora_sdk/balancesheets.py - - src/panora_sdk/bankinfos.py - src/panora_sdk/basesdk.py - - src/panora_sdk/benefits.py - - src/panora_sdk/campaigns.py - - src/panora_sdk/candidates.py - - src/panora_sdk/cashflowstatements.py - - src/panora_sdk/collections.py - - src/panora_sdk/comments.py - - src/panora_sdk/companies.py - - src/panora_sdk/companyinfos.py - - src/panora_sdk/connections.py - - src/panora_sdk/contacts.py - - src/panora_sdk/creditnotes.py - - src/panora_sdk/crm.py - - src/panora_sdk/customers.py - - src/panora_sdk/deals.py - - src/panora_sdk/departments.py - - src/panora_sdk/dependents.py - - src/panora_sdk/ecommerce.py - - src/panora_sdk/eeocs.py - - src/panora_sdk/emails.py - - src/panora_sdk/employeepayrollruns.py - - src/panora_sdk/employees.py - - src/panora_sdk/employerbenefits.py - - src/panora_sdk/employments.py - - src/panora_sdk/engagements.py - - src/panora_sdk/events.py - - src/panora_sdk/expenses.py - - src/panora_sdk/fieldmappings.py - - src/panora_sdk/files.py - - src/panora_sdk/filestorage.py - - src/panora_sdk/folders.py - - src/panora_sdk/fulfillments.py - - src/panora_sdk/groups.py - - src/panora_sdk/hris.py - src/panora_sdk/httpclient.py - - src/panora_sdk/incomestatements.py - - src/panora_sdk/interviews.py - - src/panora_sdk/invoices.py - - src/panora_sdk/items.py - - src/panora_sdk/jobinterviewstages.py - - src/panora_sdk/jobs.py - - src/panora_sdk/journalentries.py - - src/panora_sdk/linkedusers.py - - src/panora_sdk/lists.py - - src/panora_sdk/locations.py - - src/panora_sdk/login.py - - src/panora_sdk/marketingautomation.py - - src/panora_sdk/messages.py - - src/panora_sdk/models/__init__.py - - src/panora_sdk/models/address.py - - src/panora_sdk/models/connection.py - - src/panora_sdk/models/createaccountingaccountop.py - - src/panora_sdk/models/createaccountingattachmentop.py - - src/panora_sdk/models/createaccountingcontactop.py - - src/panora_sdk/models/createaccountingexpenseop.py - - src/panora_sdk/models/createaccountinginvoiceop.py - - src/panora_sdk/models/createaccountingjournalentryop.py - - src/panora_sdk/models/createaccountingpaymentop.py - - src/panora_sdk/models/createaccountingpurchaseorderop.py - - src/panora_sdk/models/createatsactivityop.py - - src/panora_sdk/models/createatsapplicationop.py - - src/panora_sdk/models/createatsattachmentop.py - - src/panora_sdk/models/createatscandidateop.py - - src/panora_sdk/models/createatsinterviewop.py - - src/panora_sdk/models/createbatchlinkeduserdto.py - - src/panora_sdk/models/createcrmcompanyop.py - - src/panora_sdk/models/createcrmcontactop.py - - src/panora_sdk/models/createcrmdealop.py - - src/panora_sdk/models/createcrmengagementop.py - - src/panora_sdk/models/createcrmnoteop.py - - src/panora_sdk/models/createcrmtaskop.py - - src/panora_sdk/models/createecommerceorderop.py - - src/panora_sdk/models/createecommerceproductop.py + - src/panora_sdk/py.typed + - src/panora_sdk/types/__init__.py + - src/panora_sdk/types/basemodel.py + - src/panora_sdk/utils/__init__.py + - src/panora_sdk/utils/annotations.py + - src/panora_sdk/utils/enums.py + - src/panora_sdk/utils/eventstreaming.py + - src/panora_sdk/utils/forms.py + - src/panora_sdk/utils/headers.py + - src/panora_sdk/utils/logger.py + - src/panora_sdk/utils/metadata.py + - src/panora_sdk/utils/queryparams.py + - src/panora_sdk/utils/requestbodies.py + - src/panora_sdk/utils/retries.py + - src/panora_sdk/utils/security.py + - src/panora_sdk/utils/serializers.py + - src/panora_sdk/utils/url.py + - src/panora_sdk/utils/values.py + - src/panora_sdk/models/sdkerror.py + - src/panora_sdk/models/queryop.py + - src/panora_sdk/models/querybody.py + - src/panora_sdk/models/listfilestoragefileop.py + - src/panora_sdk/models/unifiedfilestoragefileoutput.py - src/panora_sdk/models/createfilestoragefileop.py + - src/panora_sdk/models/unifiedfilestoragefileinput.py + - src/panora_sdk/models/retrievefilestoragefileop.py + - src/panora_sdk/models/listfilestoragefolderop.py + - src/panora_sdk/models/unifiedfilestoragefolderoutput.py - src/panora_sdk/models/createfilestoragefolderop.py - - src/panora_sdk/models/createhrisemployeeop.py - - src/panora_sdk/models/createhristimeoffop.py - - src/panora_sdk/models/createhristimesheetentryop.py - - src/panora_sdk/models/createlinkeduserdto.py - - src/panora_sdk/models/createmarketingautomationactionop.py - - src/panora_sdk/models/createmarketingautomationautomationop.py - - src/panora_sdk/models/createmarketingautomationcampaignop.py - - src/panora_sdk/models/createmarketingautomationcontactop.py - - src/panora_sdk/models/createmarketingautomationlistop.py - - src/panora_sdk/models/createmarketingautomationtemplateop.py - - src/panora_sdk/models/createprojectdto.py - - src/panora_sdk/models/createticketingattachmentop.py - - src/panora_sdk/models/createticketingcommentop.py - - src/panora_sdk/models/createticketingticketop.py - - src/panora_sdk/models/customfieldcreatedto.py - - src/panora_sdk/models/customfieldresponse.py - - src/panora_sdk/models/deductionitem.py - - src/panora_sdk/models/definetargetfielddto.py + - src/panora_sdk/models/unifiedfilestoragefolderinput.py + - src/panora_sdk/models/retrievefilestoragefolderop.py + - src/panora_sdk/models/listfilestoragegroupop.py + - src/panora_sdk/models/unifiedfilestoragegroupoutput.py + - src/panora_sdk/models/unifiedfilestorageuseroutput.py + - src/panora_sdk/models/retrievefilestoragegroupop.py + - src/panora_sdk/models/listfilestorageusersop.py + - src/panora_sdk/models/retrievefilestorageuserop.py + - src/panora_sdk/models/logindto.py + - src/panora_sdk/models/connection.py + - src/panora_sdk/models/webhookresponse.py + - src/panora_sdk/models/webhookdto.py - src/panora_sdk/models/deleteop.py - - src/panora_sdk/models/earningitem.py - - src/panora_sdk/models/email.py - - src/panora_sdk/models/eventresponse.py - - src/panora_sdk/models/getpanoracoreeventsop.py - - src/panora_sdk/models/getretriedrequestresponseop.py - - src/panora_sdk/models/lineitem.py - - src/panora_sdk/models/linkeduserresponse.py - - src/panora_sdk/models/listaccountingaccountsop.py - - src/panora_sdk/models/listaccountingaddressop.py - - src/panora_sdk/models/listaccountingattachmentsop.py - - src/panora_sdk/models/listaccountingbalancesheetsop.py - - src/panora_sdk/models/listaccountingcashflowstatementop.py - - src/panora_sdk/models/listaccountingcompanyinfosop.py - - src/panora_sdk/models/listaccountingcontactsop.py - - src/panora_sdk/models/listaccountingcreditnoteop.py - - src/panora_sdk/models/listaccountingexpenseop.py - - src/panora_sdk/models/listaccountingincomestatementop.py - - src/panora_sdk/models/listaccountinginvoiceop.py - - src/panora_sdk/models/listaccountingitemop.py - - src/panora_sdk/models/listaccountingjournalentryop.py - - src/panora_sdk/models/listaccountingpaymentop.py - - src/panora_sdk/models/listaccountingphonenumberop.py - - src/panora_sdk/models/listaccountingpurchaseorderop.py - - src/panora_sdk/models/listaccountingtaxrateop.py - - src/panora_sdk/models/listaccountingtrackingcategorysop.py - - src/panora_sdk/models/listaccountingtransactionop.py - - src/panora_sdk/models/listaccountingvendorcreditop.py - - src/panora_sdk/models/listatsactivityop.py - - src/panora_sdk/models/listatsapplicationop.py - - src/panora_sdk/models/listatsattachmentop.py - - src/panora_sdk/models/listatscandidateop.py - - src/panora_sdk/models/listatsdepartmentsop.py - - src/panora_sdk/models/listatseeocsop.py - - src/panora_sdk/models/listatsinterviewop.py - - src/panora_sdk/models/listatsjobinterviewstageop.py - - src/panora_sdk/models/listatsjobop.py - - src/panora_sdk/models/listatsofferop.py - - src/panora_sdk/models/listatsofficeop.py - - src/panora_sdk/models/listatsrejectreasonsop.py - - src/panora_sdk/models/listatsscorecardop.py - - src/panora_sdk/models/listatstagsop.py - - src/panora_sdk/models/listatsusersop.py + - src/panora_sdk/models/updatestatusop.py + - src/panora_sdk/models/signatureverificationdto.py + - src/panora_sdk/models/listticketingticketop.py + - src/panora_sdk/models/unifiedticketingticketoutput.py + - src/panora_sdk/models/unifiedticketingattachmentinput.py + - src/panora_sdk/models/unifiedticketingattachmentoutput.py + - src/panora_sdk/models/unifiedticketingtagoutput.py + - src/panora_sdk/models/unifiedticketingcollectionoutput.py + - src/panora_sdk/models/createticketingticketop.py + - src/panora_sdk/models/unifiedticketingticketinput.py + - src/panora_sdk/models/retrieveticketingticketop.py + - src/panora_sdk/models/listticketingusersop.py + - src/panora_sdk/models/unifiedticketinguseroutput.py + - src/panora_sdk/models/retrieveticketinguserop.py + - src/panora_sdk/models/listticketingaccountop.py + - src/panora_sdk/models/unifiedticketingaccountoutput.py + - src/panora_sdk/models/retrieveticketingaccountop.py + - src/panora_sdk/models/listticketingcontactsop.py + - src/panora_sdk/models/unifiedticketingcontactoutput.py + - src/panora_sdk/models/retrieveticketingcontactop.py + - src/panora_sdk/models/listticketingcollectionsop.py + - src/panora_sdk/models/retrievecollectionop.py + - src/panora_sdk/models/listticketingcommentsop.py + - src/panora_sdk/models/unifiedticketingcommentoutput.py + - src/panora_sdk/models/createticketingcommentop.py + - src/panora_sdk/models/unifiedticketingcommentinput.py + - src/panora_sdk/models/retrieveticketingcommentop.py + - src/panora_sdk/models/listticketingtagsop.py + - src/panora_sdk/models/retrieveticketingtagop.py + - src/panora_sdk/models/listticketingteamsop.py + - src/panora_sdk/models/unifiedticketingteamoutput.py + - src/panora_sdk/models/retrieveticketingteamop.py + - src/panora_sdk/models/listticketingattachmentsop.py + - src/panora_sdk/models/createticketingattachmentop.py + - src/panora_sdk/models/retrieveticketingattachmentop.py + - src/panora_sdk/models/statusop.py + - src/panora_sdk/models/resyncstatusdto.py + - src/panora_sdk/models/updatepullfrequencyop.py + - src/panora_sdk/models/updatepullfrequencydto.py - src/panora_sdk/models/listcrmcompanyop.py + - src/panora_sdk/models/unifiedcrmcompanyoutput.py + - src/panora_sdk/models/phone.py + - src/panora_sdk/models/address.py + - src/panora_sdk/models/email.py + - src/panora_sdk/models/createcrmcompanyop.py + - src/panora_sdk/models/unifiedcrmcompanyinput.py + - src/panora_sdk/models/retrievecrmcompanyop.py - src/panora_sdk/models/listcrmcontactsop.py + - src/panora_sdk/models/unifiedcrmcontactoutput.py + - src/panora_sdk/models/createcrmcontactop.py + - src/panora_sdk/models/unifiedcrmcontactinput.py + - src/panora_sdk/models/retrievecrmcontactop.py - src/panora_sdk/models/listcrmdealsop.py + - src/panora_sdk/models/unifiedcrmdealoutput.py + - src/panora_sdk/models/createcrmdealop.py + - src/panora_sdk/models/unifiedcrmdealinput.py + - src/panora_sdk/models/retrievecrmdealop.py - src/panora_sdk/models/listcrmengagementsop.py + - src/panora_sdk/models/unifiedcrmengagementoutput.py + - src/panora_sdk/models/createcrmengagementop.py + - src/panora_sdk/models/unifiedcrmengagementinput.py + - src/panora_sdk/models/retrievecrmengagementop.py - src/panora_sdk/models/listcrmnoteop.py + - src/panora_sdk/models/unifiedcrmnoteoutput.py + - src/panora_sdk/models/createcrmnoteop.py + - src/panora_sdk/models/unifiedcrmnoteinput.py + - src/panora_sdk/models/retrievecrmnoteop.py - src/panora_sdk/models/listcrmstagesop.py + - src/panora_sdk/models/unifiedcrmstageoutput.py + - src/panora_sdk/models/retrievecrmstageop.py - src/panora_sdk/models/listcrmtaskop.py + - src/panora_sdk/models/unifiedcrmtaskoutput.py + - src/panora_sdk/models/createcrmtaskop.py + - src/panora_sdk/models/unifiedcrmtaskinput.py + - src/panora_sdk/models/retrievecrmtaskop.py - src/panora_sdk/models/listcrmusersop.py - - src/panora_sdk/models/listecommercecustomersop.py - - src/panora_sdk/models/listecommercefulfillmentsop.py - - src/panora_sdk/models/listecommerceordersop.py - - src/panora_sdk/models/listecommerceproductsop.py - - src/panora_sdk/models/listfilestoragefileop.py - - src/panora_sdk/models/listfilestoragefolderop.py - - src/panora_sdk/models/listfilestoragegroupop.py - - src/panora_sdk/models/listfilestorageusersop.py + - src/panora_sdk/models/unifiedcrmuseroutput.py + - src/panora_sdk/models/retrievecrmuserop.py + - src/panora_sdk/models/linkeduserresponse.py + - src/panora_sdk/models/createlinkeduserdto.py + - src/panora_sdk/models/createbatchlinkeduserdto.py + - src/panora_sdk/models/retrievelinkeduserop.py + - src/panora_sdk/models/remoteidop.py + - src/panora_sdk/models/projectresponse.py + - src/panora_sdk/models/createprojectdto.py + - src/panora_sdk/models/customfieldresponse.py + - src/panora_sdk/models/definetargetfielddto.py + - src/panora_sdk/models/customfieldcreatedto.py + - src/panora_sdk/models/mapfieldtoproviderdto.py + - src/panora_sdk/models/eventresponse.py + - src/panora_sdk/models/getpanoracoreeventsop.py + - src/panora_sdk/models/requestop.py + - src/panora_sdk/models/passthroughrequestdto.py + - src/panora_sdk/models/getretriedrequestresponseop.py - src/panora_sdk/models/listhrisbankinfoop.py + - src/panora_sdk/models/unifiedhrisbankinfooutput.py + - src/panora_sdk/models/retrievehrisbankinfoop.py - src/panora_sdk/models/listhrisbenefitsop.py + - src/panora_sdk/models/unifiedhrisbenefitoutput.py + - src/panora_sdk/models/retrievehrisbenefitop.py - src/panora_sdk/models/listhriscompaniesop.py + - src/panora_sdk/models/unifiedhriscompanyoutput.py + - src/panora_sdk/models/retrievehriscompanyop.py - src/panora_sdk/models/listhrisdependentsop.py + - src/panora_sdk/models/unifiedhrisdependentoutput.py + - src/panora_sdk/models/retrievehrisdependentop.py - src/panora_sdk/models/listhrisemployeepayrollrunop.py + - src/panora_sdk/models/unifiedhrisemployeepayrollrunoutput.py + - src/panora_sdk/models/taxitem.py + - src/panora_sdk/models/earningitem.py + - src/panora_sdk/models/deductionitem.py + - src/panora_sdk/models/retrievehrisemployeepayrollrunop.py - src/panora_sdk/models/listhrisemployeesop.py + - src/panora_sdk/models/unifiedhrisemployeeoutput.py + - src/panora_sdk/models/createhrisemployeeop.py + - src/panora_sdk/models/unifiedhrisemployeeinput.py + - src/panora_sdk/models/retrievehrisemployeeop.py - src/panora_sdk/models/listhrisemployerbenefitsop.py + - src/panora_sdk/models/unifiedhrisemployerbenefitoutput.py + - src/panora_sdk/models/retrievehrisemployerbenefitop.py - src/panora_sdk/models/listhrisemploymentsop.py + - src/panora_sdk/models/unifiedhrisemploymentoutput.py + - src/panora_sdk/models/retrievehrisemploymentop.py - src/panora_sdk/models/listhrisgroupsop.py + - src/panora_sdk/models/unifiedhrisgroupoutput.py + - src/panora_sdk/models/retrievehrisgroupop.py - src/panora_sdk/models/listhrislocationsop.py + - src/panora_sdk/models/unifiedhrislocationoutput.py + - src/panora_sdk/models/retrievehrislocationop.py - src/panora_sdk/models/listhrispaygroupsop.py + - src/panora_sdk/models/unifiedhrispaygroupoutput.py + - src/panora_sdk/models/retrievehrispaygroupop.py - src/panora_sdk/models/listhrispayrollrunsop.py - - src/panora_sdk/models/listhristimeoffbalancesop.py + - src/panora_sdk/models/unifiedhrispayrollrunoutput.py + - src/panora_sdk/models/retrievehrispayrollrunop.py - src/panora_sdk/models/listhristimeoffsop.py + - src/panora_sdk/models/unifiedhristimeoffoutput.py + - src/panora_sdk/models/createhristimeoffop.py + - src/panora_sdk/models/unifiedhristimeoffinput.py + - src/panora_sdk/models/retrievehristimeoffop.py + - src/panora_sdk/models/listhristimeoffbalancesop.py + - src/panora_sdk/models/unifiedhristimeoffbalanceoutput.py + - src/panora_sdk/models/retrievehristimeoffbalanceop.py - src/panora_sdk/models/listhristimesheetentriesop.py + - src/panora_sdk/models/unifiedhristimesheetentryoutput.py + - src/panora_sdk/models/createhristimesheetentryop.py + - src/panora_sdk/models/unifiedhristimesheetentryinput.py + - src/panora_sdk/models/retrievehristimesheetentryop.py - src/panora_sdk/models/listmarketingautomationactionop.py + - src/panora_sdk/models/unifiedmarketingautomationactionoutput.py + - src/panora_sdk/models/createmarketingautomationactionop.py + - src/panora_sdk/models/unifiedmarketingautomationactioninput.py + - src/panora_sdk/models/retrievemarketingautomationactionop.py - src/panora_sdk/models/listmarketingautomationautomationsop.py + - src/panora_sdk/models/unifiedmarketingautomationautomationoutput.py + - src/panora_sdk/models/createmarketingautomationautomationop.py + - src/panora_sdk/models/unifiedmarketingautomationautomationinput.py + - src/panora_sdk/models/retrievemarketingautomationautomationop.py - src/panora_sdk/models/listmarketingautomationcampaignsop.py + - src/panora_sdk/models/unifiedmarketingautomationcampaignoutput.py + - src/panora_sdk/models/createmarketingautomationcampaignop.py + - src/panora_sdk/models/unifiedmarketingautomationcampaigninput.py + - src/panora_sdk/models/retrievemarketingautomationcampaignop.py - src/panora_sdk/models/listmarketingautomationcontactsop.py + - src/panora_sdk/models/unifiedmarketingautomationcontactoutput.py + - src/panora_sdk/models/createmarketingautomationcontactop.py + - src/panora_sdk/models/unifiedmarketingautomationcontactinput.py + - src/panora_sdk/models/retrievemarketingautomationcontactop.py - src/panora_sdk/models/listmarketingautomationemailsop.py + - src/panora_sdk/models/unifiedmarketingautomationemailoutput.py + - src/panora_sdk/models/retrievemarketingautomationemailop.py - src/panora_sdk/models/listmarketingautomationeventsop.py + - src/panora_sdk/models/unifiedmarketingautomationeventoutput.py + - src/panora_sdk/models/retrievemarketingautomationeventop.py - src/panora_sdk/models/listmarketingautomationlistsop.py + - src/panora_sdk/models/unifiedmarketingautomationlistoutput.py + - src/panora_sdk/models/createmarketingautomationlistop.py + - src/panora_sdk/models/unifiedmarketingautomationlistinput.py + - src/panora_sdk/models/retrievemarketingautomationlistop.py - src/panora_sdk/models/listmarketingautomationmessagesop.py + - src/panora_sdk/models/unifiedmarketingautomationmessageoutput.py + - src/panora_sdk/models/retrievemarketingautomationmessageop.py - src/panora_sdk/models/listmarketingautomationtemplatesop.py + - src/panora_sdk/models/unifiedmarketingautomationtemplateoutput.py + - src/panora_sdk/models/createmarketingautomationtemplateop.py + - src/panora_sdk/models/unifiedmarketingautomationtemplateinput.py + - src/panora_sdk/models/retrievemarketingautomationtemplateop.py - src/panora_sdk/models/listmarketingautomationusersop.py - - src/panora_sdk/models/listticketingaccountop.py - - src/panora_sdk/models/listticketingattachmentsop.py - - src/panora_sdk/models/listticketingcollectionsop.py - - src/panora_sdk/models/listticketingcommentsop.py - - src/panora_sdk/models/listticketingcontactsop.py - - src/panora_sdk/models/listticketingtagsop.py - - src/panora_sdk/models/listticketingteamsop.py - - src/panora_sdk/models/listticketingticketop.py - - src/panora_sdk/models/listticketingusersop.py - - src/panora_sdk/models/logindto.py - - src/panora_sdk/models/mapfieldtoproviderdto.py - - src/panora_sdk/models/passthroughrequestdto.py - - src/panora_sdk/models/phone.py - - src/panora_sdk/models/projectresponse.py - - src/panora_sdk/models/ragcontroller_queryembeddingsop.py - - src/panora_sdk/models/remoteidop.py - - src/panora_sdk/models/requestop.py - - src/panora_sdk/models/resyncstatusdto.py - - src/panora_sdk/models/retrieveaccountingaccountop.py - - src/panora_sdk/models/retrieveaccountingaddressop.py - - src/panora_sdk/models/retrieveaccountingattachmentop.py - - src/panora_sdk/models/retrieveaccountingbalancesheetop.py - - src/panora_sdk/models/retrieveaccountingcashflowstatementop.py - - src/panora_sdk/models/retrieveaccountingcompanyinfoop.py - - src/panora_sdk/models/retrieveaccountingcontactop.py - - src/panora_sdk/models/retrieveaccountingcreditnoteop.py - - src/panora_sdk/models/retrieveaccountingexpenseop.py - - src/panora_sdk/models/retrieveaccountingincomestatementop.py - - src/panora_sdk/models/retrieveaccountinginvoiceop.py - - src/panora_sdk/models/retrieveaccountingitemop.py - - src/panora_sdk/models/retrieveaccountingjournalentryop.py - - src/panora_sdk/models/retrieveaccountingpaymentop.py - - src/panora_sdk/models/retrieveaccountingphonenumberop.py - - src/panora_sdk/models/retrieveaccountingpurchaseorderop.py - - src/panora_sdk/models/retrieveaccountingtaxrateop.py - - src/panora_sdk/models/retrieveaccountingtrackingcategoryop.py - - src/panora_sdk/models/retrieveaccountingtransactionop.py - - src/panora_sdk/models/retrieveaccountingvendorcreditop.py + - src/panora_sdk/models/unifiedmarketingautomationuseroutput.py + - src/panora_sdk/models/retrievemarketingautomationuserop.py + - src/panora_sdk/models/listatsactivityop.py + - src/panora_sdk/models/unifiedatsactivityoutput.py + - src/panora_sdk/models/createatsactivityop.py + - src/panora_sdk/models/unifiedatsactivityinput.py - src/panora_sdk/models/retrieveatsactivityop.py + - src/panora_sdk/models/listatsapplicationop.py + - src/panora_sdk/models/unifiedatsapplicationoutput.py + - src/panora_sdk/models/createatsapplicationop.py + - src/panora_sdk/models/unifiedatsapplicationinput.py - src/panora_sdk/models/retrieveatsapplicationop.py + - src/panora_sdk/models/listatsattachmentop.py + - src/panora_sdk/models/unifiedatsattachmentoutput.py + - src/panora_sdk/models/createatsattachmentop.py + - src/panora_sdk/models/unifiedatsattachmentinput.py - src/panora_sdk/models/retrieveatsattachmentop.py + - src/panora_sdk/models/listatscandidateop.py + - src/panora_sdk/models/unifiedatscandidateoutput.py + - src/panora_sdk/models/url.py + - src/panora_sdk/models/unifiedatstagoutput.py + - src/panora_sdk/models/createatscandidateop.py + - src/panora_sdk/models/unifiedatscandidateinput.py - src/panora_sdk/models/retrieveatscandidateop.py + - src/panora_sdk/models/listatsdepartmentsop.py + - src/panora_sdk/models/unifiedatsdepartmentoutput.py - src/panora_sdk/models/retrieveatsdepartmentop.py - - src/panora_sdk/models/retrieveatseeocsop.py + - src/panora_sdk/models/listatsinterviewop.py + - src/panora_sdk/models/unifiedatsinterviewoutput.py + - src/panora_sdk/models/createatsinterviewop.py + - src/panora_sdk/models/unifiedatsinterviewinput.py - src/panora_sdk/models/retrieveatsinterviewop.py + - src/panora_sdk/models/listatsjobinterviewstageop.py + - src/panora_sdk/models/unifiedatsjobinterviewstageoutput.py - src/panora_sdk/models/retrieveatsjobinterviewstageop.py + - src/panora_sdk/models/listatsjobop.py + - src/panora_sdk/models/unifiedatsjoboutput.py - src/panora_sdk/models/retrieveatsjobop.py + - src/panora_sdk/models/listatsofferop.py + - src/panora_sdk/models/unifiedatsofferoutput.py - src/panora_sdk/models/retrieveatsofferop.py + - src/panora_sdk/models/listatsofficeop.py + - src/panora_sdk/models/unifiedatsofficeoutput.py - src/panora_sdk/models/retrieveatsofficeop.py + - src/panora_sdk/models/listatsrejectreasonsop.py + - src/panora_sdk/models/unifiedatsrejectreasonoutput.py - src/panora_sdk/models/retrieveatsrejectreasonop.py + - src/panora_sdk/models/listatsscorecardop.py + - src/panora_sdk/models/unifiedatsscorecardoutput.py - src/panora_sdk/models/retrieveatsscorecardop.py + - src/panora_sdk/models/listatstagsop.py - src/panora_sdk/models/retrieveatstagop.py + - src/panora_sdk/models/listatsusersop.py + - src/panora_sdk/models/unifiedatsuseroutput.py - src/panora_sdk/models/retrieveatsuserop.py - - src/panora_sdk/models/retrievecollectionop.py - - src/panora_sdk/models/retrievecrmcompanyop.py - - src/panora_sdk/models/retrievecrmcontactop.py - - src/panora_sdk/models/retrievecrmdealop.py - - src/panora_sdk/models/retrievecrmengagementop.py - - src/panora_sdk/models/retrievecrmnoteop.py - - src/panora_sdk/models/retrievecrmstageop.py - - src/panora_sdk/models/retrievecrmtaskop.py - - src/panora_sdk/models/retrievecrmuserop.py - - src/panora_sdk/models/retrieveecommercecustomerop.py - - src/panora_sdk/models/retrieveecommercefulfillmentop.py - - src/panora_sdk/models/retrieveecommerceorderop.py - - src/panora_sdk/models/retrieveecommerceproductop.py - - src/panora_sdk/models/retrievefilestoragefileop.py - - src/panora_sdk/models/retrievefilestoragefolderop.py - - src/panora_sdk/models/retrievefilestoragegroupop.py - - src/panora_sdk/models/retrievefilestorageuserop.py - - src/panora_sdk/models/retrievehrisbankinfoop.py - - src/panora_sdk/models/retrievehrisbenefitop.py - - src/panora_sdk/models/retrievehriscompanyop.py - - src/panora_sdk/models/retrievehrisdependentop.py - - src/panora_sdk/models/retrievehrisemployeeop.py - - src/panora_sdk/models/retrievehrisemployeepayrollrunop.py - - src/panora_sdk/models/retrievehrisemployerbenefitop.py - - src/panora_sdk/models/retrievehrisemploymentop.py - - src/panora_sdk/models/retrievehrisgroupop.py - - src/panora_sdk/models/retrievehrislocationop.py - - src/panora_sdk/models/retrievehrispaygroupop.py - - src/panora_sdk/models/retrievehrispayrollrunop.py - - src/panora_sdk/models/retrievehristimeoffbalanceop.py - - src/panora_sdk/models/retrievehristimeoffop.py - - src/panora_sdk/models/retrievehristimesheetentryop.py - - src/panora_sdk/models/retrievelinkeduserop.py - - src/panora_sdk/models/retrievemarketingautomationactionop.py - - src/panora_sdk/models/retrievemarketingautomationautomationop.py - - src/panora_sdk/models/retrievemarketingautomationcampaignop.py - - src/panora_sdk/models/retrievemarketingautomationcontactop.py - - src/panora_sdk/models/retrievemarketingautomationemailop.py - - src/panora_sdk/models/retrievemarketingautomationeventop.py - - src/panora_sdk/models/retrievemarketingautomationlistop.py - - src/panora_sdk/models/retrievemarketingautomationmessageop.py - - src/panora_sdk/models/retrievemarketingautomationtemplateop.py - - src/panora_sdk/models/retrievemarketingautomationuserop.py - - src/panora_sdk/models/retrieveticketingaccountop.py - - src/panora_sdk/models/retrieveticketingattachmentop.py - - src/panora_sdk/models/retrieveticketingcommentop.py - - src/panora_sdk/models/retrieveticketingcontactop.py - - src/panora_sdk/models/retrieveticketingtagop.py - - src/panora_sdk/models/retrieveticketingteamop.py - - src/panora_sdk/models/retrieveticketingticketop.py - - src/panora_sdk/models/retrieveticketinguserop.py - - src/panora_sdk/models/sdkerror.py - - src/panora_sdk/models/security.py - - src/panora_sdk/models/signatureverificationdto.py - - src/panora_sdk/models/statusop.py - - src/panora_sdk/models/taxitem.py - - src/panora_sdk/models/unifiedaccountingaccountinput.py + - src/panora_sdk/models/listatseeocsop.py + - src/panora_sdk/models/unifiedatseeocsoutput.py + - src/panora_sdk/models/retrieveatseeocsop.py + - src/panora_sdk/models/listaccountingaccountsop.py - src/panora_sdk/models/unifiedaccountingaccountoutput.py + - src/panora_sdk/models/createaccountingaccountop.py + - src/panora_sdk/models/unifiedaccountingaccountinput.py + - src/panora_sdk/models/retrieveaccountingaccountop.py + - src/panora_sdk/models/listaccountingaddressop.py - src/panora_sdk/models/unifiedaccountingaddressoutput.py - - src/panora_sdk/models/unifiedaccountingattachmentinput.py + - src/panora_sdk/models/retrieveaccountingaddressop.py + - src/panora_sdk/models/listaccountingattachmentsop.py - src/panora_sdk/models/unifiedaccountingattachmentoutput.py + - src/panora_sdk/models/createaccountingattachmentop.py + - src/panora_sdk/models/unifiedaccountingattachmentinput.py + - src/panora_sdk/models/retrieveaccountingattachmentop.py + - src/panora_sdk/models/listaccountingbalancesheetsop.py - src/panora_sdk/models/unifiedaccountingbalancesheetoutput.py + - src/panora_sdk/models/lineitem.py + - src/panora_sdk/models/retrieveaccountingbalancesheetop.py + - src/panora_sdk/models/listaccountingcashflowstatementop.py - src/panora_sdk/models/unifiedaccountingcashflowstatementoutput.py + - src/panora_sdk/models/retrieveaccountingcashflowstatementop.py + - src/panora_sdk/models/listaccountingcompanyinfosop.py - src/panora_sdk/models/unifiedaccountingcompanyinfooutput.py - - src/panora_sdk/models/unifiedaccountingcontactinput.py + - src/panora_sdk/models/retrieveaccountingcompanyinfoop.py + - src/panora_sdk/models/listaccountingcontactsop.py - src/panora_sdk/models/unifiedaccountingcontactoutput.py + - src/panora_sdk/models/createaccountingcontactop.py + - src/panora_sdk/models/unifiedaccountingcontactinput.py + - src/panora_sdk/models/retrieveaccountingcontactop.py + - src/panora_sdk/models/listaccountingcreditnoteop.py - src/panora_sdk/models/unifiedaccountingcreditnoteoutput.py - - src/panora_sdk/models/unifiedaccountingexpenseinput.py + - src/panora_sdk/models/retrieveaccountingcreditnoteop.py + - src/panora_sdk/models/listaccountingexpenseop.py - src/panora_sdk/models/unifiedaccountingexpenseoutput.py + - src/panora_sdk/models/createaccountingexpenseop.py + - src/panora_sdk/models/unifiedaccountingexpenseinput.py + - src/panora_sdk/models/retrieveaccountingexpenseop.py + - src/panora_sdk/models/listaccountingincomestatementop.py - src/panora_sdk/models/unifiedaccountingincomestatementoutput.py - - src/panora_sdk/models/unifiedaccountinginvoiceinput.py + - src/panora_sdk/models/retrieveaccountingincomestatementop.py + - src/panora_sdk/models/listaccountinginvoiceop.py - src/panora_sdk/models/unifiedaccountinginvoiceoutput.py + - src/panora_sdk/models/createaccountinginvoiceop.py + - src/panora_sdk/models/unifiedaccountinginvoiceinput.py + - src/panora_sdk/models/retrieveaccountinginvoiceop.py + - src/panora_sdk/models/listaccountingitemop.py - src/panora_sdk/models/unifiedaccountingitemoutput.py - - src/panora_sdk/models/unifiedaccountingjournalentryinput.py + - src/panora_sdk/models/retrieveaccountingitemop.py + - src/panora_sdk/models/listaccountingjournalentryop.py - src/panora_sdk/models/unifiedaccountingjournalentryoutput.py - - src/panora_sdk/models/unifiedaccountingpaymentinput.py + - src/panora_sdk/models/createaccountingjournalentryop.py + - src/panora_sdk/models/unifiedaccountingjournalentryinput.py + - src/panora_sdk/models/retrieveaccountingjournalentryop.py + - src/panora_sdk/models/listaccountingpaymentop.py - src/panora_sdk/models/unifiedaccountingpaymentoutput.py + - src/panora_sdk/models/createaccountingpaymentop.py + - src/panora_sdk/models/unifiedaccountingpaymentinput.py + - src/panora_sdk/models/retrieveaccountingpaymentop.py + - src/panora_sdk/models/listaccountingphonenumberop.py - src/panora_sdk/models/unifiedaccountingphonenumberoutput.py - - src/panora_sdk/models/unifiedaccountingpurchaseorderinput.py + - src/panora_sdk/models/retrieveaccountingphonenumberop.py + - src/panora_sdk/models/listaccountingpurchaseorderop.py - src/panora_sdk/models/unifiedaccountingpurchaseorderoutput.py + - src/panora_sdk/models/createaccountingpurchaseorderop.py + - src/panora_sdk/models/unifiedaccountingpurchaseorderinput.py + - src/panora_sdk/models/retrieveaccountingpurchaseorderop.py + - src/panora_sdk/models/listaccountingtaxrateop.py - src/panora_sdk/models/unifiedaccountingtaxrateoutput.py + - src/panora_sdk/models/retrieveaccountingtaxrateop.py + - src/panora_sdk/models/listaccountingtrackingcategorysop.py - src/panora_sdk/models/unifiedaccountingtrackingcategoryoutput.py + - src/panora_sdk/models/retrieveaccountingtrackingcategoryop.py + - src/panora_sdk/models/listaccountingtransactionop.py - src/panora_sdk/models/unifiedaccountingtransactionoutput.py + - src/panora_sdk/models/retrieveaccountingtransactionop.py + - src/panora_sdk/models/listaccountingvendorcreditop.py - src/panora_sdk/models/unifiedaccountingvendorcreditoutput.py - - src/panora_sdk/models/unifiedatsactivityinput.py - - src/panora_sdk/models/unifiedatsactivityoutput.py - - src/panora_sdk/models/unifiedatsapplicationinput.py - - src/panora_sdk/models/unifiedatsapplicationoutput.py - - src/panora_sdk/models/unifiedatsattachmentinput.py - - src/panora_sdk/models/unifiedatsattachmentoutput.py - - src/panora_sdk/models/unifiedatscandidateinput.py - - src/panora_sdk/models/unifiedatscandidateoutput.py - - src/panora_sdk/models/unifiedatsdepartmentoutput.py - - src/panora_sdk/models/unifiedatseeocsoutput.py - - src/panora_sdk/models/unifiedatsinterviewinput.py - - src/panora_sdk/models/unifiedatsinterviewoutput.py - - src/panora_sdk/models/unifiedatsjobinterviewstageoutput.py - - src/panora_sdk/models/unifiedatsjoboutput.py - - src/panora_sdk/models/unifiedatsofferoutput.py - - src/panora_sdk/models/unifiedatsofficeoutput.py - - src/panora_sdk/models/unifiedatsrejectreasonoutput.py - - src/panora_sdk/models/unifiedatsscorecardoutput.py - - src/panora_sdk/models/unifiedatstagoutput.py - - src/panora_sdk/models/unifiedatsuseroutput.py - - src/panora_sdk/models/unifiedcrmcompanyinput.py - - src/panora_sdk/models/unifiedcrmcompanyoutput.py - - src/panora_sdk/models/unifiedcrmcontactinput.py - - src/panora_sdk/models/unifiedcrmcontactoutput.py - - src/panora_sdk/models/unifiedcrmdealinput.py - - src/panora_sdk/models/unifiedcrmdealoutput.py - - src/panora_sdk/models/unifiedcrmengagementinput.py - - src/panora_sdk/models/unifiedcrmengagementoutput.py - - src/panora_sdk/models/unifiedcrmnoteinput.py - - src/panora_sdk/models/unifiedcrmnoteoutput.py - - src/panora_sdk/models/unifiedcrmstageoutput.py - - src/panora_sdk/models/unifiedcrmtaskinput.py - - src/panora_sdk/models/unifiedcrmtaskoutput.py - - src/panora_sdk/models/unifiedcrmuseroutput.py - - src/panora_sdk/models/unifiedecommercecustomeroutput.py - - src/panora_sdk/models/unifiedecommercefulfillmentoutput.py - - src/panora_sdk/models/unifiedecommerceorderinput.py - - src/panora_sdk/models/unifiedecommerceorderoutput.py - - src/panora_sdk/models/unifiedecommerceproductinput.py + - src/panora_sdk/models/retrieveaccountingvendorcreditop.py + - src/panora_sdk/models/listecommerceproductsop.py - src/panora_sdk/models/unifiedecommerceproductoutput.py - - src/panora_sdk/models/unifiedfilestoragefileinput.py - - src/panora_sdk/models/unifiedfilestoragefileoutput.py - - src/panora_sdk/models/unifiedfilestoragefolderinput.py - - src/panora_sdk/models/unifiedfilestoragefolderoutput.py - - src/panora_sdk/models/unifiedfilestoragegroupoutput.py - - src/panora_sdk/models/unifiedfilestorageuseroutput.py - - src/panora_sdk/models/unifiedhrisbankinfooutput.py - - src/panora_sdk/models/unifiedhrisbenefitoutput.py - - src/panora_sdk/models/unifiedhriscompanyoutput.py - - src/panora_sdk/models/unifiedhrisdependentoutput.py - - src/panora_sdk/models/unifiedhrisemployeeinput.py - - src/panora_sdk/models/unifiedhrisemployeeoutput.py - - src/panora_sdk/models/unifiedhrisemployeepayrollrunoutput.py - - src/panora_sdk/models/unifiedhrisemployerbenefitoutput.py - - src/panora_sdk/models/unifiedhrisemploymentoutput.py - - src/panora_sdk/models/unifiedhrisgroupoutput.py - - src/panora_sdk/models/unifiedhrislocationoutput.py - - src/panora_sdk/models/unifiedhrispaygroupoutput.py - - src/panora_sdk/models/unifiedhrispayrollrunoutput.py - - src/panora_sdk/models/unifiedhristimeoffbalanceoutput.py - - src/panora_sdk/models/unifiedhristimeoffinput.py - - src/panora_sdk/models/unifiedhristimeoffoutput.py - - src/panora_sdk/models/unifiedhristimesheetentryinput.py - - src/panora_sdk/models/unifiedhristimesheetentryoutput.py - - src/panora_sdk/models/unifiedmarketingautomationactioninput.py - - src/panora_sdk/models/unifiedmarketingautomationactionoutput.py - - src/panora_sdk/models/unifiedmarketingautomationautomationinput.py - - src/panora_sdk/models/unifiedmarketingautomationautomationoutput.py - - src/panora_sdk/models/unifiedmarketingautomationcampaigninput.py - - src/panora_sdk/models/unifiedmarketingautomationcampaignoutput.py - - src/panora_sdk/models/unifiedmarketingautomationcontactinput.py - - src/panora_sdk/models/unifiedmarketingautomationcontactoutput.py - - src/panora_sdk/models/unifiedmarketingautomationemailoutput.py - - src/panora_sdk/models/unifiedmarketingautomationeventoutput.py - - src/panora_sdk/models/unifiedmarketingautomationlistinput.py - - src/panora_sdk/models/unifiedmarketingautomationlistoutput.py - - src/panora_sdk/models/unifiedmarketingautomationmessageoutput.py - - src/panora_sdk/models/unifiedmarketingautomationtemplateinput.py - - src/panora_sdk/models/unifiedmarketingautomationtemplateoutput.py - - src/panora_sdk/models/unifiedmarketingautomationuseroutput.py - - src/panora_sdk/models/unifiedticketingaccountoutput.py - - src/panora_sdk/models/unifiedticketingattachmentinput.py - - src/panora_sdk/models/unifiedticketingattachmentoutput.py - - src/panora_sdk/models/unifiedticketingcollectionoutput.py - - src/panora_sdk/models/unifiedticketingcommentinput.py - - src/panora_sdk/models/unifiedticketingcommentoutput.py - - src/panora_sdk/models/unifiedticketingcontactoutput.py - - src/panora_sdk/models/unifiedticketingtagoutput.py - - src/panora_sdk/models/unifiedticketingteamoutput.py - - src/panora_sdk/models/unifiedticketingticketinput.py - - src/panora_sdk/models/unifiedticketingticketoutput.py - - src/panora_sdk/models/unifiedticketinguseroutput.py - - src/panora_sdk/models/updatepullfrequencydto.py - - src/panora_sdk/models/updatepullfrequencyop.py - - src/panora_sdk/models/updatestatusop.py - - src/panora_sdk/models/url.py - src/panora_sdk/models/variant.py - - src/panora_sdk/models/webhookdto.py - - src/panora_sdk/models/webhookresponse.py - - src/panora_sdk/notes.py - - src/panora_sdk/offers.py - - src/panora_sdk/offices.py - - src/panora_sdk/orders.py - - src/panora_sdk/panora_accounting_contacts.py - - src/panora_sdk/panora_accounts.py - - src/panora_sdk/panora_ats_users.py - - src/panora_sdk/panora_attachments.py - - src/panora_sdk/panora_companies.py - - src/panora_sdk/panora_contacts.py - - src/panora_sdk/panora_events.py - - src/panora_sdk/panora_filestorage_users.py - - src/panora_sdk/panora_groups.py - - src/panora_sdk/panora_marketingautomation_contacts.py - - src/panora_sdk/panora_marketingautomation_users.py - - src/panora_sdk/panora_tags.py - - src/panora_sdk/panora_ticketing_attachments.py - - src/panora_sdk/panora_users.py - - src/panora_sdk/passthrough.py - - src/panora_sdk/paygroups.py - - src/panora_sdk/payments.py - - src/panora_sdk/payrollruns.py - - src/panora_sdk/phonenumbers.py - - src/panora_sdk/products.py - - src/panora_sdk/projects.py - - src/panora_sdk/purchaseorders.py - - src/panora_sdk/py.typed - - src/panora_sdk/query.py - - src/panora_sdk/rag.py - - src/panora_sdk/rejectreasons.py - - src/panora_sdk/retryid_.py - - src/panora_sdk/scorecards.py - - src/panora_sdk/sdk.py - - src/panora_sdk/sdkconfiguration.py - - src/panora_sdk/stages.py - - src/panora_sdk/sync.py - - src/panora_sdk/tags.py - - src/panora_sdk/tasks.py - - src/panora_sdk/taxrates.py - - src/panora_sdk/teams.py - - src/panora_sdk/templates.py - - src/panora_sdk/ticketing.py - - src/panora_sdk/tickets.py - - src/panora_sdk/timeoffbalances.py - - src/panora_sdk/timeoffs.py - - src/panora_sdk/timesheetentries.py - - src/panora_sdk/trackingcategories.py - - src/panora_sdk/transactions.py - - src/panora_sdk/types/__init__.py - - src/panora_sdk/types/basemodel.py - - src/panora_sdk/users.py - - src/panora_sdk/utils/__init__.py - - src/panora_sdk/utils/annotations.py - - src/panora_sdk/utils/enums.py - - src/panora_sdk/utils/eventstreaming.py - - src/panora_sdk/utils/forms.py - - src/panora_sdk/utils/headers.py - - src/panora_sdk/utils/logger.py - - src/panora_sdk/utils/metadata.py - - src/panora_sdk/utils/queryparams.py - - src/panora_sdk/utils/requestbodies.py - - src/panora_sdk/utils/retries.py - - src/panora_sdk/utils/security.py - - src/panora_sdk/utils/serializers.py - - src/panora_sdk/utils/url.py - - src/panora_sdk/utils/values.py - - src/panora_sdk/vendorcredits.py - - src/panora_sdk/webhooks.py -examples: - hello: - speakeasy-default-hello: - responses: - "200": - text/plain: "" - health: - speakeasy-default-health: - responses: - "200": - application/json: 200 + - src/panora_sdk/models/createecommerceproductop.py + - src/panora_sdk/models/unifiedecommerceproductinput.py + - src/panora_sdk/models/retrieveecommerceproductop.py + - src/panora_sdk/models/listecommerceordersop.py + - src/panora_sdk/models/unifiedecommerceorderoutput.py + - src/panora_sdk/models/createecommerceorderop.py + - src/panora_sdk/models/unifiedecommerceorderinput.py + - src/panora_sdk/models/retrieveecommerceorderop.py + - src/panora_sdk/models/listecommercecustomersop.py + - src/panora_sdk/models/unifiedecommercecustomeroutput.py + - src/panora_sdk/models/retrieveecommercecustomerop.py + - src/panora_sdk/models/listecommercefulfillmentsop.py + - src/panora_sdk/models/unifiedecommercefulfillmentoutput.py + - src/panora_sdk/models/retrieveecommercefulfillmentop.py + - src/panora_sdk/models/security.py + - src/panora_sdk/models/__init__.py + - docs/models/queryrequest.md + - docs/models/queryresponsebody.md + - docs/models/querybody.md + - docs/models/listfilestoragefilerequest.md + - docs/models/listfilestoragefileresponsebody.md + - docs/models/listfilestoragefileresponse.md + - docs/models/unifiedfilestoragefileoutput.md + - docs/models/createfilestoragefilerequest.md + - docs/models/unifiedfilestoragefileinput.md + - docs/models/retrievefilestoragefilerequest.md + - docs/models/listfilestoragefolderrequest.md + - docs/models/listfilestoragefolderresponsebody.md + - docs/models/listfilestoragefolderresponse.md + - docs/models/unifiedfilestoragefolderoutput.md + - docs/models/createfilestoragefolderrequest.md + - docs/models/unifiedfilestoragefolderinput.md + - docs/models/retrievefilestoragefolderrequest.md + - docs/models/listfilestoragegrouprequest.md + - docs/models/listfilestoragegroupresponsebody.md + - docs/models/listfilestoragegroupresponse.md + - docs/models/usersmodel.md + - docs/models/unifiedfilestoragegroupoutput.md + - docs/models/unifiedfilestorageuseroutput.md + - docs/models/retrievefilestoragegrouprequest.md + - docs/models/listfilestorageusersrequest.md + - docs/models/listfilestorageusersresponsebody.md + - docs/models/listfilestorageusersresponse.md + - docs/models/retrievefilestorageuserrequest.md + - docs/models/logindto.md + - docs/models/tokentype.md + - docs/models/connection.md + - docs/models/webhookresponse.md + - docs/models/webhookdto.md + - docs/models/deleterequest.md + - docs/models/updatestatusrequest.md + - docs/models/signatureverificationdto.md + - docs/models/listticketingticketrequest.md + - docs/models/listticketingticketresponsebody.md + - docs/models/listticketingticketresponse.md + - docs/models/collectionsmodel.md + - docs/models/tagsmodel.md + - docs/models/unifiedticketingticketoutputattachments.md + - docs/models/comment.md + - docs/models/attachmentsmodel.md + - docs/models/unifiedticketingticketoutput.md + - docs/models/unifiedticketingattachmentinput.md + - docs/models/unifiedticketingattachmentoutput.md + - docs/models/unifiedticketingtagoutput.md + - docs/models/unifiedticketingcollectionoutput.md + - docs/models/createticketingticketrequest.md + - docs/models/unifiedticketingticketinputcollections.md + - docs/models/unifiedticketingticketinputtags.md + - docs/models/unifiedticketingticketinputcommentattachments.md + - docs/models/unifiedticketingticketinputcomment.md + - docs/models/unifiedticketingticketinputattachments.md + - docs/models/unifiedticketingticketinput.md + - docs/models/retrieveticketingticketrequest.md + - docs/models/listticketingusersrequest.md + - docs/models/listticketingusersresponsebody.md + - docs/models/listticketingusersresponse.md + - docs/models/unifiedticketinguseroutput.md + - docs/models/retrieveticketinguserrequest.md + - docs/models/listticketingaccountrequest.md + - docs/models/listticketingaccountresponsebody.md + - docs/models/listticketingaccountresponse.md + - docs/models/unifiedticketingaccountoutput.md + - docs/models/retrieveticketingaccountrequest.md + - docs/models/listticketingcontactsrequest.md + - docs/models/listticketingcontactsresponsebody.md + - docs/models/listticketingcontactsresponse.md + - docs/models/unifiedticketingcontactoutput.md + - docs/models/retrieveticketingcontactrequest.md + - docs/models/retrieveticketingcontactresponsebody.md + - docs/models/listticketingcollectionsrequest.md + - docs/models/listticketingcollectionsresponsebody.md + - docs/models/listticketingcollectionsresponse.md + - docs/models/retrievecollectionrequest.md + - docs/models/listticketingcommentsrequest.md + - docs/models/listticketingcommentsresponsebody.md + - docs/models/listticketingcommentsresponse.md + - docs/models/unifiedticketingcommentoutputattachments.md + - docs/models/unifiedticketingcommentoutput.md + - docs/models/createticketingcommentrequest.md + - docs/models/unifiedticketingcommentinputattachments.md + - docs/models/unifiedticketingcommentinput.md + - docs/models/retrieveticketingcommentrequest.md + - docs/models/retrieveticketingcommentresponsebody.md + - docs/models/listticketingtagsrequest.md + - docs/models/listticketingtagsresponsebody.md + - docs/models/listticketingtagsresponse.md + - docs/models/retrieveticketingtagrequest.md + - docs/models/listticketingteamsrequest.md + - docs/models/listticketingteamsresponsebody.md + - docs/models/listticketingteamsresponse.md + - docs/models/unifiedticketingteamoutput.md + - docs/models/retrieveticketingteamrequest.md + - docs/models/listticketingattachmentsrequest.md + - docs/models/listticketingattachmentsresponsebody.md + - docs/models/listticketingattachmentsresponse.md + - docs/models/createticketingattachmentrequest.md + - docs/models/retrieveticketingattachmentrequest.md + - docs/models/pathparamvertical.md + - docs/models/statusrequest.md + - docs/models/vertical.md + - docs/models/status.md + - docs/models/resyncstatusdto.md + - docs/models/updatepullfrequencyresponsebody.md + - docs/models/updatepullfrequencydto.md + - docs/models/listcrmcompanyrequest.md + - docs/models/listcrmcompanyresponsebody.md + - docs/models/listcrmcompanyresponse.md + - docs/models/createdat.md + - docs/models/modifiedat.md + - docs/models/unifiedcrmcompanyoutput.md + - docs/models/phone.md + - docs/models/address.md + - docs/models/ownertype.md + - docs/models/email.md + - docs/models/createcrmcompanyrequest.md + - docs/models/unifiedcrmcompanyinput.md + - docs/models/retrievecrmcompanyrequest.md + - docs/models/listcrmcontactsrequest.md + - docs/models/listcrmcontactsresponsebody.md + - docs/models/listcrmcontactsresponse.md + - docs/models/unifiedcrmcontactoutput.md + - docs/models/createcrmcontactrequest.md + - docs/models/unifiedcrmcontactinput.md + - docs/models/retrievecrmcontactrequest.md + - docs/models/listcrmdealsrequest.md + - docs/models/listcrmdealsresponsebody.md + - docs/models/listcrmdealsresponse.md + - docs/models/unifiedcrmdealoutput.md + - docs/models/createcrmdealrequest.md + - docs/models/unifiedcrmdealinput.md + - docs/models/retrievecrmdealrequest.md + - docs/models/listcrmengagementsrequest.md + - docs/models/listcrmengagementsresponsebody.md + - docs/models/listcrmengagementsresponse.md + - docs/models/unifiedcrmengagementoutput.md + - docs/models/createcrmengagementrequest.md + - docs/models/unifiedcrmengagementinput.md + - docs/models/retrievecrmengagementrequest.md + - docs/models/listcrmnoterequest.md + - docs/models/listcrmnoteresponsebody.md + - docs/models/listcrmnoteresponse.md + - docs/models/unifiedcrmnoteoutput.md + - docs/models/createcrmnoterequest.md + - docs/models/unifiedcrmnoteinput.md + - docs/models/retrievecrmnoterequest.md + - docs/models/listcrmstagesrequest.md + - docs/models/listcrmstagesresponsebody.md + - docs/models/listcrmstagesresponse.md + - docs/models/unifiedcrmstageoutputcreatedat.md + - docs/models/unifiedcrmstageoutputmodifiedat.md + - docs/models/unifiedcrmstageoutput.md + - docs/models/retrievecrmstagerequest.md + - docs/models/listcrmtaskrequest.md + - docs/models/listcrmtaskresponsebody.md + - docs/models/listcrmtaskresponse.md + - docs/models/unifiedcrmtaskoutput.md + - docs/models/createcrmtaskrequest.md + - docs/models/unifiedcrmtaskinput.md + - docs/models/retrievecrmtaskrequest.md + - docs/models/listcrmusersrequest.md + - docs/models/listcrmusersresponsebody.md + - docs/models/listcrmusersresponse.md + - docs/models/unifiedcrmuseroutput.md + - docs/models/retrievecrmuserrequest.md + - docs/models/linkeduserresponse.md + - docs/models/createlinkeduserdto.md + - docs/models/createbatchlinkeduserdto.md + - docs/models/retrievelinkeduserrequest.md + - docs/models/remoteidrequest.md + - docs/models/projectresponse.md + - docs/models/createprojectdto.md + - docs/models/customfieldresponsedatatype.md + - docs/models/customfieldresponse.md + - docs/models/objecttypeowner.md + - docs/models/datatype.md + - docs/models/definetargetfielddto.md + - docs/models/customfieldcreatedtoobjecttypeowner.md + - docs/models/customfieldcreatedtodatatype.md + - docs/models/customfieldcreatedto.md + - docs/models/mapfieldtoproviderdto.md + - docs/models/type.md + - docs/models/eventresponsestatus.md + - docs/models/method.md + - docs/models/eventresponse.md + - docs/models/getpanoracoreeventsrequest.md + - docs/models/requestrequest.md + - docs/models/requestpassthroughresponsebody.md + - docs/models/requestresponsebody.md + - docs/models/requestresponse.md + - docs/models/passthroughrequestdtomethod.md + - docs/models/data.md + - docs/models/requestformat.md + - docs/models/headers.md + - docs/models/passthroughrequestdto.md + - docs/models/getretriedrequestresponserequest.md + - docs/models/listhrisbankinforequest.md + - docs/models/listhrisbankinforesponsebody.md + - docs/models/listhrisbankinforesponse.md + - docs/models/fieldmappingsmodel.md + - docs/models/remotedata.md + - docs/models/unifiedhrisbankinfooutput.md + - docs/models/retrievehrisbankinforequest.md + - docs/models/listhrisbenefitsrequest.md + - docs/models/listhrisbenefitsresponsebody.md + - docs/models/listhrisbenefitsresponse.md + - docs/models/unifiedhrisbenefitoutputfieldmappings.md + - docs/models/unifiedhrisbenefitoutputremotedata.md + - docs/models/unifiedhrisbenefitoutput.md + - docs/models/retrievehrisbenefitrequest.md + - docs/models/listhriscompaniesrequest.md + - docs/models/listhriscompaniesresponsebody.md + - docs/models/listhriscompaniesresponse.md + - docs/models/unifiedhriscompanyoutputfieldmappings.md + - docs/models/unifiedhriscompanyoutputremotedata.md + - docs/models/unifiedhriscompanyoutput.md + - docs/models/retrievehriscompanyrequest.md + - docs/models/listhrisdependentsrequest.md + - docs/models/listhrisdependentsresponsebody.md + - docs/models/listhrisdependentsresponse.md + - docs/models/unifiedhrisdependentoutputfieldmappings.md + - docs/models/unifiedhrisdependentoutputremotedata.md + - docs/models/unifiedhrisdependentoutput.md + - docs/models/retrievehrisdependentrequest.md + - docs/models/listhrisemployeepayrollrunrequest.md + - docs/models/listhrisemployeepayrollrunresponsebody.md + - docs/models/listhrisemployeepayrollrunresponse.md + - docs/models/unifiedhrisemployeepayrollrunoutputfieldmappings.md + - docs/models/unifiedhrisemployeepayrollrunoutputremotedata.md + - docs/models/unifiedhrisemployeepayrollrunoutput.md + - docs/models/taxitem.md + - docs/models/earningitem.md + - docs/models/deductionitem.md + - docs/models/retrievehrisemployeepayrollrunrequest.md + - docs/models/listhrisemployeesrequest.md + - docs/models/listhrisemployeesresponsebody.md + - docs/models/listhrisemployeesresponse.md + - docs/models/unifiedhrisemployeeoutputfieldmappings.md + - docs/models/unifiedhrisemployeeoutputremotedata.md + - docs/models/unifiedhrisemployeeoutput.md + - docs/models/createhrisemployeerequest.md + - docs/models/unifiedhrisemployeeinputfieldmappings.md + - docs/models/unifiedhrisemployeeinput.md + - docs/models/retrievehrisemployeerequest.md + - docs/models/listhrisemployerbenefitsrequest.md + - docs/models/listhrisemployerbenefitsresponsebody.md + - docs/models/listhrisemployerbenefitsresponse.md + - docs/models/unifiedhrisemployerbenefitoutputfieldmappings.md + - docs/models/unifiedhrisemployerbenefitoutputremotedata.md + - docs/models/unifiedhrisemployerbenefitoutput.md + - docs/models/retrievehrisemployerbenefitrequest.md + - docs/models/listhrisemploymentsrequest.md + - docs/models/listhrisemploymentsresponsebody.md + - docs/models/listhrisemploymentsresponse.md + - docs/models/unifiedhrisemploymentoutputfieldmappings.md + - docs/models/unifiedhrisemploymentoutputremotedata.md + - docs/models/unifiedhrisemploymentoutput.md + - docs/models/retrievehrisemploymentrequest.md + - docs/models/listhrisgroupsrequest.md + - docs/models/listhrisgroupsresponsebody.md + - docs/models/listhrisgroupsresponse.md + - docs/models/unifiedhrisgroupoutputfieldmappings.md + - docs/models/unifiedhrisgroupoutputremotedata.md + - docs/models/unifiedhrisgroupoutput.md + - docs/models/retrievehrisgrouprequest.md + - docs/models/listhrislocationsrequest.md + - docs/models/listhrislocationsresponsebody.md + - docs/models/listhrislocationsresponse.md + - docs/models/unifiedhrislocationoutputfieldmappings.md + - docs/models/unifiedhrislocationoutputremotedata.md + - docs/models/unifiedhrislocationoutput.md + - docs/models/retrievehrislocationrequest.md + - docs/models/listhrispaygroupsrequest.md + - docs/models/listhrispaygroupsresponsebody.md + - docs/models/listhrispaygroupsresponse.md + - docs/models/unifiedhrispaygroupoutputfieldmappings.md + - docs/models/unifiedhrispaygroupoutputremotedata.md + - docs/models/unifiedhrispaygroupoutput.md + - docs/models/retrievehrispaygrouprequest.md + - docs/models/listhrispayrollrunsrequest.md + - docs/models/listhrispayrollrunsresponsebody.md + - docs/models/listhrispayrollrunsresponse.md + - docs/models/unifiedhrispayrollrunoutputfieldmappings.md + - docs/models/unifiedhrispayrollrunoutputremotedata.md + - docs/models/unifiedhrispayrollrunoutput.md + - docs/models/retrievehrispayrollrunrequest.md + - docs/models/listhristimeoffsrequest.md + - docs/models/listhristimeoffsresponsebody.md + - docs/models/listhristimeoffsresponse.md + - docs/models/unifiedhristimeoffoutputfieldmappings.md + - docs/models/unifiedhristimeoffoutputremotedata.md + - docs/models/unifiedhristimeoffoutput.md + - docs/models/createhristimeoffrequest.md + - docs/models/unifiedhristimeoffinputfieldmappings.md + - docs/models/unifiedhristimeoffinput.md + - docs/models/retrievehristimeoffrequest.md + - docs/models/listhristimeoffbalancesrequest.md + - docs/models/listhristimeoffbalancesresponsebody.md + - docs/models/listhristimeoffbalancesresponse.md + - docs/models/unifiedhristimeoffbalanceoutputfieldmappings.md + - docs/models/unifiedhristimeoffbalanceoutputremotedata.md + - docs/models/unifiedhristimeoffbalanceoutput.md + - docs/models/retrievehristimeoffbalancerequest.md + - docs/models/listhristimesheetentriesrequest.md + - docs/models/listhristimesheetentriesresponsebody.md + - docs/models/listhristimesheetentriesresponse.md + - docs/models/unifiedhristimesheetentryoutputfieldmappings.md + - docs/models/unifiedhristimesheetentryoutputremotedata.md + - docs/models/unifiedhristimesheetentryoutput.md + - docs/models/createhristimesheetentryrequest.md + - docs/models/unifiedhristimesheetentryinputfieldmappings.md + - docs/models/unifiedhristimesheetentryinput.md + - docs/models/retrievehristimesheetentryrequest.md + - docs/models/listmarketingautomationactionrequest.md + - docs/models/listmarketingautomationactionresponsebody.md + - docs/models/listmarketingautomationactionresponse.md + - docs/models/unifiedmarketingautomationactionoutput.md + - docs/models/createmarketingautomationactionrequest.md + - docs/models/unifiedmarketingautomationactioninput.md + - docs/models/retrievemarketingautomationactionrequest.md + - docs/models/listmarketingautomationautomationsrequest.md + - docs/models/listmarketingautomationautomationsresponsebody.md + - docs/models/listmarketingautomationautomationsresponse.md + - docs/models/unifiedmarketingautomationautomationoutput.md + - docs/models/createmarketingautomationautomationrequest.md + - docs/models/unifiedmarketingautomationautomationinput.md + - docs/models/retrievemarketingautomationautomationrequest.md + - docs/models/listmarketingautomationcampaignsrequest.md + - docs/models/listmarketingautomationcampaignsresponsebody.md + - docs/models/listmarketingautomationcampaignsresponse.md + - docs/models/unifiedmarketingautomationcampaignoutput.md + - docs/models/createmarketingautomationcampaignrequest.md + - docs/models/unifiedmarketingautomationcampaigninput.md + - docs/models/retrievemarketingautomationcampaignrequest.md + - docs/models/listmarketingautomationcontactsrequest.md + - docs/models/listmarketingautomationcontactsresponsebody.md + - docs/models/listmarketingautomationcontactsresponse.md + - docs/models/unifiedmarketingautomationcontactoutput.md + - docs/models/createmarketingautomationcontactrequest.md + - docs/models/unifiedmarketingautomationcontactinput.md + - docs/models/retrievemarketingautomationcontactrequest.md + - docs/models/listmarketingautomationemailsrequest.md + - docs/models/listmarketingautomationemailsresponsebody.md + - docs/models/listmarketingautomationemailsresponse.md + - docs/models/unifiedmarketingautomationemailoutput.md + - docs/models/retrievemarketingautomationemailrequest.md + - docs/models/listmarketingautomationeventsrequest.md + - docs/models/listmarketingautomationeventsresponsebody.md + - docs/models/listmarketingautomationeventsresponse.md + - docs/models/unifiedmarketingautomationeventoutput.md + - docs/models/retrievemarketingautomationeventrequest.md + - docs/models/listmarketingautomationlistsrequest.md + - docs/models/listmarketingautomationlistsresponsebody.md + - docs/models/listmarketingautomationlistsresponse.md + - docs/models/unifiedmarketingautomationlistoutput.md + - docs/models/createmarketingautomationlistrequest.md + - docs/models/unifiedmarketingautomationlistinput.md + - docs/models/retrievemarketingautomationlistrequest.md + - docs/models/listmarketingautomationmessagesrequest.md + - docs/models/listmarketingautomationmessagesresponsebody.md + - docs/models/listmarketingautomationmessagesresponse.md + - docs/models/unifiedmarketingautomationmessageoutput.md + - docs/models/retrievemarketingautomationmessagerequest.md + - docs/models/listmarketingautomationtemplatesrequest.md + - docs/models/listmarketingautomationtemplatesresponsebody.md + - docs/models/listmarketingautomationtemplatesresponse.md + - docs/models/unifiedmarketingautomationtemplateoutput.md + - docs/models/createmarketingautomationtemplaterequest.md + - docs/models/unifiedmarketingautomationtemplateinput.md + - docs/models/retrievemarketingautomationtemplaterequest.md + - docs/models/listmarketingautomationusersrequest.md + - docs/models/listmarketingautomationusersresponsebody.md + - docs/models/listmarketingautomationusersresponse.md + - docs/models/unifiedmarketingautomationuseroutput.md + - docs/models/retrievemarketingautomationuserrequest.md + - docs/models/listatsactivityrequest.md + - docs/models/listatsactivityresponsebody.md + - docs/models/listatsactivityresponse.md + - docs/models/unifiedatsactivityoutput.md + - docs/models/createatsactivityrequest.md + - docs/models/unifiedatsactivityinput.md + - docs/models/retrieveatsactivityrequest.md + - docs/models/listatsapplicationrequest.md + - docs/models/listatsapplicationresponsebody.md + - docs/models/listatsapplicationresponse.md + - docs/models/unifiedatsapplicationoutput.md + - docs/models/createatsapplicationrequest.md + - docs/models/unifiedatsapplicationinput.md + - docs/models/retrieveatsapplicationrequest.md + - docs/models/listatsattachmentrequest.md + - docs/models/listatsattachmentresponsebody.md + - docs/models/listatsattachmentresponse.md + - docs/models/unifiedatsattachmentoutput.md + - docs/models/createatsattachmentrequest.md + - docs/models/unifiedatsattachmentinput.md + - docs/models/retrieveatsattachmentrequest.md + - docs/models/listatscandidaterequest.md + - docs/models/listatscandidateresponsebody.md + - docs/models/listatscandidateresponse.md + - docs/models/unifiedatscandidateoutputattachments.md + - docs/models/applicationsmodel.md + - docs/models/unifiedatscandidateoutputtags.md + - docs/models/unifiedatscandidateoutput.md + - docs/models/url.md + - docs/models/unifiedatstagoutput.md + - docs/models/createatscandidaterequest.md + - docs/models/unifiedatscandidateinputattachments.md + - docs/models/unifiedatscandidateinputapplications.md + - docs/models/unifiedatscandidateinputtags.md + - docs/models/unifiedatscandidateinput.md + - docs/models/retrieveatscandidaterequest.md + - docs/models/listatsdepartmentsrequest.md + - docs/models/listatsdepartmentsresponsebody.md + - docs/models/listatsdepartmentsresponse.md + - docs/models/unifiedatsdepartmentoutput.md + - docs/models/retrieveatsdepartmentrequest.md + - docs/models/listatsinterviewrequest.md + - docs/models/listatsinterviewresponsebody.md + - docs/models/listatsinterviewresponse.md + - docs/models/unifiedatsinterviewoutput.md + - docs/models/createatsinterviewrequest.md + - docs/models/unifiedatsinterviewinput.md + - docs/models/retrieveatsinterviewrequest.md + - docs/models/listatsjobinterviewstagerequest.md + - docs/models/listatsjobinterviewstageresponsebody.md + - docs/models/listatsjobinterviewstageresponse.md + - docs/models/unifiedatsjobinterviewstageoutput.md + - docs/models/retrieveatsjobinterviewstagerequest.md + - docs/models/listatsjobrequest.md + - docs/models/listatsjobresponsebody.md + - docs/models/listatsjobresponse.md + - docs/models/unifiedatsjoboutput.md + - docs/models/retrieveatsjobrequest.md + - docs/models/listatsofferrequest.md + - docs/models/listatsofferresponsebody.md + - docs/models/listatsofferresponse.md + - docs/models/unifiedatsofferoutputcreatedat.md + - docs/models/unifiedatsofferoutputmodifiedat.md + - docs/models/unifiedatsofferoutput.md + - docs/models/retrieveatsofferrequest.md + - docs/models/listatsofficerequest.md + - docs/models/listatsofficeresponsebody.md + - docs/models/listatsofficeresponse.md + - docs/models/unifiedatsofficeoutput.md + - docs/models/retrieveatsofficerequest.md + - docs/models/listatsrejectreasonsrequest.md + - docs/models/listatsrejectreasonsresponsebody.md + - docs/models/listatsrejectreasonsresponse.md + - docs/models/unifiedatsrejectreasonoutput.md + - docs/models/retrieveatsrejectreasonrequest.md + - docs/models/listatsscorecardrequest.md + - docs/models/listatsscorecardresponsebody.md + - docs/models/listatsscorecardresponse.md + - docs/models/unifiedatsscorecardoutput.md + - docs/models/retrieveatsscorecardrequest.md + - docs/models/listatstagsrequest.md + - docs/models/listatstagsresponsebody.md + - docs/models/listatstagsresponse.md + - docs/models/retrieveatstagrequest.md + - docs/models/listatsusersrequest.md + - docs/models/listatsusersresponsebody.md + - docs/models/listatsusersresponse.md + - docs/models/unifiedatsuseroutput.md + - docs/models/retrieveatsuserrequest.md + - docs/models/listatseeocsrequest.md + - docs/models/listatseeocsresponsebody.md + - docs/models/listatseeocsresponse.md + - docs/models/unifiedatseeocsoutput.md + - docs/models/retrieveatseeocsrequest.md + - docs/models/listaccountingaccountsrequest.md + - docs/models/listaccountingaccountsresponsebody.md + - docs/models/listaccountingaccountsresponse.md + - docs/models/unifiedaccountingaccountoutputfieldmappings.md + - docs/models/unifiedaccountingaccountoutputremotedata.md + - docs/models/unifiedaccountingaccountoutput.md + - docs/models/createaccountingaccountrequest.md + - docs/models/unifiedaccountingaccountinputfieldmappings.md + - docs/models/unifiedaccountingaccountinput.md + - docs/models/retrieveaccountingaccountrequest.md + - docs/models/listaccountingaddressrequest.md + - docs/models/listaccountingaddressresponsebody.md + - docs/models/listaccountingaddressresponse.md + - docs/models/unifiedaccountingaddressoutputfieldmappings.md + - docs/models/unifiedaccountingaddressoutputremotedata.md + - docs/models/unifiedaccountingaddressoutput.md + - docs/models/retrieveaccountingaddressrequest.md + - docs/models/listaccountingattachmentsrequest.md + - docs/models/listaccountingattachmentsresponsebody.md + - docs/models/listaccountingattachmentsresponse.md + - docs/models/unifiedaccountingattachmentoutputfieldmappings.md + - docs/models/unifiedaccountingattachmentoutputremotedata.md + - docs/models/unifiedaccountingattachmentoutput.md + - docs/models/createaccountingattachmentrequest.md + - docs/models/unifiedaccountingattachmentinputfieldmappings.md + - docs/models/unifiedaccountingattachmentinput.md + - docs/models/retrieveaccountingattachmentrequest.md + - docs/models/listaccountingbalancesheetsrequest.md + - docs/models/listaccountingbalancesheetsresponsebody.md + - docs/models/listaccountingbalancesheetsresponse.md + - docs/models/unifiedaccountingbalancesheetoutputfieldmappings.md + - docs/models/unifiedaccountingbalancesheetoutputremotedata.md + - docs/models/unifiedaccountingbalancesheetoutput.md + - docs/models/lineitem.md + - docs/models/retrieveaccountingbalancesheetrequest.md + - docs/models/listaccountingcashflowstatementrequest.md + - docs/models/listaccountingcashflowstatementresponsebody.md + - docs/models/listaccountingcashflowstatementresponse.md + - docs/models/unifiedaccountingcashflowstatementoutputfieldmappings.md + - docs/models/unifiedaccountingcashflowstatementoutputremotedata.md + - docs/models/unifiedaccountingcashflowstatementoutput.md + - docs/models/retrieveaccountingcashflowstatementrequest.md + - docs/models/listaccountingcompanyinfosrequest.md + - docs/models/listaccountingcompanyinfosresponsebody.md + - docs/models/listaccountingcompanyinfosresponse.md + - docs/models/unifiedaccountingcompanyinfooutputfieldmappings.md + - docs/models/unifiedaccountingcompanyinfooutputremotedata.md + - docs/models/unifiedaccountingcompanyinfooutput.md + - docs/models/retrieveaccountingcompanyinforequest.md + - docs/models/listaccountingcontactsrequest.md + - docs/models/listaccountingcontactsresponsebody.md + - docs/models/listaccountingcontactsresponse.md + - docs/models/unifiedaccountingcontactoutputfieldmappings.md + - docs/models/unifiedaccountingcontactoutputremotedata.md + - docs/models/unifiedaccountingcontactoutput.md + - docs/models/createaccountingcontactrequest.md + - docs/models/unifiedaccountingcontactinputfieldmappings.md + - docs/models/unifiedaccountingcontactinput.md + - docs/models/retrieveaccountingcontactrequest.md + - docs/models/listaccountingcreditnoterequest.md + - docs/models/listaccountingcreditnoteresponsebody.md + - docs/models/listaccountingcreditnoteresponse.md + - docs/models/unifiedaccountingcreditnoteoutputfieldmappings.md + - docs/models/unifiedaccountingcreditnoteoutputremotedata.md + - docs/models/unifiedaccountingcreditnoteoutput.md + - docs/models/retrieveaccountingcreditnoterequest.md + - docs/models/listaccountingexpenserequest.md + - docs/models/listaccountingexpenseresponsebody.md + - docs/models/listaccountingexpenseresponse.md + - docs/models/unifiedaccountingexpenseoutputfieldmappings.md + - docs/models/unifiedaccountingexpenseoutputremotedata.md + - docs/models/unifiedaccountingexpenseoutput.md + - docs/models/createaccountingexpenserequest.md + - docs/models/unifiedaccountingexpenseinputfieldmappings.md + - docs/models/unifiedaccountingexpenseinput.md + - docs/models/retrieveaccountingexpenserequest.md + - docs/models/listaccountingincomestatementrequest.md + - docs/models/listaccountingincomestatementresponsebody.md + - docs/models/listaccountingincomestatementresponse.md + - docs/models/unifiedaccountingincomestatementoutputfieldmappings.md + - docs/models/unifiedaccountingincomestatementoutputremotedata.md + - docs/models/unifiedaccountingincomestatementoutput.md + - docs/models/retrieveaccountingincomestatementrequest.md + - docs/models/listaccountinginvoicerequest.md + - docs/models/listaccountinginvoiceresponsebody.md + - docs/models/listaccountinginvoiceresponse.md + - docs/models/unifiedaccountinginvoiceoutputfieldmappings.md + - docs/models/unifiedaccountinginvoiceoutputremotedata.md + - docs/models/unifiedaccountinginvoiceoutput.md + - docs/models/createaccountinginvoicerequest.md + - docs/models/unifiedaccountinginvoiceinputfieldmappings.md + - docs/models/unifiedaccountinginvoiceinput.md + - docs/models/retrieveaccountinginvoicerequest.md + - docs/models/listaccountingitemrequest.md + - docs/models/listaccountingitemresponsebody.md + - docs/models/listaccountingitemresponse.md + - docs/models/unifiedaccountingitemoutputfieldmappings.md + - docs/models/unifiedaccountingitemoutputremotedata.md + - docs/models/unifiedaccountingitemoutput.md + - docs/models/retrieveaccountingitemrequest.md + - docs/models/listaccountingjournalentryrequest.md + - docs/models/listaccountingjournalentryresponsebody.md + - docs/models/listaccountingjournalentryresponse.md + - docs/models/unifiedaccountingjournalentryoutputfieldmappings.md + - docs/models/unifiedaccountingjournalentryoutputremotedata.md + - docs/models/unifiedaccountingjournalentryoutput.md + - docs/models/createaccountingjournalentryrequest.md + - docs/models/unifiedaccountingjournalentryinputfieldmappings.md + - docs/models/unifiedaccountingjournalentryinput.md + - docs/models/retrieveaccountingjournalentryrequest.md + - docs/models/listaccountingpaymentrequest.md + - docs/models/listaccountingpaymentresponsebody.md + - docs/models/listaccountingpaymentresponse.md + - docs/models/unifiedaccountingpaymentoutputfieldmappings.md + - docs/models/unifiedaccountingpaymentoutputremotedata.md + - docs/models/unifiedaccountingpaymentoutput.md + - docs/models/createaccountingpaymentrequest.md + - docs/models/unifiedaccountingpaymentinputfieldmappings.md + - docs/models/unifiedaccountingpaymentinput.md + - docs/models/retrieveaccountingpaymentrequest.md + - docs/models/listaccountingphonenumberrequest.md + - docs/models/listaccountingphonenumberresponsebody.md + - docs/models/listaccountingphonenumberresponse.md + - docs/models/unifiedaccountingphonenumberoutputfieldmappings.md + - docs/models/unifiedaccountingphonenumberoutputremotedata.md + - docs/models/unifiedaccountingphonenumberoutput.md + - docs/models/retrieveaccountingphonenumberrequest.md + - docs/models/listaccountingpurchaseorderrequest.md + - docs/models/listaccountingpurchaseorderresponsebody.md + - docs/models/listaccountingpurchaseorderresponse.md + - docs/models/unifiedaccountingpurchaseorderoutputfieldmappings.md + - docs/models/unifiedaccountingpurchaseorderoutputremotedata.md + - docs/models/unifiedaccountingpurchaseorderoutput.md + - docs/models/createaccountingpurchaseorderrequest.md + - docs/models/unifiedaccountingpurchaseorderinputfieldmappings.md + - docs/models/unifiedaccountingpurchaseorderinput.md + - docs/models/retrieveaccountingpurchaseorderrequest.md + - docs/models/listaccountingtaxraterequest.md + - docs/models/listaccountingtaxrateresponsebody.md + - docs/models/listaccountingtaxrateresponse.md + - docs/models/unifiedaccountingtaxrateoutputfieldmappings.md + - docs/models/unifiedaccountingtaxrateoutputremotedata.md + - docs/models/unifiedaccountingtaxrateoutput.md + - docs/models/retrieveaccountingtaxraterequest.md + - docs/models/listaccountingtrackingcategorysrequest.md + - docs/models/listaccountingtrackingcategorysresponsebody.md + - docs/models/listaccountingtrackingcategorysresponse.md + - docs/models/unifiedaccountingtrackingcategoryoutputfieldmappings.md + - docs/models/unifiedaccountingtrackingcategoryoutputremotedata.md + - docs/models/unifiedaccountingtrackingcategoryoutput.md + - docs/models/retrieveaccountingtrackingcategoryrequest.md + - docs/models/listaccountingtransactionrequest.md + - docs/models/listaccountingtransactionresponsebody.md + - docs/models/listaccountingtransactionresponse.md + - docs/models/unifiedaccountingtransactionoutputfieldmappings.md + - docs/models/unifiedaccountingtransactionoutputremotedata.md + - docs/models/unifiedaccountingtransactionoutput.md + - docs/models/retrieveaccountingtransactionrequest.md + - docs/models/listaccountingvendorcreditrequest.md + - docs/models/listaccountingvendorcreditresponsebody.md + - docs/models/listaccountingvendorcreditresponse.md + - docs/models/unifiedaccountingvendorcreditoutputfieldmappings.md + - docs/models/unifiedaccountingvendorcreditoutputremotedata.md + - docs/models/unifiedaccountingvendorcreditoutput.md + - docs/models/retrieveaccountingvendorcreditrequest.md + - docs/models/listecommerceproductsrequest.md + - docs/models/listecommerceproductsresponsebody.md + - docs/models/listecommerceproductsresponse.md + - docs/models/unifiedecommerceproductoutputfieldmappings.md + - docs/models/unifiedecommerceproductoutputremotedata.md + - docs/models/unifiedecommerceproductoutput.md + - docs/models/variant.md + - docs/models/createecommerceproductrequest.md + - docs/models/unifiedecommerceproductinputfieldmappings.md + - docs/models/unifiedecommerceproductinput.md + - docs/models/retrieveecommerceproductrequest.md + - docs/models/listecommerceordersrequest.md + - docs/models/listecommerceordersresponsebody.md + - docs/models/listecommerceordersresponse.md + - docs/models/unifiedecommerceorderoutputfieldmappings.md + - docs/models/unifiedecommerceorderoutputremotedata.md + - docs/models/unifiedecommerceorderoutput.md + - docs/models/createecommerceorderrequest.md + - docs/models/unifiedecommerceorderinputfieldmappings.md + - docs/models/unifiedecommerceorderinput.md + - docs/models/retrieveecommerceorderrequest.md + - docs/models/listecommercecustomersrequest.md + - docs/models/listecommercecustomersresponsebody.md + - docs/models/listecommercecustomersresponse.md + - docs/models/unifiedecommercecustomeroutputfieldmappings.md + - docs/models/unifiedecommercecustomeroutputremotedata.md + - docs/models/unifiedecommercecustomeroutput.md + - docs/models/retrieveecommercecustomerrequest.md + - docs/models/listecommercefulfillmentsrequest.md + - docs/models/listecommercefulfillmentsresponsebody.md + - docs/models/listecommercefulfillmentsresponse.md + - docs/models/itemsmodel.md + - docs/models/unifiedecommercefulfillmentoutputfieldmappings.md + - docs/models/unifiedecommercefulfillmentoutputremotedata.md + - docs/models/unifiedecommercefulfillmentoutput.md + - docs/models/retrieveecommercefulfillmentrequest.md + - docs/models/security.md + - docs/models/utils/retryconfig.md + - docs/sdks/panora/README.md + - docs/sdks/rag/README.md + - docs/sdks/query/README.md + - docs/sdks/filestorage/README.md + - docs/sdks/files/README.md + - docs/sdks/folders/README.md + - docs/sdks/panoragroups/README.md + - docs/sdks/panorafilestorageusers/README.md + - docs/sdks/auth/README.md + - docs/sdks/login/README.md + - docs/sdks/connections/README.md + - docs/sdks/webhooks/README.md + - docs/sdks/ticketing/README.md + - docs/sdks/tickets/README.md + - docs/sdks/users/README.md + - docs/sdks/accounts/README.md + - docs/sdks/contacts/README.md + - docs/sdks/collections/README.md + - docs/sdks/comments/README.md + - docs/sdks/tags/README.md + - docs/sdks/teams/README.md + - docs/sdks/panoraticketingattachments/README.md + - docs/sdks/sync/README.md + - docs/sdks/crm/README.md + - docs/sdks/companies/README.md + - docs/sdks/panoracontacts/README.md + - docs/sdks/deals/README.md + - docs/sdks/engagements/README.md + - docs/sdks/notes/README.md + - docs/sdks/stages/README.md + - docs/sdks/tasks/README.md + - docs/sdks/panorausers/README.md + - docs/sdks/linkedusers/README.md + - docs/sdks/projects/README.md + - docs/sdks/fieldmappings/README.md + - docs/sdks/events/README.md + - docs/sdks/passthrough/README.md + - docs/sdks/retryid/README.md + - docs/sdks/hris/README.md + - docs/sdks/bankinfos/README.md + - docs/sdks/benefits/README.md + - docs/sdks/panoracompanies/README.md + - docs/sdks/dependents/README.md + - docs/sdks/employeepayrollruns/README.md + - docs/sdks/employees/README.md + - docs/sdks/employerbenefits/README.md + - docs/sdks/employments/README.md + - docs/sdks/groups/README.md + - docs/sdks/locations/README.md + - docs/sdks/paygroups/README.md + - docs/sdks/payrollruns/README.md + - docs/sdks/timeoffs/README.md + - docs/sdks/timeoffbalances/README.md + - docs/sdks/timesheetentries/README.md + - docs/sdks/marketingautomation/README.md + - docs/sdks/actions/README.md + - docs/sdks/automations/README.md + - docs/sdks/campaigns/README.md + - docs/sdks/panoramarketingautomationcontacts/README.md + - docs/sdks/emails/README.md + - docs/sdks/panoraevents/README.md + - docs/sdks/lists/README.md + - docs/sdks/messages/README.md + - docs/sdks/templates/README.md + - docs/sdks/panoramarketingautomationusers/README.md + - docs/sdks/ats/README.md + - docs/sdks/activities/README.md + - docs/sdks/applications/README.md + - docs/sdks/attachments/README.md + - docs/sdks/candidates/README.md + - docs/sdks/departments/README.md + - docs/sdks/interviews/README.md + - docs/sdks/jobinterviewstages/README.md + - docs/sdks/jobs/README.md + - docs/sdks/offers/README.md + - docs/sdks/offices/README.md + - docs/sdks/rejectreasons/README.md + - docs/sdks/scorecards/README.md + - docs/sdks/panoratags/README.md + - docs/sdks/panoraatsusers/README.md + - docs/sdks/eeocs/README.md + - docs/sdks/accounting/README.md + - docs/sdks/panoraaccounts/README.md + - docs/sdks/addresses/README.md + - docs/sdks/panoraattachments/README.md + - docs/sdks/balancesheets/README.md + - docs/sdks/cashflowstatements/README.md + - docs/sdks/companyinfos/README.md + - docs/sdks/panoraaccountingcontacts/README.md + - docs/sdks/creditnotes/README.md + - docs/sdks/expenses/README.md + - docs/sdks/incomestatements/README.md + - docs/sdks/invoices/README.md + - docs/sdks/items/README.md + - docs/sdks/journalentries/README.md + - docs/sdks/payments/README.md + - docs/sdks/phonenumbers/README.md + - docs/sdks/purchaseorders/README.md + - docs/sdks/taxrates/README.md + - docs/sdks/trackingcategories/README.md + - docs/sdks/transactions/README.md + - docs/sdks/vendorcredits/README.md + - docs/sdks/ecommerce/README.md + - docs/sdks/products/README.md + - docs/sdks/orders/README.md + - docs/sdks/customers/README.md + - docs/sdks/fulfillments/README.md + - USAGE.md + - .gitattributes + - src/panora_sdk/_hooks/sdkhooks.py + - src/panora_sdk/_hooks/types.py + - src/panora_sdk/_hooks/__init__.py +examples: RagController_queryEmbeddings: speakeasy-default-rag-controller-query-embeddings: {} - listFilestorageFile: + createAccountingAccount: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + query: + remote_data: false + requestBody: + application/json: + account_number: "1000" + classification: Asset + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + currency: USD + current_balance: 10000 + description: Main cash account for daily operations + name: Cash + parent_account: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + status: Active + type: Current Asset responses: - "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createFilestorageFile: + "201": + application/json: + account_number: "1000" + classification: Asset + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + current_balance: 10000 + description: Main cash account for daily operations + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + name: Cash + parent_account: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_id: account_1234 + status: Active + type: Current Asset + createAccountingAttachment: "": parameters: + header: + x-connection-token: query: remote_data: false - header: - x-connection-token: "" requestBody: - application/json: {"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"}} + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + file_name: invoice.pdf + file_url: https://example.com/files/invoice.pdf responses: "201": - application/json: {"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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveFilestorageFile: + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + file_name: invoice.pdf + file_url: https://example.com/files/invoice.pdf + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + remote_id: attachment_1234 + createAccountingContact: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + header: + x-connection-token: query: remote_data: false + requestBody: + application/json: + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + currency: USD + email_address: john.doe@example.com + is_customer: false + is_supplier: true + name: John Doe + remote_updated_at: "2024-06-15T12:00:00Z" + status: Active + tax_number: "123456789" + responses: + "201": + application/json: + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + email_address: john.doe@example.com + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + is_customer: false + is_supplier: true + modified_at: "2024-06-15T12:00:00Z" + name: John Doe + remote_id: contact_1234 + remote_updated_at: "2024-06-15T12:00:00Z" + status: Active + tax_number: "123456789" + createAccountingExpense: + "": + parameters: header: - x-connection-token: "" + x-connection-token: + query: + remote_data: false + requestBody: + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + currency: USD + exchange_rate: "1.2" + line_items: [] + memo: Business lunch with client + sub_total: 9000 + total_amount: 10000 + total_tax_amount: 1000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + transaction_date: "2024-06-15T12:00:00Z" responses: - "200": - application/json: {"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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listFilestorageFolder: + "201": + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + line_items: [] + memo: Business lunch with client + modified_at: "2024-06-15T12:00:00Z" + remote_created_at: "2024-06-15T12:00:00Z" + remote_id: expense_1234 + sub_total: 9000 + total_amount: 10000 + total_tax_amount: 1000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + transaction_date: "2024-06-15T12:00:00Z" + createAccountingInvoice: "": parameters: + header: + x-connection-token: query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" + remote_data: false + requestBody: + application/json: + accounting_period_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + balance: 0 + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + currency: USD + due_date: "2024-07-15T12:00:00Z" + exchange_rate: "1.2" + issue_date: "2024-06-15T12:00:00Z" + line_items: [] + memo: Payment for services rendered + number: INV-001 + paid_on_date: "2024-07-10T12:00:00Z" + status: Paid + sub_total: 10000 + total_amount: 11000 + total_discount: 1000 + total_tax_amount: 1000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + type: Sales + responses: + "201": + application/json: + accounting_period_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + balance: 0 + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + due_date: "2024-07-15T12:00:00Z" + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + issue_date: "2024-06-15T12:00:00Z" + line_items: [] + memo: Payment for services rendered + modified_at: "2024-06-15T12:00:00Z" + number: INV-001 + paid_on_date: "2024-07-10T12:00:00Z" + remote_id: invoice_1234 + remote_updated_at: "2024-06-15T12:00:00Z" + status: Paid + sub_total: 10000 + total_amount: 11000 + total_discount: 1000 + total_tax_amount: 1000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + type: Sales + createAccountingJournalEntry: + "": + parameters: header: - x-connection-token: "" + x-connection-token: + query: + remote_data: false + requestBody: + application/json: + applied_payments: + - appliedPayment1 + - appliedPayment2 + currency: USD + exchange_rate: "1.2" + id_acc_accounting_period: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_acc_company_info: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + journal_number: JE-001 + line_items: [] + memo: Monthly expense journal entry + payments: + - payment1 + - payment2 + posting_status: Posted + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + transaction_date: "2024-06-15T12:00:00Z" responses: - "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createFilestorageFolder: + "201": + application/json: + applied_payments: + - appliedPayment1 + - appliedPayment2 + created_at: "2024-06-15T12:00:00Z" + currency: USD + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_acc_accounting_period: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_acc_company_info: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + journal_number: JE-001 + line_items: [] + memo: Monthly expense journal entry + modified_at: "2024-06-15T12:00:00Z" + payments: + - payment1 + - payment2 + posting_status: Posted + remote_created_at: "2024-06-15T12:00:00Z" + remote_id: journal_entry_1234 + remote_modiified_at: "2024-06-15T12:00:00Z" + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + transaction_date: "2024-06-15T12:00:00Z" + createAccountingPayment: "": parameters: + header: + x-connection-token: query: remote_data: false + requestBody: + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + accounting_period_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + currency: USD + exchange_rate: "1.2" + invoice_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + line_items: [] + total_amount: 10000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + transaction_date: "2024-06-15T12:00:00Z" + type: Credit Card + responses: + "201": + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + accounting_period_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + invoice_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + line_items: [] + modified_at: "2024-06-15T12:00:00Z" + remote_id: payment_1234 + remote_updated_at: "2024-06-15T12:00:00Z" + total_amount: 10000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + transaction_date: "2024-06-15T12:00:00Z" + type: Credit Card + createAccountingPurchaseOrder: + "": + parameters: header: - x-connection-token: "" + x-connection-token: + query: + remote_data: false requestBody: - application/json: {"name": "school", "size": "2048", "folder_url": "https://example.com/school", "description": "All things school related", "drive_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "parent_folder_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "shared_link": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "permission": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}} + application/json: + accounting_period_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + currency: USD + customer: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + delivery_address: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + delivery_date: "2024-07-15T12:00:00Z" + exchange_rate: "1.2" + issue_date: "2024-06-15T12:00:00Z" + line_items: [] + memo: Purchase order for Q3 inventory + purchase_order_number: PO-001 + status: Pending + total_amount: 100000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + vendor: 801f9ede-c698-4e66-a7fc-48d19eebaa4f responses: "201": - application/json: {"name": "school", "size": "2048", "folder_url": "https://example.com/school", "description": "All things school related", "drive_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "parent_folder_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "shared_link": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "permission": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveFilestorageFolder: + application/json: + accounting_period_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + customer: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + delivery_address: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + delivery_date: "2024-07-15T12:00:00Z" + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + issue_date: "2024-06-15T12:00:00Z" + line_items: [] + memo: Purchase order for Q3 inventory + modified_at: "2024-06-15T12:00:00Z" + purchase_order_number: PO-001 + remote_created_at: "2024-06-15T12:00:00Z" + remote_id: po_1234 + remote_updated_at: "2024-06-15T12:00:00Z" + status: Pending + total_amount: 100000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + vendor: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + createAtsActivity: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + header: + x-connection-token: query: remote_data: false + requestBody: + application/json: + activity_type: NOTE + body: Dear Diana, I love you + candidate_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + remote_created_at: "2024-10-01T12:00:00Z" + subject: Email subject + visibility: PUBLIC + responses: + "201": + application/json: + activity_type: NOTE + body: Dear Diana, I love you + candidate_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_created_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + subject: Email subject + visibility: PUBLIC + createAtsApplication: + "": + parameters: header: - x-connection-token: "" + x-connection-token: + query: + remote_data: false + requestBody: + application/json: + applied_at: "2024-10-01T12:00:00Z" + candidate_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + credited_to: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + current_stage: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + job_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + offers: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + - 12345678-1234-1234-1234-123456789012 + reject_reason: Candidate not experienced enough + rejected_at: "2024-10-01T12:00:00Z" + source: Source Name responses: - "200": - application/json: {"name": "school", "size": "2048", "folder_url": "https://example.com/school", "description": "All things school related", "drive_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "parent_folder_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "shared_link": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "permission": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listFilestorageGroup: + "201": + application/json: + applied_at: "2024-10-01T12:00:00Z" + candidate_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + credited_to: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + current_stage: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + job_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + offers: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + - 12345678-1234-1234-1234-123456789012 + reject_reason: Candidate not experienced enough + rejected_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + source: Source Name + createAtsAttachment: "": parameters: + header: + x-connection-token: query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" + remote_data: false + requestBody: + application/json: + attachment_type: RESUME + candidate_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + file_name: file.pdf + file_url: https://example.com/file.pdf + remote_created_at: "2024-10-01T12:00:00Z" + remote_modified_at: "2024-10-01T12:00:00Z" + responses: + "201": + application/json: + attachment_type: RESUME + candidate_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + file_name: file.pdf + file_url: https://example.com/file.pdf + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_created_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_modified_at: "2024-10-01T12:00:00Z" + createAtsCandidate: + "": + parameters: header: - x-connection-token: "" + x-connection-token: + query: + remote_data: false + requestBody: + application/json: + applications: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + attachments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company: Acme + email_addresses: + - email_address: joedoe@gmail.com + email_address_type: WORK + email_reachable: true + field_mappings: + fav_color: red + fav_dish: broccoli + first_name: Joe + is_private: false + last_interaction_at: "2024-10-01T12:00:00Z" + last_name: Doe + locations: New York + phone_numbers: + - phone_number: "+33660688899" + phone_type: WORK + remote_created_at: "2024-10-01T12:00:00Z" + remote_modified_at: "2024-10-01T12:00:00Z" + tags: + - tag_1 + - tag_2 + title: Analyst + urls: + - url: mywebsite.com + url_type: WEBSITE responses: - "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveFilestorageGroup: + "201": + application/json: + applications: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + attachments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company: Acme + created_at: "2024-10-01T12:00:00Z" + email_addresses: + - email_address: joedoe@gmail.com + email_address_type: WORK + email_reachable: true + field_mappings: + fav_color: red + fav_dish: broccoli + first_name: Joe + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + is_private: false + last_interaction_at: "2024-10-01T12:00:00Z" + last_name: Doe + locations: New York + modified_at: "2024-10-01T12:00:00Z" + phone_numbers: + - phone_number: "+33660688899" + phone_type: WORK + remote_created_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + remote_modified_at: "2024-10-01T12:00:00Z" + tags: + - tag_1 + - tag_2 + title: Analyst + urls: + - url: mywebsite.com + url_type: WEBSITE + createAtsInterview: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + header: + x-connection-token: query: remote_data: false + requestBody: + application/json: + application_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + end_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + interviewers: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + job_interview_stage_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + location: San Francisco + organized_by: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_created_at: "2024-10-01T12:00:00Z" + remote_updated_at: "2024-10-01T12:00:00Z" + start_at: "2024-10-01T12:00:00Z" + status: SCHEDULED + responses: + "201": + application/json: + application_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + end_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + interviewers: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + job_interview_stage_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + location: San Francisco + modified_at: "2024-10-01T12:00:00Z" + organized_by: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_created_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + remote_updated_at: "2024-10-01T12:00:00Z" + start_at: "2024-10-01T12:00:00Z" + status: SCHEDULED + createCrmCompany: + "": + parameters: header: - x-connection-token: "" + x-connection-token: + query: + remote_data: false + requestBody: + application/json: + addresses: + - address_type: WORK + city: New York + country: USA + owner_type: + postal_code: "10001" + state: NY + street_1: 5th Avenue + street_2: Street 2 + email_addresses: + - email_address: acme@gmail.com + email_address_type: WORK + field_mappings: + fav_color: red + fav_dish: broccoli + industry: ACCOUNTING + name: Acme + number_of_employees: 10 + phone_numbers: + - phone_number: "+33660606067" + phone_type: WORK + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f responses: - "200": - application/json: {"name": "My group", "users": ["801f9ede-c698-4e66-a7fc-48d19eebaa4f"], "remote_was_deleted": false, "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listFilestorageUsers: + "201": + application/json: + addresses: + - address_type: WORK + city: New York + country: USA + owner_type: + postal_code: "10001" + state: NY + street_1: 5th Avenue + street_2: Street 2 + email_addresses: + - email_address: acme@gmail.com + email_address_type: WORK + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + industry: ACCOUNTING + name: Acme + number_of_employees: 10 + phone_numbers: + - phone_number: "+33660606067" + phone_type: WORK + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + createCrmContact: "": parameters: + header: + x-connection-token: query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" + remote_data: false + requestBody: + application/json: + addresses: + - address_type: PERSONAL + city: Anytown + country: USA + owner_type: + postal_code: "10001" + state: CA + street_1: 5th Avenue + street_2: Street 2 + email_addresses: + - email_address: Jena.Nienow28@yahoo.com + email_address_type: + field_mappings: + fav_color: red + fav_dish: broccoli + first_name: John + last_name: Doe + phone_numbers: + - phone_number: 1-809-839-8041 + phone_type: + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + responses: + "201": + application/json: + addresses: + - address_type: PERSONAL + city: Anytown + country: USA + owner_type: + postal_code: "10001" + state: CA + street_1: 5th Avenue + street_2: Street 2 + created_at: "2024-10-01T12:00:00Z" + email_addresses: + - email_address: Astrid_Rau81@gmail.com + email_address_type: + field_mappings: + fav_color: red + fav_dish: broccoli + first_name: John + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + last_name: Doe + modified_at: "2024-10-01T12:00:00Z" + phone_numbers: + - phone_number: 687-596-3029 x0522 + phone_type: + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + createCrmDeal: + speakeasy-default-create-crm-deal: + parameters: header: - x-connection-token: "" + x-connection-token: + query: {} + requestBody: + application/json: + amount: 1000 + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: Contract with Sales Operations Team + field_mappings: + fav_color: red + fav_dish: broccoli + name: Huge Contract with Acme + stage_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f responses: - "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveFilestorageUser: + "201": + application/json: + amount: 1000 + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + description: Contract with Sales Operations Team + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: Huge Contract with Acme + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + stage_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + createCrmEngagement: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + header: + x-connection-token: query: remote_data: false + requestBody: + application/json: + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contacts: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + content: Meeting call with CTO + direction: INBOUND + end_time: "2024-10-01T22:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + start_at: "2024-10-01T12:00:00Z" + subject: Technical features planning + type: MEETING + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + responses: + "201": + application/json: + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contacts: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + content: Meeting call with CTO + created_at: "2024-10-01T12:00:00Z" + direction: INBOUND + end_time: "2024-10-01T22:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + start_at: "2024-10-01T12:00:00Z" + subject: Technical features planning + type: MEETING + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + createCrmNote: + "": + parameters: header: - x-connection-token: "" + x-connection-token: + query: + remote_data: false + requestBody: + application/json: + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + content: My notes taken during the meeting + deal_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f responses: - "200": - application/json: {"name": "Joe Doe", "email": "joe.doe@gmail.com", "is_me": true, "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - signIn: - speakeasy-default-sign-in: + "201": + application/json: + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + content: My notes taken during the meeting + created_at: "2024-10-01T12:00:00Z" + deal_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + createCrmTask: + speakeasy-default-create-crm-task: + parameters: + header: + x-connection-token: + query: {} requestBody: - application/json: {"email": "Oda.Treutel97@hotmail.com", "password_hash": ""} - getConnections: - speakeasy-default-get-connections: + application/json: + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + content: Prepare email campaign + deal_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + due_date: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + finished_date: "2024-10-01T12:00:00Z" + status: PENDING + subject: Answer customers + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f responses: - "200": - application/json: [] - listWebhooks: - speakeasy-default-list-webhooks: + "201": + application/json: + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + content: Prepare email campaign + created_at: "2024-10-01T12:00:00Z" + deal_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + due_date: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + finished_date: "2024-10-01T12:00:00Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_data: + key1: value1 + key2: 42 + key3: true + remote_id: id_1 + status: PENDING + subject: Answer customers + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + createEcommerceOrder: + "": + parameters: + header: + x-connection-token: + query: + remote_data: false + requestBody: + application/json: + currency: AUD + customer_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + fulfillment_status: PENDING + items: + - company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + modified_at: "2024-06-15T12:00:00Z" + name: Net Income + parent_item: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_generated_at: "2024-07-01T12:00:00Z" + remote_id: "12345" + type: Operating Activities + value: 100000 + order_number: "19823838833" + order_status: UNSHIPPED + payment_status: SUCCESS + total_discount: 10 + total_price: 300 + total_shipping: 120 + total_tax: 120 responses: - "200": - application/json: [] - createWebhookPublic: - speakeasy-default-create-webhook-public: + "201": + application/json: + created_at: "2024-10-01T12:00:00Z" + currency: AUD + customer_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + fulfillment_status: PENDING + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + items: + - company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + modified_at: "2024-06-15T12:00:00Z" + name: Net Income + parent_item: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_generated_at: "2024-07-01T12:00:00Z" + remote_id: "12345" + type: Operating Activities + value: 100000 + modified_at: "2024-10-01T12:00:00Z" + order_number: "19823838833" + order_status: UNSHIPPED + payment_status: SUCCESS + remote_id: id_1 + total_discount: 10 + total_price: 300 + total_shipping: 120 + total_tax: 120 + createEcommerceProduct: + "": + parameters: + header: + x-connection-token: + query: + remote_data: false requestBody: - application/json: {"url": "https://acme.com/webhook_receiver", "description": "Webhook to receive connection events", "scope": ["connection.created"]} + application/json: + description: best tee ever + images_urls: + - https://myproduct/image + product_status: ACTIVE + product_type: teeshirt + product_url: https://product_url/tee + tags: + - tag_1 + vendor: vendor_extern responses: "201": - application/json: {"id_webhook_endpoint": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "endpoint_description": "Webhook to receive connection events", "url": "https://acme.com/webhook_receiver", "secret": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "active": true, "created_at": "2024-10-01T12:00:00Z", "scope": ["connection.created"], "id_project": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "last_update": "2024-10-01T12:00:00Z"} - delete: + application/json: + created_at: "2024-10-01T12:00:00Z" + description: best tee ever + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + images_urls: + - https://myproduct/image + modified_at: "2024-10-01T12:00:00Z" + product_status: ACTIVE + product_type: teeshirt + product_url: https://product_url/tee + remote_id: id_1 + tags: + - tag_1 + vendor: vendor_extern + createFilestorageFile: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + header: + x-connection-token: + query: + remote_data: false + requestBody: + application/json: + field_mappings: + fav_color: red + fav_dish: broccoli + file_url: https://example.com/my_paris_photo.png + folder_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + mime_type: application/pdf + name: my_paris_photo.png + permission: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + shared_link: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + size: "1024" responses: "201": - application/json: {"id_webhook_endpoint": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "endpoint_description": "Webhook to receive connection events", "url": "https://acme.com/webhook_receiver", "secret": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "active": true, "created_at": "2024-10-01T12:00:00Z", "scope": ["connection.created"], "id_project": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "last_update": "2024-10-01T12:00:00Z"} - updateStatus: + application/json: + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + file_url: https://example.com/my_paris_photo.png + folder_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + mime_type: application/pdf + modified_at: "2024-10-01T12:00:00Z" + name: my_paris_photo.png + permission: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + shared_link: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + size: "1024" + createFilestorageFolder: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + header: + x-connection-token: + query: + remote_data: false + requestBody: + application/json: + description: All things school related + drive_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + folder_url: https://example.com/school + name: school + parent_folder_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + permission: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + shared_link: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + size: "2048" responses: "201": - application/json: {"id_webhook_endpoint": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "endpoint_description": "Webhook to receive connection events", "url": "https://acme.com/webhook_receiver", "secret": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "active": true, "created_at": "2024-10-01T12:00:00Z", "scope": ["connection.created"], "id_project": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "last_update": "2024-10-01T12:00:00Z"} - verifyEvent: - speakeasy-default-verify-event: + application/json: + created_at: "2024-10-01T12:00:00Z" + description: All things school related + drive_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + folder_url: https://example.com/school + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: school + parent_folder_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + permission: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + shared_link: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + size: "2048" + createHrisEmployee: + speakeasy-default-create-hris-employee: + parameters: + header: + x-connection-token: + query: {} requestBody: - application/json: {"payload": {}, "signature": "", "secret": ""} + application/json: + avatar_url: https://example.com/avatar.jpg + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + date_of_birth: "1990-01-01" + display_full_name: John Doe + employee_number: EMP001 + employment_status: ACTIVE + employments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + ethnicity: AMERICAN_INDIAN_OR_ALASKA_NATIVE + first_name: John + gender: MALE + groups: + - Group1 + - Group2 + last_name: Doe + locations: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + manager_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + marital_status: Married + mobile_phone_number: "+1234567890" + personal_email: john.doe@personal.com + preferred_name: Johnny + ssn: 123-45-6789 + start_date: "2020-01-01" + termination_date: "2025-01-01" + username: johndoe + work_email: john.doe@company.com responses: "201": - application/json: {"key": ""} - listTicketingTicket: + application/json: + avatar_url: https://example.com/avatar.jpg + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + date_of_birth: "1990-01-01" + display_full_name: John Doe + employee_number: EMP001 + employment_status: ACTIVE + employments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + ethnicity: AMERICAN_INDIAN_OR_ALASKA_NATIVE + first_name: John + gender: MALE + groups: + - Group1 + - Group2 + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + last_name: Doe + locations: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + manager_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + marital_status: Married + mobile_phone_number: "+1234567890" + modified_at: "2024-10-01T12:00:00Z" + personal_email: john.doe@personal.com + preferred_name: Johnny + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: employee_1234 + remote_was_deleted: false + ssn: 123-45-6789 + start_date: "2020-01-01" + termination_date: "2025-01-01" + username: johndoe + work_email: john.doe@company.com + createHrisTimeoff: + speakeasy-default-create-hris-timeoff: + parameters: + header: + x-connection-token: + query: {} + requestBody: + application/json: + amount: 5 + approver: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + employee: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + employee_note: Annual vacation + end_time: "2024-07-05T17:00:00Z" + request_type: VACATION + start_time: "2024-07-01T09:00:00Z" + status: REQUESTED + units: DAYS + responses: + "201": + application/json: + amount: 5 + approver: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + employee: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + employee_note: Annual vacation + end_time: "2024-07-05T17:00:00Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + remote_created_at: "2024-06-15T12:00:00Z" + remote_id: timeoff_1234 + remote_was_deleted: false + request_type: VACATION + start_time: "2024-07-01T09:00:00Z" + status: REQUESTED + units: DAYS + createHrisTimesheetentry: + speakeasy-default-create-hris-timesheetentry: + parameters: + header: + x-connection-token: + query: {} + requestBody: + application/json: + employee_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + end_time: "2024-10-01T16:00:00Z" + hours_worked: 40 + remote_was_deleted: false + start_time: "2024-10-01T08:00:00Z" + responses: + "201": + application/json: + created_at: "2024-10-01T12:00:00Z" + employee_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + end_time: "2024-10-01T16:00:00Z" + hours_worked: 40 + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: id_1 + remote_was_deleted: false + start_time: "2024-10-01T08:00:00Z" + createLinkedUser: + speakeasy-default-create-linked-user: + requestBody: + application/json: + alias: acme + linked_user_origin_id: id_1 + responses: + "201": + application/json: + alias: acme + id_linked_user: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_project: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + linked_user_origin_id: id_1 + createMarketingAutomationContact: "": parameters: + header: + x-connection-token: query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" + remote_data: false + createMarketingautomationAction: + "": + parameters: header: - x-connection-token: "" - responses: - "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createTicketingTicket: + x-connection-token: + query: + remote_data: false + createMarketingautomationAutomation: + "": + parameters: + header: + x-connection-token: + query: + remote_data: false + createMarketingautomationCampaign: "": parameters: - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + remote_data: false + createMarketingautomationList: + speakeasy-default-create-marketingautomation-list: + parameters: + header: + x-connection-token: + query: {} + createMarketingautomationTemplate: + speakeasy-default-create-marketingautomation-template: + parameters: + header: + x-connection-token: + query: {} + createProject: + speakeasy-default-create-project: + requestBody: + application/json: + id_organization: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_user: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + name: Project Name + responses: + "201": + application/json: + id_connector_set: 123e4567-e89b-12d3-a456-426614174002 + id_project: 123e4567-e89b-12d3-a456-426614174000 + id_user: 123e4567-e89b-12d3-a456-426614174001 + name: My Project + pull_frequency: 3600 + redirect_url: https://example.com/redirect + sync_mode: automatic + createTicketingAttachment: + speakeasy-default-create-ticketing-attachment: + parameters: + header: + x-connection-token: + query: {} requestBody: - application/json: {"name": "Customer Service Inquiry", "status": "OPEN", "description": "Help customer", "due_date": "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": "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"}} + application/json: + comment_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + file_name: features_planning.pdf + file_url: https://example.com/features_planning.pdf + ticket_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + uploader: 801f9ede-c698-4e66-a7fc-48d19eebaa4f responses: "201": - application/json: {"name": "Customer Service Inquiry", "status": "OPEN", "description": "Help customer", "due_date": "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": "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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"key1": "value1", "key2": 42, "key3": true}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveTicketingTicket: - "": + application/json: + comment_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + file_name: features_planning.pdf + file_url: https://example.com/features_planning.pdf + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + ticket_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + uploader: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + createTicketingComment: + speakeasy-default-create-ticketing-comment: parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: {} + requestBody: + application/json: + attachments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + body: Assigned to Eric ! + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + creator_type: USER + html_body:

Assigned to Eric !

+ is_private: false + ticket_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f responses: - "200": - application/json: {"name": "Customer Service Inquiry", "status": "OPEN", "description": "Help customer", "due_date": "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": "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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"key1": "value1", "key2": 42, "key3": true}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listTicketingUsers: + "201": + application/json: + attachments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + body: Assigned to Eric ! + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + creator_type: USER + html_body:

Assigned to Eric !

+ id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + is_private: false + modified_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + ticket_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + createTicketingTicket: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" - responses: - "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveTicketingUser: - "": - parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + x-connection-token: query: remote_data: false - header: - x-connection-token: "" + requestBody: + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + assigned_to: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + attachments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + collections: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + comment: + attachments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + body: Assigned to Eric ! + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + creator_type: USER + html_body:

Assigned to Eric !

+ is_private: false + ticket_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + completed_at: "2024-10-01T12:00:00Z" + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: Help customer + due_date: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + name: Customer Service Inquiry + parent_ticket: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + priority: HIGH + status: OPEN + tags: + - my_tag + - urgent_tag + type: BUG responses: - "200": - application/json: {"name": "John Doe", "email_address": "john.doe@example.com", "teams": ["team1", "team2"], "account_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"key1": "value1", "key2": 42, "key3": true}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2023-10-01T12:00:00Z"} - listTicketingAccount: - "": - parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + "201": + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + assigned_to: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + attachments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + collections: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + comment: + attachments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + body: Assigned to Eric ! + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + creator_type: USER + html_body:

Assigned to Eric !

+ is_private: false + ticket_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + completed_at: "2024-10-01T12:00:00Z" + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + description: Help customer + due_date: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: Customer Service Inquiry + parent_ticket: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + priority: HIGH + remote_data: + key1: value1 + key2: 42 + key3: true + remote_id: id_1 + status: OPEN + tags: + - my_tag + - urgent_tag + type: BUG + createWebhookPublic: + speakeasy-default-create-webhook-public: + requestBody: + application/json: + description: Webhook to receive connection events + scope: + - connection.created + url: https://acme.com/webhook_receiver responses: - "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveTicketingAccount: - speakeasy-default-retrieve-ticketing-account: + "201": + application/json: + active: true + created_at: "2024-10-01T12:00:00Z" + endpoint_description: Webhook to receive connection events + id_project: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_webhook_endpoint: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + last_update: "2024-10-01T12:00:00Z" + scope: + - connection.created + secret: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + url: https://acme.com/webhook_receiver + defineCustomField: + speakeasy-default-define-custom-field: + requestBody: + application/json: + data_type: string + description: Favorite Dish + linked_user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + name: my_favorite_dish + object_type_owner: company + source_custom_field_id: id_1 + source_provider: hubspot + responses: + "201": + application/json: + created_at: "2024-10-01T12:00:00Z" + data_type: string + description: My favorite dish + id_attribute: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_consumer: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_entity: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_project: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_id: id_1 + ressource_owner_type: "" + scope: "" + slug: fav_dish + source: hubspot + status: "" + definitions: + speakeasy-default-definitions: + requestBody: + application/json: + data_type: string + description: My favorite dish + name: fav_dish + object_type_owner: company + responses: + "201": + application/json: + created_at: "2024-10-01T12:00:00Z" + data_type: string + description: My favorite dish + id_attribute: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_consumer: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_entity: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_project: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_id: id_1 + ressource_owner_type: "" + scope: "" + slug: fav_dish + source: hubspot + status: "" + delete: + "": parameters: path: - id: "" - query: {} - header: - x-connection-token: "" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + responses: + "201": + application/json: + active: true + created_at: "2024-10-01T12:00:00Z" + endpoint_description: Webhook to receive connection events + id_project: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_webhook_endpoint: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + last_update: "2024-10-01T12:00:00Z" + scope: + - connection.created + secret: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + url: https://acme.com/webhook_receiver + getConnections: + speakeasy-default-get-connections: responses: "200": - application/json: {"name": "My Personal Account", "domains": ["acme.com", "acme-test.com"], "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listTicketingContacts: - "": - parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + application/json: [] + getFieldMappingValues: + speakeasy-default-get-field-mapping-values: {} + getFieldMappings: + speakeasy-default-get-field-mappings: {} + getFieldMappingsEntities: + speakeasy-default-get-field-mappings-entities: {} + getPanoraCoreEvents: + speakeasy-default-get-panora-core-events: responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveTicketingContact: - speakeasy-default-retrieve-ticketing-contact: - parameters: - path: - id: "" - query: {} - header: - x-connection-token: "" + application/json: [] + getProjects: + speakeasy-default-get-projects: responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - listTicketingCollections: - "": - parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + application/json: [] + getPullFrequency: + speakeasy-default-get-pull-frequency: responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveCollection: - "": + application/json: + accounting: 14400 + ats: 3600 + crm: 1800 + ecommerce: 43200 + filestorage: 28800 + hris: 7200 + ticketing: 86400 + getRetriedRequestResponse: + speakeasy-default-get-retried-request-response: parameters: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false - header: - x-connection-token: "" + retryId: + health: + speakeasy-default-health: responses: "200": - application/json: {"name": "My Personal Collection", "description": "Collect issues", "collection_type": "PROJECT", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listTicketingComments: - "": - parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + application/json: 200 + hello: + speakeasy-default-hello: responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createTicketingComment: - speakeasy-default-create-ticketing-comment: - parameters: - query: {} - header: - x-connection-token: "" + text/plain: + importBatch: + speakeasy-default-import-batch: requestBody: - application/json: {"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"]} + application/json: + alias: acme + linked_user_origin_ids: + - id_1 responses: "201": - application/json: {"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"], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveTicketingComment: - speakeasy-default-retrieve-ticketing-comment: + application/json: [] + listAccountingAccounts: + "": parameters: - path: - id: "" - query: {} header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - listTicketingTags: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingAddress: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveTicketingTag: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingAttachments: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"name": "urgent_tag", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listTicketingTeams: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingBalanceSheets: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveTicketingTeam: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingCashflowStatement: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"name": "My team", "description": "Internal members", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listTicketingAttachments: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingCompanyInfos: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createTicketingAttachment: - speakeasy-default-create-ticketing-attachment: - parameters: - query: {} - header: - x-connection-token: "" - requestBody: - application/json: {"file_name": "features_planning.pdf", "file_url": "https://example.com/features_planning.pdf", "uploader": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "ticket_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "comment_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}} - responses: - "201": - application/json: {"file_name": "features_planning.pdf", "file_url": "https://example.com/features_planning.pdf", "uploader": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "ticket_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "comment_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveTicketingAttachment: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingContacts: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"file_name": "features_planning.pdf", "file_url": "https://example.com/features_planning.pdf", "uploader": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "ticket_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "comment_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - status: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingCreditNote: "": parameters: - path: - vertical: "ticketing" - resync: - speakeasy-default-resync: - responses: - "201": - application/json: {"timestamp": "", "vertical": "ticketing", "provider": "gitlab", "status": "success"} - updatePullFrequency: - speakeasy-default-update-pull-frequency: - requestBody: - application/json: {"crm": 1800, "ats": 3600, "hris": 7200, "accounting": 14400, "filestorage": 28800, "ecommerce": 43200, "ticketing": 86400} - getPullFrequency: - speakeasy-default-get-pull-frequency: + header: + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"crm": 1800, "ats": 3600, "hris": 7200, "accounting": 14400, "filestorage": 28800, "ecommerce": 43200, "ticketing": 86400} - listCrmCompany: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingExpense: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createCrmCompany: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingIncomeStatement: "": parameters: - query: - remote_data: false header: - x-connection-token: "" - requestBody: - application/json: {"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"}} - responses: - "201": - application/json: {"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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}} - retrieveCrmCompany: - "": - parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + x-connection-token: query: - remote_data: false - header: - x-connection-token: "" + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}} - listCrmContacts: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingInvoice: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createCrmContact: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingItem: "": parameters: - query: - remote_data: false header: - x-connection-token: "" - requestBody: - application/json: {"first_name": "John", "last_name": "Doe", "email_addresses": [{"email_address": "Jena.Nienow28@yahoo.com", "email_address_type": ""}], "phone_numbers": [{"phone_number": "1-809-839-8041", "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", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}} - responses: - "201": - application/json: {"first_name": "John", "last_name": "Doe", "email_addresses": [{"email_address": "Astrid_Rau81@gmail.com", "email_address_type": ""}], "phone_numbers": [{"phone_number": "687-596-3029 x0522", "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", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveCrmContact: - "": - parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + x-connection-token: query: - remote_data: false - header: - x-connection-token: "" + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"first_name": "John", "last_name": "Doe", "email_addresses": [{"email_address": "Tyrese.Waelchi40@yahoo.com", "email_address_type": ""}], "phone_numbers": [{"phone_number": "(600) 606-8108 x302", "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", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listCrmDeals: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingJournalEntry: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createCrmDeal: - speakeasy-default-create-crm-deal: - parameters: - query: {} - header: - x-connection-token: "" - requestBody: - application/json: {"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"}} - responses: - "201": - application/json: {"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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveCrmDeal: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingPayment: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listCrmEngagements: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingPhonenumber: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createCrmEngagement: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingPurchaseOrder: "": parameters: - query: - remote_data: false header: - x-connection-token: "" - requestBody: - application/json: {"content": "Meeting call with CTO", "direction": "INBOUND", "subject": "Technical features planning", "start_at": "2024-10-01T12:00:00Z", "end_time": "2024-10-01T22:00:00Z", "type": "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"}} + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: - "201": - application/json: {"content": "Meeting call with CTO", "direction": "INBOUND", "subject": "Technical features planning", "start_at": "2024-10-01T12:00:00Z", "end_time": "2024-10-01T22:00:00Z", "type": "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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveCrmEngagement: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingTaxRate: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"content": "Meeting call with CTO", "direction": "INBOUND", "subject": "Technical features planning", "start_at": "2024-10-01T12:00:00Z", "end_time": "2024-10-01T22:00:00Z", "type": "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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listCrmNote: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingTrackingCategorys: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createCrmNote: + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingTransaction: "": parameters: - query: - remote_data: false header: - x-connection-token: "" - requestBody: - application/json: {"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"}} + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: - "201": - application/json: {"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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveCrmNote: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listAccountingVendorCredit: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listCrmStages: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsActivity: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveCrmStage: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsApplication: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"stage_name": "Qualified", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}} - listCrmTask: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsAttachment: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createCrmTask: - speakeasy-default-create-crm-task: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsCandidate: + "": parameters: - query: {} header: - x-connection-token: "" - requestBody: - application/json: {"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"}} + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: - "201": - application/json: {"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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"key1": "value1", "key2": 42, "key3": true}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveCrmTask: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsDepartments: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"key1": "value1", "key2": 42, "key3": true}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listCrmUsers: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsEeocs: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveCrmUser: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsInterview: "": parameters: - path: - id: "b008e199-eda9-4629-bd41-a01b6195864a" + header: + x-connection-token: query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 remote_data: true - header: - x-connection-token: "" - responses: - "200": - application/json: {"name": "Jane Doe", "email": "jane.doe@example.com", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - createLinkedUser: - speakeasy-default-create-linked-user: - requestBody: - application/json: {"linked_user_origin_id": "id_1", "alias": "acme"} - responses: - "201": - application/json: {"id_linked_user": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "linked_user_origin_id": "id_1", "alias": "acme", "id_project": "801f9ede-c698-4e66-a7fc-48d19eebaa4f"} - listLinkedUsers: - speakeasy-default-list-linked-users: responses: "200": - application/json: [] - importBatch: - speakeasy-default-import-batch: - requestBody: - application/json: {"linked_user_origin_ids": ["id_1"], "alias": "acme"} - responses: - "201": - application/json: [] - retrieveLinkedUser: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsJob: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + header: + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"id_linked_user": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "linked_user_origin_id": "id_1", "alias": "acme", "id_project": "801f9ede-c698-4e66-a7fc-48d19eebaa4f"} - remoteId: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsJobInterviewStage: "": parameters: + header: + x-connection-token: query: - remoteId: "id_1" - responses: - "200": - application/json: {"id_linked_user": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "linked_user_origin_id": "id_1", "alias": "acme", "id_project": "801f9ede-c698-4e66-a7fc-48d19eebaa4f"} - getProjects: - speakeasy-default-get-projects: - responses: - "200": - application/json: [] - createProject: - speakeasy-default-create-project: - requestBody: - application/json: {"name": "Project Name", "id_organization": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id_user": "801f9ede-c698-4e66-a7fc-48d19eebaa4f"} - responses: - "201": - application/json: {"id_project": "123e4567-e89b-12d3-a456-426614174000", "name": "My Project", "sync_mode": "automatic", "pull_frequency": 3600, "redirect_url": "https://example.com/redirect", "id_user": "123e4567-e89b-12d3-a456-426614174001", "id_connector_set": "123e4567-e89b-12d3-a456-426614174002"} - getFieldMappingValues: - speakeasy-default-get-field-mapping-values: {} - getFieldMappingsEntities: - speakeasy-default-get-field-mappings-entities: {} - getFieldMappings: - speakeasy-default-get-field-mappings: {} - definitions: - speakeasy-default-definitions: - requestBody: - application/json: {"object_type_owner": "company", "name": "fav_dish", "description": "My favorite dish", "data_type": "string"} - responses: - "201": - application/json: {"id_attribute": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "status": "", "ressource_owner_type": "", "slug": "fav_dish", "description": "My favorite dish", "data_type": "string", "remote_id": "id_1", "source": "hubspot", "id_entity": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id_project": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "scope": "", "id_consumer": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - defineCustomField: - speakeasy-default-define-custom-field: - requestBody: - application/json: {"object_type_owner": "company", "name": "my_favorite_dish", "description": "Favorite Dish", "data_type": "string", "source_custom_field_id": "id_1", "source_provider": "hubspot", "linked_user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f"} - responses: - "201": - application/json: {"id_attribute": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "status": "", "ressource_owner_type": "", "slug": "fav_dish", "description": "My favorite dish", "data_type": "string", "remote_id": "id_1", "source": "hubspot", "id_entity": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id_project": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "scope": "", "id_consumer": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - map: - speakeasy-default-map: - requestBody: - application/json: {"attributeId": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "source_custom_field_id": "id_1", "source_provider": "hubspot", "linked_user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f"} - responses: - "201": - application/json: {"id_attribute": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "status": "", "ressource_owner_type": "", "slug": "fav_dish", "description": "My favorite dish", "data_type": "string", "remote_id": "id_1", "source": "hubspot", "id_entity": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id_project": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "scope": "", "id_consumer": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - getPanoraCoreEvents: - speakeasy-default-get-panora-core-events: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: [] - request: - speakeasy-default-request: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsOffer: + "": parameters: header: - x-connection-token: "" - requestBody: - application/json: {"method": "GET", "path": "/dev"} - getRetriedRequestResponse: - speakeasy-default-get-retried-request-response: - parameters: - path: - retryId: "" - listHrisBankInfo: + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true + responses: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsOffice: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveHrisBankInfo: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsRejectReasons: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"account_type": "CHECKING", "bank_name": "Bank of America", "account_number": "1234567890", "routing_number": "021000021", "employee_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false} - listHrisBenefits: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsScorecard: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveHrisBenefit: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsTags: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"provider_name": "Health Insurance Provider", "employee_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "employee_contribution": 100, "company_contribution": 200, "start_date": "2024-01-01T00:00:00Z", "end_date": "2024-12-31T23:59:59Z", "employer_benefit_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "benefit_1234", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false} - listHrisCompanies: + application/json: + data: [] + next_cursor: + prev_cursor: + listAtsUsers: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveHrisCompany: + application/json: + data: [] + next_cursor: + prev_cursor: + listConnections: + speakeasy-default-list-connections: + responses: + "200": + application/json: [] + listCrmCompany: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"legal_name": "Acme Corporation", "locations": ["801f9ede-c698-4e66-a7fc-48d19eebaa4f"], "display_name": "Acme Corp", "eins": ["12-3456789", "98-7654321"], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "company_1234", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false} - listHrisDependents: + application/json: + data: [] + next_cursor: + prev_cursor: + listCrmContacts: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveHrisDependent: + application/json: + data: [] + next_cursor: + prev_cursor: + listCrmDeals: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"first_name": "John", "last_name": "Doe", "middle_name": "Michael", "relationship": "CHILD", "date_of_birth": "2020-01-01", "gender": "MALE", "phone_number": "+1234567890", "home_location": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "is_student": true, "ssn": "123-45-6789", "employee_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "dependent_1234", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false} - listHrisEmployeePayrollRun: + application/json: + data: [] + next_cursor: + prev_cursor: + listCrmEngagements: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveHrisEmployeePayrollRun: + application/json: + data: [] + next_cursor: + prev_cursor: + listCrmNote: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"employee_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "payroll_run_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "gross_pay": 5000, "net_pay": 4000, "start_date": "2023-01-01T00:00:00Z", "end_date": "2023-01-15T23:59:59Z", "check_date": "2023-01-20T00:00:00Z", "deductions": [], "earnings": [], "taxes": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "payroll_run_1234", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false} - listHrisEmployees: + application/json: + data: [] + next_cursor: + prev_cursor: + listCrmStages: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createHrisEmployee: - speakeasy-default-create-hris-employee: - parameters: - query: {} - header: - x-connection-token: "" - requestBody: - application/json: {"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": "1990-01-01", "start_date": "2020-01-01", "employment_status": "ACTIVE", "termination_date": "2025-01-01", "avatar_url": "https://example.com/avatar.jpg", "manager_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f"} - responses: - "201": - application/json: {"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": "1990-01-01", "start_date": "2020-01-01", "employment_status": "ACTIVE", "termination_date": "2025-01-01", "avatar_url": "https://example.com/avatar.jpg", "manager_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "employee_1234", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false} - retrieveHrisEmployee: + application/json: + data: [] + next_cursor: + prev_cursor: + listCrmTask: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"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": "1990-01-01", "start_date": "2020-01-01", "employment_status": "ACTIVE", "termination_date": "2025-01-01", "avatar_url": "https://example.com/avatar.jpg", "manager_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "employee_1234", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false} - listHrisEmployerBenefits: + application/json: + data: [] + next_cursor: + prev_cursor: + listCrmUsers: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveHrisEmployerBenefit: + application/json: + data: [] + next_cursor: + prev_cursor: + listEcommerceCustomers: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"benefit_plan_type": "Health Insurance", "name": "Company Health Plan", "description": "Comprehensive health insurance coverage for employees", "deduction_code": "HEALTH-001", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "benefit_1234", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false} - listHrisEmployments: + application/json: + data: [] + next_cursor: + prev_cursor: + listEcommerceFulfillments: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveHrisEmployment: + application/json: + data: [] + next_cursor: + prev_cursor: + listEcommerceOrders: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"job_title": "Software Engineer", "pay_rate": 100000, "pay_period": "MONTHLY", "pay_frequency": "WEEKLY", "pay_currency": "USD", "flsa_status": "EXEMPT", "effective_date": "2023-01-01", "employment_type": "FULL_TIME", "pay_group_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "employee_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "employment_1234", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false} - listHrisGroups: + application/json: + data: [] + next_cursor: + prev_cursor: + listEcommerceProducts: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveHrisGroup: + application/json: + data: [] + next_cursor: + prev_cursor: + listFilestorageFile: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"parent_group": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "name": "Engineering Team", "type": "DEPARTMENT", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "group_1234", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false} - listHrisLocations: + application/json: + data: [] + next_cursor: + prev_cursor: + listFilestorageFolder: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveHrisLocation: + application/json: + data: [] + next_cursor: + prev_cursor: + listFilestorageGroup: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"name": "Headquarters", "phone_number": "+1234567890", "street_1": "123 Main St", "street_2": "Suite 456", "city": "San Francisco", "state": "CA", "zip_code": "94105", "country": "USA", "location_type": "WORK", "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "employee_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "location_1234", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false} - listHrisPaygroups: + application/json: + data: [] + next_cursor: + prev_cursor: + listFilestorageUsers: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveHrisPaygroup: + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisBankInfo: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"pay_group_name": "Monthly Salaried", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "paygroup_1234", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false} - listHrisPayrollRuns: + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisBenefits: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveHrisPayrollRun: + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisCompanies: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"run_state": "PAID", "run_type": "REGULAR", "start_date": "2024-01-01T00:00:00Z", "end_date": "2024-01-15T23:59:59Z", "check_date": "2024-01-20T00:00:00Z", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "payroll_run_1234", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z", "remote_was_deleted": false, "employee_payroll_runs": ["801f9ede-c698-4e66-a7fc-48d19eebaa4f"]} - listHrisTimeoffs: + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisDependents: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createHrisTimeoff: - speakeasy-default-create-hris-timeoff: + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisEmployeePayrollRun: + "": parameters: - query: {} header: - x-connection-token: "" - requestBody: - application/json: {"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": "2024-07-01T09:00:00Z", "end_time": "2024-07-05T17:00:00Z"} + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: - "201": - application/json: {"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": "2024-07-01T09:00:00Z", "end_time": "2024-07-05T17:00:00Z", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "timeoff_1234", "remote_created_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z", "remote_was_deleted": false} - retrieveHrisTimeoff: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisEmployees: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"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": "2024-07-01T09:00:00Z", "end_time": "2024-07-05T17:00:00Z", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "timeoff_1234", "remote_created_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z", "remote_was_deleted": false} - listHrisTimeoffbalances: + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisEmployerBenefits: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveHrisTimeoffbalance: + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisEmployments: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"balance": 80, "employee_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "used": 40, "policy_type": "VACATION", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "timeoff_balance_1234", "remote_created_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z", "remote_was_deleted": false} - listHrisTimesheetentries: + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisGroups: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createHrisTimesheetentry: - speakeasy-default-create-hris-timesheetentry: + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisLocations: + "": parameters: - query: {} header: - x-connection-token: "" - requestBody: - application/json: {"hours_worked": 40, "start_time": "2024-10-01T08:00:00Z", "end_time": "2024-10-01T16:00:00Z", "employee_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_was_deleted": false} + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: - "201": - application/json: {"hours_worked": 40, "start_time": "2024-10-01T08:00:00Z", "end_time": "2024-10-01T16:00:00Z", "employee_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_was_deleted": false, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveHrisTimesheetentry: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisPaygroups: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"hours_worked": 40, "start_time": "2024-10-01T08:00:00Z", "end_time": "2024-10-01T16:00:00Z", "employee_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_was_deleted": false, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_created_at": "2024-10-01T12:00:00Z", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listMarketingautomationAction: + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisPayrollRuns: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createMarketingautomationAction: + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisTimeoffbalances: "": parameters: - query: - remote_data: false header: - x-connection-token: "" - retrieveMarketingautomationAction: - "": - parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + x-connection-token: query: - remote_data: false - header: - x-connection-token: "" - listMarketingautomationAutomations: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true + responses: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisTimeoffs: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createMarketingautomationAutomation: + application/json: + data: [] + next_cursor: + prev_cursor: + listHrisTimesheetentries: "": parameters: - query: - remote_data: false header: - x-connection-token: "" - retrieveMarketingautomationAutomation: - "": - parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + x-connection-token: query: - remote_data: false - header: - x-connection-token: "" - listMarketingautomationCampaigns: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true + responses: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listLinkedUsers: + speakeasy-default-list-linked-users: + responses: + "200": + application/json: [] + listMarketingAutomationContacts: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createMarketingautomationCampaign: + application/json: + data: [] + next_cursor: + prev_cursor: + listMarketingAutomationEvents: "": parameters: - query: - remote_data: false header: - x-connection-token: "" - retrieveMarketingautomationCampaign: - "": - parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + x-connection-token: query: - remote_data: false - header: - x-connection-token: "" - listMarketingAutomationContacts: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true + responses: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listMarketingAutomationUsers: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createMarketingAutomationContact: + application/json: + data: [] + next_cursor: + prev_cursor: + listMarketingautomationAction: "": parameters: - query: - remote_data: false header: - x-connection-token: "" - retrieveMarketingAutomationContact: - "": - parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + x-connection-token: query: - remote_data: false - header: - x-connection-token: "" - listMarketingautomationEmails: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true + responses: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listMarketingautomationAutomations: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveMarketingautomationEmail: + application/json: + data: [] + next_cursor: + prev_cursor: + listMarketingautomationCampaigns: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" - listMarketingAutomationEvents: - "": - parameters: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveMarketingautomationEvent: + application/json: + data: [] + next_cursor: + prev_cursor: + listMarketingautomationEmails: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" - listMarketingautomationLists: - "": - parameters: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createMarketingautomationList: - speakeasy-default-create-marketingautomation-list: - parameters: - query: {} - header: - x-connection-token: "" - retrieveMarketingautomationList: + application/json: + data: [] + next_cursor: + prev_cursor: + listMarketingautomationLists: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" - listMarketingautomationMessages: - "": - parameters: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveMarketingautomationMessage: + application/json: + data: [] + next_cursor: + prev_cursor: + listMarketingautomationMessages: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true + responses: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: listMarketingautomationTemplates: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createMarketingautomationTemplate: - speakeasy-default-create-marketingautomation-template: - parameters: - query: {} - header: - x-connection-token: "" - retrieveMarketingautomationTemplate: + application/json: + data: [] + next_cursor: + prev_cursor: + listTicketingAccount: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" - listMarketingAutomationUsers: - "": - parameters: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveMarketingAutomationUser: + application/json: + data: [] + next_cursor: + prev_cursor: + listTicketingAttachments: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" - listAtsActivity: - "": - parameters: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAtsActivity: + application/json: + data: [] + next_cursor: + prev_cursor: + listTicketingCollections: "": parameters: - query: - remote_data: false header: - x-connection-token: "" - requestBody: - application/json: {"activity_type": "NOTE", "subject": "Email subject", "body": "Dear Diana, I love you", "visibility": "PUBLIC", "candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_created_at": "2024-10-01T12:00:00Z", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}} + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: - "201": - application/json: {"activity_type": "NOTE", "subject": "Email subject", "body": "Dear Diana, I love you", "visibility": "PUBLIC", "candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_created_at": "2024-10-01T12:00:00Z", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveAtsActivity: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listTicketingComments: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"activity_type": "NOTE", "subject": "Email subject", "body": "Dear Diana, I love you", "visibility": "PUBLIC", "candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_created_at": "2024-10-01T12:00:00Z", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listAtsApplication: + application/json: + data: [] + next_cursor: + prev_cursor: + listTicketingContacts: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAtsApplication: + application/json: + data: [] + next_cursor: + prev_cursor: + listTicketingTags: "": parameters: - query: - remote_data: false header: - x-connection-token: "" - requestBody: - application/json: {"applied_at": "2024-10-01T12:00:00Z", "rejected_at": "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"}} + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: - "201": - application/json: {"applied_at": "2024-10-01T12:00:00Z", "rejected_at": "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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveAtsApplication: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listTicketingTeams: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true responses: "200": - application/json: {"applied_at": "2024-10-01T12:00:00Z", "rejected_at": "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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listAtsAttachment: + application/json: + data: [] + next_cursor: + prev_cursor: + listTicketingTicket: "": parameters: + header: + x-connection-token: query: - remote_data: true + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + remote_data: true responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAtsAttachment: + application/json: + data: [] + next_cursor: + prev_cursor: + listTicketingUsers: "": parameters: - query: - remote_data: false header: - x-connection-token: "" + x-connection-token: + query: + cursor: 1b8b05bb-5273-4012-b520-8657b0b90874 + limit: 10 + remote_data: true + responses: + "200": + application/json: + data: [] + next_cursor: + prev_cursor: + listWebhooks: + speakeasy-default-list-webhooks: + responses: + "200": + application/json: [] + map: + speakeasy-default-map: requestBody: - application/json: {"file_url": "https://example.com/file.pdf", "file_name": "file.pdf", "attachment_type": "RESUME", "remote_created_at": "2024-10-01T12:00:00Z", "remote_modified_at": "2024-10-01T12:00:00Z", "candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}} + application/json: + attributeId: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + linked_user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + source_custom_field_id: id_1 + source_provider: hubspot responses: "201": - application/json: {"file_url": "https://example.com/file.pdf", "file_name": "file.pdf", "attachment_type": "RESUME", "remote_created_at": "2024-10-01T12:00:00Z", "remote_modified_at": "2024-10-01T12:00:00Z", "candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveAtsAttachment: + application/json: + created_at: "2024-10-01T12:00:00Z" + data_type: string + description: My favorite dish + id_attribute: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_consumer: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_entity: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_project: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_id: id_1 + ressource_owner_type: "" + scope: "" + slug: fav_dish + source: hubspot + status: "" + query: + speakeasy-default-query: + parameters: + header: + x-connection-token: + requestBody: + application/json: + query: When does Panora incorporated? + topK: "3" + remoteId: "": parameters: - path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" query: - remote_data: false - header: - x-connection-token: "" + remoteId: id_1 responses: "200": - application/json: {"file_url": "https://example.com/file.pdf", "file_name": "file.pdf", "attachment_type": "RESUME", "remote_created_at": "2024-10-01T12:00:00Z", "remote_modified_at": "2024-10-01T12:00:00Z", "candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listAtsCandidate: - "": + application/json: + alias: acme + id_linked_user: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_project: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + linked_user_origin_id: id_1 + request: + speakeasy-default-request: parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + requestBody: + application/json: + method: GET + path: /dev + resync: + speakeasy-default-resync: responses: - "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAtsCandidate: + "201": + application/json: + provider: gitlab + status: success + timestamp: "" + vertical: ticketing + retrieveAccountingAccount: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - requestBody: - application/json: {"first_name": "Joe", "last_name": "Doe", "company": "Acme", "title": "Analyst", "locations": "New York", "is_private": false, "email_reachable": true, "remote_created_at": "2024-10-01T12:00:00Z", "remote_modified_at": "2024-10-01T12:00:00Z", "last_interaction_at": "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", "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"}} responses: - "201": - application/json: {"first_name": "Joe", "last_name": "Doe", "company": "Acme", "title": "Analyst", "locations": "New York", "is_private": false, "email_reachable": true, "remote_created_at": "2024-10-01T12:00:00Z", "remote_modified_at": "2024-10-01T12:00:00Z", "last_interaction_at": "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", "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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveAtsCandidate: + "200": + application/json: + account_number: "1000" + classification: Asset + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + current_balance: 10000 + description: Main cash account for daily operations + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + name: Cash + parent_account: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_id: account_1234 + status: Active + type: Current Asset + retrieveAccountingAddress: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"first_name": "Joe", "last_name": "Doe", "company": "Acme", "title": "Analyst", "locations": "New York", "is_private": false, "email_reachable": true, "remote_created_at": "2024-10-01T12:00:00Z", "remote_modified_at": "2024-10-01T12:00:00Z", "last_interaction_at": "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", "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"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listAtsDepartments: + application/json: + city: New York + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + country: USA + country_subdivision: New York + created_at: "2024-06-15T12:00:00Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + remote_id: address_1234 + state: NY + street_1: 123 Main St + street_2: Apt 4B + type: Billing + zip: "10001" + retrieveAccountingAttachment: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAtsDepartment: + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + file_name: invoice.pdf + file_url: https://example.com/files/invoice.pdf + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + remote_id: attachment_1234 + retrieveAccountingBalanceSheet: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"name": "Sales", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"key1": "value1", "key2": 42, "key3": true}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2023-10-01T12:00:00Z"} - listAtsInterview: + application/json: + assets: + - Cash + - Accounts Receivable + - Inventory + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + date: "2024-06-30T23:59:59Z" + equity: + - Common Stock + - Retained Earnings + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + liabilities: + - Accounts Payable + - Long-term Debt + line_items: [] + modified_at: "2024-06-15T12:00:00Z" + name: Q2 2024 Balance Sheet + net_assets: 1000000 + remote_generated_at: "2024-07-01T12:00:00Z" + remote_id: balancesheet_1234 + retrieveAccountingCashflowStatement: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAtsInterview: + application/json: + cash_at_beginning_of_period: 1000000 + cash_at_end_of_period: 1200000 + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + end_period: "2024-06-30T23:59:59Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + line_items: [] + modified_at: "2024-06-15T12:00:00Z" + name: Q2 2024 Cash Flow Statement + remote_generated_at: "2024-07-01T12:00:00Z" + remote_id: cashflowstatement_1234 + start_period: "2024-04-01T00:00:00Z" + retrieveAccountingCompanyInfo: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - requestBody: - application/json: {"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": "2024-10-01T12:00:00Z", "end_at": "2024-10-01T12:00:00Z", "remote_created_at": "2024-10-01T12:00:00Z", "remote_updated_at": "2024-10-01T12:00:00Z", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}} responses: - "201": - application/json: {"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": "2024-10-01T12:00:00Z", "end_at": "2024-10-01T12:00:00Z", "remote_created_at": "2024-10-01T12:00:00Z", "remote_updated_at": "2024-10-01T12:00:00Z", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveAtsInterview: + "200": + application/json: + created_at: "2024-06-15T12:00:00Z" + currency: USD + fiscal_year_end_day: 31 + fiscal_year_end_month: 12 + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + legal_name: Acme Corporation LLC + modified_at: "2024-06-15T12:00:00Z" + name: Acme Corporation + remote_created_at: "2024-06-15T12:00:00Z" + remote_id: company_1234 + tax_number: "123456789" + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + urls: + - https://www.acmecorp.com + - https://store.acmecorp.com + retrieveAccountingContact: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"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": "2024-10-01T12:00:00Z", "end_at": "2024-10-01T12:00:00Z", "remote_created_at": "2024-10-01T12:00:00Z", "remote_updated_at": "2024-10-01T12:00:00Z", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listAtsJobInterviewStage: + application/json: + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + email_address: john.doe@example.com + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + is_customer: false + is_supplier: true + modified_at: "2024-06-15T12:00:00Z" + name: John Doe + remote_id: contact_1234 + remote_updated_at: "2024-06-15T12:00:00Z" + status: Active + tax_number: "123456789" + retrieveAccountingCreditNote: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAtsJobInterviewStage: + application/json: + accounting_period_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + applied_payments: + - APPLIED-001 + - APPLIED-002 + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + number: CN-001 + payments: + - PAYMENT-001 + - PAYMENT-002 + remaining_credit: 5000 + remote_created_at: "2024-06-15T12:00:00Z" + remote_id: creditnote_1234 + remote_updated_at: "2024-06-15T12:00:00Z" + status: Issued + total_amount: 10000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + transaction_date: "2024-06-15T12:00:00Z" + retrieveAccountingExpense: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"name": "Second Call", "stage_order": 1, "job_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listAtsJob: + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + line_items: [] + memo: Business lunch with client + modified_at: "2024-06-15T12:00:00Z" + remote_created_at: "2024-06-15T12:00:00Z" + remote_id: expense_1234 + sub_total: 9000 + total_amount: 10000 + total_tax_amount: 1000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + transaction_date: "2024-06-15T12:00:00Z" + retrieveAccountingIncomeStatement: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAtsJob: + application/json: + created_at: "2024-06-15T12:00:00Z" + currency: USD + end_period: "2024-06-30T23:59:59Z" + gross_profit: 1000000 + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + name: Q2 2024 Income Statement + net_income: 750000 + net_operating_income: 800000 + remote_id: incomestatement_1234 + start_period: "2024-04-01T00:00:00Z" + retrieveAccountingInvoice: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"name": "Financial Analyst", "description": "Extract financial data and write detailed investment thesis", "code": "JOB123", "status": "OPEN", "type": "POSTING", "confidential": true, "departments": ["801f9ede-c698-4e66-a7fc-48d19eebaa4f"], "offices": ["801f9ede-c698-4e66-a7fc-48d19eebaa4f"], "managers": ["801f9ede-c698-4e66-a7fc-48d19eebaa4f"], "recruiters": ["801f9ede-c698-4e66-a7fc-48d19eebaa4f"], "remote_created_at": "2024-10-01T12:00:00Z", "remote_updated_at": "2024-10-01T12:00:00Z", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"key1": "value1", "key2": 42, "key3": true}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2023-10-01T12:00:00Z"} - listAtsOffer: + application/json: + accounting_period_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + balance: 0 + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + due_date: "2024-07-15T12:00:00Z" + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + issue_date: "2024-06-15T12:00:00Z" + line_items: [] + memo: Payment for services rendered + modified_at: "2024-06-15T12:00:00Z" + number: INV-001 + paid_on_date: "2024-07-10T12:00:00Z" + remote_id: invoice_1234 + remote_updated_at: "2024-06-15T12:00:00Z" + status: Paid + sub_total: 10000 + total_amount: 11000 + total_discount: 1000 + total_tax_amount: 1000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + type: Sales + retrieveAccountingItem: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAtsOffer: + application/json: + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + name: Product A + purchase_account: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + purchase_price: 800 + remote_id: item_1234 + remote_updated_at: "2024-06-15T12:00:00Z" + sales_account: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + status: Active + unit_price: 1000 + retrieveAccountingJournalEntry: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"created_by": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_created_at": "2024-10-01T12:00:00Z", "closed_at": "2024-10-01T12:00:00Z", "sent_at": "2024-10-01T12:00:00Z", "start_date": "2024-10-01T12:00:00Z", "status": "DRAFT", "application_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}} - listAtsOffice: + application/json: + applied_payments: + - appliedPayment1 + - appliedPayment2 + created_at: "2024-06-15T12:00:00Z" + currency: USD + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_acc_accounting_period: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_acc_company_info: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + journal_number: JE-001 + line_items: [] + memo: Monthly expense journal entry + modified_at: "2024-06-15T12:00:00Z" + payments: + - payment1 + - payment2 + posting_status: Posted + remote_created_at: "2024-06-15T12:00:00Z" + remote_id: journal_entry_1234 + remote_modiified_at: "2024-06-15T12:00:00Z" + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + transaction_date: "2024-06-15T12:00:00Z" + retrieveAccountingPayment: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" + remote_data: false + responses: + "200": + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + accounting_period_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + invoice_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + line_items: [] + modified_at: "2024-06-15T12:00:00Z" + remote_id: payment_1234 + remote_updated_at: "2024-06-15T12:00:00Z" + total_amount: 10000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + transaction_date: "2024-06-15T12:00:00Z" + type: Credit Card + retrieveAccountingPhonenumber: + "": + parameters: header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAtsOffice: + application/json: + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + number: "+1234567890" + remote_id: phone_1234 + type: Mobile + retrieveAccountingPurchaseOrder: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"name": "Condo Office 5th", "location": "New York", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listAtsRejectReasons: + application/json: + accounting_period_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + customer: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + delivery_address: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + delivery_date: "2024-07-15T12:00:00Z" + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + issue_date: "2024-06-15T12:00:00Z" + line_items: [] + memo: Purchase order for Q3 inventory + modified_at: "2024-06-15T12:00:00Z" + purchase_order_number: PO-001 + remote_created_at: "2024-06-15T12:00:00Z" + remote_id: po_1234 + remote_updated_at: "2024-06-15T12:00:00Z" + status: Pending + total_amount: 100000 + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + vendor: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + retrieveAccountingTaxRate: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAtsRejectReason: + application/json: + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + description: VAT 20% + effective_tax_rate: 1900 + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + remote_id: tax_rate_1234 + total_tax_ratge: 2000 + retrieveAccountingTrackingCategory: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"name": "Candidate inexperienced", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listAtsScorecard: + application/json: + category_type: Expense + created_at: "2024-06-15T12:00:00Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + name: Department + parent_category: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_id: tracking_category_1234 + status: Active + retrieveAccountingTransaction: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAtsScorecard: + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + accounting_period_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + line_items: [] + modified_at: "2024-06-15T12:00:00Z" + number: "1001" + remote_id: remote_id_1234 + remote_updated_at: "2024-06-15T12:00:00Z" + total_amount: "1000" + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + transaction_date: "2024-06-15T12:00:00Z" + transaction_type: Sale + retrieveAccountingVendorCredit: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"overall_recommendation": "YES", "application_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "interview_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_created_at": "2024-10-01T12:00:00Z", "submitted_at": "2024-10-01T12:00:00Z", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listAtsTags: + application/json: + accounting_period_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + currency: USD + exchange_rate: "1.2" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + line_items: [] + modified_at: "2024-06-15T12:00:00Z" + number: VC-001 + remote_id: remote_id_1234 + remote_updated_at: "2024-06-15T12:00:00Z" + total_amount: "1000" + tracking_categories: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + transaction_date: "2024-06-15T12:00:00Z" + vendor: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + retrieveAtsActivity: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAtsTag: + application/json: + activity_type: NOTE + body: Dear Diana, I love you + candidate_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_created_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + subject: Email subject + visibility: PUBLIC + retrieveAtsApplication: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"name": "Important", "id_ats_candidate": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listAtsUsers: + application/json: + applied_at: "2024-10-01T12:00:00Z" + candidate_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + credited_to: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + current_stage: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + job_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + offers: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + - 12345678-1234-1234-1234-123456789012 + reject_reason: Candidate not experienced enough + rejected_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + source: Source Name + retrieveAtsAttachment: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAtsUser: + application/json: + attachment_type: RESUME + candidate_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + file_name: file.pdf + file_url: https://example.com/file.pdf + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_created_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_modified_at: "2024-10-01T12:00:00Z" + retrieveAtsCandidate: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"first_name": "John", "last_name": "Doe", "email": "john.doe@example.com", "disabled": false, "access_role": "ADMIN", "remote_created_at": "2024-10-01T12:00:00Z", "remote_modified_at": "2024-10-01T12:00:00Z", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listAtsEeocs: + application/json: + applications: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + attachments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + company: Acme + created_at: "2024-10-01T12:00:00Z" + email_addresses: + - email_address: joedoe@gmail.com + email_address_type: WORK + email_reachable: true + field_mappings: + fav_color: red + fav_dish: broccoli + first_name: Joe + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + is_private: false + last_interaction_at: "2024-10-01T12:00:00Z" + last_name: Doe + locations: New York + modified_at: "2024-10-01T12:00:00Z" + phone_numbers: + - phone_number: "+33660688899" + phone_type: WORK + remote_created_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + remote_modified_at: "2024-10-01T12:00:00Z" + tags: + - tag_1 + - tag_2 + title: Analyst + urls: + - url: mywebsite.com + url_type: WEBSITE + retrieveAtsDepartment: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} + application/json: + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2023-10-01T12:00:00Z" + name: Sales + remote_data: + key1: value1 + key2: 42 + key3: true + remote_id: id_1 retrieveAtsEeocs: speakeasy-default-retrieve-ats-eeocs: parameters: + header: + x-connection-token: path: - id: "" + id: query: {} - header: - x-connection-token: "" responses: "200": - application/json: {"candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "submitted_at": "2024-10-01T12:00:00Z", "race": "AMERICAN_INDIAN_OR_ALASKAN_NATIVE", "gender": "MALE", "veteran_status": "I_AM_NOT_A_PROTECTED_VETERAN", "disability_status": "YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY", "field_mappings": {"fav_dish": "broccoli", "fav_color": "red"}, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "remote_data": {"fav_dish": "broccoli", "fav_color": "red"}, "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listAccountingAccounts: + application/json: + candidate_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + disability_status: YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY + field_mappings: + fav_color: red + fav_dish: broccoli + gender: MALE + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + race: AMERICAN_INDIAN_OR_ALASKAN_NATIVE + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + submitted_at: "2024-10-01T12:00:00Z" + veteran_status: I_AM_NOT_A_PROTECTED_VETERAN + retrieveAtsInterview: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAccountingAccount: + application/json: + application_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + end_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + interviewers: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + job_interview_stage_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + location: San Francisco + modified_at: "2024-10-01T12:00:00Z" + organized_by: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_created_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + remote_updated_at: "2024-10-01T12:00:00Z" + start_at: "2024-10-01T12:00:00Z" + status: SCHEDULED + retrieveAtsJob: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - requestBody: - application/json: {"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"} responses: - "201": - application/json: {"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", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "account_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - retrieveAccountingAccount: + "200": + application/json: + code: JOB123 + confidential: true + created_at: "2024-10-01T12:00:00Z" + departments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + description: Extract financial data and write detailed investment thesis + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + managers: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2023-10-01T12:00:00Z" + name: Financial Analyst + offices: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + recruiters: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_created_at: "2024-10-01T12:00:00Z" + remote_data: + key1: value1 + key2: 42 + key3: true + remote_id: id_1 + remote_updated_at: "2024-10-01T12:00:00Z" + status: OPEN + type: POSTING + retrieveAtsJobInterviewStage: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"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", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "account_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingAddress: + application/json: + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + job_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: Second Call + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + stage_order: 1 + retrieveAtsOffer: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAccountingAddress: + application/json: + application_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + closed_at: "2024-10-01T12:00:00Z" + created_by: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_created_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + sent_at: "2024-10-01T12:00:00Z" + start_date: "2024-10-01T12:00:00Z" + status: DRAFT + retrieveAtsOffice: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"type": "Billing", "street_1": "123 Main St", "street_2": "Apt 4B", "city": "New York", "state": "NY", "country_subdivision": "New York", "country": "USA", "zip": "10001", "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "address_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingAttachments: + application/json: + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + location: New York + modified_at: "2024-10-01T12:00:00Z" + name: Condo Office 5th + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + retrieveAtsRejectReason: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAccountingAttachment: + application/json: + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: Candidate inexperienced + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + retrieveAtsScorecard: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - requestBody: - application/json: {"file_name": "invoice.pdf", "file_url": "https://example.com/files/invoice.pdf", "account_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f"} responses: - "201": - application/json: {"file_name": "invoice.pdf", "file_url": "https://example.com/files/invoice.pdf", "account_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "attachment_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - retrieveAccountingAttachment: + "200": + application/json: + application_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + interview_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + overall_recommendation: "YES" + remote_created_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + submitted_at: "2024-10-01T12:00:00Z" + retrieveAtsTag: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"file_name": "invoice.pdf", "file_url": "https://example.com/files/invoice.pdf", "account_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "attachment_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingBalanceSheets: + application/json: + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_ats_candidate: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: Important + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + retrieveAtsUser: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAccountingBalanceSheet: + application/json: + access_role: ADMIN + created_at: "2024-10-01T12:00:00Z" + disabled: false + email: john.doe@example.com + field_mappings: + fav_color: red + fav_dish: broccoli + first_name: John + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + last_name: Doe + modified_at: "2024-10-01T12:00:00Z" + remote_created_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + remote_modified_at: "2024-10-01T12:00:00Z" + retrieveCollection: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"name": "Q2 2024 Balance Sheet", "currency": "USD", "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "date": "2024-06-30T23:59:59Z", "net_assets": 1000000, "assets": ["Cash", "Accounts Receivable", "Inventory"], "liabilities": ["Accounts Payable", "Long-term Debt"], "equity": ["Common Stock", "Retained Earnings"], "remote_generated_at": "2024-07-01T12:00:00Z", "line_items": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "balancesheet_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingCashflowStatement: + application/json: + collection_type: PROJECT + created_at: "2024-10-01T12:00:00Z" + description: Collect issues + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: My Personal Collection + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + retrieveConnections: + speakeasy-default-retrieve-connections: + responses: + "200": + application/json: [] + retrieveCrmCompany: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAccountingCashflowStatement: + application/json: + addresses: + - address_type: WORK + city: New York + country: USA + owner_type: + postal_code: "10001" + state: NY + street_1: 5th Avenue + street_2: Street 2 + email_addresses: + - email_address: acme@gmail.com + email_address_type: WORK + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + industry: ACCOUNTING + name: Acme + number_of_employees: 10 + phone_numbers: + - phone_number: "+33660606067" + phone_type: WORK + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + retrieveCrmContact: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"name": "Q2 2024 Cash Flow Statement", "currency": "USD", "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "start_period": "2024-04-01T00:00:00Z", "end_period": "2024-06-30T23:59:59Z", "cash_at_beginning_of_period": 1000000, "cash_at_end_of_period": 1200000, "remote_generated_at": "2024-07-01T12:00:00Z", "line_items": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "cashflowstatement_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingCompanyInfos: + application/json: + addresses: + - address_type: PERSONAL + city: Anytown + country: USA + owner_type: + postal_code: "10001" + state: CA + street_1: 5th Avenue + street_2: Street 2 + created_at: "2024-10-01T12:00:00Z" + email_addresses: + - email_address: Tyrese.Waelchi40@yahoo.com + email_address_type: + field_mappings: + fav_color: red + fav_dish: broccoli + first_name: John + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + last_name: Doe + modified_at: "2024-10-01T12:00:00Z" + phone_numbers: + - phone_number: (600) 606-8108 x302 + phone_type: + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + retrieveCrmDeal: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAccountingCompanyInfo: + application/json: + amount: 1000 + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + description: Contract with Sales Operations Team + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: Huge Contract with Acme + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + stage_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + retrieveCrmEngagement: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"name": "Acme Corporation", "legal_name": "Acme Corporation LLC", "tax_number": "123456789", "fiscal_year_end_month": 12, "fiscal_year_end_day": 31, "currency": "USD", "urls": ["https://www.acmecorp.com", "https://store.acmecorp.com"], "tracking_categories": ["801f9ede-c698-4e66-a7fc-48d19eebaa4f", "801f9ede-c698-4e66-a7fc-48d19eebaa4f"], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "company_1234", "remote_created_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingContacts: + application/json: + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contacts: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + content: Meeting call with CTO + created_at: "2024-10-01T12:00:00Z" + direction: INBOUND + end_time: "2024-10-01T22:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + start_at: "2024-10-01T12:00:00Z" + subject: Technical features planning + type: MEETING + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + retrieveCrmNote: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAccountingContact: + application/json: + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + content: My notes taken during the meeting + created_at: "2024-10-01T12:00:00Z" + deal_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + retrieveCrmStage: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - requestBody: - application/json: {"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"} responses: - "201": - application/json: {"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", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "contact_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - retrieveAccountingContact: + "200": + application/json: + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + stage_name: Qualified + retrieveCrmTask: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"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", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "contact_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingCreditNote: + application/json: + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + content: Prepare email campaign + created_at: "2024-10-01T12:00:00Z" + deal_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + due_date: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + finished_date: "2024-10-01T12:00:00Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_data: + key1: value1 + key2: 42 + key3: true + remote_id: id_1 + status: PENDING + subject: Answer customers + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + retrieveCrmUser: "": parameters: + header: + x-connection-token: + path: + id: b008e199-eda9-4629-bd41-a01b6195864a query: remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAccountingCreditNote: - "": + application/json: + created_at: "2024-10-01T12:00:00Z" + email: jane.doe@example.com + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: Jane Doe + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + retrieveEcommerceCustomer: + speakeasy-default-retrieve-ecommerce-customer: parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" - query: - remote_data: false + id: + query: {} + responses: + "200": + application/json: + addresses: + - address_type: PERSONAL + city: New York + country: United States of America + owner_type: + postal_code: "10001" + state: New York + street_1: 5th Avenue + street_2: Street 2 + created_at: "2024-10-01T12:00:00Z" + email: joedoe@gmail.com + first_name: Joe + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + last_name: Doe + modified_at: "2024-10-01T12:00:00Z" + phone_number: "+336666666" + remote_id: id_1 + retrieveEcommerceFulfillment: + speakeasy-default-retrieve-ecommerce-fulfillment: + parameters: header: - x-connection-token: "" + x-connection-token: + path: + id: + query: {} responses: "200": - application/json: {"transaction_date": "2024-06-15T12:00:00Z", "status": "Issued", "number": "CN-001", "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "exchange_rate": "1.2", "total_amount": 10000, "remaining_credit": 5000, "tracking_categories": ["801f9ede-c698-4e66-a7fc-48d19eebaa4f"], "currency": "USD", "payments": ["PAYMENT-001", "PAYMENT-002"], "applied_payments": ["APPLIED-001", "APPLIED-002"], "accounting_period_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "creditnote_1234", "remote_created_at": "2024-06-15T12:00:00Z", "remote_updated_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingExpense: - "": + application/json: + carrier: DHL + created_at: "2024-10-01T12:00:00Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + items: {} + modified_at: "2024-10-01T12:00:00Z" + order_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_id: id_1 + tracking_numbers: + - track_1029_191919 + tracking_urls: + - https://tracing-url.sf.com + retrieveEcommerceOrder: + speakeasy-default-retrieve-ecommerce-order: parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: + query: {} responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAccountingExpense: - "": + application/json: + created_at: "2024-10-01T12:00:00Z" + currency: AUD + customer_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + fulfillment_status: PENDING + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + items: + - company_info_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + modified_at: "2024-06-15T12:00:00Z" + name: Net Income + parent_item: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_generated_at: "2024-07-01T12:00:00Z" + remote_id: "12345" + type: Operating Activities + value: 100000 + modified_at: "2024-10-01T12:00:00Z" + order_number: "19823838833" + order_status: UNSHIPPED + payment_status: SUCCESS + remote_id: id_1 + total_discount: 10 + total_price: 300 + total_shipping: 120 + total_tax: 120 + retrieveEcommerceProduct: + speakeasy-default-retrieve-ecommerce-product: parameters: - query: - remote_data: false header: - x-connection-token: "" - requestBody: - application/json: {"transaction_date": "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": []} + x-connection-token: + path: + id: + query: {} responses: - "201": - application/json: {"transaction_date": "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": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "expense_1234", "remote_created_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - retrieveAccountingExpense: + "200": + application/json: + created_at: "2024-10-01T12:00:00Z" + description: best tee ever + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + images_urls: + - https://myproduct/image + modified_at: "2024-10-01T12:00:00Z" + product_status: ACTIVE + product_type: teeshirt + product_url: https://product_url/tee + remote_id: id_1 + tags: + - tag_1 + vendor: vendor_extern + retrieveFilestorageFile: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"transaction_date": "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": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "expense_1234", "remote_created_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingIncomeStatement: + application/json: + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + file_url: https://example.com/my_paris_photo.png + folder_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + mime_type: application/pdf + modified_at: "2024-10-01T12:00:00Z" + name: my_paris_photo.png + permission: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + shared_link: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + size: "1024" + retrieveFilestorageFolder: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAccountingIncomeStatement: + application/json: + created_at: "2024-10-01T12:00:00Z" + description: All things school related + drive_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + field_mappings: + fav_color: red + fav_dish: broccoli + folder_url: https://example.com/school + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: school + parent_folder_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + permission: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + shared_link: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + size: "2048" + retrieveFilestorageGroup: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"name": "Q2 2024 Income Statement", "currency": "USD", "start_period": "2024-04-01T00:00:00Z", "end_period": "2024-06-30T23:59:59Z", "gross_profit": 1000000, "net_operating_income": 800000, "net_income": 750000, "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "incomestatement_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingInvoice: + application/json: + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: My group + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + remote_was_deleted: false + users: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + retrieveFilestorageUser: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAccountingInvoice: + application/json: + created_at: "2024-10-01T12:00:00Z" + email: joe.doe@gmail.com + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + is_me: true + modified_at: "2024-10-01T12:00:00Z" + name: Joe Doe + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + retrieveHrisBankInfo: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - requestBody: - application/json: {"type": "Sales", "number": "INV-001", "issue_date": "2024-06-15T12:00:00Z", "due_date": "2024-07-15T12:00:00Z", "paid_on_date": "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": []} responses: - "201": - application/json: {"type": "Sales", "number": "INV-001", "issue_date": "2024-06-15T12:00:00Z", "due_date": "2024-07-15T12:00:00Z", "paid_on_date": "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": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "invoice_1234", "remote_updated_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - retrieveAccountingInvoice: + "200": + application/json: + account_number: "1234567890" + account_type: CHECKING + bank_name: Bank of America + created_at: "2024-10-01T12:00:00Z" + employee_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: id_1 + remote_was_deleted: false + routing_number: "021000021" + retrieveHrisBenefit: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"type": "Sales", "number": "INV-001", "issue_date": "2024-06-15T12:00:00Z", "due_date": "2024-07-15T12:00:00Z", "paid_on_date": "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": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "invoice_1234", "remote_updated_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingItem: + application/json: + company_contribution: 200 + created_at: "2024-10-01T12:00:00Z" + employee_contribution: 100 + employee_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + employer_benefit_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + end_date: "2024-12-31T23:59:59Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + provider_name: Health Insurance Provider + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: benefit_1234 + remote_was_deleted: false + start_date: "2024-01-01T00:00:00Z" + retrieveHrisCompany: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAccountingItem: + application/json: + created_at: "2024-10-01T12:00:00Z" + display_name: Acme Corp + eins: + - 12-3456789 + - 98-7654321 + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + legal_name: Acme Corporation + locations: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: company_1234 + remote_was_deleted: false + retrieveHrisDependent: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"name": "Product A", "status": "Active", "unit_price": 1000, "purchase_price": 800, "sales_account": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "purchase_account": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "item_1234", "remote_updated_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingJournalEntry: + application/json: + created_at: "2024-10-01T12:00:00Z" + date_of_birth: "2020-01-01" + employee_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + first_name: John + gender: MALE + home_location: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + is_student: true + last_name: Doe + middle_name: Michael + modified_at: "2024-10-01T12:00:00Z" + phone_number: "+1234567890" + relationship: CHILD + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: dependent_1234 + remote_was_deleted: false + ssn: 123-45-6789 + retrieveHrisEmployee: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAccountingJournalEntry: + application/json: + avatar_url: https://example.com/avatar.jpg + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + date_of_birth: "1990-01-01" + display_full_name: John Doe + employee_number: EMP001 + employment_status: ACTIVE + employments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + ethnicity: AMERICAN_INDIAN_OR_ALASKA_NATIVE + first_name: John + gender: MALE + groups: + - Group1 + - Group2 + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + last_name: Doe + locations: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + manager_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + marital_status: Married + mobile_phone_number: "+1234567890" + modified_at: "2024-10-01T12:00:00Z" + personal_email: john.doe@personal.com + preferred_name: Johnny + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: employee_1234 + remote_was_deleted: false + ssn: 123-45-6789 + start_date: "2020-01-01" + termination_date: "2025-01-01" + username: johndoe + work_email: john.doe@company.com + retrieveHrisEmployeePayrollRun: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - requestBody: - application/json: {"transaction_date": "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": []} responses: - "201": - application/json: {"transaction_date": "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": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "journal_entry_1234", "remote_created_at": "2024-06-15T12:00:00Z", "remote_modiified_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - retrieveAccountingJournalEntry: + "200": + application/json: + check_date: "2023-01-20T00:00:00Z" + created_at: "2024-10-01T12:00:00Z" + deductions: [] + earnings: [] + employee_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + end_date: "2023-01-15T23:59:59Z" + gross_pay: 5000 + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + net_pay: 4000 + payroll_run_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: payroll_run_1234 + remote_was_deleted: false + start_date: "2023-01-01T00:00:00Z" + taxes: [] + retrieveHrisEmployerBenefit: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"transaction_date": "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": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "journal_entry_1234", "remote_created_at": "2024-06-15T12:00:00Z", "remote_modiified_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingPayment: + application/json: + benefit_plan_type: Health Insurance + created_at: "2024-10-01T12:00:00Z" + deduction_code: HEALTH-001 + description: Comprehensive health insurance coverage for employees + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: Company Health Plan + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: benefit_1234 + remote_was_deleted: false + retrieveHrisEmployment: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAccountingPayment: + application/json: + created_at: "2024-10-01T12:00:00Z" + effective_date: "2023-01-01" + employee_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + employment_type: FULL_TIME + flsa_status: EXEMPT + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + job_title: Software Engineer + modified_at: "2024-10-01T12:00:00Z" + pay_currency: USD + pay_frequency: WEEKLY + pay_group_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + pay_period: MONTHLY + pay_rate: 100000 + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: employment_1234 + remote_was_deleted: false + retrieveHrisGroup: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - requestBody: - application/json: {"invoice_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "transaction_date": "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": []} responses: - "201": - application/json: {"invoice_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "transaction_date": "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": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "payment_1234", "remote_updated_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - retrieveAccountingPayment: + "200": + application/json: + created_at: "2024-10-01T12:00:00Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: Engineering Team + parent_group: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: group_1234 + remote_was_deleted: false + type: DEPARTMENT + retrieveHrisLocation: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"invoice_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "transaction_date": "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": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "payment_1234", "remote_updated_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingPhonenumber: + application/json: + city: San Francisco + company_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + country: USA + created_at: "2024-10-01T12:00:00Z" + employee_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + location_type: WORK + modified_at: "2024-10-01T12:00:00Z" + name: Headquarters + phone_number: "+1234567890" + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: location_1234 + remote_was_deleted: false + state: CA + street_1: 123 Main St + street_2: Suite 456 + zip_code: "94105" + retrieveHrisPaygroup: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAccountingPhonenumber: + application/json: + created_at: "2024-10-01T12:00:00Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + pay_group_name: Monthly Salaried + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: paygroup_1234 + remote_was_deleted: false + retrieveHrisPayrollRun: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"number": "+1234567890", "type": "Mobile", "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "phone_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingPurchaseOrder: + application/json: + check_date: "2024-01-20T00:00:00Z" + created_at: "2024-10-01T12:00:00Z" + employee_payroll_runs: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + end_date: "2024-01-15T23:59:59Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: payroll_run_1234 + remote_was_deleted: false + run_state: PAID + run_type: REGULAR + start_date: "2024-01-01T00:00:00Z" + retrieveHrisTimeoff: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createAccountingPurchaseOrder: + application/json: + amount: 5 + approver: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-06-15T12:00:00Z" + employee: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + employee_note: Annual vacation + end_time: "2024-07-05T17:00:00Z" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + remote_created_at: "2024-06-15T12:00:00Z" + remote_id: timeoff_1234 + remote_was_deleted: false + request_type: VACATION + start_time: "2024-07-01T09:00:00Z" + status: REQUESTED + units: DAYS + retrieveHrisTimeoffbalance: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - requestBody: - application/json: {"status": "Pending", "issue_date": "2024-06-15T12:00:00Z", "purchase_order_number": "PO-001", "delivery_date": "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": []} responses: - "201": - application/json: {"status": "Pending", "issue_date": "2024-06-15T12:00:00Z", "purchase_order_number": "PO-001", "delivery_date": "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": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "po_1234", "remote_created_at": "2024-06-15T12:00:00Z", "remote_updated_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - retrieveAccountingPurchaseOrder: + "200": + application/json: + balance: 80 + created_at: "2024-06-15T12:00:00Z" + employee_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-06-15T12:00:00Z" + policy_type: VACATION + remote_created_at: "2024-06-15T12:00:00Z" + remote_id: timeoff_balance_1234 + remote_was_deleted: false + used: 40 + retrieveHrisTimesheetentry: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" responses: "200": - application/json: {"status": "Pending", "issue_date": "2024-06-15T12:00:00Z", "purchase_order_number": "PO-001", "delivery_date": "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": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "po_1234", "remote_created_at": "2024-06-15T12:00:00Z", "remote_updated_at": "2024-06-15T12:00:00Z", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingTaxRate: + application/json: + created_at: "2024-10-01T12:00:00Z" + employee_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + end_time: "2024-10-01T16:00:00Z" + hours_worked: 40 + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_created_at: "2024-10-01T12:00:00Z" + remote_id: id_1 + remote_was_deleted: false + start_time: "2024-10-01T08:00:00Z" + retrieveLinkedUser: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" - header: - x-connection-token: "" + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAccountingTaxRate: + application/json: + alias: acme + id_linked_user: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_project: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + linked_user_origin_id: id_1 + retrieveMarketingAutomationContact: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - responses: - "200": - application/json: {"description": "VAT 20%", "total_tax_ratge": 2000, "effective_tax_rate": 1900, "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "tax_rate_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingTrackingCategorys: + retrieveMarketingAutomationUser: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" - responses: - "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAccountingTrackingCategory: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false + retrieveMarketingautomationAction: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - responses: - "200": - application/json: {"name": "Department", "status": "Active", "category_type": "Expense", "parent_category": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "tracking_category_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"} - listAccountingTransaction: + retrieveMarketingautomationAutomation: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" - responses: - "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAccountingTransaction: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false + retrieveMarketingautomationCampaign: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - responses: - "200": - application/json: {"transaction_type": "Sale", "number": "1001", "transaction_date": "2024-06-15T12:00:00Z", "total_amount": "1000", "exchange_rate": "1.2", "currency": "USD", "tracking_categories": ["801f9ede-c698-4e66-a7fc-48d19eebaa4f"], "account_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "contact_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "accounting_period_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "line_items": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "remote_id_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z", "remote_updated_at": "2024-06-15T12:00:00Z"} - listAccountingVendorCredit: + retrieveMarketingautomationEmail: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" + remote_data: false + retrieveMarketingautomationEvent: + "": + parameters: header: - x-connection-token: "" - responses: - "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveAccountingVendorCredit: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false + retrieveMarketingautomationList: "": parameters: + header: + x-connection-token: path: - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false + retrieveMarketingautomationMessage: + "": + parameters: header: - x-connection-token: "" - responses: - "200": - application/json: {"number": "VC-001", "transaction_date": "2024-06-15T12:00:00Z", "vendor": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "total_amount": "1000", "currency": "USD", "exchange_rate": "1.2", "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "tracking_categories": ["801f9ede-c698-4e66-a7fc-48d19eebaa4f"], "accounting_period_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "line_items": [], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "remote_id_1234", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z", "remote_updated_at": "2024-06-15T12:00:00Z"} - listEcommerceProducts: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false + retrieveMarketingautomationTemplate: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" + remote_data: false + retrieveTicketingAccount: + speakeasy-default-retrieve-ticketing-account: + parameters: header: - x-connection-token: "" + x-connection-token: + path: + id: + query: {} responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createEcommerceProduct: + application/json: + created_at: "2024-10-01T12:00:00Z" + domains: + - acme.com + - acme-test.com + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: My Personal Account + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + retrieveTicketingAttachment: "": parameters: + header: + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f query: remote_data: false - header: - x-connection-token: "" - requestBody: - application/json: {"product_url": "https://product_url/tee", "product_type": "teeshirt", "product_status": "ACTIVE", "images_urls": ["https://myproduct/image"], "description": "best tee ever", "vendor": "vendor_extern", "tags": ["tag_1"]} responses: - "201": - application/json: {"product_url": "https://product_url/tee", "product_type": "teeshirt", "product_status": "ACTIVE", "images_urls": ["https://myproduct/image"], "description": "best tee ever", "vendor": "vendor_extern", "tags": ["tag_1"], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveEcommerceProduct: - speakeasy-default-retrieve-ecommerce-product: + "200": + application/json: + comment_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + file_name: features_planning.pdf + file_url: https://example.com/features_planning.pdf + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + ticket_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + uploader: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + retrieveTicketingComment: + speakeasy-default-retrieve-ticketing-comment: parameters: + header: + x-connection-token: path: - id: "" + id: query: {} - header: - x-connection-token: "" responses: "200": - application/json: {"product_url": "https://product_url/tee", "product_type": "teeshirt", "product_status": "ACTIVE", "images_urls": ["https://myproduct/image"], "description": "best tee ever", "vendor": "vendor_extern", "tags": ["tag_1"], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listEcommerceOrders: - "": + application/json: + data: [] + next_cursor: + prev_cursor: + retrieveTicketingContact: + speakeasy-default-retrieve-ticketing-contact: parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: + query: {} responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - createEcommerceOrder: + application/json: + data: [] + next_cursor: + prev_cursor: + retrieveTicketingTag: "": parameters: - query: - remote_data: false header: - x-connection-token: "" - requestBody: - application/json: {"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": "2024-07-01T12:00:00Z", "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"}]} - responses: - "201": - application/json: {"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": "2024-07-01T12:00:00Z", "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"}], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveEcommerceOrder: - speakeasy-default-retrieve-ecommerce-order: - parameters: + x-connection-token: path: - id: "" - query: {} - header: - x-connection-token: "" + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"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": "2024-07-01T12:00:00Z", "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"}], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listEcommerceCustomers: + application/json: + created_at: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: urgent_tag + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + retrieveTicketingTeam: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveEcommerceCustomer: - speakeasy-default-retrieve-ecommerce-customer: + application/json: + created_at: "2024-10-01T12:00:00Z" + description: Internal members + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: My team + remote_data: + fav_color: red + fav_dish: broccoli + remote_id: id_1 + retrieveTicketingTicket: + "": parameters: - path: - id: "" - query: {} header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"email": "joedoe@gmail.com", "first_name": "Joe", "last_name": "Doe", "phone_number": "+336666666", "addresses": [{"street_1": "5th Avenue", "street_2": "Street 2", "city": "New York", "state": "New York", "postal_code": "10001", "country": "United States of America", "address_type": "PERSONAL", "owner_type": ""}], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - listEcommerceFulfillments: + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + assigned_to: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + attachments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + collections: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + comment: + attachments: + - 801f9ede-c698-4e66-a7fc-48d19eebaa4f + body: Assigned to Eric ! + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + creator_type: USER + html_body:

Assigned to Eric !

+ is_private: false + ticket_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + user_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + completed_at: "2024-10-01T12:00:00Z" + contact_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + description: Help customer + due_date: "2024-10-01T12:00:00Z" + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2024-10-01T12:00:00Z" + name: Customer Service Inquiry + parent_ticket: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + priority: HIGH + remote_data: + key1: value1 + key2: 42 + key3: true + remote_id: id_1 + status: OPEN + tags: + - my_tag + - urgent_tag + type: BUG + retrieveTicketingUser: "": parameters: - query: - remote_data: true - limit: 10 - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874" header: - x-connection-token: "" + x-connection-token: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + query: + remote_data: false responses: "200": - application/json: {"prev_cursor": "", "next_cursor": "", "data": []} - retrieveEcommerceFulfillment: - speakeasy-default-retrieve-ecommerce-fulfillment: + application/json: + account_id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + created_at: "2024-10-01T12:00:00Z" + email_address: john.doe@example.com + field_mappings: + fav_color: red + fav_dish: broccoli + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + modified_at: "2023-10-01T12:00:00Z" + name: John Doe + remote_data: + key1: value1 + key2: 42 + key3: true + remote_id: id_1 + teams: + - team1 + - team2 + signIn: + speakeasy-default-sign-in: + requestBody: + application/json: + email: Oda.Treutel97@hotmail.com + password_hash: + status: + "": parameters: path: - id: "" - query: {} - header: - x-connection-token: "" + vertical: ticketing + updatePullFrequency: + speakeasy-default-update-pull-frequency: + requestBody: + application/json: + accounting: 14400 + ats: 3600 + crm: 1800 + ecommerce: 43200 + filestorage: 28800 + hris: 7200 + ticketing: 86400 + updateStatus: + "": + parameters: + path: + id: 801f9ede-c698-4e66-a7fc-48d19eebaa4f responses: - "200": - application/json: {"carrier": "DHL", "tracking_urls": ["https://tracing-url.sf.com"], "tracking_numbers": ["track_1029_191919"], "items": {}, "order_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} - retrieveConnections: - speakeasy-default-retrieve-connections: + "201": + application/json: + active: true + created_at: "2024-10-01T12:00:00Z" + endpoint_description: Webhook to receive connection events + id_project: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + id_webhook_endpoint: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + last_update: "2024-10-01T12:00:00Z" + scope: + - connection.created + secret: 801f9ede-c698-4e66-a7fc-48d19eebaa4f + url: https://acme.com/webhook_receiver + verifyEvent: + speakeasy-default-verify-event: + requestBody: + application/json: + payload: {} + secret: + signature: responses: - "200": - application/json: [] + "201": + application/json: + key: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index df84cdf..1e26739 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false python: - version: 0.6.1 + version: 0.7.0 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 87d8dbc..aec0f1b 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.352.2 sources: openapi-main: sourceNamespace: openapi-main - sourceRevisionDigest: sha256:a3ce576e84be45fbbcfc60533893a0cb07cfb83863c07f4b4fb11d23cbbd72b2 - sourceBlobDigest: sha256:6f5418e194593f783cc0433994e24d3dd0ac23776b17a8ee49945d307fd6095c + sourceRevisionDigest: sha256:ee9530a9c0d9b4168cd8f196bfc4fe2f8114b7bcabeced7ff1c367cd9b1c9833 + sourceBlobDigest: sha256:73e64741e7167fa8e745f9e9097eb4319079fe03ed544105eedf09200cbcc501 tags: - latest - main @@ -11,10 +11,10 @@ targets: python: source: openapi-main sourceNamespace: openapi-main - sourceRevisionDigest: sha256:a3ce576e84be45fbbcfc60533893a0cb07cfb83863c07f4b4fb11d23cbbd72b2 - sourceBlobDigest: sha256:6f5418e194593f783cc0433994e24d3dd0ac23776b17a8ee49945d307fd6095c + sourceRevisionDigest: sha256:ee9530a9c0d9b4168cd8f196bfc4fe2f8114b7bcabeced7ff1c367cd9b1c9833 + sourceBlobDigest: sha256:73e64741e7167fa8e745f9e9097eb4319079fe03ed544105eedf09200cbcc501 codeSamplesNamespace: code-samples-python - codeSamplesRevisionDigest: sha256:9d02bbb277986fe2eeb39bb7cc30a57a9acb2220c1769050b038f3b5e11d5b7b + codeSamplesRevisionDigest: sha256:035fb02c149fe065da447911ecd03e8c799ed7263f2b2dde62e1a1b4bef00a5e outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 @@ -29,6 +29,9 @@ workflow: python: target: python source: openapi-main + publish: + pypi: + token: $pypi_token codeSamples: output: codeSamples.yaml registry: diff --git a/README.md b/README.md index 5b2f85d..8199501 100644 --- a/README.md +++ b/README.md @@ -41,20 +41,12 @@ Panora API: A unified API to ship integrations ## SDK Installation -The SDK can be installed with either *pip* or *poetry* package managers. - -### PIP - -*PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line. - +PIP ```bash pip install panora-sdk ``` -### Poetry - -*Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies. - +Poetry ```bash poetry add panora-sdk ``` @@ -83,6 +75,7 @@ s = Panora( api_key="", ) + res = s.hello() if res is not None: @@ -114,291 +107,171 @@ asyncio.run(main()) ## Available Resources and Operations -
-Available methods - -### [accounting](docs/sdks/accounting/README.md) - - -#### [accounting.accounts](docs/sdks/panoraaccounts/README.md) - -* [list](docs/sdks/panoraaccounts/README.md#list) - List Accounts -* [create](docs/sdks/panoraaccounts/README.md#create) - Create Accounts -* [retrieve](docs/sdks/panoraaccounts/README.md#retrieve) - Retrieve Accounts - -#### [accounting.addresses](docs/sdks/addresses/README.md) - -* [list](docs/sdks/addresses/README.md#list) - List Addresss -* [retrieve](docs/sdks/addresses/README.md#retrieve) - Retrieve Addresses - -#### [accounting.attachments](docs/sdks/panoraattachments/README.md) - -* [list](docs/sdks/panoraattachments/README.md#list) - List Attachments -* [create](docs/sdks/panoraattachments/README.md#create) - Create Attachments -* [retrieve](docs/sdks/panoraattachments/README.md#retrieve) - Retrieve Attachments - -#### [accounting.balancesheets](docs/sdks/balancesheets/README.md) - -* [list](docs/sdks/balancesheets/README.md#list) - List BalanceSheets -* [retrieve](docs/sdks/balancesheets/README.md#retrieve) - Retrieve BalanceSheets - -#### [accounting.cashflowstatements](docs/sdks/cashflowstatements/README.md) - -* [list](docs/sdks/cashflowstatements/README.md#list) - List CashflowStatements -* [retrieve](docs/sdks/cashflowstatements/README.md#retrieve) - Retrieve Cashflow Statements - -#### [accounting.companyinfos](docs/sdks/companyinfos/README.md) - -* [list](docs/sdks/companyinfos/README.md#list) - List CompanyInfos -* [retrieve](docs/sdks/companyinfos/README.md#retrieve) - Retrieve Company Infos - -#### [accounting.contacts](docs/sdks/panoraaccountingcontacts/README.md) - -* [list](docs/sdks/panoraaccountingcontacts/README.md#list) - List Contacts -* [create](docs/sdks/panoraaccountingcontacts/README.md#create) - Create Contacts -* [retrieve](docs/sdks/panoraaccountingcontacts/README.md#retrieve) - Retrieve Contacts - -#### [accounting.creditnotes](docs/sdks/creditnotes/README.md) - -* [list](docs/sdks/creditnotes/README.md#list) - List CreditNotes -* [retrieve](docs/sdks/creditnotes/README.md#retrieve) - Retrieve Credit Notes - -#### [accounting.expenses](docs/sdks/expenses/README.md) - -* [list](docs/sdks/expenses/README.md#list) - List Expenses -* [create](docs/sdks/expenses/README.md#create) - Create Expenses -* [retrieve](docs/sdks/expenses/README.md#retrieve) - Retrieve Expenses - -#### [accounting.incomestatements](docs/sdks/incomestatements/README.md) - -* [list](docs/sdks/incomestatements/README.md#list) - List IncomeStatements -* [retrieve](docs/sdks/incomestatements/README.md#retrieve) - Retrieve Income Statements - -#### [accounting.invoices](docs/sdks/invoices/README.md) - -* [list](docs/sdks/invoices/README.md#list) - List Invoices -* [create](docs/sdks/invoices/README.md#create) - Create Invoices -* [retrieve](docs/sdks/invoices/README.md#retrieve) - Retrieve Invoices - -#### [accounting.items](docs/sdks/items/README.md) - -* [list](docs/sdks/items/README.md#list) - List Items -* [retrieve](docs/sdks/items/README.md#retrieve) - Retrieve Items - -#### [accounting.journalentries](docs/sdks/journalentries/README.md) - -* [list](docs/sdks/journalentries/README.md#list) - List JournalEntrys -* [create](docs/sdks/journalentries/README.md#create) - Create Journal Entries -* [retrieve](docs/sdks/journalentries/README.md#retrieve) - Retrieve Journal Entries - -#### [accounting.payments](docs/sdks/payments/README.md) - -* [list](docs/sdks/payments/README.md#list) - List Payments -* [create](docs/sdks/payments/README.md#create) - Create Payments -* [retrieve](docs/sdks/payments/README.md#retrieve) - Retrieve Payments - -#### [accounting.phonenumbers](docs/sdks/phonenumbers/README.md) - -* [list](docs/sdks/phonenumbers/README.md#list) - List PhoneNumbers -* [retrieve](docs/sdks/phonenumbers/README.md#retrieve) - Retrieve Phone Numbers - -#### [accounting.purchaseorders](docs/sdks/purchaseorders/README.md) - -* [list](docs/sdks/purchaseorders/README.md#list) - List PurchaseOrders -* [create](docs/sdks/purchaseorders/README.md#create) - Create Purchase Orders -* [retrieve](docs/sdks/purchaseorders/README.md#retrieve) - Retrieve Purchase Orders - -#### [accounting.taxrates](docs/sdks/taxrates/README.md) - -* [list](docs/sdks/taxrates/README.md#list) - List TaxRates -* [retrieve](docs/sdks/taxrates/README.md#retrieve) - Retrieve Tax Rates - -#### [accounting.trackingcategories](docs/sdks/trackingcategories/README.md) - -* [list](docs/sdks/trackingcategories/README.md#list) - List TrackingCategorys -* [retrieve](docs/sdks/trackingcategories/README.md#retrieve) - Retrieve Tracking Categories - -#### [accounting.transactions](docs/sdks/transactions/README.md) +### [Panora SDK](docs/sdks/panora/README.md) -* [list](docs/sdks/transactions/README.md#list) - List Transactions -* [retrieve](docs/sdks/transactions/README.md#retrieve) - Retrieve Transactions +* [hello](docs/sdks/panora/README.md#hello) +* [health](docs/sdks/panora/README.md#health) -#### [accounting.vendorcredits](docs/sdks/vendorcredits/README.md) -* [list](docs/sdks/vendorcredits/README.md#list) - List VendorCredits -* [retrieve](docs/sdks/vendorcredits/README.md#retrieve) - Retrieve Vendor Credits +### [rag.query](docs/sdks/query/README.md) -### [ats](docs/sdks/ats/README.md) +* [query](docs/sdks/query/README.md#query) - Query using RAG Search -#### [ats.activities](docs/sdks/activities/README.md) +### [filestorage.files](docs/sdks/files/README.md) -* [list](docs/sdks/activities/README.md#list) - List Activities -* [create](docs/sdks/activities/README.md#create) - Create Activities -* [retrieve](docs/sdks/activities/README.md#retrieve) - Retrieve Activities +* [list](docs/sdks/files/README.md#list) - List Files +* [create](docs/sdks/files/README.md#create) - Create Files +* [retrieve](docs/sdks/files/README.md#retrieve) - Retrieve Files -#### [ats.applications](docs/sdks/applications/README.md) +### [filestorage.folders](docs/sdks/folders/README.md) -* [list](docs/sdks/applications/README.md#list) - List Applications -* [create](docs/sdks/applications/README.md#create) - Create Applications -* [retrieve](docs/sdks/applications/README.md#retrieve) - Retrieve Applications +* [list](docs/sdks/folders/README.md#list) - List Folders +* [create](docs/sdks/folders/README.md#create) - Create Folders +* [retrieve](docs/sdks/folders/README.md#retrieve) - Retrieve Folders -#### [ats.attachments](docs/sdks/attachments/README.md) +### [filestorage.groups](docs/sdks/panoragroups/README.md) -* [list](docs/sdks/attachments/README.md#list) - List Attachments -* [create](docs/sdks/attachments/README.md#create) - Create Attachments -* [retrieve](docs/sdks/attachments/README.md#retrieve) - Retrieve Attachments - -#### [ats.candidates](docs/sdks/candidates/README.md) +* [list](docs/sdks/panoragroups/README.md#list) - List Groups +* [retrieve](docs/sdks/panoragroups/README.md#retrieve) - Retrieve Groups -* [list](docs/sdks/candidates/README.md#list) - List Candidates -* [create](docs/sdks/candidates/README.md#create) - Create Candidates -* [retrieve](docs/sdks/candidates/README.md#retrieve) - Retrieve Candidates +### [filestorage.users](docs/sdks/panorafilestorageusers/README.md) -#### [ats.departments](docs/sdks/departments/README.md) +* [list](docs/sdks/panorafilestorageusers/README.md#list) - List Users +* [retrieve](docs/sdks/panorafilestorageusers/README.md#retrieve) - Retrieve Users -* [list](docs/sdks/departments/README.md#list) - List Departments -* [retrieve](docs/sdks/departments/README.md#retrieve) - Retrieve Departments -#### [ats.eeocs](docs/sdks/eeocs/README.md) +### [auth.login](docs/sdks/login/README.md) -* [list](docs/sdks/eeocs/README.md#list) - List Eeocss -* [retrieve](docs/sdks/eeocs/README.md#retrieve) - Retrieve Eeocs +* [sign_in](docs/sdks/login/README.md#sign_in) - Log In -#### [ats.interviews](docs/sdks/interviews/README.md) +### [connections](docs/sdks/connections/README.md) -* [list](docs/sdks/interviews/README.md#list) - List Interviews -* [create](docs/sdks/interviews/README.md#create) - Create Interviews -* [retrieve](docs/sdks/interviews/README.md#retrieve) - Retrieve Interviews +* [list](docs/sdks/connections/README.md#list) - List Connections -#### [ats.jobinterviewstages](docs/sdks/jobinterviewstages/README.md) +### [webhooks](docs/sdks/webhooks/README.md) -* [list](docs/sdks/jobinterviewstages/README.md#list) - List JobInterviewStages -* [retrieve](docs/sdks/jobinterviewstages/README.md#retrieve) - Retrieve Job Interview Stages +* [list](docs/sdks/webhooks/README.md#list) - List webhooks +* [create](docs/sdks/webhooks/README.md#create) - Create webhook +* [delete](docs/sdks/webhooks/README.md#delete) - Delete Webhook +* [update_status](docs/sdks/webhooks/README.md#update_status) - Update webhook status +* [verify_event](docs/sdks/webhooks/README.md#verify_event) - Verify payload signature of the webhook -#### [ats.jobs](docs/sdks/jobs/README.md) -* [list](docs/sdks/jobs/README.md#list) - List Jobs -* [retrieve](docs/sdks/jobs/README.md#retrieve) - Retrieve Jobs +### [ticketing.tickets](docs/sdks/tickets/README.md) -#### [ats.offers](docs/sdks/offers/README.md) +* [list](docs/sdks/tickets/README.md#list) - List Tickets +* [create](docs/sdks/tickets/README.md#create) - Create Tickets +* [retrieve](docs/sdks/tickets/README.md#retrieve) - Retrieve Tickets -* [list](docs/sdks/offers/README.md#list) - List Offers -* [retrieve](docs/sdks/offers/README.md#retrieve) - Retrieve Offers +### [ticketing.users](docs/sdks/users/README.md) -#### [ats.offices](docs/sdks/offices/README.md) +* [list](docs/sdks/users/README.md#list) - List Users +* [retrieve](docs/sdks/users/README.md#retrieve) - Retrieve User -* [list](docs/sdks/offices/README.md#list) - List Offices -* [retrieve](docs/sdks/offices/README.md#retrieve) - Retrieve Offices +### [ticketing.accounts](docs/sdks/accounts/README.md) -#### [ats.rejectreasons](docs/sdks/rejectreasons/README.md) +* [list](docs/sdks/accounts/README.md#list) - List Accounts +* [retrieve](docs/sdks/accounts/README.md#retrieve) - Retrieve Accounts -* [list](docs/sdks/rejectreasons/README.md#list) - List RejectReasons -* [retrieve](docs/sdks/rejectreasons/README.md#retrieve) - Retrieve Reject Reasons +### [ticketing.contacts](docs/sdks/contacts/README.md) -#### [ats.scorecards](docs/sdks/scorecards/README.md) +* [list](docs/sdks/contacts/README.md#list) - List Contacts +* [retrieve](docs/sdks/contacts/README.md#retrieve) - Retrieve Contact -* [list](docs/sdks/scorecards/README.md#list) - List ScoreCards -* [retrieve](docs/sdks/scorecards/README.md#retrieve) - Retrieve Score Cards +### [ticketing.collections](docs/sdks/collections/README.md) -#### [ats.tags](docs/sdks/panoratags/README.md) +* [list](docs/sdks/collections/README.md#list) - List Collections +* [retrieve](docs/sdks/collections/README.md#retrieve) - Retrieve Collections -* [list](docs/sdks/panoratags/README.md#list) - List Tags -* [retrieve](docs/sdks/panoratags/README.md#retrieve) - Retrieve Tags +### [ticketing.comments](docs/sdks/comments/README.md) -#### [ats.users](docs/sdks/panoraatsusers/README.md) +* [list](docs/sdks/comments/README.md#list) - List Comments +* [create](docs/sdks/comments/README.md#create) - Create Comments +* [retrieve](docs/sdks/comments/README.md#retrieve) - Retrieve Comment -* [list](docs/sdks/panoraatsusers/README.md#list) - List Users -* [retrieve](docs/sdks/panoraatsusers/README.md#retrieve) - Retrieve Users +### [ticketing.tags](docs/sdks/tags/README.md) -### [auth](docs/sdks/auth/README.md) +* [list](docs/sdks/tags/README.md#list) - List Tags +* [retrieve](docs/sdks/tags/README.md#retrieve) - Retrieve Tag +### [ticketing.teams](docs/sdks/teams/README.md) -#### [auth.login](docs/sdks/login/README.md) +* [list](docs/sdks/teams/README.md#list) - List Teams +* [retrieve](docs/sdks/teams/README.md#retrieve) - Retrieve Teams -* [sign_in](docs/sdks/login/README.md#sign_in) - Log In +### [ticketing.attachments](docs/sdks/panoraticketingattachments/README.md) -### [connections](docs/sdks/connections/README.md) +* [list](docs/sdks/panoraticketingattachments/README.md#list) - List Attachments +* [create](docs/sdks/panoraticketingattachments/README.md#create) - Create Attachments +* [retrieve](docs/sdks/panoraticketingattachments/README.md#retrieve) - Retrieve Attachments -* [retrieve](docs/sdks/connections/README.md#retrieve) - List Connections +### [sync](docs/sdks/sync/README.md) -### [crm](docs/sdks/crm/README.md) +* [status](docs/sdks/sync/README.md#status) - Retrieve sync status of a certain vertical +* [resync](docs/sdks/sync/README.md#resync) - Resync common objects across a vertical +* [update_pull_frequency](docs/sdks/sync/README.md#update_pull_frequency) - Update pull frequency for verticals +* [get_pull_frequency](docs/sdks/sync/README.md#get_pull_frequency) - Get pull frequency for verticals -#### [crm.companies](docs/sdks/companies/README.md) +### [crm.companies](docs/sdks/companies/README.md) * [list](docs/sdks/companies/README.md#list) - List Companies * [create](docs/sdks/companies/README.md#create) - Create Companies * [retrieve](docs/sdks/companies/README.md#retrieve) - Retrieve Companies -#### [crm.contacts](docs/sdks/panoracontacts/README.md) +### [crm.contacts](docs/sdks/panoracontacts/README.md) * [list](docs/sdks/panoracontacts/README.md#list) - List CRM Contacts * [create](docs/sdks/panoracontacts/README.md#create) - Create Contacts * [retrieve](docs/sdks/panoracontacts/README.md#retrieve) - Retrieve Contacts -#### [crm.deals](docs/sdks/deals/README.md) +### [crm.deals](docs/sdks/deals/README.md) * [list](docs/sdks/deals/README.md#list) - List Deals * [create](docs/sdks/deals/README.md#create) - Create Deals * [retrieve](docs/sdks/deals/README.md#retrieve) - Retrieve Deals -#### [crm.engagements](docs/sdks/engagements/README.md) +### [crm.engagements](docs/sdks/engagements/README.md) * [list](docs/sdks/engagements/README.md#list) - List Engagements * [create](docs/sdks/engagements/README.md#create) - Create Engagements * [retrieve](docs/sdks/engagements/README.md#retrieve) - Retrieve Engagements -#### [crm.notes](docs/sdks/notes/README.md) +### [crm.notes](docs/sdks/notes/README.md) * [list](docs/sdks/notes/README.md#list) - List Notes * [create](docs/sdks/notes/README.md#create) - Create Notes * [retrieve](docs/sdks/notes/README.md#retrieve) - Retrieve Notes -#### [crm.stages](docs/sdks/stages/README.md) +### [crm.stages](docs/sdks/stages/README.md) * [list](docs/sdks/stages/README.md#list) - List Stages * [retrieve](docs/sdks/stages/README.md#retrieve) - Retrieve Stages -#### [crm.tasks](docs/sdks/tasks/README.md) +### [crm.tasks](docs/sdks/tasks/README.md) * [list](docs/sdks/tasks/README.md#list) - List Tasks * [create](docs/sdks/tasks/README.md#create) - Create Tasks * [retrieve](docs/sdks/tasks/README.md#retrieve) - Retrieve Tasks -#### [crm.users](docs/sdks/panorausers/README.md) +### [crm.users](docs/sdks/panorausers/README.md) * [list](docs/sdks/panorausers/README.md#list) - List Users * [retrieve](docs/sdks/panorausers/README.md#retrieve) - Retrieve Users -### [ecommerce](docs/sdks/ecommerce/README.md) - - -#### [ecommerce.customers](docs/sdks/customers/README.md) - -* [list](docs/sdks/customers/README.md#list) - List Customers -* [retrieve](docs/sdks/customers/README.md#retrieve) - Retrieve Customers - -#### [ecommerce.fulfillments](docs/sdks/fulfillments/README.md) - -* [list](docs/sdks/fulfillments/README.md#list) - List Fulfillments -* [retrieve](docs/sdks/fulfillments/README.md#retrieve) - Retrieve Fulfillments - -#### [ecommerce.orders](docs/sdks/orders/README.md) - -* [list](docs/sdks/orders/README.md#list) - List Orders -* [create](docs/sdks/orders/README.md#create) - Create Orders -* [retrieve](docs/sdks/orders/README.md#retrieve) - Retrieve Orders - -#### [ecommerce.products](docs/sdks/products/README.md) +### [linked_users](docs/sdks/linkedusers/README.md) -* [list](docs/sdks/products/README.md#list) - List Products -* [create](docs/sdks/products/README.md#create) - Create Products -* [retrieve](docs/sdks/products/README.md#retrieve) - Retrieve Products +* [create](docs/sdks/linkedusers/README.md#create) - Create Linked Users +* [list](docs/sdks/linkedusers/README.md#list) - List Linked Users +* [import_batch](docs/sdks/linkedusers/README.md#import_batch) - Add Batch Linked Users +* [retrieve](docs/sdks/linkedusers/README.md#retrieve) - Retrieve Linked Users +* [remote_id](docs/sdks/linkedusers/README.md#remote_id) - Retrieve a Linked User From A Remote Id -### [events](docs/sdks/events/README.md) +### [projects](docs/sdks/projects/README.md) -* [get_panora_core_events](docs/sdks/events/README.md#get_panora_core_events) - List Events +* [get_projects](docs/sdks/projects/README.md#get_projects) - Retrieve projects +* [create](docs/sdks/projects/README.md#create) - Create a project ### [field_mappings](docs/sdks/fieldmappings/README.md) @@ -409,271 +282,366 @@ asyncio.run(main()) * [define_custom_field](docs/sdks/fieldmappings/README.md#define_custom_field) - Create Custom Field * [map](docs/sdks/fieldmappings/README.md#map) - Map Custom Field -### [filestorage](docs/sdks/filestorage/README.md) - - -#### [filestorage.files](docs/sdks/files/README.md) - -* [list](docs/sdks/files/README.md#list) - List Files -* [create](docs/sdks/files/README.md#create) - Create Files -* [retrieve](docs/sdks/files/README.md#retrieve) - Retrieve Files - -#### [filestorage.folders](docs/sdks/folders/README.md) - -* [list](docs/sdks/folders/README.md#list) - List Folders -* [create](docs/sdks/folders/README.md#create) - Create Folders -* [retrieve](docs/sdks/folders/README.md#retrieve) - Retrieve Folders +### [events](docs/sdks/events/README.md) -#### [filestorage.groups](docs/sdks/panoragroups/README.md) +* [get_panora_core_events](docs/sdks/events/README.md#get_panora_core_events) - List Events -* [list](docs/sdks/panoragroups/README.md#list) - List Groups -* [retrieve](docs/sdks/panoragroups/README.md#retrieve) - Retrieve Groups +### [passthrough](docs/sdks/passthrough/README.md) -#### [filestorage.users](docs/sdks/panorafilestorageusers/README.md) +* [request](docs/sdks/passthrough/README.md#request) - Make a passthrough request -* [list](docs/sdks/panorafilestorageusers/README.md#list) - List Users -* [retrieve](docs/sdks/panorafilestorageusers/README.md#retrieve) - Retrieve Users +### [passthrough.retryid](docs/sdks/retryid/README.md) -### [hris](docs/sdks/hris/README.md) +* [get_retried_request_response](docs/sdks/retryid/README.md#get_retried_request_response) - Retrieve response of a failed passthrough request due to rate limits -#### [hris.bankinfos](docs/sdks/bankinfos/README.md) +### [hris.bankinfos](docs/sdks/bankinfos/README.md) * [list](docs/sdks/bankinfos/README.md#list) - List Bank Info * [retrieve](docs/sdks/bankinfos/README.md#retrieve) - Retrieve Bank Info -#### [hris.benefits](docs/sdks/benefits/README.md) +### [hris.benefits](docs/sdks/benefits/README.md) * [list](docs/sdks/benefits/README.md#list) - List Benefits * [retrieve](docs/sdks/benefits/README.md#retrieve) - Retrieve Benefit -#### [hris.companies](docs/sdks/panoracompanies/README.md) +### [hris.companies](docs/sdks/panoracompanies/README.md) * [list](docs/sdks/panoracompanies/README.md#list) - List Companies * [retrieve](docs/sdks/panoracompanies/README.md#retrieve) - Retrieve Company -#### [hris.dependents](docs/sdks/dependents/README.md) +### [hris.dependents](docs/sdks/dependents/README.md) * [list](docs/sdks/dependents/README.md#list) - List Dependents * [retrieve](docs/sdks/dependents/README.md#retrieve) - Retrieve Dependent -#### [hris.employeepayrollruns](docs/sdks/employeepayrollruns/README.md) +### [hris.employeepayrollruns](docs/sdks/employeepayrollruns/README.md) * [list](docs/sdks/employeepayrollruns/README.md#list) - List Employee Payroll Runs * [retrieve](docs/sdks/employeepayrollruns/README.md#retrieve) - Retrieve Employee Payroll Run -#### [hris.employees](docs/sdks/employees/README.md) +### [hris.employees](docs/sdks/employees/README.md) * [list](docs/sdks/employees/README.md#list) - List Employees * [create](docs/sdks/employees/README.md#create) - Create Employees * [retrieve](docs/sdks/employees/README.md#retrieve) - Retrieve Employee -#### [hris.employerbenefits](docs/sdks/employerbenefits/README.md) +### [hris.employerbenefits](docs/sdks/employerbenefits/README.md) * [list](docs/sdks/employerbenefits/README.md#list) - List Employer Benefits * [retrieve](docs/sdks/employerbenefits/README.md#retrieve) - Retrieve Employer Benefit -#### [hris.employments](docs/sdks/employments/README.md) +### [hris.employments](docs/sdks/employments/README.md) * [list](docs/sdks/employments/README.md#list) - List Employments * [retrieve](docs/sdks/employments/README.md#retrieve) - Retrieve Employment -#### [hris.groups](docs/sdks/groups/README.md) +### [hris.groups](docs/sdks/groups/README.md) * [list](docs/sdks/groups/README.md#list) - List Groups * [retrieve](docs/sdks/groups/README.md#retrieve) - Retrieve Group -#### [hris.locations](docs/sdks/locations/README.md) +### [hris.locations](docs/sdks/locations/README.md) * [list](docs/sdks/locations/README.md#list) - List Locations * [retrieve](docs/sdks/locations/README.md#retrieve) - Retrieve Location -#### [hris.paygroups](docs/sdks/paygroups/README.md) +### [hris.paygroups](docs/sdks/paygroups/README.md) * [list](docs/sdks/paygroups/README.md#list) - List Pay Groups * [retrieve](docs/sdks/paygroups/README.md#retrieve) - Retrieve Pay Group -#### [hris.payrollruns](docs/sdks/payrollruns/README.md) +### [hris.payrollruns](docs/sdks/payrollruns/README.md) * [list](docs/sdks/payrollruns/README.md#list) - List Payroll Runs * [retrieve](docs/sdks/payrollruns/README.md#retrieve) - Retrieve Payroll Run -#### [hris.timeoffbalances](docs/sdks/timeoffbalances/README.md) - -* [list](docs/sdks/timeoffbalances/README.md#list) - List TimeoffBalances -* [retrieve](docs/sdks/timeoffbalances/README.md#retrieve) - Retrieve Time off Balances - -#### [hris.timeoffs](docs/sdks/timeoffs/README.md) +### [hris.timeoffs](docs/sdks/timeoffs/README.md) * [list](docs/sdks/timeoffs/README.md#list) - List Time Offs * [create](docs/sdks/timeoffs/README.md#create) - Create Timeoffs * [retrieve](docs/sdks/timeoffs/README.md#retrieve) - Retrieve Time Off -#### [hris.timesheetentries](docs/sdks/timesheetentries/README.md) +### [hris.timeoffbalances](docs/sdks/timeoffbalances/README.md) + +* [list](docs/sdks/timeoffbalances/README.md#list) - List TimeoffBalances +* [retrieve](docs/sdks/timeoffbalances/README.md#retrieve) - Retrieve Time off Balances + +### [hris.timesheetentries](docs/sdks/timesheetentries/README.md) * [list](docs/sdks/timesheetentries/README.md#list) - List Timesheetentries * [create](docs/sdks/timesheetentries/README.md#create) - Create Timesheetentrys * [retrieve](docs/sdks/timesheetentries/README.md#retrieve) - Retrieve Timesheetentry -### [linked_users](docs/sdks/linkedusers/README.md) - -* [create](docs/sdks/linkedusers/README.md#create) - Create Linked Users -* [list](docs/sdks/linkedusers/README.md#list) - List Linked Users -* [import_batch](docs/sdks/linkedusers/README.md#import_batch) - Add Batch Linked Users -* [retrieve](docs/sdks/linkedusers/README.md#retrieve) - Retrieve Linked Users -* [remote_id](docs/sdks/linkedusers/README.md#remote_id) - Retrieve a Linked User From A Remote Id - -### [marketingautomation](docs/sdks/marketingautomation/README.md) - -#### [marketingautomation.actions](docs/sdks/actions/README.md) +### [marketingautomation.actions](docs/sdks/actions/README.md) * [list](docs/sdks/actions/README.md#list) - List Actions * [create](docs/sdks/actions/README.md#create) - Create Action * [retrieve](docs/sdks/actions/README.md#retrieve) - Retrieve Actions -#### [marketingautomation.automations](docs/sdks/automations/README.md) +### [marketingautomation.automations](docs/sdks/automations/README.md) * [list](docs/sdks/automations/README.md#list) - List Automations * [create](docs/sdks/automations/README.md#create) - Create Automation * [retrieve](docs/sdks/automations/README.md#retrieve) - Retrieve Automation -#### [marketingautomation.campaigns](docs/sdks/campaigns/README.md) +### [marketingautomation.campaigns](docs/sdks/campaigns/README.md) * [list](docs/sdks/campaigns/README.md#list) - List Campaigns * [create](docs/sdks/campaigns/README.md#create) - Create Campaign * [retrieve](docs/sdks/campaigns/README.md#retrieve) - Retrieve Campaign -#### [marketingautomation.contacts](docs/sdks/panoramarketingautomationcontacts/README.md) +### [marketingautomation.contacts](docs/sdks/panoramarketingautomationcontacts/README.md) * [list](docs/sdks/panoramarketingautomationcontacts/README.md#list) - List Contacts * [create](docs/sdks/panoramarketingautomationcontacts/README.md#create) - Create Contact * [retrieve](docs/sdks/panoramarketingautomationcontacts/README.md#retrieve) - Retrieve Contacts -#### [marketingautomation.emails](docs/sdks/emails/README.md) +### [marketingautomation.emails](docs/sdks/emails/README.md) * [list](docs/sdks/emails/README.md#list) - List Emails * [retrieve](docs/sdks/emails/README.md#retrieve) - Retrieve Email -#### [marketingautomation.events](docs/sdks/panoraevents/README.md) +### [marketingautomation.events](docs/sdks/panoraevents/README.md) * [list](docs/sdks/panoraevents/README.md#list) - List Events * [retrieve](docs/sdks/panoraevents/README.md#retrieve) - Retrieve Event -#### [marketingautomation.lists](docs/sdks/lists/README.md) +### [marketingautomation.lists](docs/sdks/lists/README.md) * [list](docs/sdks/lists/README.md#list) - List Lists * [create](docs/sdks/lists/README.md#create) - Create Lists * [retrieve](docs/sdks/lists/README.md#retrieve) - Retrieve List -#### [marketingautomation.messages](docs/sdks/messages/README.md) +### [marketingautomation.messages](docs/sdks/messages/README.md) * [list](docs/sdks/messages/README.md#list) - List Messages * [retrieve](docs/sdks/messages/README.md#retrieve) - Retrieve Messages -#### [marketingautomation.templates](docs/sdks/templates/README.md) +### [marketingautomation.templates](docs/sdks/templates/README.md) * [list](docs/sdks/templates/README.md#list) - List Templates * [create](docs/sdks/templates/README.md#create) - Create Template * [retrieve](docs/sdks/templates/README.md#retrieve) - Retrieve Template -#### [marketingautomation.users](docs/sdks/panoramarketingautomationusers/README.md) +### [marketingautomation.users](docs/sdks/panoramarketingautomationusers/README.md) * [list](docs/sdks/panoramarketingautomationusers/README.md#list) - List Users * [retrieve](docs/sdks/panoramarketingautomationusers/README.md#retrieve) - Retrieve Users -### [Panora SDK](docs/sdks/panora/README.md) -* [hello](docs/sdks/panora/README.md#hello) -* [health](docs/sdks/panora/README.md#health) +### [ats.activities](docs/sdks/activities/README.md) -### [passthrough](docs/sdks/passthrough/README.md) +* [list](docs/sdks/activities/README.md#list) - List Activities +* [create](docs/sdks/activities/README.md#create) - Create Activities +* [retrieve](docs/sdks/activities/README.md#retrieve) - Retrieve Activities -* [request](docs/sdks/passthrough/README.md#request) - Make a passthrough request +### [ats.applications](docs/sdks/applications/README.md) -#### [passthrough.retryid](docs/sdks/retryid/README.md) +* [list](docs/sdks/applications/README.md#list) - List Applications +* [create](docs/sdks/applications/README.md#create) - Create Applications +* [retrieve](docs/sdks/applications/README.md#retrieve) - Retrieve Applications -* [get_retried_request_response](docs/sdks/retryid/README.md#get_retried_request_response) - Retrieve response of a failed passthrough request due to rate limits +### [ats.attachments](docs/sdks/attachments/README.md) -### [projects](docs/sdks/projects/README.md) +* [list](docs/sdks/attachments/README.md#list) - List Attachments +* [create](docs/sdks/attachments/README.md#create) - Create Attachments +* [retrieve](docs/sdks/attachments/README.md#retrieve) - Retrieve Attachments -* [get_projects](docs/sdks/projects/README.md#get_projects) - Retrieve projects -* [create](docs/sdks/projects/README.md#create) - Create a project +### [ats.candidates](docs/sdks/candidates/README.md) -### [rag](docs/sdks/rag/README.md) +* [list](docs/sdks/candidates/README.md#list) - List Candidates +* [create](docs/sdks/candidates/README.md#create) - Create Candidates +* [retrieve](docs/sdks/candidates/README.md#retrieve) - Retrieve Candidates +### [ats.departments](docs/sdks/departments/README.md) -#### [rag.query](docs/sdks/query/README.md) +* [list](docs/sdks/departments/README.md#list) - List Departments +* [retrieve](docs/sdks/departments/README.md#retrieve) - Retrieve Departments -* [rag_controller_query_embeddings](docs/sdks/query/README.md#rag_controller_query_embeddings) +### [ats.interviews](docs/sdks/interviews/README.md) -### [sync](docs/sdks/sync/README.md) +* [list](docs/sdks/interviews/README.md#list) - List Interviews +* [create](docs/sdks/interviews/README.md#create) - Create Interviews +* [retrieve](docs/sdks/interviews/README.md#retrieve) - Retrieve Interviews -* [status](docs/sdks/sync/README.md#status) - Retrieve sync status of a certain vertical -* [resync](docs/sdks/sync/README.md#resync) - Resync common objects across a vertical -* [update_pull_frequency](docs/sdks/sync/README.md#update_pull_frequency) - Update pull frequency for verticals -* [get_pull_frequency](docs/sdks/sync/README.md#get_pull_frequency) - Get pull frequency for verticals +### [ats.jobinterviewstages](docs/sdks/jobinterviewstages/README.md) -### [ticketing](docs/sdks/ticketing/README.md) +* [list](docs/sdks/jobinterviewstages/README.md#list) - List JobInterviewStages +* [retrieve](docs/sdks/jobinterviewstages/README.md#retrieve) - Retrieve Job Interview Stages +### [ats.jobs](docs/sdks/jobs/README.md) -#### [ticketing.accounts](docs/sdks/accounts/README.md) +* [list](docs/sdks/jobs/README.md#list) - List Jobs +* [retrieve](docs/sdks/jobs/README.md#retrieve) - Retrieve Jobs -* [list](docs/sdks/accounts/README.md#list) - List Accounts -* [retrieve](docs/sdks/accounts/README.md#retrieve) - Retrieve Accounts +### [ats.offers](docs/sdks/offers/README.md) -#### [ticketing.attachments](docs/sdks/panoraticketingattachments/README.md) +* [list](docs/sdks/offers/README.md#list) - List Offers +* [retrieve](docs/sdks/offers/README.md#retrieve) - Retrieve Offers -* [list](docs/sdks/panoraticketingattachments/README.md#list) - List Attachments -* [create](docs/sdks/panoraticketingattachments/README.md#create) - Create Attachments -* [retrieve](docs/sdks/panoraticketingattachments/README.md#retrieve) - Retrieve Attachments +### [ats.offices](docs/sdks/offices/README.md) -#### [ticketing.collections](docs/sdks/collections/README.md) +* [list](docs/sdks/offices/README.md#list) - List Offices +* [retrieve](docs/sdks/offices/README.md#retrieve) - Retrieve Offices -* [list](docs/sdks/collections/README.md#list) - List Collections -* [retrieve](docs/sdks/collections/README.md#retrieve) - Retrieve Collections +### [ats.rejectreasons](docs/sdks/rejectreasons/README.md) -#### [ticketing.comments](docs/sdks/comments/README.md) +* [list](docs/sdks/rejectreasons/README.md#list) - List RejectReasons +* [retrieve](docs/sdks/rejectreasons/README.md#retrieve) - Retrieve Reject Reasons -* [list](docs/sdks/comments/README.md#list) - List Comments -* [create](docs/sdks/comments/README.md#create) - Create Comments -* [retrieve](docs/sdks/comments/README.md#retrieve) - Retrieve Comment +### [ats.scorecards](docs/sdks/scorecards/README.md) -#### [ticketing.contacts](docs/sdks/contacts/README.md) +* [list](docs/sdks/scorecards/README.md#list) - List ScoreCards +* [retrieve](docs/sdks/scorecards/README.md#retrieve) - Retrieve Score Cards -* [list](docs/sdks/contacts/README.md#list) - List Contacts -* [retrieve](docs/sdks/contacts/README.md#retrieve) - Retrieve Contact +### [ats.tags](docs/sdks/panoratags/README.md) -#### [ticketing.tags](docs/sdks/tags/README.md) +* [list](docs/sdks/panoratags/README.md#list) - List Tags +* [retrieve](docs/sdks/panoratags/README.md#retrieve) - Retrieve Tags -* [list](docs/sdks/tags/README.md#list) - List Tags -* [retrieve](docs/sdks/tags/README.md#retrieve) - Retrieve Tag +### [ats.users](docs/sdks/panoraatsusers/README.md) -#### [ticketing.teams](docs/sdks/teams/README.md) +* [list](docs/sdks/panoraatsusers/README.md#list) - List Users +* [retrieve](docs/sdks/panoraatsusers/README.md#retrieve) - Retrieve Users -* [list](docs/sdks/teams/README.md#list) - List Teams -* [retrieve](docs/sdks/teams/README.md#retrieve) - Retrieve Teams +### [ats.eeocs](docs/sdks/eeocs/README.md) -#### [ticketing.tickets](docs/sdks/tickets/README.md) +* [list](docs/sdks/eeocs/README.md#list) - List Eeocss +* [retrieve](docs/sdks/eeocs/README.md#retrieve) - Retrieve Eeocs -* [list](docs/sdks/tickets/README.md#list) - List Tickets -* [create](docs/sdks/tickets/README.md#create) - Create Tickets -* [retrieve](docs/sdks/tickets/README.md#retrieve) - Retrieve Tickets -#### [ticketing.users](docs/sdks/users/README.md) +### [accounting.accounts](docs/sdks/panoraaccounts/README.md) -* [list](docs/sdks/users/README.md#list) - List Users -* [retrieve](docs/sdks/users/README.md#retrieve) - Retrieve User +* [list](docs/sdks/panoraaccounts/README.md#list) - List Accounts +* [create](docs/sdks/panoraaccounts/README.md#create) - Create Accounts +* [retrieve](docs/sdks/panoraaccounts/README.md#retrieve) - Retrieve Accounts -### [webhooks](docs/sdks/webhooks/README.md) +### [accounting.addresses](docs/sdks/addresses/README.md) -* [list](docs/sdks/webhooks/README.md#list) - List webhooks -* [create](docs/sdks/webhooks/README.md#create) - Create webhook -* [delete](docs/sdks/webhooks/README.md#delete) - Delete Webhook -* [update_status](docs/sdks/webhooks/README.md#update_status) - Update webhook status -* [verify_event](docs/sdks/webhooks/README.md#verify_event) - Verify payload signature of the webhook +* [list](docs/sdks/addresses/README.md#list) - List Addresss +* [retrieve](docs/sdks/addresses/README.md#retrieve) - Retrieve Addresses + +### [accounting.attachments](docs/sdks/panoraattachments/README.md) -
+* [list](docs/sdks/panoraattachments/README.md#list) - List Attachments +* [create](docs/sdks/panoraattachments/README.md#create) - Create Attachments +* [retrieve](docs/sdks/panoraattachments/README.md#retrieve) - Retrieve Attachments + +### [accounting.balancesheets](docs/sdks/balancesheets/README.md) + +* [list](docs/sdks/balancesheets/README.md#list) - List BalanceSheets +* [retrieve](docs/sdks/balancesheets/README.md#retrieve) - Retrieve BalanceSheets + +### [accounting.cashflowstatements](docs/sdks/cashflowstatements/README.md) + +* [list](docs/sdks/cashflowstatements/README.md#list) - List CashflowStatements +* [retrieve](docs/sdks/cashflowstatements/README.md#retrieve) - Retrieve Cashflow Statements + +### [accounting.companyinfos](docs/sdks/companyinfos/README.md) + +* [list](docs/sdks/companyinfos/README.md#list) - List CompanyInfos +* [retrieve](docs/sdks/companyinfos/README.md#retrieve) - Retrieve Company Infos + +### [accounting.contacts](docs/sdks/panoraaccountingcontacts/README.md) + +* [list](docs/sdks/panoraaccountingcontacts/README.md#list) - List Contacts +* [create](docs/sdks/panoraaccountingcontacts/README.md#create) - Create Contacts +* [retrieve](docs/sdks/panoraaccountingcontacts/README.md#retrieve) - Retrieve Contacts + +### [accounting.creditnotes](docs/sdks/creditnotes/README.md) + +* [list](docs/sdks/creditnotes/README.md#list) - List CreditNotes +* [retrieve](docs/sdks/creditnotes/README.md#retrieve) - Retrieve Credit Notes + +### [accounting.expenses](docs/sdks/expenses/README.md) + +* [list](docs/sdks/expenses/README.md#list) - List Expenses +* [create](docs/sdks/expenses/README.md#create) - Create Expenses +* [retrieve](docs/sdks/expenses/README.md#retrieve) - Retrieve Expenses + +### [accounting.incomestatements](docs/sdks/incomestatements/README.md) + +* [list](docs/sdks/incomestatements/README.md#list) - List IncomeStatements +* [retrieve](docs/sdks/incomestatements/README.md#retrieve) - Retrieve Income Statements + +### [accounting.invoices](docs/sdks/invoices/README.md) + +* [list](docs/sdks/invoices/README.md#list) - List Invoices +* [create](docs/sdks/invoices/README.md#create) - Create Invoices +* [retrieve](docs/sdks/invoices/README.md#retrieve) - Retrieve Invoices + +### [accounting.items](docs/sdks/items/README.md) + +* [list](docs/sdks/items/README.md#list) - List Items +* [retrieve](docs/sdks/items/README.md#retrieve) - Retrieve Items + +### [accounting.journalentries](docs/sdks/journalentries/README.md) + +* [list](docs/sdks/journalentries/README.md#list) - List JournalEntrys +* [create](docs/sdks/journalentries/README.md#create) - Create Journal Entries +* [retrieve](docs/sdks/journalentries/README.md#retrieve) - Retrieve Journal Entries + +### [accounting.payments](docs/sdks/payments/README.md) + +* [list](docs/sdks/payments/README.md#list) - List Payments +* [create](docs/sdks/payments/README.md#create) - Create Payments +* [retrieve](docs/sdks/payments/README.md#retrieve) - Retrieve Payments + +### [accounting.phonenumbers](docs/sdks/phonenumbers/README.md) + +* [list](docs/sdks/phonenumbers/README.md#list) - List PhoneNumbers +* [retrieve](docs/sdks/phonenumbers/README.md#retrieve) - Retrieve Phone Numbers + +### [accounting.purchaseorders](docs/sdks/purchaseorders/README.md) + +* [list](docs/sdks/purchaseorders/README.md#list) - List PurchaseOrders +* [create](docs/sdks/purchaseorders/README.md#create) - Create Purchase Orders +* [retrieve](docs/sdks/purchaseorders/README.md#retrieve) - Retrieve Purchase Orders + +### [accounting.taxrates](docs/sdks/taxrates/README.md) + +* [list](docs/sdks/taxrates/README.md#list) - List TaxRates +* [retrieve](docs/sdks/taxrates/README.md#retrieve) - Retrieve Tax Rates + +### [accounting.trackingcategories](docs/sdks/trackingcategories/README.md) + +* [list](docs/sdks/trackingcategories/README.md#list) - List TrackingCategorys +* [retrieve](docs/sdks/trackingcategories/README.md#retrieve) - Retrieve Tracking Categories + +### [accounting.transactions](docs/sdks/transactions/README.md) + +* [list](docs/sdks/transactions/README.md#list) - List Transactions +* [retrieve](docs/sdks/transactions/README.md#retrieve) - Retrieve Transactions + +### [accounting.vendorcredits](docs/sdks/vendorcredits/README.md) + +* [list](docs/sdks/vendorcredits/README.md#list) - List VendorCredits +* [retrieve](docs/sdks/vendorcredits/README.md#retrieve) - Retrieve Vendor Credits + + +### [ecommerce.products](docs/sdks/products/README.md) + +* [list](docs/sdks/products/README.md#list) - List Products +* [create](docs/sdks/products/README.md#create) - Create Products +* [retrieve](docs/sdks/products/README.md#retrieve) - Retrieve Products + +### [ecommerce.orders](docs/sdks/orders/README.md) + +* [list](docs/sdks/orders/README.md#list) - List Orders +* [create](docs/sdks/orders/README.md#create) - Create Orders +* [retrieve](docs/sdks/orders/README.md#retrieve) - Retrieve Orders + +### [ecommerce.customers](docs/sdks/customers/README.md) + +* [list](docs/sdks/customers/README.md#list) - List Customers +* [retrieve](docs/sdks/customers/README.md#retrieve) - Retrieve Customers + +### [ecommerce.fulfillments](docs/sdks/fulfillments/README.md) + +* [list](docs/sdks/fulfillments/README.md#list) - List Fulfillments +* [retrieve](docs/sdks/fulfillments/README.md#retrieve) - Retrieve Fulfillments @@ -690,6 +658,7 @@ s = Panora( api_key="", ) + res = s.hello(, RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False)) @@ -709,6 +678,7 @@ s = Panora( api_key="", ) + res = s.hello() if res is not None: @@ -740,13 +710,14 @@ res = None try: res = s.hello() - if res is not None: - # handle response - pass - except models.SDKError as e: # handle exception raise(e) + +if res is not None: + # handle response + pass + ``` @@ -773,6 +744,7 @@ s = Panora( api_key="", ) + res = s.hello() if res is not None: @@ -793,6 +765,7 @@ s = Panora( api_key="", ) + res = s.hello() if res is not None: @@ -886,9 +859,8 @@ s = Panora(async_client=CustomClient(httpx.AsyncClient())) ## Debugging -You can setup your SDK to emit debug logs for SDK requests and responses. +To emit debug logs for SDK requests and responses you can pass a logger object directly into your SDK object. -You can pass your own logger class directly into your SDK. ```python from panora_sdk import Panora import logging @@ -909,7 +881,7 @@ This SDK supports the following security scheme globally: | --------- | --------- | --------- | | `api_key` | apiKey | API key | -To authenticate with the API the `api_key` parameter must be set when initializing the SDK client instance. For example: +To authenticate with the API the `null` parameter must be set when initializing the SDK client instance. For example: ```python from panora_sdk import Panora @@ -917,6 +889,7 @@ s = Panora( api_key="", ) + res = s.hello() if res is not None: @@ -941,16 +914,18 @@ 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() + res = res.Next() if res is None: break + ``` diff --git a/RELEASES.md b/RELEASES.md index dcf8710..73d9f3e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -66,4 +66,14 @@ Based on: ### Generated - [python v0.6.1] . ### Releases -- [PyPI v0.6.1] https://pypi.org/project/panora-sdk/0.6.1 - . \ No newline at end of file +- [PyPI v0.6.1] https://pypi.org/project/panora-sdk/0.6.1 - . + +## 2024-09-17 19:29:36 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.398.1 (2.415.8) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.7.0] . +### Releases +- [PyPI v0.7.0] https://pypi.org/project/panora-sdk/0.7.0 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index affb70d..6c121de 100644 --- a/USAGE.md +++ b/USAGE.md @@ -7,6 +7,7 @@ s = Panora( api_key="", ) + res = s.hello() if res is not None: diff --git a/codeSamples.yaml b/codeSamples.yaml index 0254bae..b942789 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,11 +3,11 @@ info: title: CodeSamples overlay for python target version: 0.0.0 actions: - - target: $["paths"]["/ats/users/{id}"]["get"] + - target: $["paths"]["/webhooks/{id}"]["put"] update: x-codeSamples: - lang: python - label: retrieveAtsUser + label: updateStatus source: |- from panora_sdk import Panora @@ -16,16 +16,16 @@ actions: ) - res = s.ats.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.webhooks.update_status(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") if res is not None: # handle response pass - - target: $["paths"]["/webhooks/verifyEvent"]["post"] + - target: $["paths"]["/ticketing/collections"]["get"] update: x-codeSamples: - lang: python - label: verifyEvent + label: listTicketingCollections source: |- from panora_sdk import Panora @@ -34,22 +34,20 @@ actions: ) - res = s.webhooks.verify_event(request={ - "payload": { - "key": "", - }, - "signature": "", - "secret": "", - }) + 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 - - target: $["paths"]["/linked_users/batch"]["post"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/crm/engagements"]["get"] update: x-codeSamples: - lang: python - label: importBatch + label: listCrmEngagements source: |- from panora_sdk import Panora @@ -58,21 +56,20 @@ actions: ) - res = s.linked_users.import_batch(request={ - "linked_user_origin_ids": [ - "id_1", - ], - "alias": "acme", - }) + res = s.crm.engagements.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/field_mappings/attributes"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/passthrough/{retryId}"]["get"] update: x-codeSamples: - lang: python - label: getFieldMappings + label: getRetriedRequestResponse source: |- from panora_sdk import Panora @@ -81,14 +78,14 @@ actions: ) - s.field_mappings.get_field_mappings() + s.passthrough.retryid.get_retried_request_response(retry_id="") # Use the SDK ... - - target: $["paths"]["/hris/employerbenefits/{id}"]["get"] + - target: $["paths"]["/hris/groups"]["get"] update: x-codeSamples: - lang: python - label: retrieveHrisEmployerBenefit + label: listHrisGroups source: |- from panora_sdk import Panora @@ -97,17 +94,22 @@ actions: ) - res = s.hris.employerbenefits.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.groups.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/marketingautomation/campaigns"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/ats/interviews"]["post"] update: x-codeSamples: - lang: python - label: listMarketingautomationCampaigns + label: createAtsInterview source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -115,21 +117,35 @@ actions: ) - res = s.marketingautomation.campaigns.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + 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: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/marketingautomation/messages"]["get"] + # handle response + pass + - target: $["paths"]["/ats/activities"]["post"] update: x-codeSamples: - lang: python - label: listMarketingautomationMessages + label: createAtsActivity source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -137,20 +153,27 @@ actions: ) - res = s.marketingautomation.messages.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + 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", + }, + }, remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/health"]["get"] + # handle response + pass + - target: $["paths"]["/accounting/companyinfos/{id}"]["get"] update: x-codeSamples: - lang: python - label: health + label: retrieveAccountingCompanyInfo source: |- from panora_sdk import Panora @@ -159,16 +182,16 @@ actions: ) - res = s.health() + 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 - - target: $["paths"]["/ats/departments/{id}"]["get"] + - target: $["paths"]["/sync/resync"]["post"] update: x-codeSamples: - lang: python - label: retrieveAtsDepartment + label: resync source: |- from panora_sdk import Panora @@ -177,16 +200,16 @@ actions: ) - res = s.ats.departments.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 - - target: $["paths"]["/accounting/balancesheets"]["get"] + - target: $["paths"]["/marketingautomation/events/{id}"]["get"] update: x-codeSamples: - lang: python - label: listAccountingBalanceSheets + label: retrieveMarketingautomationEvent source: |- from panora_sdk import Panora @@ -195,20 +218,16 @@ actions: ) - res = s.accounting.balancesheets.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.marketingautomation.events.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/accounting/incomestatements"]["get"] + # handle response + pass + - target: $["paths"]["/accounting/trackingcategories/{id}"]["get"] update: x-codeSamples: - lang: python - label: listAccountingIncomeStatement + label: retrieveAccountingTrackingCategory source: |- from panora_sdk import Panora @@ -217,20 +236,16 @@ actions: ) - res = s.accounting.incomestatements.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.trackingcategories.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/field_mappings/entities"]["get"] + # handle response + pass + - target: $["paths"]["/marketingautomation/emails/{id}"]["get"] update: x-codeSamples: - lang: python - label: getFieldMappingsEntities + label: retrieveMarketingautomationEmail source: |- from panora_sdk import Panora @@ -239,14 +254,16 @@ actions: ) - s.field_mappings.get_field_mappings_entities() + res = s.marketingautomation.emails.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) - # Use the SDK ... - - target: $["paths"]["/hris/benefits"]["get"] + if res is not None: + # handle response + pass + - target: $["paths"]["/ticketing/comments/{id}"]["get"] update: x-codeSamples: - lang: python - label: listHrisBenefits + label: retrieveTicketingComment source: |- from panora_sdk import Panora @@ -255,21 +272,18 @@ actions: ) - res = s.hris.benefits.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ticketing.comments.retrieve(x_connection_token="", id="") if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/accounting/accounts/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/ats/attachments"]["post"] update: x-codeSamples: - lang: python - label: retrieveAccountingAccount + label: createAtsAttachment source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -277,16 +291,27 @@ actions: ) - res = s.accounting.accounts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + 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 - - target: $["paths"]["/marketingautomation/templates"]["post"] + - target: $["paths"]["/ecommerce/orders"]["get"] update: x-codeSamples: - lang: python - label: createMarketingautomationTemplate + label: listEcommerceOrders source: |- from panora_sdk import Panora @@ -295,16 +320,20 @@ actions: ) - res = s.marketingautomation.templates.create(x_connection_token="", unified_marketingautomation_template_input={}) + res = s.ecommerce.orders.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/accounting/accounts"]["post"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/ticketing/accounts/{id}"]["get"] update: x-codeSamples: - lang: python - label: createAccountingAccount + label: retrieveTicketingAccount source: |- from panora_sdk import Panora @@ -313,16 +342,16 @@ actions: ) - res = s.accounting.accounts.create(x_connection_token="", unified_accounting_account_input={}, remote_data=False) + res = s.ticketing.accounts.retrieve(x_connection_token="", id="") if res is not None: # handle response pass - - target: $["paths"]["/accounting/incomestatements/{id}"]["get"] + - target: $["paths"]["/sync/pull-frequencies"]["post"] update: x-codeSamples: - lang: python - label: retrieveAccountingIncomeStatement + label: updatePullFrequency source: |- from panora_sdk import Panora @@ -331,16 +360,24 @@ actions: ) - res = s.accounting.incomestatements.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.sync.update_pull_frequency(request={ + "crm": 1800, + "ats": 3600, + "hris": 7200, + "accounting": 14400, + "filestorage": 28800, + "ecommerce": 43200, + "ticketing": 86400, + }) if res is not None: # handle response pass - - target: $["paths"]["/accounting/journalentries"]["post"] + - target: $["paths"]["/hris/timesheetentries/{id}"]["get"] update: x-codeSamples: - lang: python - label: createAccountingJournalEntry + label: retrieveHrisTimesheetentry source: |- from panora_sdk import Panora @@ -349,16 +386,16 @@ actions: ) - res = s.accounting.journalentries.create(x_connection_token="", unified_accounting_journalentry_input={}, 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 - - target: $["paths"]["/projects"]["get"] + - target: $["paths"]["/ats/departments"]["get"] update: x-codeSamples: - lang: python - label: getProjects + label: listAtsDepartments source: |- from panora_sdk import Panora @@ -367,16 +404,20 @@ actions: ) - res = s.projects.get_projects() + res = s.ats.departments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/marketingautomation/automations"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/accounting/trackingcategories"]["get"] update: x-codeSamples: - lang: python - label: listMarketingautomationAutomations + label: listAccountingTrackingCategorys source: |- from panora_sdk import Panora @@ -385,7 +426,7 @@ actions: ) - res = s.marketingautomation.automations.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: @@ -394,11 +435,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/webhooks"]["get"] + - target: $["paths"]["/hris/employees/{id}"]["get"] update: x-codeSamples: - lang: python - label: listWebhooks + label: retrieveHrisEmployee source: |- from panora_sdk import Panora @@ -407,16 +448,16 @@ actions: ) - res = s.webhooks.list() + 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 - - target: $["paths"]["/crm/companies"]["get"] + - target: $["paths"]["/accounting/companyinfos"]["get"] update: x-codeSamples: - lang: python - label: listCrmCompany + label: listAccountingCompanyInfos source: |- from panora_sdk import Panora @@ -425,7 +466,7 @@ actions: ) - res = s.crm.companies.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: @@ -434,11 +475,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/ticketing/tickets/{id}"]["get"] + - target: $["paths"]["/filestorage/groups"]["get"] update: x-codeSamples: - lang: python - label: retrieveTicketingTicket + label: listFilestorageGroup source: |- from panora_sdk import Panora @@ -447,16 +488,20 @@ actions: ) - res = s.ticketing.tickets.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.filestorage.groups.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/crm/tasks"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/ticketing/comments"]["post"] update: x-codeSamples: - lang: python - label: listCrmTask + label: createTicketingComment source: |- from panora_sdk import Panora @@ -465,20 +510,27 @@ actions: ) - res = s.crm.tasks.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + 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", + ], + }) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ats/jobinterviewstages/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/crm/notes/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAtsJobInterviewStage + label: retrieveCrmNote source: |- from panora_sdk import Panora @@ -487,16 +539,16 @@ actions: ) - res = s.ats.jobinterviewstages.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 - - target: $["paths"]["/ticketing/users"]["get"] + - target: $["paths"]["/crm/users/{id}"]["get"] update: x-codeSamples: - lang: python - label: listTicketingUsers + label: retrieveCrmUser source: |- from panora_sdk import Panora @@ -505,20 +557,16 @@ actions: ) - res = s.ticketing.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.crm.users.retrieve(x_connection_token="", id="b008e199-eda9-4629-bd41-a01b6195864a", remote_data=True) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ticketing/accounts"]["get"] + # handle response + pass + - target: $["paths"]["/filestorage/folders"]["post"] update: x-codeSamples: - lang: python - label: listTicketingAccount + label: createFilestorageFolder source: |- from panora_sdk import Panora @@ -527,20 +575,29 @@ actions: ) - res = s.ticketing.accounts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.filestorage.folders.create(x_connection_token="", unified_filestorage_folder_input={ + "name": "school", + "size": "2048", + "folder_url": "https://example.com/school", + "description": "All things school related", + "drive_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "parent_folder_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "shared_link": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "permission": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "field_mappings": { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ticketing/collections/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/linked_users"]["post"] update: x-codeSamples: - lang: python - label: retrieveCollection + label: createLinkedUser source: |- from panora_sdk import Panora @@ -549,16 +606,19 @@ actions: ) - res = s.ticketing.collections.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.linked_users.create(request={ + "linked_user_origin_id": "id_1", + "alias": "acme", + }) if res is not None: # handle response pass - - target: $["paths"]["/hris/employees"]["get"] + - target: $["paths"]["/hris/employments/{id}"]["get"] update: x-codeSamples: - lang: python - label: listHrisEmployees + label: retrieveHrisEmployment source: |- from panora_sdk import Panora @@ -567,22 +627,17 @@ actions: ) - res = s.hris.employees.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.employments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ats/applications"]["post"] + # handle response + pass + - target: $["paths"]["/accounting/phonenumbers/{id}"]["get"] update: x-codeSamples: - lang: python - label: createAtsApplication + label: retrieveAccountingPhonenumber source: |- - import dateutil.parser from panora_sdk import Panora s = Panora( @@ -590,33 +645,16 @@ actions: ) - 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.accounting.phonenumbers.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - - target: $["paths"]["/ats/applications/{id}"]["get"] + - target: $["paths"]["/marketingautomation/contacts"]["post"] update: x-codeSamples: - lang: python - label: retrieveAtsApplication + label: createMarketingAutomationContact source: |- from panora_sdk import Panora @@ -625,16 +663,16 @@ actions: ) - res = s.ats.applications.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.contacts.create(x_connection_token="", unified_marketingautomation_contact_input={}, remote_data=False) if res is not None: # handle response pass - - target: $["paths"]["/hris/employees"]["post"] + - target: $["paths"]["/ats/attachments/{id}"]["get"] update: x-codeSamples: - lang: python - label: createHrisEmployee + label: retrieveAtsAttachment source: |- from panora_sdk import Panora @@ -643,16 +681,16 @@ actions: ) - res = s.hris.employees.create(x_connection_token="", unified_hris_employee_input={}) + 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 - - target: $["paths"]["/accounting/creditnotes"]["get"] + - target: $["paths"]["/marketingautomation/emails"]["get"] update: x-codeSamples: - lang: python - label: listAccountingCreditNote + label: listMarketingautomationEmails source: |- from panora_sdk import Panora @@ -661,7 +699,7 @@ actions: ) - res = s.accounting.creditnotes.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: @@ -670,11 +708,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/hris/timeoffs"]["get"] + - target: $["paths"]["/accounting/contacts/{id}"]["get"] update: x-codeSamples: - lang: python - label: listHrisTimeoffs + label: retrieveAccountingContact source: |- from panora_sdk import Panora @@ -683,20 +721,34 @@ actions: ) - res = s.hris.timeoffs.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.contacts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items + # handle response + pass + - target: $["paths"]["/crm/deals/{id}"]["get"] + update: + x-codeSamples: + - lang: python + label: retrieveCrmDeal + source: |- + from panora_sdk import Panora - res = res.Next() - if res is None: - break - - target: $["paths"]["/ats/offices"]["get"] + s = Panora( + api_key="", + ) + + + 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 + - target: $["paths"]["/hris/employerbenefits"]["get"] update: x-codeSamples: - lang: python - label: listAtsOffice + label: listHrisEmployerBenefits source: |- from panora_sdk import Panora @@ -705,7 +757,7 @@ actions: ) - res = s.ats.offices.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: @@ -714,11 +766,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/accounting/trackingcategories/{id}"]["get"] + - target: $["paths"]["/accounting/invoices"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingTrackingCategory + label: listAccountingInvoice source: |- from panora_sdk import Panora @@ -727,16 +779,20 @@ actions: ) - res = s.accounting.trackingcategories.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.invoices.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/filestorage/files"]["post"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/accounting/vendorcredits/{id}"]["get"] update: x-codeSamples: - lang: python - label: createFilestorageFile + label: retrieveAccountingVendorCredit source: |- from panora_sdk import Panora @@ -745,28 +801,16 @@ actions: ) - 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) + 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 - - target: $["paths"]["/filestorage/folders"]["post"] + - target: $["paths"]["/crm/deals"]["post"] update: x-codeSamples: - lang: python - label: createFilestorageFolder + label: createCrmDeal source: |- from panora_sdk import Panora @@ -775,31 +819,28 @@ actions: ) - res = s.filestorage.folders.create(x_connection_token="", unified_filestorage_folder_input={ - "name": "school", - "size": "2048", - "folder_url": "https://example.com/school", - "description": "All things school related", - "drive_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "parent_folder_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "shared_link": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "permission": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + 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", }, - }, remote_data=False) + }) if res is not None: # handle response pass - - target: $["paths"]["/sync/status/{vertical}"]["get"] + - target: $["paths"]["/marketingautomation/messages/{id}"]["get"] update: x-codeSamples: - lang: python - label: status + label: retrieveMarketingautomationMessage source: |- - import panora_sdk from panora_sdk import Panora s = Panora( @@ -807,14 +848,16 @@ actions: ) - s.sync.status(vertical=panora_sdk.PathParamVertical.TICKETING) + res = s.marketingautomation.messages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) - # Use the SDK ... - - target: $["paths"]["/crm/companies/{id}"]["get"] + if res is not None: + # handle response + pass + - target: $["paths"]["/sync/pull-frequencies"]["get"] update: x-codeSamples: - lang: python - label: retrieveCrmCompany + label: getPullFrequency source: |- from panora_sdk import Panora @@ -823,16 +866,16 @@ actions: ) - res = s.crm.companies.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.sync.get_pull_frequency() if res is not None: # handle response pass - - target: $["paths"]["/hris/bankinfos/{id}"]["get"] + - target: $["paths"]["/hris/locations"]["get"] update: x-codeSamples: - lang: python - label: retrieveHrisBankInfo + label: listHrisLocations source: |- from panora_sdk import Panora @@ -841,34 +884,20 @@ actions: ) - res = s.hris.bankinfos.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.locations.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/ats/activities/{id}"]["get"] - update: - x-codeSamples: - - lang: python - label: retrieveAtsActivity - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.ats.activities.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + while True: + # handle items - if res is not None: - # handle response - pass - - target: $["paths"]["/crm/deals"]["post"] + res = res.Next() + if res is None: + break + - target: $["paths"]["/accounting/creditnotes"]["get"] update: x-codeSamples: - lang: python - label: createCrmDeal + label: listAccountingCreditNote source: |- from panora_sdk import Panora @@ -877,45 +906,20 @@ actions: ) - 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", - }, - }) + res = s.accounting.creditnotes.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/marketingautomation/events/{id}"]["get"] - update: - x-codeSamples: - - lang: python - label: retrieveMarketingautomationEvent - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - res = s.marketingautomation.events.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + while True: + # handle items - if res is not None: - # handle response - pass - - target: $["paths"]["/accounting/accounts"]["get"] + res = res.Next() + if res is None: + break + - target: $["paths"]["/ticketing/teams"]["get"] update: x-codeSamples: - lang: python - label: listAccountingAccounts + label: listTicketingTeams source: |- from panora_sdk import Panora @@ -924,7 +928,7 @@ actions: ) - res = s.accounting.accounts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ticketing.teams.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -933,11 +937,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/filestorage/folders"]["get"] + - target: $["paths"]["/crm/notes"]["get"] update: x-codeSamples: - lang: python - label: listFilestorageFolder + label: listCrmNote source: |- from panora_sdk import Panora @@ -946,7 +950,7 @@ actions: ) - res = s.filestorage.folders.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: @@ -955,29 +959,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/hris/paygroups/{id}"]["get"] - update: - x-codeSamples: - - lang: python - label: retrieveHrisPaygroup - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - 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 - - target: $["paths"]["/ats/tags/{id}"]["get"] + - target: $["paths"]["/crm/notes"]["post"] update: x-codeSamples: - lang: python - label: retrieveAtsTag + label: createCrmNote source: |- from panora_sdk import Panora @@ -986,38 +972,26 @@ actions: ) - res = s.ats.tags.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + 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 - - target: $["paths"]["/accounting/journalentries"]["get"] - update: - x-codeSamples: - - lang: python - label: listAccountingJournalEntry - source: |- - from panora_sdk import Panora - - s = Panora( - api_key="", - ) - - - 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: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ticketing/attachments"]["get"] + - target: $["paths"]["/hris/timesheetentries"]["get"] update: x-codeSamples: - lang: python - label: listTicketingAttachments + label: listHrisTimesheetentries source: |- from panora_sdk import Panora @@ -1026,7 +1000,7 @@ actions: ) - res = s.ticketing.attachments.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: @@ -1035,11 +1009,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/crm/users"]["get"] + - target: $["paths"]["/marketingautomation/actions"]["get"] update: x-codeSamples: - lang: python - label: listCrmUsers + label: listMarketingautomationAction source: |- from panora_sdk import Panora @@ -1048,7 +1022,7 @@ actions: ) - res = s.crm.users.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: @@ -1057,11 +1031,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/hris/employments"]["get"] + - target: $["paths"]["/marketingautomation/contacts"]["get"] update: x-codeSamples: - lang: python - label: listHrisEmployments + label: listMarketingAutomationContacts source: |- from panora_sdk import Panora @@ -1070,7 +1044,7 @@ actions: ) - res = s.hris.employments.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: @@ -1079,11 +1053,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/accounting/payments"]["post"] + - target: $["paths"]["/marketingautomation/lists"]["post"] update: x-codeSamples: - lang: python - label: createAccountingPayment + label: createMarketingautomationList source: |- from panora_sdk import Panora @@ -1092,17 +1066,18 @@ actions: ) - res = s.accounting.payments.create(x_connection_token="", unified_accounting_payment_input={}, remote_data=False) + res = s.marketingautomation.lists.create(x_connection_token="", unified_marketingautomation_list_input={}) if res is not None: # handle response pass - - target: $["paths"]["/ecommerce/fulfillments/{id}"]["get"] + - target: $["paths"]["/sync/status/{vertical}"]["get"] update: x-codeSamples: - lang: python - label: retrieveEcommerceFulfillment + label: status source: |- + import panora_sdk from panora_sdk import Panora s = Panora( @@ -1110,16 +1085,14 @@ actions: ) - res = s.ecommerce.fulfillments.retrieve(x_connection_token="", id="") + s.sync.status(vertical=panora_sdk.PathParamVertical.TICKETING) - if res is not None: - # handle response - pass - - target: $["paths"]["/crm/contacts/{id}"]["get"] + # Use the SDK ... + - target: $["paths"]["/linked_users/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveCrmContact + label: retrieveLinkedUser source: |- from panora_sdk import Panora @@ -1128,16 +1101,16 @@ actions: ) - res = s.crm.contacts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.linked_users.retrieve(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") if res is not None: # handle response pass - - target: $["paths"]["/crm/engagements"]["get"] + - target: $["paths"]["/hris/timeoffs"]["get"] update: x-codeSamples: - lang: python - label: listCrmEngagements + label: listHrisTimeoffs source: |- from panora_sdk import Panora @@ -1146,7 +1119,7 @@ actions: ) - res = s.crm.engagements.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: @@ -1155,11 +1128,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/crm/users/{id}"]["get"] + - target: $["paths"]["/marketingautomation/actions/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveCrmUser + label: retrieveMarketingautomationAction source: |- from panora_sdk import Panora @@ -1168,16 +1141,16 @@ actions: ) - res = s.crm.users.retrieve(x_connection_token="", id="b008e199-eda9-4629-bd41-a01b6195864a", remote_data=True) + 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 - - target: $["paths"]["/marketingautomation/templates"]["get"] + - target: $["paths"]["/ats/candidates"]["get"] update: x-codeSamples: - lang: python - label: listMarketingautomationTemplates + label: listAtsCandidate source: |- from panora_sdk import Panora @@ -1186,7 +1159,7 @@ actions: ) - res = s.marketingautomation.templates.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: @@ -1195,11 +1168,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/ats/attachments/{id}"]["get"] + - target: $["paths"]["/ats/offices/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAtsAttachment + label: retrieveAtsOffice source: |- from panora_sdk import Panora @@ -1208,16 +1181,16 @@ actions: ) - res = s.ats.attachments.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 - - target: $["paths"]["/webhooks/{id}"]["put"] + - target: $["paths"]["/accounting/taxrates/{id}"]["get"] update: x-codeSamples: - lang: python - label: updateStatus + label: retrieveAccountingTaxRate source: |- from panora_sdk import Panora @@ -1226,16 +1199,16 @@ actions: ) - res = s.webhooks.update_status(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") + 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 - - target: $["paths"]["/crm/notes"]["get"] + - target: $["paths"]["/crm/tasks"]["get"] update: x-codeSamples: - lang: python - label: listCrmNote + label: listCrmTask source: |- from panora_sdk import Panora @@ -1244,7 +1217,7 @@ actions: ) - res = s.crm.notes.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.crm.tasks.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -1253,13 +1226,12 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/field_mappings/define"]["post"] + - target: $["paths"]["/linked_users/fromRemoteId"]["get"] update: x-codeSamples: - lang: python - label: definitions + label: remoteId source: |- - import panora_sdk from panora_sdk import Panora s = Panora( @@ -1267,21 +1239,16 @@ actions: ) - 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.linked_users.remote_id(remote_id="id_1") if res is not None: # handle response pass - - target: $["paths"]["/hris/companies"]["get"] + - target: $["paths"]["/marketingautomation/automations"]["post"] update: x-codeSamples: - lang: python - label: listHrisCompanies + label: createMarketingautomationAutomation source: |- from panora_sdk import Panora @@ -1290,20 +1257,16 @@ actions: ) - res = s.hris.companies.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.marketingautomation.automations.create(x_connection_token="", unified_marketingautomation_automation_input={}, remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/hris/locations"]["get"] + # handle response + pass + - target: $["paths"]["/ats/users"]["get"] update: x-codeSamples: - lang: python - label: listHrisLocations + label: listAtsUsers source: |- from panora_sdk import Panora @@ -1312,7 +1275,7 @@ actions: ) - res = s.hris.locations.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: @@ -1321,11 +1284,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/hris/payrollruns/{id}"]["get"] + - target: $["paths"]["/accounting/addresses"]["get"] update: x-codeSamples: - lang: python - label: retrieveHrisPayrollRun + label: listAccountingAddress source: |- from panora_sdk import Panora @@ -1334,16 +1297,20 @@ actions: ) - res = s.hris.payrollruns.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.addresses.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/marketingautomation/actions"]["post"] - update: - x-codeSamples: - - lang: python - label: createMarketingautomationAction + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/accounting/contacts"]["get"] + update: + x-codeSamples: + - lang: python + label: listAccountingContacts source: |- from panora_sdk import Panora @@ -1352,17 +1319,22 @@ actions: ) - res = s.marketingautomation.actions.create(x_connection_token="", unified_marketingautomation_action_input={}, remote_data=False) + res = s.accounting.contacts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/accounting/cashflowstatements"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/accounting/purchaseorders"]["post"] update: x-codeSamples: - lang: python - label: listAccountingCashflowStatement + label: createAccountingPurchaseOrder source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -1370,20 +1342,47 @@ actions: ) - res = s.accounting.cashflowstatements.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 - - target: $["paths"]["/filestorage/groups"]["get"] + # handle response + pass + - target: $["paths"]["/ticketing/tags"]["get"] update: x-codeSamples: - lang: python - label: listFilestorageGroup + label: listTicketingTags source: |- from panora_sdk import Panora @@ -1392,7 +1391,7 @@ actions: ) - res = s.filestorage.groups.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ticketing.tags.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -1401,11 +1400,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/ecommerce/customers/{id}"]["get"] + - target: $["paths"]["/crm/deals"]["get"] update: x-codeSamples: - lang: python - label: retrieveEcommerceCustomer + label: listCrmDeals source: |- from panora_sdk import Panora @@ -1414,18 +1413,21 @@ actions: ) - res = s.ecommerce.customers.retrieve(x_connection_token="", id="") + res = s.crm.deals.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/crm/tasks"]["post"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/field_mappings/attributes"]["get"] update: x-codeSamples: - lang: python - label: createCrmTask + label: getFieldMappings source: |- - import panora_sdk from panora_sdk import Panora s = Panora( @@ -1433,29 +1435,14 @@ actions: ) - 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", - "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", - }, - }) + s.field_mappings.get_field_mappings() - if res is not None: - # handle response - pass - - target: $["paths"]["/hris/employerbenefits"]["get"] + # Use the SDK ... + - target: $["paths"]["/hris/dependents"]["get"] update: x-codeSamples: - lang: python - label: listHrisEmployerBenefits + label: listHrisDependents source: |- from panora_sdk import Panora @@ -1464,7 +1451,7 @@ actions: ) - res = s.hris.employerbenefits.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: @@ -1473,11 +1460,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/ats/activities"]["get"] + - target: $["paths"]["/hris/payrollruns"]["get"] update: x-codeSamples: - lang: python - label: listAtsActivity + label: listHrisPayrollRuns source: |- from panora_sdk import Panora @@ -1486,7 +1473,7 @@ actions: ) - res = s.ats.activities.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + 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: @@ -1495,11 +1482,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/accounting/purchaseorders"]["post"] + - target: $["paths"]["/ats/interviews/{id}"]["get"] update: x-codeSamples: - lang: python - label: createAccountingPurchaseOrder + label: retrieveAtsInterview source: |- from panora_sdk import Panora @@ -1508,16 +1495,16 @@ actions: ) - res = s.accounting.purchaseorders.create(x_connection_token="", unified_accounting_purchaseorder_input={}, 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 - - target: $["paths"]["/ecommerce/orders/{id}"]["get"] + - target: $["paths"]["/accounting/accounts/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveEcommerceOrder + label: retrieveAccountingAccount source: |- from panora_sdk import Panora @@ -1526,16 +1513,16 @@ actions: ) - res = s.ecommerce.orders.retrieve(x_connection_token="", id="") + 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 - - target: $["paths"]["/ats/offers/{id}"]["get"] + - target: $["paths"]["/ticketing/users"]["get"] update: x-codeSamples: - lang: python - label: retrieveAtsOffer + label: listTicketingUsers source: |- from panora_sdk import Panora @@ -1544,16 +1531,20 @@ actions: ) - res = s.ats.offers.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ticketing.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/ticketing/tags/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/hris/benefits/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveTicketingTag + label: retrieveHrisBenefit source: |- from panora_sdk import Panora @@ -1562,16 +1553,16 @@ actions: ) - res = s.ticketing.tags.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 - - target: $["paths"]["/marketingautomation/contacts"]["post"] + - target: $["paths"]["/marketingautomation/templates"]["get"] update: x-codeSamples: - lang: python - label: createMarketingAutomationContact + label: listMarketingautomationTemplates source: |- from panora_sdk import Panora @@ -1580,16 +1571,20 @@ actions: ) - res = s.marketingautomation.contacts.create(x_connection_token="", unified_marketingautomation_contact_input={}, remote_data=False) + res = s.marketingautomation.templates.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/accounting/companyinfos/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/accounting/contacts"]["post"] update: x-codeSamples: - lang: python - label: retrieveAccountingCompanyInfo + label: createAccountingContact source: |- from panora_sdk import Panora @@ -1598,16 +1593,27 @@ actions: ) - res = s.accounting.companyinfos.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", 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 - - target: $["paths"]["/hris/employeepayrollruns"]["get"] + - target: $["paths"]["/accounting/expenses/{id}"]["get"] update: x-codeSamples: - lang: python - label: listHrisEmployeePayrollRun + label: retrieveAccountingExpense source: |- from panora_sdk import Panora @@ -1616,20 +1622,16 @@ actions: ) - res = s.hris.employeepayrollruns.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.expenses.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ats/candidates"]["get"] + # handle response + pass + - target: $["paths"]["/rag/query"]["post"] update: x-codeSamples: - lang: python - label: listAtsCandidate + label: query source: |- from panora_sdk import Panora @@ -1638,20 +1640,19 @@ actions: ) - res = s.ats.candidates.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.rag.query.query(x_connection_token="", query_body={ + "query": "When does Panora incorporated?", + "top_k": 3, + }) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ticketing/tickets"]["get"] + # handle response + pass + - target: $["paths"]["/ticketing/attachments"]["post"] update: x-codeSamples: - lang: python - label: listTicketingTicket + label: createTicketingAttachment source: |- from panora_sdk import Panora @@ -1660,20 +1661,26 @@ actions: ) - res = s.ticketing.tickets.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ticketing.attachments.create(x_connection_token="", unified_ticketing_attachment_input={ + "file_name": "features_planning.pdf", + "file_url": "https://example.com/features_planning.pdf", + "uploader": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "ticket_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "comment_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "field_mappings": { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ticketing/teams/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/crm/companies"]["get"] update: x-codeSamples: - lang: python - label: retrieveTicketingTeam + label: listCrmCompany source: |- from panora_sdk import Panora @@ -1682,19 +1689,21 @@ actions: ) - res = s.ticketing.teams.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.crm.companies.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/crm/engagements"]["post"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/linked_users/batch"]["post"] update: x-codeSamples: - lang: python - label: createCrmEngagement + label: importBatch source: |- - import dateutil.parser - import panora_sdk from panora_sdk import Panora s = Panora( @@ -1702,32 +1711,21 @@ actions: ) - 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", + res = s.linked_users.import_batch(request={ + "linked_user_origin_ids": [ + "id_1", ], - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, remote_data=False) + "alias": "acme", + }) if res is not None: # handle response pass - - target: $["paths"]["/crm/deals"]["get"] + - target: $["paths"]["/hris/employees"]["get"] update: x-codeSamples: - lang: python - label: listCrmDeals + label: listHrisEmployees source: |- from panora_sdk import Panora @@ -1736,7 +1734,7 @@ actions: ) - res = s.crm.deals.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: @@ -1745,11 +1743,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/accounting/vendorcredits"]["get"] + - target: $["paths"]["/ecommerce/products"]["get"] update: x-codeSamples: - lang: python - label: listAccountingVendorCredit + label: listEcommerceProducts source: |- from panora_sdk import Panora @@ -1758,7 +1756,7 @@ actions: ) - res = s.accounting.vendorcredits.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ecommerce.products.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -1767,11 +1765,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/auth/login"]["post"] + - target: $["paths"]["/ticketing/contacts/{id}"]["get"] update: x-codeSamples: - lang: python - label: signIn + label: retrieveTicketingContact source: |- from panora_sdk import Panora @@ -1780,17 +1778,16 @@ actions: ) - s.auth.login.sign_in(request={ - "email": "Oda.Treutel97@hotmail.com", - "password_hash": "", - }) + res = s.ticketing.contacts.retrieve(x_connection_token="", id="") - # Use the SDK ... - - target: $["paths"]["/ticketing/collections"]["get"] + if res is not None: + # handle response + pass + - target: $["paths"]["/crm/stages/{id}"]["get"] update: x-codeSamples: - lang: python - label: listTicketingCollections + label: retrieveCrmStage source: |- from panora_sdk import Panora @@ -1799,20 +1796,16 @@ actions: ) - res = s.ticketing.collections.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.crm.stages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ticketing/tags"]["get"] + # handle response + pass + - target: $["paths"]["/ats/departments/{id}"]["get"] update: x-codeSamples: - lang: python - label: listTicketingTags + label: retrieveAtsDepartment source: |- from panora_sdk import Panora @@ -1821,20 +1814,34 @@ actions: ) - res = s.ticketing.tags.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.departments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items + # handle response + pass + - target: $["paths"]["/accounting/balancesheets/{id}"]["get"] + update: + x-codeSamples: + - lang: python + label: retrieveAccountingBalanceSheet + source: |- + from panora_sdk import Panora - res = res.Next() - if res is None: - break - - target: $["paths"]["/projects"]["post"] + s = Panora( + api_key="", + ) + + + 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 + - target: $["paths"]["/webhooks"]["post"] update: x-codeSamples: - lang: python - label: createProject + label: createWebhookPublic source: |- from panora_sdk import Panora @@ -1843,20 +1850,22 @@ actions: ) - res = s.projects.create(request={ - "name": "Project Name", - "id_organization": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "id_user": "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", + ], }) if res is not None: # handle response pass - - target: $["paths"]["/hris/employees/{id}"]["get"] + - target: $["paths"]["/ticketing/users/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveHrisEmployee + label: retrieveTicketingUser source: |- from panora_sdk import Panora @@ -1865,16 +1874,16 @@ actions: ) - res = s.hris.employees.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", 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 - - target: $["paths"]["/ticketing/contacts/{id}"]["get"] + - target: $["paths"]["/projects"]["post"] update: x-codeSamples: - lang: python - label: retrieveTicketingContact + label: createProject source: |- from panora_sdk import Panora @@ -1883,16 +1892,20 @@ actions: ) - res = s.ticketing.contacts.retrieve(x_connection_token="", id="") + 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: # handle response pass - - target: $["paths"]["/marketingautomation/lists/{id}"]["get"] + - target: $["paths"]["/hris/employeepayrollruns/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveMarketingautomationList + label: retrieveHrisEmployeePayrollRun source: |- from panora_sdk import Panora @@ -1901,16 +1914,16 @@ actions: ) - res = s.marketingautomation.lists.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 - - target: $["paths"]["/accounting/attachments/{id}"]["get"] + - target: $["paths"]["/marketingautomation/automations/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingAttachment + label: retrieveMarketingautomationAutomation source: |- from panora_sdk import Panora @@ -1919,16 +1932,16 @@ actions: ) - res = s.accounting.attachments.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 - - target: $["paths"]["/accounting/phonenumbers"]["get"] + - target: $["paths"]["/ats/activities"]["get"] update: x-codeSamples: - lang: python - label: listAccountingPhonenumber + label: listAtsActivity source: |- from panora_sdk import Panora @@ -1937,7 +1950,7 @@ actions: ) - res = s.accounting.phonenumbers.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: @@ -1946,11 +1959,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/webhooks"]["post"] + - target: $["paths"]["/ats/applications"]["get"] update: x-codeSamples: - lang: python - label: createWebhookPublic + label: listAtsApplication source: |- from panora_sdk import Panora @@ -1959,25 +1972,21 @@ actions: ) - res = s.webhooks.create(request={ - "url": "https://acme.com/webhook_receiver", - "description": "Webhook to receive connection events", - "scope": [ - "connection.created", - ], - }) + res = s.ats.applications.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/ticketing/tickets"]["post"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/filestorage/files"]["get"] update: x-codeSamples: - lang: python - label: createTicketingTicket + label: listFilestorageFile source: |- - import dateutil.parser - import panora_sdk from panora_sdk import Panora s = Panora( @@ -1985,56 +1994,20 @@ actions: ) - 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", - ], - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, remote_data=False) + 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 - - target: $["paths"]["/marketingautomation/emails/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/ticketing/tickets"]["get"] update: x-codeSamples: - lang: python - label: retrieveMarketingautomationEmail + label: listTicketingTicket source: |- from panora_sdk import Panora @@ -2043,16 +2016,20 @@ actions: ) - res = s.marketingautomation.emails.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ticketing.tickets.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/marketingautomation/messages/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/ticketing/contacts"]["get"] update: x-codeSamples: - lang: python - label: retrieveMarketingautomationMessage + label: listTicketingContacts source: |- from panora_sdk import Panora @@ -2061,17 +2038,40 @@ actions: ) - res = s.marketingautomation.messages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + 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 + - target: $["paths"]["/marketingautomation/templates"]["post"] + update: + x-codeSamples: + - 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 - - target: $["paths"]["/ats/offers"]["get"] + - target: $["paths"]["/ats/candidates"]["post"] update: x-codeSamples: - lang: python - label: listAtsOffer + label: createAtsCandidate source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -2079,20 +2079,59 @@ actions: ) - res = s.ats.offers.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + 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": [ + "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", + }, + }, remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ats/rejectreasons"]["get"] + # handle response + pass + - target: $["paths"]["/webhooks/{id}"]["delete"] update: x-codeSamples: - lang: python - label: listAtsRejectReasons + label: delete source: |- from panora_sdk import Panora @@ -2101,20 +2140,16 @@ actions: ) - res = s.ats.rejectreasons.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 - - target: $["paths"]["/accounting/phonenumbers/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/crm/contacts/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingPhonenumber + label: retrieveCrmContact source: |- from panora_sdk import Panora @@ -2123,16 +2158,16 @@ actions: ) - res = s.accounting.phonenumbers.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 - - target: $["paths"]["/ecommerce/orders"]["get"] + - target: $["paths"]["/ats/scorecards/{id}"]["get"] update: x-codeSamples: - lang: python - label: listEcommerceOrders + label: retrieveAtsScorecard source: |- from panora_sdk import Panora @@ -2141,20 +2176,16 @@ actions: ) - res = s.ecommerce.orders.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.scorecards.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ticketing/comments/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/accounting/attachments/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveTicketingComment + label: retrieveAccountingAttachment source: |- from panora_sdk import Panora @@ -2163,16 +2194,16 @@ actions: ) - res = s.ticketing.comments.retrieve(x_connection_token="", id="") + 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 - - target: $["paths"]["/hris/payrollruns"]["get"] + - target: $["paths"]["/accounting/purchaseorders"]["get"] update: x-codeSamples: - lang: python - label: listHrisPayrollRuns + label: listAccountingPurchaseOrder source: |- from panora_sdk import Panora @@ -2181,7 +2212,7 @@ actions: ) - res = s.hris.payrollruns.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + 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: @@ -2190,11 +2221,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/marketingautomation/emails"]["get"] + - target: $["paths"]["/hris/bankinfos"]["get"] update: x-codeSamples: - lang: python - label: listMarketingautomationEmails + label: listHrisBankInfo source: |- from panora_sdk import Panora @@ -2203,7 +2234,7 @@ actions: ) - res = s.marketingautomation.emails.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: @@ -2212,11 +2243,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/filestorage/folders/{id}"]["get"] + - target: $["paths"]["/hris/timeoffbalances/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveFilestorageFolder + label: retrieveHrisTimeoffbalance source: |- from panora_sdk import Panora @@ -2225,16 +2256,16 @@ actions: ) - res = s.filestorage.folders.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 - - target: $["paths"]["/hris/companies/{id}"]["get"] + - target: $["paths"]["/marketingautomation/contacts/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveHrisCompany + label: retrieveMarketingAutomationContact source: |- from panora_sdk import Panora @@ -2243,17 +2274,40 @@ actions: ) - res = s.hris.companies.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 + - target: $["paths"]["/marketingautomation/users"]["get"] + update: + x-codeSamples: + - 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: - # handle response - pass - - target: $["paths"]["/hris/employeepayrollruns/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/accounting/expenses"]["post"] update: x-codeSamples: - lang: python - label: retrieveHrisEmployeePayrollRun + label: createAccountingExpense source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -2261,16 +2315,44 @@ actions: ) - res = s.hris.employeepayrollruns.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", 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 - - target: $["paths"]["/marketingautomation/actions"]["get"] + - target: $["paths"]["/accounting/incomestatements"]["get"] update: x-codeSamples: - lang: python - label: listMarketingautomationAction + label: listAccountingIncomeStatement source: |- from panora_sdk import Panora @@ -2279,7 +2361,7 @@ actions: ) - res = s.marketingautomation.actions.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: @@ -2288,11 +2370,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/ats/attachments"]["get"] + - target: $["paths"]["/crm/tasks"]["post"] update: x-codeSamples: - lang: python - label: listAtsAttachment + label: createCrmTask source: |- from panora_sdk import Panora @@ -2301,20 +2383,29 @@ actions: ) - res = s.ats.attachments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + 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: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/accounting/items/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/marketingautomation/users/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingItem + label: retrieveMarketingAutomationUser source: |- from panora_sdk import Panora @@ -2323,16 +2414,16 @@ actions: ) - res = s.accounting.items.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 - - target: $["paths"]["/marketingautomation/users"]["get"] + - target: $["paths"]["/ats/rejectreasons"]["get"] update: x-codeSamples: - lang: python - label: listMarketingAutomationUsers + label: listAtsRejectReasons source: |- from panora_sdk import Panora @@ -2341,7 +2432,7 @@ actions: ) - res = s.marketingautomation.users.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: @@ -2350,11 +2441,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/accounting/attachments"]["get"] + - target: $["paths"]["/accounting/balancesheets"]["get"] update: x-codeSamples: - lang: python - label: listAccountingAttachments + label: listAccountingBalanceSheets source: |- from panora_sdk import Panora @@ -2363,7 +2454,7 @@ actions: ) - res = s.accounting.attachments.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: @@ -2372,11 +2463,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/hris/dependents"]["get"] + - target: $["paths"]["/filestorage/files"]["post"] update: x-codeSamples: - lang: python - label: listHrisDependents + label: createFilestorageFile source: |- from panora_sdk import Panora @@ -2385,20 +2476,28 @@ actions: ) - res = s.hris.dependents.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + 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: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/marketingautomation/automations/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/ats/jobs"]["get"] update: x-codeSamples: - lang: python - label: retrieveMarketingautomationAutomation + label: listAtsJob source: |- from panora_sdk import Panora @@ -2407,16 +2506,20 @@ actions: ) - res = s.marketingautomation.automations.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.jobs.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/ats/scorecards/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/ecommerce/products/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAtsScorecard + label: retrieveEcommerceProduct source: |- from panora_sdk import Panora @@ -2425,16 +2528,16 @@ actions: ) - res = s.ats.scorecards.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ecommerce.products.retrieve(x_connection_token="", id="") if res is not None: # handle response pass - - target: $["paths"]["/accounting/invoices/{id}"]["get"] + - target: $["paths"]["/ecommerce/customers/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingInvoice + label: retrieveEcommerceCustomer source: |- from panora_sdk import Panora @@ -2443,16 +2546,16 @@ actions: ) - res = s.accounting.invoices.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ecommerce.customers.retrieve(x_connection_token="", id="") if res is not None: # handle response pass - - target: $["paths"]["/accounting/payments"]["get"] + - target: $["paths"]["/filestorage/users"]["get"] update: x-codeSamples: - lang: python - label: listAccountingPayment + label: listFilestorageUsers source: |- from panora_sdk import Panora @@ -2461,7 +2564,7 @@ actions: ) - res = s.accounting.payments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.filestorage.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -2470,11 +2573,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/marketingautomation/campaigns/{id}"]["get"] + - target: $["paths"]["/ats/tags/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveMarketingautomationCampaign + label: retrieveAtsTag source: |- from panora_sdk import Panora @@ -2483,16 +2586,16 @@ actions: ) - res = s.marketingautomation.campaigns.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + 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 - - target: $["paths"]["/accounting/companyinfos"]["get"] + - target: $["paths"]["/accounting/items"]["get"] update: x-codeSamples: - lang: python - label: listAccountingCompanyInfos + label: listAccountingItem source: |- from panora_sdk import Panora @@ -2501,7 +2604,7 @@ actions: ) - res = s.accounting.companyinfos.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: @@ -2510,12 +2613,13 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/accounting/contacts"]["post"] + - target: $["paths"]["/field_mappings/define"]["post"] update: x-codeSamples: - lang: python - label: createAccountingContact + label: definitions source: |- + import panora_sdk from panora_sdk import Panora s = Panora( @@ -2523,16 +2627,21 @@ actions: ) - res = s.accounting.contacts.create(x_connection_token="", unified_accounting_contact_input={}, remote_data=False) + 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 - - target: $["paths"]["/field_mappings/map"]["post"] + - target: $["paths"]["/ecommerce/customers"]["get"] update: x-codeSamples: - lang: python - label: map + label: listEcommerceCustomers source: |- from panora_sdk import Panora @@ -2541,21 +2650,38 @@ actions: ) - 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.ecommerce.customers.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 + - target: $["paths"]["/marketingautomation/campaigns/{id}"]["get"] + update: + x-codeSamples: + - lang: python + label: retrieveMarketingautomationCampaign + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + 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 - - target: $["paths"]["/hris/paygroups"]["get"] + - target: $["paths"]["/ats/scorecards"]["get"] update: x-codeSamples: - lang: python - label: listHrisPaygroups + label: listAtsScorecard source: |- from panora_sdk import Panora @@ -2564,7 +2690,7 @@ actions: ) - res = s.hris.paygroups.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: @@ -2573,11 +2699,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/ticketing/accounts/{id}"]["get"] + - target: $["paths"]["/hris/employeepayrollruns"]["get"] update: x-codeSamples: - lang: python - label: retrieveTicketingAccount + label: listHrisEmployeePayrollRun source: |- from panora_sdk import Panora @@ -2586,16 +2712,20 @@ actions: ) - res = s.ticketing.accounts.retrieve(x_connection_token="", id="") + res = s.hris.employeepayrollruns.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/ticketing/attachments/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/ecommerce/fulfillments/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveTicketingAttachment + label: retrieveEcommerceFulfillment source: |- from panora_sdk import Panora @@ -2604,16 +2734,16 @@ actions: ) - res = s.ticketing.attachments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ecommerce.fulfillments.retrieve(x_connection_token="", id="") if res is not None: # handle response pass - - target: $["paths"]["/crm/deals/{id}"]["get"] + - target: $["paths"]["/ticketing/attachments"]["get"] update: x-codeSamples: - lang: python - label: retrieveCrmDeal + label: listTicketingAttachments source: |- from panora_sdk import Panora @@ -2622,16 +2752,20 @@ actions: ) - res = s.crm.deals.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ticketing.attachments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/accounting/expenses/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/crm/companies/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingExpense + label: retrieveCrmCompany source: |- from panora_sdk import Panora @@ -2640,16 +2774,16 @@ actions: ) - res = s.accounting.expenses.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 - - target: $["paths"]["/crm/notes/{id}"]["get"] + - target: $["paths"]["/hris/timeoffs/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveCrmNote + label: retrieveHrisTimeoff source: |- from panora_sdk import Panora @@ -2658,18 +2792,17 @@ actions: ) - res = s.crm.notes.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 - - target: $["paths"]["/field_mappings"]["post"] + - target: $["paths"]["/ticketing/attachments/{id}"]["get"] update: x-codeSamples: - lang: python - label: defineCustomField + label: retrieveTicketingAttachment source: |- - import panora_sdk from panora_sdk import Panora s = Panora( @@ -2677,24 +2810,16 @@ actions: ) - 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.attachments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - - target: $["paths"]["/hris/timeoffs"]["post"] + - target: $["paths"]["/filestorage/folders"]["get"] update: x-codeSamples: - lang: python - label: createHrisTimeoff + label: listFilestorageFolder source: |- from panora_sdk import Panora @@ -2703,19 +2828,22 @@ actions: ) - res = s.hris.timeoffs.create(x_connection_token="", unified_hris_timeoff_input={}) + res = s.filestorage.folders.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/ats/candidates"]["post"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/ticketing/tickets"]["post"] update: x-codeSamples: - lang: python - label: createAtsCandidate + label: createTicketingTicket source: |- import dateutil.parser - import panora_sdk from panora_sdk import Panora s = Panora( @@ -2723,44 +2851,41 @@ actions: ) - 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.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": [ - "tag_1", - "tag_2", - ], - "urls": [ - { - "url": "mywebsite.com", - "url_type": "WEBSITE", - }, + "my_tag", + "urgent_tag", ], - "phone_numbers": [ - { - "phone_number": "+33660688899", - "phone_type": panora_sdk.PhoneType.WORK, - }, + "completed_at": dateutil.parser.isoparse("2024-10-01T12:00:00Z"), + "priority": "HIGH", + "assigned_to": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", ], - "email_addresses": [ - { - "email_address": "joedoe@gmail.com", - "email_address_type": panora_sdk.EmailAddressType.WORK, - }, + "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", @@ -2771,11 +2896,11 @@ actions: if res is not None: # handle response pass - - target: $["paths"]["/accounting/invoices"]["post"] + - target: $["paths"]["/hris/paygroups"]["get"] update: x-codeSamples: - lang: python - label: createAccountingInvoice + label: listHrisPaygroups source: |- from panora_sdk import Panora @@ -2784,16 +2909,20 @@ actions: ) - res = s.accounting.invoices.create(x_connection_token="", unified_accounting_invoice_input={}, remote_data=False) + res = s.hris.paygroups.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/ticketing/users/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/marketingautomation/campaigns"]["post"] update: x-codeSamples: - lang: python - label: retrieveTicketingUser + label: createMarketingautomationCampaign source: |- from panora_sdk import Panora @@ -2802,16 +2931,16 @@ actions: ) - res = s.ticketing.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.campaigns.create(x_connection_token="", unified_marketingautomation_campaign_input={}, remote_data=False) if res is not None: # handle response pass - - target: $["paths"]["/accounting/creditnotes/{id}"]["get"] + - target: $["paths"]["/crm/stages"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingCreditNote + label: listCrmStages source: |- from panora_sdk import Panora @@ -2820,16 +2949,20 @@ actions: ) - res = s.accounting.creditnotes.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.crm.stages.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/accounting/purchaseorders"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/marketingautomation/automations"]["get"] update: x-codeSamples: - lang: python - label: listAccountingPurchaseOrder + label: listMarketingautomationAutomations source: |- from panora_sdk import Panora @@ -2838,7 +2971,7 @@ actions: ) - res = s.accounting.purchaseorders.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: @@ -2847,11 +2980,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/ecommerce/products/{id}"]["get"] + - target: $["paths"]["/ecommerce/orders/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveEcommerceProduct + label: retrieveEcommerceOrder source: |- from panora_sdk import Panora @@ -2860,16 +2993,16 @@ actions: ) - res = s.ecommerce.products.retrieve(x_connection_token="", id="") + res = s.ecommerce.orders.retrieve(x_connection_token="", id="") if res is not None: # handle response pass - - target: $["paths"]["/ecommerce/customers"]["get"] + - target: $["paths"]["/hris/paygroups/{id}"]["get"] update: x-codeSamples: - lang: python - label: listEcommerceCustomers + label: retrieveHrisPaygroup source: |- from panora_sdk import Panora @@ -2878,7 +3011,25 @@ actions: ) - res = s.ecommerce.customers.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + 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 + - target: $["paths"]["/ats/jobinterviewstages"]["get"] + update: + x-codeSamples: + - lang: python + label: listAtsJobInterviewStage + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + 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: @@ -2887,11 +3038,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/"]["get"] + - target: $["paths"]["/accounting/accounts"]["post"] update: x-codeSamples: - lang: python - label: hello + label: createAccountingAccount source: |- from panora_sdk import Panora @@ -2900,17 +3051,30 @@ actions: ) - res = s.hello() + 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 - - target: $["paths"]["/ticketing/comments"]["get"] + - target: $["paths"]["/accounting/journalentries"]["post"] update: x-codeSamples: - lang: python - label: listTicketingComments + label: createAccountingJournalEntry source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -2918,20 +3082,68 @@ actions: ) - res = s.ticketing.comments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + 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: - while True: - # handle items + # handle response + pass + - target: $["paths"]["/hris/payrollruns/{id}"]["get"] + update: + x-codeSamples: + - lang: python + label: retrieveHrisPayrollRun + source: |- + from panora_sdk import Panora - res = res.Next() - if res is None: - break - - target: $["paths"]["/hris/groups/{id}"]["get"] + s = Panora( + api_key="", + ) + + + 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 + - target: $["paths"]["/ats/rejectreasons/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveHrisGroup + label: retrieveAtsRejectReason source: |- from panora_sdk import Panora @@ -2940,16 +3152,16 @@ actions: ) - res = s.hris.groups.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 - - target: $["paths"]["/hris/locations/{id}"]["get"] + - target: $["paths"]["/accounting/creditnotes/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveHrisLocation + label: retrieveAccountingCreditNote source: |- from panora_sdk import Panora @@ -2958,16 +3170,16 @@ actions: ) - res = s.hris.locations.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 - - target: $["paths"]["/ats/departments"]["get"] + - target: $["paths"]["/accounting/expenses"]["get"] update: x-codeSamples: - lang: python - label: listAtsDepartments + label: listAccountingExpense source: |- from panora_sdk import Panora @@ -2976,7 +3188,7 @@ actions: ) - res = s.ats.departments.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: @@ -2985,11 +3197,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/accounting/addresses"]["get"] + - target: $["paths"]["/accounting/payments"]["get"] update: x-codeSamples: - lang: python - label: listAccountingAddress + label: listAccountingPayment source: |- from panora_sdk import Panora @@ -2998,7 +3210,7 @@ actions: ) - res = s.accounting.addresses.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: @@ -3007,11 +3219,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/crm/notes"]["post"] + - target: $["paths"]["/ecommerce/products"]["post"] update: x-codeSamples: - lang: python - label: createCrmNote + label: createEcommerceProduct source: |- from panora_sdk import Panora @@ -3020,29 +3232,55 @@ actions: ) - 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", - }, + 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 pass - - target: $["paths"]["/ats/attachments"]["post"] + - target: $["paths"]["/accounting/vendorcredits"]["get"] update: x-codeSamples: - lang: python - label: createAtsAttachment + label: listAccountingVendorCredit + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + 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 + - target: $["paths"]["/ticketing/comments"]["get"] + update: + x-codeSamples: + - lang: python + label: listTicketingComments source: |- - import dateutil.parser - import panora_sdk from panora_sdk import Panora s = Panora( @@ -3050,27 +3288,20 @@ actions: ) - 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"), - "candidate_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, remote_data=False) + 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 - - target: $["paths"]["/accounting/addresses/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/linked_users"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingAddress + label: listLinkedUsers source: |- from panora_sdk import Panora @@ -3079,18 +3310,17 @@ actions: ) - res = s.accounting.addresses.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.linked_users.list() if res is not None: # handle response pass - - target: $["paths"]["/passthrough"]["post"] + - target: $["paths"]["/projects"]["get"] update: x-codeSamples: - lang: python - label: request + label: getProjects source: |- - import panora_sdk from panora_sdk import Panora s = Panora( @@ -3098,19 +3328,16 @@ actions: ) - res = s.passthrough.request(x_connection_token="", pass_through_request_dto={ - "method": panora_sdk.PassThroughRequestDtoMethod.GET, - "path": "/dev", - }) + res = s.projects.get_projects() if res is not None: # handle response pass - - target: $["paths"]["/hris/timeoffs/{id}"]["get"] + - target: $["paths"]["/hris/timeoffbalances"]["get"] update: x-codeSamples: - lang: python - label: retrieveHrisTimeoff + label: listHrisTimeoffbalances source: |- from panora_sdk import Panora @@ -3119,16 +3346,20 @@ actions: ) - res = s.hris.timeoffs.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.hris.timeoffbalances.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/accounting/trackingcategories"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/marketingautomation/lists"]["get"] update: x-codeSamples: - lang: python - label: listAccountingTrackingCategorys + label: listMarketingautomationLists source: |- from panora_sdk import Panora @@ -3137,7 +3368,7 @@ actions: ) - res = s.accounting.trackingcategories.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: @@ -3146,11 +3377,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/marketingautomation/lists"]["post"] + - target: $["paths"]["/accounting/journalentries/{id}"]["get"] update: x-codeSamples: - lang: python - label: createMarketingautomationList + label: retrieveAccountingJournalEntry source: |- from panora_sdk import Panora @@ -3159,16 +3390,16 @@ actions: ) - res = s.marketingautomation.lists.create(x_connection_token="", unified_marketingautomation_list_input={}) + 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 - - target: $["paths"]["/filestorage/users"]["get"] + - target: $["paths"]["/accounting/taxrates"]["get"] update: x-codeSamples: - lang: python - label: listFilestorageUsers + label: listAccountingTaxRate source: |- from panora_sdk import Panora @@ -3177,7 +3408,7 @@ actions: ) - res = s.filestorage.users.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: @@ -3186,12 +3417,13 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/accounting/vendorcredits/{id}"]["get"] + - target: $["paths"]["/hris/employees"]["post"] update: x-codeSamples: - lang: python - label: retrieveAccountingVendorCredit + label: createHrisEmployee source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -3199,38 +3431,49 @@ actions: ) - res = s.accounting.vendorcredits.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + 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 - - target: $["paths"]["/ticketing/contacts"]["get"] - update: - x-codeSamples: - - 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 - - target: $["paths"]["/crm/stages"]["get"] + - target: $["paths"]["/hris/groups/{id}"]["get"] update: x-codeSamples: - lang: python - label: listCrmStages + label: retrieveHrisGroup source: |- from panora_sdk import Panora @@ -3239,20 +3482,16 @@ actions: ) - res = s.crm.stages.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hris.groups.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/linked_users"]["get"] + # handle response + pass + - target: $["paths"]["/ats/applications/{id}"]["get"] update: x-codeSamples: - lang: python - label: listLinkedUsers + label: retrieveAtsApplication source: |- from panora_sdk import Panora @@ -3261,16 +3500,16 @@ actions: ) - res = s.linked_users.list() + 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 - - target: $["paths"]["/linked_users/fromRemoteId"]["get"] + - target: $["paths"]["/field_mappings/map"]["post"] update: x-codeSamples: - lang: python - label: remoteId + label: map source: |- from panora_sdk import Panora @@ -3279,16 +3518,21 @@ actions: ) - res = s.linked_users.remote_id(remote_id="id_1") + 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: # handle response pass - - target: $["paths"]["/marketingautomation/lists"]["get"] + - target: $["paths"]["/ats/candidates/{id}"]["get"] update: x-codeSamples: - lang: python - label: listMarketingautomationLists + label: retrieveAtsCandidate source: |- from panora_sdk import Panora @@ -3297,20 +3541,16 @@ actions: ) - res = s.marketingautomation.lists.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.candidates.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ats/jobs"]["get"] + # handle response + pass + - target: $["paths"]["/filestorage/groups/{id}"]["get"] update: x-codeSamples: - lang: python - label: listAtsJob + label: retrieveFilestorageGroup source: |- from panora_sdk import Panora @@ -3319,20 +3559,16 @@ actions: ) - res = s.ats.jobs.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.filestorage.groups.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/connections"]["get"] + # handle response + pass + - target: $["paths"]["/webhooks"]["get"] update: x-codeSamples: - lang: python - label: getConnections + label: listWebhooks source: |- from panora_sdk import Panora @@ -3341,16 +3577,16 @@ actions: ) - res = s.connections.get_connections() + res = s.webhooks.list() if res is not None: # handle response pass - - target: $["paths"]["/marketingautomation/users/{id}"]["get"] + - target: $["paths"]["/ticketing/teams/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveMarketingAutomationUser + label: retrieveTicketingTeam source: |- from panora_sdk import Panora @@ -3359,16 +3595,16 @@ actions: ) - res = s.marketingautomation.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + 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 - - target: $["paths"]["/ecommerce/products"]["get"] + - target: $["paths"]["/ats/offices"]["get"] update: x-codeSamples: - lang: python - label: listEcommerceProducts + label: listAtsOffice source: |- from panora_sdk import Panora @@ -3377,7 +3613,7 @@ actions: ) - res = s.ecommerce.products.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: @@ -3386,13 +3622,13 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/crm/contacts"]["post"] + - target: $["paths"]["/accounting/invoices"]["post"] update: x-codeSamples: - lang: python - label: createCrmContact + label: createAccountingInvoice source: |- - import panora_sdk + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -3400,48 +3636,51 @@ actions: ) - 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, - }, + 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", ], - "addresses": [ + "line_items": [ { - "street_1": "", - "street_2": "", - "city": "Anytown", - "state": "CA", - "postal_code": "97398", - "country": "USA", - "address_type": panora_sdk.AddressType.PERSONAL, - "owner_type": "", + "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"), }, ], - "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, + "field_mappings": {}, }, remote_data=False) if res is not None: # handle response pass - - target: $["paths"]["/accounting/contacts"]["get"] + - target: $["paths"]["/accounting/journalentries"]["get"] update: x-codeSamples: - lang: python - label: listAccountingContacts + label: listAccountingJournalEntry source: |- from panora_sdk import Panora @@ -3450,7 +3689,7 @@ actions: ) - res = s.accounting.contacts.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: @@ -3459,11 +3698,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/crm/engagements/{id}"]["get"] + - target: $["paths"]["/accounting/transactions/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveCrmEngagement + label: retrieveAccountingTransaction source: |- from panora_sdk import Panora @@ -3472,17 +3711,18 @@ actions: ) - res = s.crm.engagements.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 - - target: $["paths"]["/filestorage/groups/{id}"]["get"] + - target: $["paths"]["/field_mappings"]["post"] update: x-codeSamples: - lang: python - label: retrieveFilestorageGroup + label: defineCustomField source: |- + import panora_sdk from panora_sdk import Panora s = Panora( @@ -3490,16 +3730,24 @@ actions: ) - res = s.filestorage.groups.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + 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", + }) if res is not None: # handle response pass - - target: $["paths"]["/linked_users"]["post"] + - target: $["paths"]["/filestorage/files/{id}"]["get"] update: x-codeSamples: - lang: python - label: createLinkedUser + label: retrieveFilestorageFile source: |- from panora_sdk import Panora @@ -3508,19 +3756,16 @@ actions: ) - res = s.linked_users.create(request={ - "linked_user_origin_id": "id_1", - "alias": "acme", - }) + 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 - - target: $["paths"]["/filestorage/files"]["get"] + - target: $["paths"]["/crm/contacts"]["get"] update: x-codeSamples: - lang: python - label: listFilestorageFile + label: listCrmContacts source: |- from panora_sdk import Panora @@ -3529,7 +3774,7 @@ actions: ) - res = s.filestorage.files.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: @@ -3538,11 +3783,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/marketingautomation/contacts/{id}"]["get"] + - target: $["paths"]["/hris/companies/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveMarketingAutomationContact + label: retrieveHrisCompany source: |- from panora_sdk import Panora @@ -3551,17 +3796,18 @@ actions: ) - res = s.marketingautomation.contacts.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 - - target: $["paths"]["/ats/interviews/{id}"]["get"] + - target: $["paths"]["/hris/timeoffs"]["post"] update: x-codeSamples: - lang: python - label: retrieveAtsInterview + label: createHrisTimeoff source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -3569,16 +3815,27 @@ actions: ) - res = s.ats.interviews.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", 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 - - target: $["paths"]["/ats/eeocs"]["get"] + - target: $["paths"]["/accounting/phonenumbers"]["get"] update: x-codeSamples: - lang: python - label: listAtsEeocs + label: listAccountingPhonenumber source: |- from panora_sdk import Panora @@ -3587,7 +3844,7 @@ actions: ) - res = s.ats.eeocs.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: @@ -3596,11 +3853,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/ats/eeocs/{id}"]["get"] + - target: $["paths"]["/crm/users"]["get"] update: x-codeSamples: - lang: python - label: retrieveAtsEeocs + label: listCrmUsers source: |- from panora_sdk import Panora @@ -3609,16 +3866,20 @@ actions: ) - res = s.ats.eeocs.retrieve(x_connection_token="", id="") + res = s.crm.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/accounting/invoices"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/ats/offers"]["get"] update: x-codeSamples: - lang: python - label: listAccountingInvoice + label: listAtsOffer source: |- from panora_sdk import Panora @@ -3627,7 +3888,7 @@ actions: ) - res = s.accounting.invoices.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: @@ -3636,11 +3897,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/accounting/transactions/{id}"]["get"] + - target: $["paths"]["/crm/companies"]["post"] update: x-codeSamples: - lang: python - label: retrieveAccountingTransaction + label: createCrmCompany source: |- from panora_sdk import Panora @@ -3649,16 +3910,49 @@ actions: ) - res = s.accounting.transactions.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + 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) if res is not None: # handle response pass - - target: $["paths"]["/webhooks/{id}"]["delete"] + - target: $["paths"]["/ats/eeocs"]["get"] update: x-codeSamples: - lang: python - label: delete + label: listAtsEeocs source: |- from panora_sdk import Panora @@ -3667,16 +3961,20 @@ actions: ) - res = s.webhooks.delete(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") + res = s.ats.eeocs.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/crm/tasks/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/accounting/payments/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveCrmTask + label: retrieveAccountingPayment source: |- from panora_sdk import Panora @@ -3685,16 +3983,16 @@ actions: ) - res = s.crm.tasks.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 - - target: $["paths"]["/hris/bankinfos"]["get"] + - target: $["paths"]["/filestorage/users/{id}"]["get"] update: x-codeSamples: - lang: python - label: listHrisBankInfo + label: retrieveFilestorageUser source: |- from panora_sdk import Panora @@ -3703,20 +4001,16 @@ actions: ) - res = s.hris.bankinfos.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.filestorage.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/marketingautomation/events"]["get"] + # handle response + pass + - target: $["paths"]["/ticketing/tickets/{id}"]["get"] update: x-codeSamples: - lang: python - label: listMarketingAutomationEvents + label: retrieveTicketingTicket source: |- from panora_sdk import Panora @@ -3725,21 +4019,18 @@ actions: ) - res = s.marketingautomation.events.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ticketing.tickets.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/passthrough/{retryId}"]["get"] + # handle response + pass + - target: $["paths"]["/ats/applications"]["post"] update: x-codeSamples: - lang: python - label: getRetriedRequestResponse + label: createAtsApplication source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -3747,14 +4038,33 @@ actions: ) - s.passthrough.retryid.get_retried_request_response(retry_id="") + 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) - # Use the SDK ... - - target: $["paths"]["/ats/jobs/{id}"]["get"] + if res is not None: + # handle response + pass + - target: $["paths"]["/accounting/cashflowstatements/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAtsJob + label: retrieveAccountingCashflowStatement source: |- from panora_sdk import Panora @@ -3763,16 +4073,16 @@ actions: ) - res = s.ats.jobs.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 - - target: $["paths"]["/ats/users"]["get"] + - target: $["paths"]["/ecommerce/fulfillments"]["get"] update: x-codeSamples: - lang: python - label: listAtsUsers + label: listEcommerceFulfillments source: |- from panora_sdk import Panora @@ -3781,7 +4091,7 @@ actions: ) - res = s.ats.users.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ecommerce.fulfillments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -3790,11 +4100,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/accounting/attachments"]["post"] + - target: $["paths"]["/health"]["get"] update: x-codeSamples: - lang: python - label: createAccountingAttachment + label: health source: |- from panora_sdk import Panora @@ -3803,16 +4113,16 @@ actions: ) - res = s.accounting.attachments.create(x_connection_token="", unified_accounting_attachment_input={}, remote_data=False) + res = s.health() if res is not None: # handle response pass - - target: $["paths"]["/accounting/balancesheets/{id}"]["get"] + - target: $["paths"]["/field_mappings/entities"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingBalanceSheet + label: getFieldMappingsEntities source: |- from panora_sdk import Panora @@ -3821,16 +4131,32 @@ actions: ) - res = s.accounting.balancesheets.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + s.field_mappings.get_field_mappings_entities() + + # Use the SDK ... + - target: $["paths"]["/hris/locations/{id}"]["get"] + update: + x-codeSamples: + - lang: python + label: retrieveHrisLocation + source: |- + from panora_sdk import Panora + + s = Panora( + api_key="", + ) + + + res = s.hris.locations.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: # handle response pass - - target: $["paths"]["/events"]["get"] + - target: $["paths"]["/connections"]["get"] update: x-codeSamples: - lang: python - label: getPanoraCoreEvents + label: listConnections source: |- from panora_sdk import Panora @@ -3839,16 +4165,16 @@ actions: ) - res = s.events.get_panora_core_events() + res = s.connections.list() if res is not None: # handle response pass - - target: $["paths"]["/ats/candidates/{id}"]["get"] + - target: $["paths"]["/ats/tags"]["get"] update: x-codeSamples: - lang: python - label: retrieveAtsCandidate + label: listAtsTags source: |- from panora_sdk import Panora @@ -3857,16 +4183,20 @@ actions: ) - res = s.ats.candidates.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.tags.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/accounting/contacts/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/accounting/attachments"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingContact + label: listAccountingAttachments source: |- from panora_sdk import Panora @@ -3875,18 +4205,21 @@ actions: ) - res = s.accounting.contacts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.accounting.attachments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/crm/companies"]["post"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/accounting/transactions"]["get"] update: x-codeSamples: - lang: python - label: createCrmCompany + label: listAccountingTransaction source: |- - import panora_sdk from panora_sdk import Panora s = Panora( @@ -3894,50 +4227,22 @@ actions: ) - 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) + 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: + # handle items - if res is not None: - # handle response - pass - - target: $["paths"]["/hris/dependents/{id}"]["get"] + res = res.Next() + if res is None: + break + - target: $["paths"]["/hris/timesheetentries"]["post"] update: x-codeSamples: - lang: python - label: retrieveHrisDependent + label: createHrisTimesheetentry source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -3945,19 +4250,25 @@ actions: ) - res = s.hris.dependents.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", 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 - - target: $["paths"]["/ats/activities"]["post"] + - target: $["paths"]["/crm/engagements"]["post"] update: x-codeSamples: - lang: python - label: createAtsActivity + label: createCrmEngagement source: |- import dateutil.parser - import panora_sdk from panora_sdk import Panora s = Panora( @@ -3965,13 +4276,18 @@ actions: ) - 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"), + 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", + "company_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "contacts": [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], "field_mappings": { "fav_dish": "broccoli", "fav_color": "red", @@ -3981,11 +4297,11 @@ actions: if res is not None: # handle response pass - - target: $["paths"]["/ats/interviews"]["get"] + - target: $["paths"]["/crm/tasks/{id}"]["get"] update: x-codeSamples: - lang: python - label: listAtsInterview + label: retrieveCrmTask source: |- from panora_sdk import Panora @@ -3994,20 +4310,16 @@ actions: ) - res = s.ats.interviews.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.crm.tasks.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ats/rejectreasons/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/ats/users/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAtsRejectReason + label: retrieveAtsUser source: |- from panora_sdk import Panora @@ -4016,16 +4328,16 @@ actions: ) - res = s.ats.rejectreasons.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 - - target: $["paths"]["/filestorage/files/{id}"]["get"] + - target: $["paths"]["/accounting/addresses/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveFilestorageFile + label: retrieveAccountingAddress source: |- from panora_sdk import Panora @@ -4034,16 +4346,16 @@ actions: ) - res = s.filestorage.files.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 - - target: $["paths"]["/marketingautomation/actions/{id}"]["get"] + - target: $["paths"]["/accounting/attachments"]["post"] update: x-codeSamples: - lang: python - label: retrieveMarketingautomationAction + label: createAccountingAttachment source: |- from panora_sdk import Panora @@ -4052,16 +4364,21 @@ actions: ) - res = s.marketingautomation.actions.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + 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 - - target: $["paths"]["/ecommerce/orders"]["post"] + - target: $["paths"]["/accounting/purchaseorders/{id}"]["get"] update: x-codeSamples: - lang: python - label: createEcommerceOrder + label: retrieveAccountingPurchaseOrder source: |- from panora_sdk import Panora @@ -4070,16 +4387,16 @@ actions: ) - res = s.ecommerce.orders.create(x_connection_token="", unified_ecommerce_order_input={}, 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 - - target: $["paths"]["/ats/scorecards"]["get"] + - target: $["paths"]["/field_mappings/values"]["get"] update: x-codeSamples: - lang: python - label: listAtsScorecard + label: getFieldMappingValues source: |- from panora_sdk import Panora @@ -4088,20 +4405,14 @@ actions: ) - 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: - # handle items + s.field_mappings.get_field_mapping_values() - res = res.Next() - if res is None: - break - - target: $["paths"]["/accounting/cashflowstatements/{id}"]["get"] + # Use the SDK ... + - target: $["paths"]["/ats/attachments"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingCashflowStatement + label: listAtsAttachment source: |- from panora_sdk import Panora @@ -4110,16 +4421,20 @@ actions: ) - res = s.accounting.cashflowstatements.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.ats.attachments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/sync/resync"]["post"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/ats/offers/{id}"]["get"] update: x-codeSamples: - lang: python - label: resync + label: retrieveAtsOffer source: |- from panora_sdk import Panora @@ -4128,16 +4443,16 @@ actions: ) - res = s.sync.resync() + 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 - - target: $["paths"]["/crm/contacts"]["get"] + - target: $["paths"]["/filestorage/folders/{id}"]["get"] update: x-codeSamples: - lang: python - label: listCrmContacts + label: retrieveFilestorageFolder source: |- from panora_sdk import Panora @@ -4146,20 +4461,16 @@ actions: ) - res = s.crm.contacts.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.filestorage.folders.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/crm/stages/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/ticketing/tags/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveCrmStage + label: retrieveTicketingTag source: |- from panora_sdk import Panora @@ -4168,16 +4479,16 @@ actions: ) - res = s.crm.stages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + 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 - - target: $["paths"]["/linked_users/{id}"]["get"] + - target: $["paths"]["/hris/companies"]["get"] update: x-codeSamples: - lang: python - label: retrieveLinkedUser + label: listHrisCompanies source: |- from panora_sdk import Panora @@ -4186,16 +4497,20 @@ actions: ) - res = s.linked_users.retrieve(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") + res = s.hris.companies.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/hris/benefits/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/marketingautomation/actions"]["post"] update: x-codeSamples: - lang: python - label: retrieveHrisBenefit + label: createMarketingautomationAction source: |- from panora_sdk import Panora @@ -4204,16 +4519,16 @@ actions: ) - res = s.hris.benefits.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.actions.create(x_connection_token="", unified_marketingautomation_action_input={}, remote_data=False) if res is not None: # handle response pass - - target: $["paths"]["/hris/timeoffbalances"]["get"] + - target: $["paths"]["/accounting/accounts"]["get"] update: x-codeSamples: - lang: python - label: listHrisTimeoffbalances + label: listAccountingAccounts source: |- from panora_sdk import Panora @@ -4222,7 +4537,7 @@ actions: ) - res = s.hris.timeoffbalances.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: @@ -4231,11 +4546,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/accounting/expenses"]["post"] + - target: $["paths"]["/accounting/invoices/{id}"]["get"] update: x-codeSamples: - lang: python - label: createAccountingExpense + label: retrieveAccountingInvoice source: |- from panora_sdk import Panora @@ -4244,16 +4559,16 @@ actions: ) - res = s.accounting.expenses.create(x_connection_token="", unified_accounting_expense_input={}, 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 - - target: $["paths"]["/filestorage/users/{id}"]["get"] + - target: $["paths"]["/crm/contacts"]["post"] update: x-codeSamples: - lang: python - label: retrieveFilestorageUser + label: createCrmContact source: |- from panora_sdk import Panora @@ -4262,16 +4577,48 @@ actions: ) - res = s.filestorage.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + 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", + "field_mappings": { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, remote_data=False) if res is not None: # handle response pass - - target: $["paths"]["/filestorage/drives"]["get"] + - target: $["paths"]["/crm/engagements/{id}"]["get"] update: x-codeSamples: - lang: python - label: listFilestorageDrives + label: retrieveCrmEngagement source: |- from panora_sdk import Panora @@ -4280,20 +4627,16 @@ actions: ) - res = s.filestorage.drives.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.crm.engagements.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/filestorage/drives/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/marketingautomation/templates/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveFilestorageDrive + label: retrieveMarketingautomationTemplate source: |- from panora_sdk import Panora @@ -4302,18 +4645,17 @@ actions: ) - res = s.filestorage.drives.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", 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 - - target: $["paths"]["/ticketing/comments"]["post"] + - target: $["paths"]["/ats/jobs/{id}"]["get"] update: x-codeSamples: - lang: python - label: createTicketingComment + label: retrieveAtsJob source: |- - import panora_sdk from panora_sdk import Panora s = Panora( @@ -4321,27 +4663,16 @@ actions: ) - 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", - "user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "attachments": [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - }) + 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 - - target: $["paths"]["/marketingautomation/contacts"]["get"] + - target: $["paths"]["/accounting/cashflowstatements"]["get"] update: x-codeSamples: - lang: python - label: listMarketingAutomationContacts + label: listAccountingCashflowStatement source: |- from panora_sdk import Panora @@ -4350,7 +4681,7 @@ actions: ) - res = s.marketingautomation.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: @@ -4359,11 +4690,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/ats/tags"]["get"] + - target: $["paths"]["/auth/login"]["post"] update: x-codeSamples: - lang: python - label: listAtsTags + label: signIn source: |- from panora_sdk import Panora @@ -4372,20 +4703,17 @@ actions: ) - 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: - # handle items + s.auth.login.sign_in(request={ + "email": "Oda.Treutel97@hotmail.com", + "password_hash": "", + }) - res = res.Next() - if res is None: - break - - target: $["paths"]["/accounting/items"]["get"] + # Use the SDK ... + - target: $["paths"]["/events"]["get"] update: x-codeSamples: - lang: python - label: listAccountingItem + label: getPanoraCoreEvents source: |- from panora_sdk import Panora @@ -4394,20 +4722,16 @@ actions: ) - 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: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/accounting/journalentries/{id}"]["get"] + res = s.events.get_panora_core_events() + + if res is not None: + # handle response + pass + - target: $["paths"]["/hris/dependents/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingJournalEntry + label: retrieveHrisDependent source: |- from panora_sdk import Panora @@ -4416,16 +4740,16 @@ actions: ) - res = s.accounting.journalentries.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 - - target: $["paths"]["/accounting/taxrates/{id}"]["get"] + - target: $["paths"]["/hris/employerbenefits/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingTaxRate + label: retrieveHrisEmployerBenefit source: |- from panora_sdk import Panora @@ -4434,16 +4758,16 @@ actions: ) - res = s.accounting.taxrates.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 - - target: $["paths"]["/field_mappings/values"]["get"] + - target: $["paths"]["/ats/interviews"]["get"] update: x-codeSamples: - lang: python - label: getFieldMappingValues + label: listAtsInterview source: |- from panora_sdk import Panora @@ -4452,14 +4776,20 @@ actions: ) - s.field_mappings.get_field_mapping_values() + res = s.ats.interviews.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") - # Use the SDK ... - - target: $["paths"]["/hris/employments/{id}"]["get"] + if res is not None: + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/ats/eeocs/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveHrisEmployment + label: retrieveAtsEeocs source: |- from panora_sdk import Panora @@ -4468,16 +4798,16 @@ actions: ) - res = s.hris.employments.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 - - target: $["paths"]["/ticketing/teams"]["get"] + - target: $["paths"]["/"]["get"] update: x-codeSamples: - lang: python - label: listTicketingTeams + label: hello source: |- from panora_sdk import Panora @@ -4486,20 +4816,16 @@ actions: ) - res = s.ticketing.teams.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.hello() if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/marketingautomation/templates/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/webhooks/verifyEvent"]["post"] update: x-codeSamples: - lang: python - label: retrieveMarketingautomationTemplate + label: verifyEvent source: |- from panora_sdk import Panora @@ -4508,16 +4834,22 @@ actions: ) - res = s.marketingautomation.templates.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.webhooks.verify_event(request={ + "payload": { + "key": "", + }, + "signature": "", + "secret": "", + }) if res is not None: # handle response pass - - target: $["paths"]["/ats/jobinterviewstages"]["get"] + - target: $["paths"]["/hris/employments"]["get"] update: x-codeSamples: - lang: python - label: listAtsJobInterviewStage + label: listHrisEmployments source: |- from panora_sdk import Panora @@ -4526,7 +4858,7 @@ actions: ) - res = s.ats.jobinterviewstages.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: @@ -4535,11 +4867,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/ecommerce/fulfillments"]["get"] + - target: $["paths"]["/accounting/items/{id}"]["get"] update: x-codeSamples: - lang: python - label: listEcommerceFulfillments + label: retrieveAccountingItem source: |- from panora_sdk import Panora @@ -4548,21 +4880,18 @@ actions: ) - res = s.ecommerce.fulfillments.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.accounting.items.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/hris/groups"]["get"] + # handle response + pass + - target: $["paths"]["/ecommerce/orders"]["post"] update: x-codeSamples: - lang: python - label: listHrisGroups + label: createEcommerceOrder source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -4570,20 +4899,41 @@ actions: ) - res = s.hris.groups.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + 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: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ats/offices/{id}"]["get"] + # handle response + pass + - target: $["paths"]["/ticketing/collections/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAtsOffice + label: retrieveCollection source: |- from panora_sdk import Panora @@ -4592,17 +4942,18 @@ actions: ) - res = s.ats.offices.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + 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 - - target: $["paths"]["/marketingautomation/campaigns"]["post"] + - target: $["paths"]["/passthrough"]["post"] update: x-codeSamples: - lang: python - label: createMarketingautomationCampaign + label: request source: |- + import panora_sdk from panora_sdk import Panora s = Panora( @@ -4610,16 +4961,19 @@ actions: ) - res = s.marketingautomation.campaigns.create(x_connection_token="", unified_marketingautomation_campaign_input={}, remote_data=False) + res = s.passthrough.request(x_connection_token="", pass_through_request_dto={ + "method": panora_sdk.PassThroughRequestDtoMethod.GET, + "path": "/dev", + }) if res is not None: # handle response pass - - target: $["paths"]["/accounting/purchaseorders/{id}"]["get"] + - target: $["paths"]["/hris/bankinfos/{id}"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingPurchaseOrder + label: retrieveHrisBankInfo source: |- from panora_sdk import Panora @@ -4628,16 +4982,16 @@ actions: ) - res = s.accounting.purchaseorders.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 - - target: $["paths"]["/accounting/taxrates"]["get"] + - target: $["paths"]["/marketingautomation/lists/{id}"]["get"] update: x-codeSamples: - lang: python - label: listAccountingTaxRate + label: retrieveMarketingautomationList source: |- from panora_sdk import Panora @@ -4646,20 +5000,16 @@ actions: ) - res = s.accounting.taxrates.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.marketingautomation.lists.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/ats/applications"]["get"] + # handle response + pass + - target: $["paths"]["/marketingautomation/messages"]["get"] update: x-codeSamples: - lang: python - label: listAtsApplication + label: listMarketingautomationMessages source: |- from panora_sdk import Panora @@ -4668,7 +5018,7 @@ actions: ) - res = s.ats.applications.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.marketingautomation.messages.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: while True: @@ -4677,14 +5027,12 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/ats/interviews"]["post"] + - target: $["paths"]["/ats/activities/{id}"]["get"] update: x-codeSamples: - lang: python - label: createAtsInterview + label: retrieveAtsActivity source: |- - import dateutil.parser - import panora_sdk from panora_sdk import Panora s = Panora( @@ -4692,33 +5040,16 @@ actions: ) - 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": [ - "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) + 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 - - target: $["paths"]["/accounting/expenses"]["get"] + - target: $["paths"]["/ats/jobinterviewstages/{id}"]["get"] update: x-codeSamples: - lang: python - label: listAccountingExpense + label: retrieveAtsJobInterviewStage source: |- from panora_sdk import Panora @@ -4727,20 +5058,16 @@ actions: ) - res = s.accounting.expenses.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + res = s.ats.jobinterviewstages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: - while True: - # handle items - - res = res.Next() - if res is None: - break - - target: $["paths"]["/accounting/transactions"]["get"] + # handle response + pass + - target: $["paths"]["/ticketing/accounts"]["get"] update: x-codeSamples: - lang: python - label: listAccountingTransaction + label: listTicketingAccount source: |- from panora_sdk import Panora @@ -4749,7 +5076,7 @@ actions: ) - res = s.accounting.transactions.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") + 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: @@ -4758,11 +5085,11 @@ actions: res = res.Next() if res is None: break - - target: $["paths"]["/ticketing/attachments"]["post"] + - target: $["paths"]["/hris/benefits"]["get"] update: x-codeSamples: - lang: python - label: createTicketingAttachment + label: listHrisBenefits source: |- from panora_sdk import Panora @@ -4771,26 +5098,20 @@ actions: ) - res = s.ticketing.attachments.create(x_connection_token="", unified_ticketing_attachment_input={ - "file_name": "features_planning.pdf", - "file_url": "https://example.com/features_planning.pdf", - "uploader": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "ticket_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "comment_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "field_mappings": { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }) + res = s.hris.benefits.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/hris/timeoffbalances/{id}"]["get"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/marketingautomation/events"]["get"] update: x-codeSamples: - lang: python - label: retrieveHrisTimeoffbalance + label: listMarketingAutomationEvents source: |- from panora_sdk import Panora @@ -4799,16 +5120,20 @@ actions: ) - res = s.hris.timeoffbalances.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.events.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/marketingautomation/automations"]["post"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/accounting/incomestatements/{id}"]["get"] update: x-codeSamples: - lang: python - label: createMarketingautomationAutomation + label: retrieveAccountingIncomeStatement source: |- from panora_sdk import Panora @@ -4817,16 +5142,16 @@ actions: ) - res = s.marketingautomation.automations.create(x_connection_token="", unified_marketingautomation_automation_input={}, 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 - - target: $["paths"]["/accounting/payments/{id}"]["get"] + - target: $["paths"]["/marketingautomation/campaigns"]["get"] update: x-codeSamples: - lang: python - label: retrieveAccountingPayment + label: listMarketingautomationCampaigns source: |- from panora_sdk import Panora @@ -4835,17 +5160,22 @@ actions: ) - res = s.accounting.payments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) + res = s.marketingautomation.campaigns.list(x_connection_token="", remote_data=True, limit=10, cursor="1b8b05bb-5273-4012-b520-8657b0b90874") if res is not None: - # handle response - pass - - target: $["paths"]["/ecommerce/products"]["post"] + while True: + # handle items + + res = res.Next() + if res is None: + break + - target: $["paths"]["/accounting/payments"]["post"] update: x-codeSamples: - lang: python - label: createEcommerceProduct + label: createAccountingPayment source: |- + import dateutil.parser from panora_sdk import Panora s = Panora( @@ -4853,7 +5183,35 @@ actions: ) - res = s.ecommerce.products.create(x_connection_token="", unified_ecommerce_product_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 diff --git a/docs/models/querybody.md b/docs/models/querybody.md new file mode 100644 index 0000000..ca13c98 --- /dev/null +++ b/docs/models/querybody.md @@ -0,0 +1,9 @@ +# QueryBody + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `query` | *str* | :heavy_check_mark: | The query you want to received embeddings adn chunks for | When does Panora incorporated? | +| `top_k` | *OptionalNullable[float]* | :heavy_minus_sign: | The number of most appropriate documents for your query. | 3 | \ No newline at end of file diff --git a/docs/models/queryrequest.md b/docs/models/queryrequest.md new file mode 100644 index 0000000..fa15e7a --- /dev/null +++ b/docs/models/queryrequest.md @@ -0,0 +1,9 @@ +# QueryRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `x_connection_token` | *str* | :heavy_check_mark: | The connection token | +| `query_body` | [models.QueryBody](../models/querybody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ragcontrollerqueryembeddingsresponsebody.md b/docs/models/queryresponsebody.md similarity index 74% rename from docs/models/ragcontrollerqueryembeddingsresponsebody.md rename to docs/models/queryresponsebody.md index 08416d2..52210cc 100644 --- a/docs/models/ragcontrollerqueryembeddingsresponsebody.md +++ b/docs/models/queryresponsebody.md @@ -1,4 +1,4 @@ -# RagControllerQueryEmbeddingsResponseBody +# QueryResponseBody ## Fields diff --git a/docs/models/unifiedaccountingbalancesheetoutput.md b/docs/models/unifiedaccountingbalancesheetoutput.md index 485eee9..6c7a028 100644 --- a/docs/models/unifiedaccountingbalancesheetoutput.md +++ b/docs/models/unifiedaccountingbalancesheetoutput.md @@ -8,7 +8,7 @@ | `name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the balance sheet | Q2 2024 Balance Sheet | | `currency` | *OptionalNullable[str]* | :heavy_minus_sign: | The currency used in the balance sheet | USD | | `company_info_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The UUID of the associated company info | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `date_` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The date of the balance sheet | 2024-06-30T23:59:59Z | +| `date` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The date of the balance sheet | 2024-06-30T23:59:59Z | | `net_assets` | *OptionalNullable[float]* | :heavy_minus_sign: | The net assets value | 1000000 | | `assets` | List[*str*] | :heavy_minus_sign: | The list of assets | [
"Cash",
"Accounts Receivable",
"Inventory"
] | | `liabilities` | List[*str*] | :heavy_minus_sign: | The list of liabilities | [
"Accounts Payable",
"Long-term Debt"
] | diff --git a/docs/sdks/accounting/README.md b/docs/sdks/accounting/README.md index f2803c2..9eca3e1 100644 --- a/docs/sdks/accounting/README.md +++ b/docs/sdks/accounting/README.md @@ -1,2 +1,5 @@ # Accounting -(*accounting*) \ No newline at end of file +(*accounting*) + +### Available Operations + diff --git a/docs/sdks/accounts/README.md b/docs/sdks/accounts/README.md index 53cd3f2..5e258da 100644 --- a/docs/sdks/accounts/README.md +++ b/docs/sdks/accounts/README.md @@ -1,8 +1,6 @@ # Accounts (*ticketing.accounts*) -## Overview - ### Available Operations * [list](#list) - List Accounts @@ -21,16 +19,18 @@ 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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListTicketingAccountResponse](../../models/listticketingaccountresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Accounts from any connected Ticketing software @@ -67,7 +66,8 @@ s = Panora( api_key="", ) -res = s.ticketing.accounts.retrieve(x_connection_token="", id="") + +res = s.ticketing.accounts.retrieve(x_connection_token="", id="") if res is not None: # handle response @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ticketing software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedTicketingAccountOutput](../../models/unifiedticketingaccountoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/actions/README.md b/docs/sdks/actions/README.md index b031190..2a5a908 100644 --- a/docs/sdks/actions/README.md +++ b/docs/sdks/actions/README.md @@ -1,8 +1,6 @@ # Actions (*marketingautomation.actions*) -## Overview - ### Available Operations * [list](#list) - List Actions @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListMarketingautomationActionResponse](../../models/listmarketingautomationactionresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create a action in any supported Marketingautomation software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.actions.create(x_connection_token="", unified_marketingautomation_action_input={}, remote_data=False) if res is not None: @@ -85,17 +85,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationActionOutput](../../models/unifiedmarketingautomationactionoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Actions from any connected Marketingautomation software @@ -109,6 +108,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.actions.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -126,10 +126,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationActionOutput](../../models/unifiedmarketingautomationactionoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index 77e6f8a..91bc8d7 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -1,8 +1,6 @@ # Activities (*ats.activities*) -## Overview - ### Available Operations * [list](#list) - List Activities @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsActivityResponse](../../models/listatsactivityresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Activities in any supported Ats software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + res = s.ats.activities.create(x_connection_token="", unified_ats_activity_input={ "activity_type": "NOTE", "subject": "Email subject", @@ -97,17 +97,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsActivityOutput](../../models/unifiedatsactivityoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Activities from any connected Ats software @@ -121,6 +120,7 @@ s = Panora( api_key="", ) + res = s.ats.activities.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -138,10 +138,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsActivityOutput](../../models/unifiedatsactivityoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/addresses/README.md b/docs/sdks/addresses/README.md index 501d728..2389968 100644 --- a/docs/sdks/addresses/README.md +++ b/docs/sdks/addresses/README.md @@ -1,8 +1,6 @@ # Addresses (*accounting.addresses*) -## Overview - ### Available Operations * [list](#list) - List Addresss @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingAddressResponse](../../models/listaccountingaddressresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Addresses from any connected Accounting software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.accounting.addresses.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingAddressOutput](../../models/unifiedaccountingaddressoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/applications/README.md b/docs/sdks/applications/README.md index bc2191e..db755e9 100644 --- a/docs/sdks/applications/README.md +++ b/docs/sdks/applications/README.md @@ -1,8 +1,6 @@ # Applications (*ats.applications*) -## Overview - ### Available Operations * [list](#list) - List Applications @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsApplicationResponse](../../models/listatsapplicationresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Applications in any supported Ats software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + 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"), @@ -103,17 +103,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsApplicationOutput](../../models/unifiedatsapplicationoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Applications from any connected Ats software @@ -127,6 +126,7 @@ s = Panora( api_key="", ) + res = s.ats.applications.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -144,10 +144,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsApplicationOutput](../../models/unifiedatsapplicationoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/ats/README.md b/docs/sdks/ats/README.md index 0fb4c25..9a7b5bd 100644 --- a/docs/sdks/ats/README.md +++ b/docs/sdks/ats/README.md @@ -1,2 +1,5 @@ # Ats -(*ats*) \ No newline at end of file +(*ats*) + +### Available Operations + diff --git a/docs/sdks/attachments/README.md b/docs/sdks/attachments/README.md index 10c6913..5ca4e70 100644 --- a/docs/sdks/attachments/README.md +++ b/docs/sdks/attachments/README.md @@ -1,8 +1,6 @@ # Attachments (*ats.attachments*) -## Overview - ### Available Operations * [list](#list) - List Attachments @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsAttachmentResponse](../../models/listatsattachmentresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Attachments in any supported ATS software @@ -69,6 +68,7 @@ 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", @@ -97,17 +97,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsAttachmentOutput](../../models/unifiedatsattachmentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Attachments from any connected Ats software @@ -121,6 +120,7 @@ s = Panora( api_key="", ) + res = s.ats.attachments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -138,10 +138,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsAttachmentOutput](../../models/unifiedatsattachmentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/auth/README.md b/docs/sdks/auth/README.md index cbf19bf..890e03b 100644 --- a/docs/sdks/auth/README.md +++ b/docs/sdks/auth/README.md @@ -1,2 +1,5 @@ # Auth -(*auth*) \ No newline at end of file +(*auth*) + +### Available Operations + diff --git a/docs/sdks/automations/README.md b/docs/sdks/automations/README.md index 8f1ad25..f12e7b4 100644 --- a/docs/sdks/automations/README.md +++ b/docs/sdks/automations/README.md @@ -1,8 +1,6 @@ # Automations (*marketingautomation.automations*) -## Overview - ### Available Operations * [list](#list) - List Automations @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListMarketingautomationAutomationsResponse](../../models/listmarketingautomationautomationsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create a automation in any supported Marketingautomation software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.automations.create(x_connection_token="", unified_marketingautomation_automation_input={}, remote_data=False) if res is not None: @@ -85,17 +85,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationAutomationOutput](../../models/unifiedmarketingautomationautomationoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve an Automation from any connected Marketingautomation software @@ -109,6 +108,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.automations.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -126,10 +126,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationAutomationOutput](../../models/unifiedmarketingautomationautomationoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/balancesheets/README.md b/docs/sdks/balancesheets/README.md index 7ccac0a..2e51451 100644 --- a/docs/sdks/balancesheets/README.md +++ b/docs/sdks/balancesheets/README.md @@ -1,8 +1,6 @@ # Balancesheets (*accounting.balancesheets*) -## Overview - ### Available Operations * [list](#list) - List BalanceSheets @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingBalanceSheetsResponse](../../models/listaccountingbalancesheetsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve BalanceSheets from any connected Accounting software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.accounting.balancesheets.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingBalancesheetOutput](../../models/unifiedaccountingbalancesheetoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/bankinfos/README.md b/docs/sdks/bankinfos/README.md index 44b776c..1e023ff 100644 --- a/docs/sdks/bankinfos/README.md +++ b/docs/sdks/bankinfos/README.md @@ -1,8 +1,6 @@ # Bankinfos (*hris.bankinfos*) -## Overview - ### Available Operations * [list](#list) - List Bank Info @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisBankInfoResponse](../../models/listhrisbankinforesponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Bank Info from any connected Hris software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.hris.bankinfos.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisBankinfoOutput](../../models/unifiedhrisbankinfooutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/benefits/README.md b/docs/sdks/benefits/README.md index 71b30ed..514cb9a 100644 --- a/docs/sdks/benefits/README.md +++ b/docs/sdks/benefits/README.md @@ -1,8 +1,6 @@ # Benefits (*hris.benefits*) -## Overview - ### Available Operations * [list](#list) - List Benefits @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisBenefitsResponse](../../models/listhrisbenefitsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Benefit from any connected Hris software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.hris.benefits.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisBenefitOutput](../../models/unifiedhrisbenefitoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/campaigns/README.md b/docs/sdks/campaigns/README.md index 8a440e7..a92041f 100644 --- a/docs/sdks/campaigns/README.md +++ b/docs/sdks/campaigns/README.md @@ -1,8 +1,6 @@ # Campaigns (*marketingautomation.campaigns*) -## Overview - ### Available Operations * [list](#list) - List Campaigns @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListMarketingautomationCampaignsResponse](../../models/listmarketingautomationcampaignsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create a campaign in any supported Marketingautomation software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.campaigns.create(x_connection_token="", unified_marketingautomation_campaign_input={}, remote_data=False) if res is not None: @@ -85,17 +85,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationCampaignOutput](../../models/unifiedmarketingautomationcampaignoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Campaign from any connected Marketingautomation software @@ -109,6 +108,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.campaigns.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -126,10 +126,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationCampaignOutput](../../models/unifiedmarketingautomationcampaignoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/candidates/README.md b/docs/sdks/candidates/README.md index c49b76a..28a95ef 100644 --- a/docs/sdks/candidates/README.md +++ b/docs/sdks/candidates/README.md @@ -1,8 +1,6 @@ # Candidates (*ats.candidates*) -## Overview - ### Available Operations * [list](#list) - List Candidates @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsCandidateResponse](../../models/listatscandidateresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Candidates in any supported Ats software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + res = s.ats.candidates.create(x_connection_token="", unified_ats_candidate_input={ "first_name": "Joe", "last_name": "Doe", @@ -129,17 +129,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsCandidateOutput](../../models/unifiedatscandidateoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Candidates from any connected Ats software @@ -153,6 +152,7 @@ s = Panora( api_key="", ) + res = s.ats.candidates.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -170,10 +170,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsCandidateOutput](../../models/unifiedatscandidateoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/cashflowstatements/README.md b/docs/sdks/cashflowstatements/README.md index 38433c4..e832168 100644 --- a/docs/sdks/cashflowstatements/README.md +++ b/docs/sdks/cashflowstatements/README.md @@ -1,8 +1,6 @@ # Cashflowstatements (*accounting.cashflowstatements*) -## Overview - ### Available Operations * [list](#list) - List CashflowStatements @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingCashflowStatementResponse](../../models/listaccountingcashflowstatementresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Cashflow Statements from any connected Accounting software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.accounting.cashflowstatements.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingCashflowstatementOutput](../../models/unifiedaccountingcashflowstatementoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index f8d6d1b..ad0498f 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -1,8 +1,6 @@ # Collections (*ticketing.collections*) -## Overview - ### Available Operations * [list](#list) - List Collections @@ -21,16 +19,18 @@ 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 - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListTicketingCollectionsResponse](../../models/listticketingcollectionsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Collections from any connected Ticketing software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.ticketing.collections.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ticketing software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedTicketingCollectionOutput](../../models/unifiedticketingcollectionoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/comments/README.md b/docs/sdks/comments/README.md index 33100e2..9104787 100644 --- a/docs/sdks/comments/README.md +++ b/docs/sdks/comments/README.md @@ -1,8 +1,6 @@ # Comments (*ticketing.comments*) -## Overview - ### Available Operations * [list](#list) - List Comments @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + res = s.ticketing.comments.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListTicketingCommentsResponse](../../models/listticketingcommentsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Comments in any supported Ticketing software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.ticketing.comments.create(x_connection_token="", unified_ticketing_comment_input={ "body": "Assigned to Eric !", "html_body": "

Assigned to Eric !

", @@ -96,17 +96,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ticketing software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedTicketingCommentOutput](../../models/unifiedticketingcommentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Comment from any connected Ticketing software @@ -120,7 +119,8 @@ s = Panora( api_key="", ) -res = s.ticketing.comments.retrieve(x_connection_token="", id="") + +res = s.ticketing.comments.retrieve(x_connection_token="", id="") if res is not None: # handle response @@ -137,10 +137,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ticketing software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.RetrieveTicketingCommentResponseBody](../../models/retrieveticketingcommentresponsebody.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/companies/README.md b/docs/sdks/companies/README.md index c1347cc..aa32d2c 100644 --- a/docs/sdks/companies/README.md +++ b/docs/sdks/companies/README.md @@ -1,8 +1,6 @@ # Companies (*crm.companies*) -## Overview - ### Available Operations * [list](#list) - List Companies @@ -22,16 +20,18 @@ 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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListCrmCompanyResponse](../../models/listcrmcompanyresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Companies in any supported CRM software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.crm.companies.create(x_connection_token="", unified_crm_company_input={ "name": "Acme", "industry": "ACCOUNTING", @@ -118,17 +118,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original CRM software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedCrmCompanyOutput](../../models/unifiedcrmcompanyoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Companies from any connected Crm software @@ -142,6 +141,7 @@ 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: @@ -159,10 +159,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Crm software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedCrmCompanyOutput](../../models/unifiedcrmcompanyoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/companyinfos/README.md b/docs/sdks/companyinfos/README.md index 7ed374a..2194a58 100644 --- a/docs/sdks/companyinfos/README.md +++ b/docs/sdks/companyinfos/README.md @@ -1,8 +1,6 @@ # Companyinfos (*accounting.companyinfos*) -## Overview - ### Available Operations * [list](#list) - List CompanyInfos @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingCompanyInfosResponse](../../models/listaccountingcompanyinfosresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Company Infos from any connected Accounting software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.accounting.companyinfos.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingCompanyinfoOutput](../../models/unifiedaccountingcompanyinfooutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/connections/README.md b/docs/sdks/connections/README.md index 7e01d3f..d99406b 100644 --- a/docs/sdks/connections/README.md +++ b/docs/sdks/connections/README.md @@ -1,13 +1,11 @@ # Connections (*connections*) -## Overview - ### Available Operations -* [retrieve](#retrieve) - List Connections +* [list](#list) - List Connections -## retrieve +## list List Connections @@ -20,7 +18,8 @@ s = Panora( api_key="", ) -res = s.connections.retrieve() + +res = s.connections.list() if res is not None: # handle response @@ -34,10 +33,10 @@ if res is not None: | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[List[models.Connection]](../../models/.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/contacts/README.md b/docs/sdks/contacts/README.md index fb0c67f..1bfa717 100644 --- a/docs/sdks/contacts/README.md +++ b/docs/sdks/contacts/README.md @@ -1,8 +1,6 @@ # Contacts (*ticketing.contacts*) -## Overview - ### Available Operations * [list](#list) - List Contacts @@ -21,16 +19,18 @@ 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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListTicketingContactsResponse](../../models/listticketingcontactsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Contact from any connected Ticketing software @@ -67,7 +66,8 @@ s = Panora( api_key="", ) -res = s.ticketing.contacts.retrieve(x_connection_token="", id="") + +res = s.ticketing.contacts.retrieve(x_connection_token="", id="") if res is not None: # handle response @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ticketing software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.RetrieveTicketingContactResponseBody](../../models/retrieveticketingcontactresponsebody.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/creditnotes/README.md b/docs/sdks/creditnotes/README.md index 09f49b6..0e8b76a 100644 --- a/docs/sdks/creditnotes/README.md +++ b/docs/sdks/creditnotes/README.md @@ -1,8 +1,6 @@ # Creditnotes (*accounting.creditnotes*) -## Overview - ### Available Operations * [list](#list) - List CreditNotes @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingCreditNoteResponse](../../models/listaccountingcreditnoteresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Credit Notes from any connected Accounting software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.accounting.creditnotes.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingCreditnoteOutput](../../models/unifiedaccountingcreditnoteoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/crm/README.md b/docs/sdks/crm/README.md index 7b629fc..ca731a0 100644 --- a/docs/sdks/crm/README.md +++ b/docs/sdks/crm/README.md @@ -1,2 +1,5 @@ # Crm -(*crm*) \ No newline at end of file +(*crm*) + +### Available Operations + diff --git a/docs/sdks/customers/README.md b/docs/sdks/customers/README.md index 23bc773..8108cf1 100644 --- a/docs/sdks/customers/README.md +++ b/docs/sdks/customers/README.md @@ -1,8 +1,6 @@ # Customers (*ecommerce.customers*) -## Overview - ### Available Operations * [list](#list) - List Customers @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + res = s.ecommerce.customers.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListEcommerceCustomersResponse](../../models/listecommercecustomersresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve customers from any connected Ats software @@ -67,7 +66,8 @@ s = Panora( api_key="", ) -res = s.ecommerce.customers.retrieve(x_connection_token="", id="") + +res = s.ecommerce.customers.retrieve(x_connection_token="", id="") if res is not None: # handle response @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedEcommerceCustomerOutput](../../models/unifiedecommercecustomeroutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/deals/README.md b/docs/sdks/deals/README.md index 443caba..1922d86 100644 --- a/docs/sdks/deals/README.md +++ b/docs/sdks/deals/README.md @@ -1,8 +1,6 @@ # Deals (*crm.deals*) -## Overview - ### Available Operations * [list](#list) - List Deals @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListCrmDealsResponse](../../models/listcrmdealsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Deals in any supported Crm software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.crm.deals.create(x_connection_token="", unified_crm_deal_input={ "name": "Huge Contract with Acme", "description": "Contract with Sales Operations Team", @@ -96,17 +96,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Crm software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedCrmDealOutput](../../models/unifiedcrmdealoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Deals from any connected Crm software @@ -120,6 +119,7 @@ s = Panora( api_key="", ) + res = s.crm.deals.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -137,10 +137,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Crm software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedCrmDealOutput](../../models/unifiedcrmdealoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/departments/README.md b/docs/sdks/departments/README.md index 337e90e..a103797 100644 --- a/docs/sdks/departments/README.md +++ b/docs/sdks/departments/README.md @@ -1,8 +1,6 @@ # Departments (*ats.departments*) -## Overview - ### Available Operations * [list](#list) - List Departments @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsDepartmentsResponse](../../models/listatsdepartmentsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Departments from any connected Ats software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.ats.departments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsDepartmentOutput](../../models/unifiedatsdepartmentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/dependents/README.md b/docs/sdks/dependents/README.md index bddd43a..52e2891 100644 --- a/docs/sdks/dependents/README.md +++ b/docs/sdks/dependents/README.md @@ -1,8 +1,6 @@ # Dependents (*hris.dependents*) -## Overview - ### Available Operations * [list](#list) - List Dependents @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisDependentsResponse](../../models/listhrisdependentsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Dependent from any connected Hris software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.hris.dependents.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisDependentOutput](../../models/unifiedhrisdependentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/ecommerce/README.md b/docs/sdks/ecommerce/README.md index 61f539b..37e84ba 100644 --- a/docs/sdks/ecommerce/README.md +++ b/docs/sdks/ecommerce/README.md @@ -1,2 +1,5 @@ # Ecommerce -(*ecommerce*) \ No newline at end of file +(*ecommerce*) + +### Available Operations + diff --git a/docs/sdks/eeocs/README.md b/docs/sdks/eeocs/README.md index 0164d36..ad079f7 100644 --- a/docs/sdks/eeocs/README.md +++ b/docs/sdks/eeocs/README.md @@ -1,8 +1,6 @@ # Eeocs (*ats.eeocs*) -## Overview - ### Available Operations * [list](#list) - List Eeocss @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsEeocsResponse](../../models/listatseeocsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a eeocs from any connected Ats software @@ -67,7 +66,8 @@ s = Panora( api_key="", ) -res = s.ats.eeocs.retrieve(x_connection_token="", id="") + +res = s.ats.eeocs.retrieve(x_connection_token="", id="") if res is not None: # handle response @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedAtsEeocsOutput](../../models/unifiedatseeocsoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/emails/README.md b/docs/sdks/emails/README.md index 0c15517..d66af6f 100644 --- a/docs/sdks/emails/README.md +++ b/docs/sdks/emails/README.md @@ -1,8 +1,6 @@ # Emails (*marketingautomation.emails*) -## Overview - ### Available Operations * [list](#list) - List Emails @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListMarketingautomationEmailsResponse](../../models/listmarketingautomationemailsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve an Email from any connected Marketingautomation software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.emails.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationEmailOutput](../../models/unifiedmarketingautomationemailoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/employeepayrollruns/README.md b/docs/sdks/employeepayrollruns/README.md index 7c9a480..4ebeac5 100644 --- a/docs/sdks/employeepayrollruns/README.md +++ b/docs/sdks/employeepayrollruns/README.md @@ -1,8 +1,6 @@ # Employeepayrollruns (*hris.employeepayrollruns*) -## Overview - ### Available Operations * [list](#list) - List Employee Payroll Runs @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisEmployeePayrollRunResponse](../../models/listhrisemployeepayrollrunresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Employee Payroll Run from any connected Hris software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.hris.employeepayrollruns.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisEmployeepayrollrunOutput](../../models/unifiedhrisemployeepayrollrunoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/employees/README.md b/docs/sdks/employees/README.md index 43b6181..ac2583e 100644 --- a/docs/sdks/employees/README.md +++ b/docs/sdks/employees/README.md @@ -1,8 +1,6 @@ # Employees (*hris.employees*) -## Overview - ### Available Operations * [list](#list) - List Employees @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisEmployeesResponse](../../models/listhrisemployeesresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Employees in any supported Hris software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + res = s.hris.employees.create(x_connection_token="", unified_hris_employee_input={ "groups": [ "Group1", @@ -119,17 +119,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedHrisEmployeeOutput](../../models/unifiedhrisemployeeoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve an Employee from any connected Hris software @@ -143,6 +142,7 @@ s = Panora( api_key="", ) + res = s.hris.employees.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -160,10 +160,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisEmployeeOutput](../../models/unifiedhrisemployeeoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/employerbenefits/README.md b/docs/sdks/employerbenefits/README.md index 7355b8a..aab21a6 100644 --- a/docs/sdks/employerbenefits/README.md +++ b/docs/sdks/employerbenefits/README.md @@ -1,8 +1,6 @@ # Employerbenefits (*hris.employerbenefits*) -## Overview - ### Available Operations * [list](#list) - List Employer Benefits @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisEmployerBenefitsResponse](../../models/listhrisemployerbenefitsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve an Employer Benefit from any connected Hris software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.hris.employerbenefits.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisEmployerbenefitOutput](../../models/unifiedhrisemployerbenefitoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/employments/README.md b/docs/sdks/employments/README.md index 7b46461..397f50b 100644 --- a/docs/sdks/employments/README.md +++ b/docs/sdks/employments/README.md @@ -1,8 +1,6 @@ # Employments (*hris.employments*) -## Overview - ### Available Operations * [list](#list) - List Employments @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisEmploymentsResponse](../../models/listhrisemploymentsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve an Employment from any connected Hris software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.hris.employments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisEmploymentOutput](../../models/unifiedhrisemploymentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/engagements/README.md b/docs/sdks/engagements/README.md index 5e38fe0..57e15aa 100644 --- a/docs/sdks/engagements/README.md +++ b/docs/sdks/engagements/README.md @@ -1,8 +1,6 @@ # Engagements (*crm.engagements*) -## Overview - ### Available Operations * [list](#list) - List Engagements @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListCrmEngagementsResponse](../../models/listcrmengagementsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Engagements in any supported Crm software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + res = s.crm.engagements.create(x_connection_token="", unified_crm_engagement_input={ "type": "MEETING", "content": "Meeting call with CTO", @@ -102,17 +102,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Crm software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedCrmEngagementOutput](../../models/unifiedcrmengagementoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Engagements from any connected Crm software @@ -126,6 +125,7 @@ s = Panora( api_key="", ) + res = s.crm.engagements.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -143,10 +143,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Crm software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedCrmEngagementOutput](../../models/unifiedcrmengagementoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index a4ca168..73c44f8 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -1,8 +1,6 @@ # Events (*events*) -## Overview - ### Available Operations * [get_panora_core_events](#get_panora_core_events) - List Events @@ -20,6 +18,7 @@ s = Panora( api_key="", ) + res = s.events.get_panora_core_events() if res is not None: @@ -36,10 +35,10 @@ if res is not None: | `limit` | *Optional[float]* | :heavy_minus_sign: | N/A | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[List[models.EventResponse]](../../models/.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/expenses/README.md b/docs/sdks/expenses/README.md index 93d5f18..dbdb69e 100644 --- a/docs/sdks/expenses/README.md +++ b/docs/sdks/expenses/README.md @@ -1,8 +1,6 @@ # Expenses (*accounting.expenses*) -## Overview - ### Available Operations * [list](#list) - List Expenses @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingExpenseResponse](../../models/listaccountingexpenseresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Expenses in any supported Accounting software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + 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, @@ -114,17 +114,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingExpenseOutput](../../models/unifiedaccountingexpenseoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Expenses from any connected Accounting software @@ -138,6 +137,7 @@ s = Panora( api_key="", ) + res = s.accounting.expenses.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -155,10 +155,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingExpenseOutput](../../models/unifiedaccountingexpenseoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/fieldmappings/README.md b/docs/sdks/fieldmappings/README.md index 695289f..e1938c4 100644 --- a/docs/sdks/fieldmappings/README.md +++ b/docs/sdks/fieldmappings/README.md @@ -1,8 +1,6 @@ # FieldMappings (*field_mappings*) -## Overview - ### Available Operations * [get_field_mapping_values](#get_field_mapping_values) - Retrieve field mappings values @@ -25,6 +23,7 @@ s = Panora( api_key="", ) + s.field_mappings.get_field_mapping_values() # Use the SDK ... @@ -43,7 +42,6 @@ s.field_mappings.get_field_mapping_values() | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## get_field_mappings_entities Retrieve field mapping entities @@ -57,6 +55,7 @@ s = Panora( api_key="", ) + s.field_mappings.get_field_mappings_entities() # Use the SDK ... @@ -75,7 +74,6 @@ s.field_mappings.get_field_mappings_entities() | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## get_field_mappings Retrieve field mappings @@ -89,6 +87,7 @@ s = Panora( api_key="", ) + s.field_mappings.get_field_mappings() # Use the SDK ... @@ -107,7 +106,6 @@ s.field_mappings.get_field_mappings() | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## definitions Define target Field @@ -122,6 +120,7 @@ s = Panora( api_key="", ) + res = s.field_mappings.definitions(request={ "object_type_owner": panora_sdk.ObjectTypeOwner.COMPANY, "name": "fav_dish", @@ -142,17 +141,16 @@ if res is not None: | `request` | [models.DefineTargetFieldDto](../../models/definetargetfielddto.md) | :heavy_check_mark: | The request object to use for the request. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.CustomFieldResponse](../../models/customfieldresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## define_custom_field Create Custom Field @@ -167,6 +165,7 @@ s = Panora( api_key="", ) + res = s.field_mappings.define_custom_field(request={ "object_type_owner": panora_sdk.CustomFieldCreateDtoObjectTypeOwner.COMPANY, "name": "my_favorite_dish", @@ -190,17 +189,16 @@ if res is not None: | `request` | [models.CustomFieldCreateDto](../../models/customfieldcreatedto.md) | :heavy_check_mark: | The request object to use for the request. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.CustomFieldResponse](../../models/customfieldresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## map Map Custom Field @@ -214,6 +212,7 @@ s = Panora( api_key="", ) + res = s.field_mappings.map(request={ "attribute_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "source_custom_field_id": "id_1", @@ -234,10 +233,10 @@ if res is not None: | `request` | [models.MapFieldToProviderDto](../../models/mapfieldtoproviderdto.md) | :heavy_check_mark: | The request object to use for the request. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.CustomFieldResponse](../../models/customfieldresponse.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/files/README.md b/docs/sdks/files/README.md index 39ed0a5..1c83e21 100644 --- a/docs/sdks/files/README.md +++ b/docs/sdks/files/README.md @@ -1,8 +1,6 @@ # Files (*filestorage.files*) -## Overview - ### Available Operations * [list](#list) - List Files @@ -22,16 +20,18 @@ 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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListFilestorageFileResponse](../../models/listfilestoragefileresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Files in any supported Filestorage software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + 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", @@ -97,17 +97,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedFilestorageFileOutput](../../models/unifiedfilestoragefileoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Files from any connected Filestorage software @@ -121,6 +120,7 @@ s = Panora( api_key="", ) + res = s.filestorage.files.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -138,10 +138,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original File Storage software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedFilestorageFileOutput](../../models/unifiedfilestoragefileoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/filestorage/README.md b/docs/sdks/filestorage/README.md index c56de61..897b31d 100644 --- a/docs/sdks/filestorage/README.md +++ b/docs/sdks/filestorage/README.md @@ -1,2 +1,5 @@ # Filestorage -(*filestorage*) \ No newline at end of file +(*filestorage*) + +### Available Operations + diff --git a/docs/sdks/folders/README.md b/docs/sdks/folders/README.md index 2eb4776..163ac2d 100644 --- a/docs/sdks/folders/README.md +++ b/docs/sdks/folders/README.md @@ -1,8 +1,6 @@ # Folders (*filestorage.folders*) -## Overview - ### Available Operations * [list](#list) - List Folders @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + res = s.filestorage.folders.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListFilestorageFolderResponse](../../models/listfilestoragefolderresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Folders in any supported Filestorage software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.filestorage.folders.create(x_connection_token="", unified_filestorage_folder_input={ "name": "school", "size": "2048", @@ -98,17 +98,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedFilestorageFolderOutput](../../models/unifiedfilestoragefolderoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Folders from any connected Filestorage software @@ -122,6 +121,7 @@ s = Panora( api_key="", ) + res = s.filestorage.folders.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -139,10 +139,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original File Storage software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedFilestorageFolderOutput](../../models/unifiedfilestoragefolderoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/fulfillments/README.md b/docs/sdks/fulfillments/README.md index a740ec5..6d11709 100644 --- a/docs/sdks/fulfillments/README.md +++ b/docs/sdks/fulfillments/README.md @@ -1,8 +1,6 @@ # Fulfillments (*ecommerce.fulfillments*) -## Overview - ### Available Operations * [list](#list) - List Fulfillments @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + res = s.ecommerce.fulfillments.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListEcommerceFulfillmentsResponse](../../models/listecommercefulfillmentsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve fulfillments from any connected Ats software @@ -67,7 +66,8 @@ s = Panora( api_key="", ) -res = s.ecommerce.fulfillments.retrieve(x_connection_token="", id="") + +res = s.ecommerce.fulfillments.retrieve(x_connection_token="", id="") if res is not None: # handle response @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedEcommerceFulfillmentOutput](../../models/unifiedecommercefulfillmentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/groups/README.md b/docs/sdks/groups/README.md index cc5cbcf..15a110a 100644 --- a/docs/sdks/groups/README.md +++ b/docs/sdks/groups/README.md @@ -1,8 +1,6 @@ # Groups (*hris.groups*) -## Overview - ### Available Operations * [list](#list) - List Groups @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisGroupsResponse](../../models/listhrisgroupsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Group from any connected Hris software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.hris.groups.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisGroupOutput](../../models/unifiedhrisgroupoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/hris/README.md b/docs/sdks/hris/README.md index e556f5f..24d2539 100644 --- a/docs/sdks/hris/README.md +++ b/docs/sdks/hris/README.md @@ -1,2 +1,5 @@ # Hris -(*hris*) \ No newline at end of file +(*hris*) + +### Available Operations + diff --git a/docs/sdks/incomestatements/README.md b/docs/sdks/incomestatements/README.md index 708395e..48e6318 100644 --- a/docs/sdks/incomestatements/README.md +++ b/docs/sdks/incomestatements/README.md @@ -1,8 +1,6 @@ # Incomestatements (*accounting.incomestatements*) -## Overview - ### Available Operations * [list](#list) - List IncomeStatements @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingIncomeStatementResponse](../../models/listaccountingincomestatementresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Income Statements from any connected Accounting software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.accounting.incomestatements.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingIncomestatementOutput](../../models/unifiedaccountingincomestatementoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/interviews/README.md b/docs/sdks/interviews/README.md index fc11a4b..074cb2e 100644 --- a/docs/sdks/interviews/README.md +++ b/docs/sdks/interviews/README.md @@ -1,8 +1,6 @@ # Interviews (*ats.interviews*) -## Overview - ### Available Operations * [list](#list) - List Interviews @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsInterviewResponse](../../models/listatsinterviewresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Interviews in any supported Ats software @@ -69,6 +68,7 @@ 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", @@ -103,17 +103,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsInterviewOutput](../../models/unifiedatsinterviewoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Interviews from any connected Ats software @@ -127,6 +126,7 @@ s = Panora( api_key="", ) + res = s.ats.interviews.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -144,10 +144,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsInterviewOutput](../../models/unifiedatsinterviewoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/invoices/README.md b/docs/sdks/invoices/README.md index 9f472ab..8fa6311 100644 --- a/docs/sdks/invoices/README.md +++ b/docs/sdks/invoices/README.md @@ -1,8 +1,6 @@ # Invoices (*accounting.invoices*) -## Overview - ### Available Operations * [list](#list) - List Invoices @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingInvoiceResponse](../../models/listaccountinginvoiceresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create invoices in any supported Accounting software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + res = s.accounting.invoices.create(x_connection_token="", unified_accounting_invoice_input={ "type": "Sales", "number": "INV-001", @@ -121,17 +121,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingInvoiceOutput](../../models/unifiedaccountinginvoiceoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Invoices from any connected Accounting software @@ -145,6 +144,7 @@ s = Panora( api_key="", ) + res = s.accounting.invoices.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -162,10 +162,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingInvoiceOutput](../../models/unifiedaccountinginvoiceoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/items/README.md b/docs/sdks/items/README.md index 4e1ec2d..8f4fa3e 100644 --- a/docs/sdks/items/README.md +++ b/docs/sdks/items/README.md @@ -1,8 +1,6 @@ # Items (*accounting.items*) -## Overview - ### Available Operations * [list](#list) - List Items @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingItemResponse](../../models/listaccountingitemresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Items from any connected Accounting software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.accounting.items.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingItemOutput](../../models/unifiedaccountingitemoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/jobinterviewstages/README.md b/docs/sdks/jobinterviewstages/README.md index 3aea366..be5b51c 100644 --- a/docs/sdks/jobinterviewstages/README.md +++ b/docs/sdks/jobinterviewstages/README.md @@ -1,8 +1,6 @@ # Jobinterviewstages (*ats.jobinterviewstages*) -## Overview - ### Available Operations * [list](#list) - List JobInterviewStages @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsJobInterviewStageResponse](../../models/listatsjobinterviewstageresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Job Interview Stages from any connected Ats software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.ats.jobinterviewstages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsJobinterviewstageOutput](../../models/unifiedatsjobinterviewstageoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md index 1cfd398..cee20bf 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -1,8 +1,6 @@ # Jobs (*ats.jobs*) -## Overview - ### Available Operations * [list](#list) - List Jobs @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsJobResponse](../../models/listatsjobresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Jobs from any connected Ats software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.ats.jobs.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsJobOutput](../../models/unifiedatsjoboutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/journalentries/README.md b/docs/sdks/journalentries/README.md index 41b244f..dc0b425 100644 --- a/docs/sdks/journalentries/README.md +++ b/docs/sdks/journalentries/README.md @@ -1,8 +1,6 @@ # Journalentries (*accounting.journalentries*) -## Overview - ### Available Operations * [list](#list) - List JournalEntrys @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingJournalEntryResponse](../../models/listaccountingjournalentryresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Journal Entries in any supported Accounting software @@ -69,6 +68,7 @@ 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": [ @@ -120,17 +120,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingJournalentryOutput](../../models/unifiedaccountingjournalentryoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Journal Entries from any connected Accounting software @@ -144,6 +143,7 @@ s = Panora( api_key="", ) + res = s.accounting.journalentries.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -161,10 +161,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingJournalentryOutput](../../models/unifiedaccountingjournalentryoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/linkedusers/README.md b/docs/sdks/linkedusers/README.md index 9ed1014..9281bc1 100644 --- a/docs/sdks/linkedusers/README.md +++ b/docs/sdks/linkedusers/README.md @@ -1,8 +1,6 @@ # LinkedUsers (*linked_users*) -## Overview - ### Available Operations * [create](#create) - Create Linked Users @@ -24,6 +22,7 @@ s = Panora( api_key="", ) + res = s.linked_users.create(request={ "linked_user_origin_id": "id_1", "alias": "acme", @@ -42,17 +41,16 @@ if res is not None: | `request` | [models.CreateLinkedUserDto](../../models/createlinkeduserdto.md) | :heavy_check_mark: | The request object to use for the request. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.LinkedUserResponse](../../models/linkeduserresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## list List Linked Users @@ -66,6 +64,7 @@ s = Panora( api_key="", ) + res = s.linked_users.list() if res is not None: @@ -80,17 +79,16 @@ if res is not None: | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[List[models.LinkedUserResponse]](../../models/.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## import_batch Add Batch Linked Users @@ -104,6 +102,7 @@ s = Panora( api_key="", ) + res = s.linked_users.import_batch(request={ "linked_user_origin_ids": [ "id_1", @@ -124,17 +123,16 @@ if res is not None: | `request` | [models.CreateBatchLinkedUserDto](../../models/createbatchlinkeduserdto.md) | :heavy_check_mark: | The request object to use for the request. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[List[models.LinkedUserResponse]](../../models/.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Linked Users @@ -148,6 +146,7 @@ s = Panora( api_key="", ) + res = s.linked_users.retrieve(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") if res is not None: @@ -163,17 +162,16 @@ if res is not None: | `id` | *str* | :heavy_check_mark: | N/A | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.LinkedUserResponse](../../models/linkeduserresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## remote_id Retrieve a Linked User From A Remote Id @@ -187,6 +185,7 @@ s = Panora( api_key="", ) + res = s.linked_users.remote_id(remote_id="id_1") if res is not None: @@ -202,10 +201,10 @@ if res is not None: | `remote_id` | *str* | :heavy_check_mark: | N/A | id_1 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.LinkedUserResponse](../../models/linkeduserresponse.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/lists/README.md b/docs/sdks/lists/README.md index 6e79314..b475e6a 100644 --- a/docs/sdks/lists/README.md +++ b/docs/sdks/lists/README.md @@ -1,8 +1,6 @@ # Lists (*marketingautomation.lists*) -## Overview - ### Available Operations * [list](#list) - List Lists @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListMarketingautomationListsResponse](../../models/listmarketingautomationlistsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Lists in any supported Marketingautomation software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.lists.create(x_connection_token="", unified_marketingautomation_list_input={}) if res is not None: @@ -85,17 +85,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedMarketingautomationListOutput](../../models/unifiedmarketingautomationlistoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a List from any connected Marketingautomation software @@ -109,6 +108,7 @@ 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: @@ -126,10 +126,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationListOutput](../../models/unifiedmarketingautomationlistoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/locations/README.md b/docs/sdks/locations/README.md index c1cc3d5..00572ed 100644 --- a/docs/sdks/locations/README.md +++ b/docs/sdks/locations/README.md @@ -1,8 +1,6 @@ # Locations (*hris.locations*) -## Overview - ### Available Operations * [list](#list) - List Locations @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + res = s.hris.locations.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisLocationsResponse](../../models/listhrislocationsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Location from any connected Hris software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.hris.locations.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisLocationOutput](../../models/unifiedhrislocationoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/login/README.md b/docs/sdks/login/README.md index 589da53..0a9a730 100644 --- a/docs/sdks/login/README.md +++ b/docs/sdks/login/README.md @@ -1,8 +1,6 @@ # Login (*auth.login*) -## Overview - ### Available Operations * [sign_in](#sign_in) - Log In @@ -20,6 +18,7 @@ s = Panora( api_key="", ) + s.auth.login.sign_in(request={ "email": "Oda.Treutel97@hotmail.com", "password_hash": "", diff --git a/docs/sdks/marketingautomation/README.md b/docs/sdks/marketingautomation/README.md index ee289d0..7b6229f 100644 --- a/docs/sdks/marketingautomation/README.md +++ b/docs/sdks/marketingautomation/README.md @@ -1,2 +1,5 @@ # Marketingautomation -(*marketingautomation*) \ No newline at end of file +(*marketingautomation*) + +### Available Operations + diff --git a/docs/sdks/messages/README.md b/docs/sdks/messages/README.md index 0d91069..ca29ee5 100644 --- a/docs/sdks/messages/README.md +++ b/docs/sdks/messages/README.md @@ -1,8 +1,6 @@ # Messages (*marketingautomation.messages*) -## Overview - ### Available Operations * [list](#list) - List Messages @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + res = s.marketingautomation.messages.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListMarketingautomationMessagesResponse](../../models/listmarketingautomationmessagesresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Messages from any connected Marketingautomation software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.messages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationMessageOutput](../../models/unifiedmarketingautomationmessageoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/notes/README.md b/docs/sdks/notes/README.md index f83acbd..0539369 100644 --- a/docs/sdks/notes/README.md +++ b/docs/sdks/notes/README.md @@ -1,8 +1,6 @@ # Notes (*crm.notes*) -## Overview - ### Available Operations * [list](#list) - List Notes @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListCrmNoteResponse](../../models/listcrmnoteresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Notes in any supported Crm software @@ -68,6 +67,7 @@ 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", @@ -95,17 +95,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Crm software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedCrmNoteOutput](../../models/unifiedcrmnoteoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Notes from any connected Crm software @@ -119,6 +118,7 @@ s = Panora( api_key="", ) + res = s.crm.notes.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -136,10 +136,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Crm software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedCrmNoteOutput](../../models/unifiedcrmnoteoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/offers/README.md b/docs/sdks/offers/README.md index acdd80b..235737e 100644 --- a/docs/sdks/offers/README.md +++ b/docs/sdks/offers/README.md @@ -1,8 +1,6 @@ # Offers (*ats.offers*) -## Overview - ### Available Operations * [list](#list) - List Offers @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsOfferResponse](../../models/listatsofferresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Offers from any connected Ats software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.ats.offers.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsOfferOutput](../../models/unifiedatsofferoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/offices/README.md b/docs/sdks/offices/README.md index b74a6e9..daedc03 100644 --- a/docs/sdks/offices/README.md +++ b/docs/sdks/offices/README.md @@ -1,8 +1,6 @@ # Offices (*ats.offices*) -## Overview - ### Available Operations * [list](#list) - List Offices @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsOfficeResponse](../../models/listatsofficeresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Offices from any connected Ats software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.ats.offices.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsOfficeOutput](../../models/unifiedatsofficeoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/orders/README.md b/docs/sdks/orders/README.md index d741cad..5f3904c 100644 --- a/docs/sdks/orders/README.md +++ b/docs/sdks/orders/README.md @@ -1,8 +1,6 @@ # Orders (*ecommerce.orders*) -## Overview - ### Available Operations * [list](#list) - List Orders @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + res = s.ecommerce.orders.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListEcommerceOrdersResponse](../../models/listecommerceordersresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Orders in any supported Ecommerce software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + res = s.ecommerce.orders.create(x_connection_token="", unified_ecommerce_order_input={ "order_status": "UNSHIPPED", "order_number": "19823838833", @@ -111,17 +111,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedEcommerceOrderOutput](../../models/unifiedecommerceorderoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve orders from any connected Ats software @@ -135,7 +134,8 @@ s = Panora( api_key="", ) -res = s.ecommerce.orders.retrieve(x_connection_token="", id="") + +res = s.ecommerce.orders.retrieve(x_connection_token="", id="") if res is not None: # handle response @@ -152,10 +152,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedEcommerceOrderOutput](../../models/unifiedecommerceorderoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panora/README.md b/docs/sdks/panora/README.md index d1b9ec4..2b42656 100644 --- a/docs/sdks/panora/README.md +++ b/docs/sdks/panora/README.md @@ -1,5 +1,6 @@ # Panora SDK + ## Overview Panora API: A unified API to ship integrations @@ -20,6 +21,7 @@ s = Panora( api_key="", ) + res = s.hello() if res is not None: @@ -34,17 +36,16 @@ if res is not None: | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[str](../../models/.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## health ### Example Usage @@ -56,6 +57,7 @@ s = Panora( api_key="", ) + res = s.health() if res is not None: @@ -70,10 +72,10 @@ if res is not None: | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[float](../../models/.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraaccountingcontacts/README.md b/docs/sdks/panoraaccountingcontacts/README.md index a27df41..e13445b 100644 --- a/docs/sdks/panoraaccountingcontacts/README.md +++ b/docs/sdks/panoraaccountingcontacts/README.md @@ -1,8 +1,6 @@ # PanoraAccountingContacts (*accounting.contacts*) -## Overview - ### Available Operations * [list](#list) - List Contacts @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingContactsResponse](../../models/listaccountingcontactsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create contacts in any supported Accounting software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.accounting.contacts.create(x_connection_token="", unified_accounting_contact_input={ "name": "John Doe", "is_supplier": True, @@ -96,17 +96,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingContactOutput](../../models/unifiedaccountingcontactoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Contacts from any connected Accounting software @@ -120,6 +119,7 @@ s = Panora( api_key="", ) + res = s.accounting.contacts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -137,10 +137,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingContactOutput](../../models/unifiedaccountingcontactoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraaccounts/README.md b/docs/sdks/panoraaccounts/README.md index d58cbd5..395ffc9 100644 --- a/docs/sdks/panoraaccounts/README.md +++ b/docs/sdks/panoraaccounts/README.md @@ -1,8 +1,6 @@ # PanoraAccounts (*accounting.accounts*) -## Overview - ### Available Operations * [list](#list) - List Accounts @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingAccountsResponse](../../models/listaccountingaccountsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create accounts in any supported Accounting software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.accounting.accounts.create(x_connection_token="", unified_accounting_account_input={ "name": "Cash", "description": "Main cash account for daily operations", @@ -97,17 +97,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingAccountOutput](../../models/unifiedaccountingaccountoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Accounts from any connected Accounting software @@ -121,6 +120,7 @@ s = Panora( api_key="", ) + res = s.accounting.accounts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -138,10 +138,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingAccountOutput](../../models/unifiedaccountingaccountoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraatsusers/README.md b/docs/sdks/panoraatsusers/README.md index 093a664..d0f1dae 100644 --- a/docs/sdks/panoraatsusers/README.md +++ b/docs/sdks/panoraatsusers/README.md @@ -1,8 +1,6 @@ # PanoraAtsUsers (*ats.users*) -## Overview - ### Available Operations * [list](#list) - List Users @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsUsersResponse](../../models/listatsusersresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Users from any connected Ats software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.ats.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsUserOutput](../../models/unifiedatsuseroutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraattachments/README.md b/docs/sdks/panoraattachments/README.md index ec5e48d..8ce1ef0 100644 --- a/docs/sdks/panoraattachments/README.md +++ b/docs/sdks/panoraattachments/README.md @@ -1,8 +1,6 @@ # PanoraAttachments (*accounting.attachments*) -## Overview - ### Available Operations * [list](#list) - List Attachments @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingAttachmentsResponse](../../models/listaccountingattachmentsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create attachments in any supported Accounting software @@ -68,6 +67,7 @@ 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", @@ -90,17 +90,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingAttachmentOutput](../../models/unifiedaccountingattachmentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve attachments from any connected Accounting software @@ -114,6 +113,7 @@ s = Panora( api_key="", ) + res = s.accounting.attachments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -131,10 +131,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingAttachmentOutput](../../models/unifiedaccountingattachmentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoracompanies/README.md b/docs/sdks/panoracompanies/README.md index 3d141eb..e6fabc3 100644 --- a/docs/sdks/panoracompanies/README.md +++ b/docs/sdks/panoracompanies/README.md @@ -1,8 +1,6 @@ # PanoraCompanies (*hris.companies*) -## Overview - ### Available Operations * [list](#list) - List Companies @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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 - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisCompaniesResponse](../../models/listhriscompaniesresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Company from any connected Hris software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.hris.companies.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisCompanyOutput](../../models/unifiedhriscompanyoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoracontacts/README.md b/docs/sdks/panoracontacts/README.md index ae46f14..ebd0a40 100644 --- a/docs/sdks/panoracontacts/README.md +++ b/docs/sdks/panoracontacts/README.md @@ -1,8 +1,6 @@ # PanoraContacts (*crm.contacts*) -## Overview - ### Available Operations * [list](#list) - List CRM Contacts @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListCrmContactsResponse](../../models/listcrmcontactsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Contacts in any supported CRM @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.crm.contacts.create(x_connection_token="", unified_crm_contact_input={ "first_name": "John", "last_name": "Doe", @@ -79,7 +79,7 @@ res = s.crm.contacts.create(x_connection_token="", unified_crm_contact_in ], "phone_numbers": [ { - "phone_number": "1-809-839-8041", + "phone_number": "", "phone_type": "", }, ], @@ -117,17 +117,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original CRM software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedCrmContactOutput](../../models/unifiedcrmcontactoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Contacts from any connected CRM @@ -141,6 +140,7 @@ s = Panora( api_key="", ) + res = s.crm.contacts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -158,10 +158,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original CRM software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedCrmContactOutput](../../models/unifiedcrmcontactoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraevents/README.md b/docs/sdks/panoraevents/README.md index 43cdb0c..3e4cc7c 100644 --- a/docs/sdks/panoraevents/README.md +++ b/docs/sdks/panoraevents/README.md @@ -1,8 +1,6 @@ # PanoraEvents (*marketingautomation.events*) -## Overview - ### Available Operations * [list](#list) - List Events @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListMarketingAutomationEventsResponse](../../models/listmarketingautomationeventsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve an Event from any connected Marketingautomation software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.events.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationEventOutput](../../models/unifiedmarketingautomationeventoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panorafilestorageusers/README.md b/docs/sdks/panorafilestorageusers/README.md index 074bea8..ec39d60 100644 --- a/docs/sdks/panorafilestorageusers/README.md +++ b/docs/sdks/panorafilestorageusers/README.md @@ -1,8 +1,6 @@ # PanoraFilestorageUsers (*filestorage.users*) -## Overview - ### Available Operations * [list](#list) - List Users @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + res = s.filestorage.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListFilestorageUsersResponse](../../models/listfilestorageusersresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Users from any connected Filestorage software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.filestorage.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original File Storage software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedFilestorageUserOutput](../../models/unifiedfilestorageuseroutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoragroups/README.md b/docs/sdks/panoragroups/README.md index bac4e1d..adc85a4 100644 --- a/docs/sdks/panoragroups/README.md +++ b/docs/sdks/panoragroups/README.md @@ -1,8 +1,6 @@ # PanoraGroups (*filestorage.groups*) -## Overview - ### Available Operations * [list](#list) - List Groups @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + res = s.filestorage.groups.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListFilestorageGroupResponse](../../models/listfilestoragegroupresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Groups from any connected Filestorage software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.filestorage.groups.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original File Storage software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedFilestorageGroupOutput](../../models/unifiedfilestoragegroupoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoramarketingautomationcontacts/README.md b/docs/sdks/panoramarketingautomationcontacts/README.md index 1db596e..b1f5942 100644 --- a/docs/sdks/panoramarketingautomationcontacts/README.md +++ b/docs/sdks/panoramarketingautomationcontacts/README.md @@ -1,8 +1,6 @@ # PanoraMarketingautomationContacts (*marketingautomation.contacts*) -## Overview - ### Available Operations * [list](#list) - List Contacts @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListMarketingAutomationContactsResponse](../../models/listmarketingautomationcontactsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create a contact in any supported Marketingautomation software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.contacts.create(x_connection_token="", unified_marketingautomation_contact_input={}, remote_data=False) if res is not None: @@ -85,17 +85,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationContactOutput](../../models/unifiedmarketingautomationcontactoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Contacts from any connected Marketingautomation software @@ -109,6 +108,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.contacts.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -126,10 +126,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationContactOutput](../../models/unifiedmarketingautomationcontactoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoramarketingautomationusers/README.md b/docs/sdks/panoramarketingautomationusers/README.md index b8cfb5d..2ce22f3 100644 --- a/docs/sdks/panoramarketingautomationusers/README.md +++ b/docs/sdks/panoramarketingautomationusers/README.md @@ -1,8 +1,6 @@ # PanoraMarketingautomationUsers (*marketingautomation.users*) -## Overview - ### Available Operations * [list](#list) - List Users @@ -21,16 +19,18 @@ 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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListMarketingAutomationUsersResponse](../../models/listmarketingautomationusersresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Users from any connected Marketingautomation software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.users.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationUserOutput](../../models/unifiedmarketingautomationuseroutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoratags/README.md b/docs/sdks/panoratags/README.md index a533f1e..ad910d1 100644 --- a/docs/sdks/panoratags/README.md +++ b/docs/sdks/panoratags/README.md @@ -1,8 +1,6 @@ # PanoraTags (*ats.tags*) -## Overview - ### Available Operations * [list](#list) - List Tags @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsTagsResponse](../../models/listatstagsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Tags from any connected Ats software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.ats.tags.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsTagOutput](../../models/unifiedatstagoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraticketingattachments/README.md b/docs/sdks/panoraticketingattachments/README.md index aef6597..a187047 100644 --- a/docs/sdks/panoraticketingattachments/README.md +++ b/docs/sdks/panoraticketingattachments/README.md @@ -1,8 +1,6 @@ # PanoraTicketingAttachments (*ticketing.attachments*) -## Overview - ### Available Operations * [list](#list) - List Attachments @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + res = s.ticketing.attachments.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListTicketingAttachmentsResponse](../../models/listticketingattachmentsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Attachments in any supported Ticketing software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.ticketing.attachments.create(x_connection_token="", unified_ticketing_attachment_input={ "file_name": "features_planning.pdf", "file_url": "https://example.com/features_planning.pdf", @@ -95,17 +95,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ticketing software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedTicketingAttachmentOutput](../../models/unifiedticketingattachmentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Attachments from any connected Ticketing software @@ -119,6 +118,7 @@ s = Panora( api_key="", ) + res = s.ticketing.attachments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -136,10 +136,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ticketing software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedTicketingAttachmentOutput](../../models/unifiedticketingattachmentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panorausers/README.md b/docs/sdks/panorausers/README.md index 14a8603..73cb6d9 100644 --- a/docs/sdks/panorausers/README.md +++ b/docs/sdks/panorausers/README.md @@ -1,8 +1,6 @@ # PanoraUsers (*crm.users*) -## Overview - ### Available Operations * [list](#list) - List Users @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + res = s.crm.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListCrmUsersResponse](../../models/listcrmusersresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Users from any connected Crm software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.crm.users.retrieve(x_connection_token="", id="b008e199-eda9-4629-bd41-a01b6195864a", remote_data=True) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Crm software. | true | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedCrmUserOutput](../../models/unifiedcrmuseroutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/passthrough/README.md b/docs/sdks/passthrough/README.md index 117b739..d3bf3ac 100644 --- a/docs/sdks/passthrough/README.md +++ b/docs/sdks/passthrough/README.md @@ -1,8 +1,6 @@ # Passthrough (*passthrough*) -## Overview - ### Available Operations * [request](#request) - Make a passthrough request @@ -21,6 +19,7 @@ s = Panora( api_key="", ) + res = s.passthrough.request(x_connection_token="", pass_through_request_dto={ "method": panora_sdk.PassThroughRequestDtoMethod.GET, "path": "/dev", @@ -40,10 +39,10 @@ if res is not None: | `pass_through_request_dto` | [models.PassThroughRequestDto](../../models/passthroughrequestdto.md) | :heavy_check_mark: | N/A | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.RequestResponse](../../models/requestresponse.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/paygroups/README.md b/docs/sdks/paygroups/README.md index efd26da..516288d 100644 --- a/docs/sdks/paygroups/README.md +++ b/docs/sdks/paygroups/README.md @@ -1,8 +1,6 @@ # Paygroups (*hris.paygroups*) -## Overview - ### Available Operations * [list](#list) - List Pay Groups @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisPaygroupsResponse](../../models/listhrispaygroupsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Pay Group from any connected Hris software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.hris.paygroups.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisPaygroupOutput](../../models/unifiedhrispaygroupoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/payments/README.md b/docs/sdks/payments/README.md index 448fa19..11ff6f0 100644 --- a/docs/sdks/payments/README.md +++ b/docs/sdks/payments/README.md @@ -1,8 +1,6 @@ # Payments (*accounting.payments*) -## Overview - ### Available Operations * [list](#list) - List Payments @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingPaymentResponse](../../models/listaccountingpaymentresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Payments in any supported Accounting software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + 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"), @@ -114,17 +114,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingPaymentOutput](../../models/unifiedaccountingpaymentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Payments from any connected Accounting software @@ -138,6 +137,7 @@ s = Panora( api_key="", ) + res = s.accounting.payments.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -155,10 +155,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingPaymentOutput](../../models/unifiedaccountingpaymentoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/payrollruns/README.md b/docs/sdks/payrollruns/README.md index cbeeb88..9123cc3 100644 --- a/docs/sdks/payrollruns/README.md +++ b/docs/sdks/payrollruns/README.md @@ -1,8 +1,6 @@ # Payrollruns (*hris.payrollruns*) -## Overview - ### Available Operations * [list](#list) - List Payroll Runs @@ -21,16 +19,18 @@ 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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisPayrollRunsResponse](../../models/listhrispayrollrunsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Payroll Run from any connected Hris software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.hris.payrollruns.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisPayrollrunOutput](../../models/unifiedhrispayrollrunoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/phonenumbers/README.md b/docs/sdks/phonenumbers/README.md index 5226b5d..36980b7 100644 --- a/docs/sdks/phonenumbers/README.md +++ b/docs/sdks/phonenumbers/README.md @@ -1,8 +1,6 @@ # Phonenumbers (*accounting.phonenumbers*) -## Overview - ### Available Operations * [list](#list) - List PhoneNumbers @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingPhonenumberResponse](../../models/listaccountingphonenumberresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Phone Numbers from any connected Accounting software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.accounting.phonenumbers.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingPhonenumberOutput](../../models/unifiedaccountingphonenumberoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/products/README.md b/docs/sdks/products/README.md index 980f7ca..da0e3fd 100644 --- a/docs/sdks/products/README.md +++ b/docs/sdks/products/README.md @@ -1,8 +1,6 @@ # Products (*ecommerce.products*) -## Overview - ### Available Operations * [list](#list) - List Products @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + res = s.ecommerce.products.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListEcommerceProductsResponse](../../models/listecommerceproductsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Products in any supported Ecommerce software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.ecommerce.products.create(x_connection_token="", unified_ecommerce_product_input={ "product_url": "https://product_url/tee", "product_type": "teeshirt", @@ -101,17 +101,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedEcommerceProductOutput](../../models/unifiedecommerceproductoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve products from any connected Ats software @@ -125,7 +124,8 @@ s = Panora( api_key="", ) -res = s.ecommerce.products.retrieve(x_connection_token="", id="") + +res = s.ecommerce.products.retrieve(x_connection_token="", id="") if res is not None: # handle response @@ -142,10 +142,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedEcommerceProductOutput](../../models/unifiedecommerceproductoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/projects/README.md b/docs/sdks/projects/README.md index a846708..903d3d6 100644 --- a/docs/sdks/projects/README.md +++ b/docs/sdks/projects/README.md @@ -1,8 +1,6 @@ # Projects (*projects*) -## Overview - ### Available Operations * [get_projects](#get_projects) - Retrieve projects @@ -21,6 +19,7 @@ s = Panora( api_key="", ) + res = s.projects.get_projects() if res is not None: @@ -35,17 +34,16 @@ if res is not None: | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[List[models.ProjectResponse]](../../models/.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create a project @@ -59,6 +57,7 @@ s = Panora( api_key="", ) + res = s.projects.create(request={ "name": "Project Name", "id_user": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", @@ -78,10 +77,10 @@ if res is not None: | `request` | [models.CreateProjectDto](../../models/createprojectdto.md) | :heavy_check_mark: | The request object to use for the request. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.ProjectResponse](../../models/projectresponse.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/purchaseorders/README.md b/docs/sdks/purchaseorders/README.md index 23e1a95..e2c0d1c 100644 --- a/docs/sdks/purchaseorders/README.md +++ b/docs/sdks/purchaseorders/README.md @@ -1,8 +1,6 @@ # Purchaseorders (*accounting.purchaseorders*) -## Overview - ### Available Operations * [list](#list) - List PurchaseOrders @@ -22,16 +20,18 @@ 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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingPurchaseOrderResponse](../../models/listaccountingpurchaseorderresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Purchase Orders in any supported Accounting software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + res = s.accounting.purchaseorders.create(x_connection_token="", unified_accounting_purchaseorder_input={ "status": "Pending", "issue_date": dateutil.parser.isoparse("2024-06-15T12:00:00Z"), @@ -117,17 +117,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingPurchaseorderOutput](../../models/unifiedaccountingpurchaseorderoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Purchase Orders from any connected Accounting software @@ -141,6 +140,7 @@ s = Panora( api_key="", ) + res = s.accounting.purchaseorders.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -158,10 +158,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingPurchaseorderOutput](../../models/unifiedaccountingpurchaseorderoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/query/README.md b/docs/sdks/query/README.md index 3c7909f..8ac1583 100644 --- a/docs/sdks/query/README.md +++ b/docs/sdks/query/README.md @@ -1,13 +1,13 @@ # Query (*rag.query*) -## Overview - ### Available Operations -* [rag_controller_query_embeddings](#rag_controller_query_embeddings) +* [query](#query) - Query using RAG Search + +## query -## rag_controller_query_embeddings +Query across your connected data sources using RAG Search ### Example Usage @@ -18,7 +18,11 @@ s = Panora( api_key="", ) -res = s.rag.query.rag_controller_query_embeddings() + +res = s.rag.query.query(x_connection_token="", query_body={ + "query": "When does Panora incorporated?", + "top_k": 3, +}) if res is not None: # handle response @@ -30,12 +34,14 @@ if res is not None: | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `x_connection_token` | *str* | :heavy_check_mark: | The connection token | +| `query_body` | [models.QueryBody](../../models/querybody.md) | :heavy_check_mark: | N/A | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | -### Response -**[models.RagControllerQueryEmbeddingsResponseBody](../../models/ragcontrollerqueryembeddingsresponsebody.md)** +### Response +**[models.QueryResponseBody](../../models/queryresponsebody.md)** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/rag/README.md b/docs/sdks/rag/README.md index 24c63e5..57579c1 100644 --- a/docs/sdks/rag/README.md +++ b/docs/sdks/rag/README.md @@ -1,2 +1,5 @@ # Rag -(*rag*) \ No newline at end of file +(*rag*) + +### Available Operations + diff --git a/docs/sdks/rejectreasons/README.md b/docs/sdks/rejectreasons/README.md index fd5118d..2c76a3e 100644 --- a/docs/sdks/rejectreasons/README.md +++ b/docs/sdks/rejectreasons/README.md @@ -1,8 +1,6 @@ # Rejectreasons (*ats.rejectreasons*) -## Overview - ### Available Operations * [list](#list) - List RejectReasons @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsRejectReasonsResponse](../../models/listatsrejectreasonsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Reject Reasons from any connected Ats software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.ats.rejectreasons.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsRejectreasonOutput](../../models/unifiedatsrejectreasonoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/retryid/README.md b/docs/sdks/retryid/README.md index b0b60be..11525f0 100644 --- a/docs/sdks/retryid/README.md +++ b/docs/sdks/retryid/README.md @@ -1,8 +1,6 @@ # Retryid (*passthrough.retryid*) -## Overview - ### Available Operations * [get_retried_request_response](#get_retried_request_response) - Retrieve response of a failed passthrough request due to rate limits @@ -20,6 +18,7 @@ s = Panora( api_key="", ) + s.passthrough.retryid.get_retried_request_response(retry_id="") # Use the SDK ... diff --git a/docs/sdks/scorecards/README.md b/docs/sdks/scorecards/README.md index 033f03a..f78a754 100644 --- a/docs/sdks/scorecards/README.md +++ b/docs/sdks/scorecards/README.md @@ -1,8 +1,6 @@ # Scorecards (*ats.scorecards*) -## Overview - ### Available Operations * [list](#list) - List ScoreCards @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAtsScorecardResponse](../../models/listatsscorecardresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Score Cards from any connected Ats software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.ats.scorecards.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAtsScorecardOutput](../../models/unifiedatsscorecardoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/stages/README.md b/docs/sdks/stages/README.md index 9025db8..7ea231e 100644 --- a/docs/sdks/stages/README.md +++ b/docs/sdks/stages/README.md @@ -1,8 +1,6 @@ # Stages (*crm.stages*) -## Overview - ### Available Operations * [list](#list) - List Stages @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListCrmStagesResponse](../../models/listcrmstagesresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Stages from any connected Crm software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.crm.stages.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Crm software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedCrmStageOutput](../../models/unifiedcrmstageoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/sync/README.md b/docs/sdks/sync/README.md index 236c116..6ae9197 100644 --- a/docs/sdks/sync/README.md +++ b/docs/sdks/sync/README.md @@ -1,8 +1,6 @@ # Sync (*sync*) -## Overview - ### Available Operations * [status](#status) - Retrieve sync status of a certain vertical @@ -24,6 +22,7 @@ s = Panora( api_key="", ) + s.sync.status(vertical=panora_sdk.PathParamVertical.TICKETING) # Use the SDK ... @@ -43,7 +42,6 @@ s.sync.status(vertical=panora_sdk.PathParamVertical.TICKETING) | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## resync Resync common objects across a vertical @@ -57,6 +55,7 @@ s = Panora( api_key="", ) + res = s.sync.resync() if res is not None: @@ -71,17 +70,16 @@ if res is not None: | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.ResyncStatusDto](../../models/resyncstatusdto.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## update_pull_frequency Update pull frequency for verticals @@ -95,6 +93,7 @@ s = Panora( api_key="", ) + res = s.sync.update_pull_frequency(request={ "crm": 1800, "ats": 3600, @@ -118,17 +117,16 @@ if res is not None: | `request` | [models.UpdatePullFrequencyDto](../../models/updatepullfrequencydto.md) | :heavy_check_mark: | The request object to use for the request. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UpdatePullFrequencyResponseBody](../../models/updatepullfrequencyresponsebody.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## get_pull_frequency Get pull frequency for verticals @@ -142,6 +140,7 @@ s = Panora( api_key="", ) + res = s.sync.get_pull_frequency() if res is not None: @@ -156,10 +155,10 @@ if res is not None: | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UpdatePullFrequencyDto](../../models/updatepullfrequencydto.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/tags/README.md b/docs/sdks/tags/README.md index 3a7cbe7..3bb6247 100644 --- a/docs/sdks/tags/README.md +++ b/docs/sdks/tags/README.md @@ -1,8 +1,6 @@ # Tags (*ticketing.tags*) -## Overview - ### Available Operations * [list](#list) - List Tags @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + res = s.ticketing.tags.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListTicketingTagsResponse](../../models/listticketingtagsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Tag from any connected Ticketing software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.ticketing.tags.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ticketing software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedTicketingTagOutput](../../models/unifiedticketingtagoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/tasks/README.md b/docs/sdks/tasks/README.md index 2450cc1..5270725 100644 --- a/docs/sdks/tasks/README.md +++ b/docs/sdks/tasks/README.md @@ -1,8 +1,6 @@ # Tasks (*crm.tasks*) -## Overview - ### Available Operations * [list](#list) - List Tasks @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + res = s.crm.tasks.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListCrmTaskResponse](../../models/listcrmtaskresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Tasks in any supported Crm software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.crm.tasks.create(x_connection_token="", unified_crm_task_input={ "subject": "Answer customers", "content": "Prepare email campaign", @@ -98,17 +98,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Crm software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedCrmTaskOutput](../../models/unifiedcrmtaskoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Tasks from any connected Crm software @@ -122,6 +121,7 @@ s = Panora( api_key="", ) + res = s.crm.tasks.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -139,10 +139,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Crm software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedCrmTaskOutput](../../models/unifiedcrmtaskoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/taxrates/README.md b/docs/sdks/taxrates/README.md index 5e48545..a834715 100644 --- a/docs/sdks/taxrates/README.md +++ b/docs/sdks/taxrates/README.md @@ -1,8 +1,6 @@ # Taxrates (*accounting.taxrates*) -## Overview - ### Available Operations * [list](#list) - List TaxRates @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingTaxRateResponse](../../models/listaccountingtaxrateresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Tax Rates from any connected Accounting software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.accounting.taxrates.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingTaxrateOutput](../../models/unifiedaccountingtaxrateoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/teams/README.md b/docs/sdks/teams/README.md index f7d9145..b0b5f06 100644 --- a/docs/sdks/teams/README.md +++ b/docs/sdks/teams/README.md @@ -1,8 +1,6 @@ # Teams (*ticketing.teams*) -## Overview - ### Available Operations * [list](#list) - List Teams @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + res = s.ticketing.teams.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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListTicketingTeamsResponse](../../models/listticketingteamsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Teams from any connected Ticketing software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.ticketing.teams.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ticketing software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedTicketingTeamOutput](../../models/unifiedticketingteamoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/templates/README.md b/docs/sdks/templates/README.md index 276cb9d..3a6366b 100644 --- a/docs/sdks/templates/README.md +++ b/docs/sdks/templates/README.md @@ -1,8 +1,6 @@ # Templates (*marketingautomation.templates*) -## Overview - ### Available Operations * [list](#list) - List Templates @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListMarketingautomationTemplatesResponse](../../models/listmarketingautomationtemplatesresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create a template in any supported Marketingautomation software @@ -68,6 +67,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.templates.create(x_connection_token="", unified_marketingautomation_template_input={}) if res is not None: @@ -85,17 +85,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedMarketingautomationTemplateOutput](../../models/unifiedmarketingautomationtemplateoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Template from any connected Marketingautomation software @@ -109,6 +108,7 @@ s = Panora( api_key="", ) + res = s.marketingautomation.templates.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -126,10 +126,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Marketingautomation software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedMarketingautomationTemplateOutput](../../models/unifiedmarketingautomationtemplateoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/ticketing/README.md b/docs/sdks/ticketing/README.md index 37b7103..3d162c2 100644 --- a/docs/sdks/ticketing/README.md +++ b/docs/sdks/ticketing/README.md @@ -1,2 +1,5 @@ # Ticketing -(*ticketing*) \ No newline at end of file +(*ticketing*) + +### Available Operations + diff --git a/docs/sdks/tickets/README.md b/docs/sdks/tickets/README.md index 5a33d94..67555d3 100644 --- a/docs/sdks/tickets/README.md +++ b/docs/sdks/tickets/README.md @@ -1,8 +1,6 @@ # Tickets (*ticketing.tickets*) -## Overview - ### Available Operations * [list](#list) - List Tickets @@ -22,16 +20,18 @@ 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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListTicketingTicketResponse](../../models/listticketingticketresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Tickets in any supported Ticketing software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + res = s.ticketing.tickets.create(x_connection_token="", unified_ticketing_ticket_input={ "name": "Customer Service Inquiry", "description": "Help customer", @@ -126,17 +126,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ticketing software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedTicketingTicketOutput](../../models/unifiedticketingticketoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Tickets from any connected Ticketing software @@ -150,6 +149,7 @@ 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: @@ -167,10 +167,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ticketing software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedTicketingTicketOutput](../../models/unifiedticketingticketoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/timeoffbalances/README.md b/docs/sdks/timeoffbalances/README.md index 2969ea3..0bbb776 100644 --- a/docs/sdks/timeoffbalances/README.md +++ b/docs/sdks/timeoffbalances/README.md @@ -1,8 +1,6 @@ # Timeoffbalances (*hris.timeoffbalances*) -## Overview - ### Available Operations * [list](#list) - List TimeoffBalances @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisTimeoffbalancesResponse](../../models/listhristimeoffbalancesresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Time off Balances from any connected Hris software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.hris.timeoffbalances.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisTimeoffbalanceOutput](../../models/unifiedhristimeoffbalanceoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/timeoffs/README.md b/docs/sdks/timeoffs/README.md index 088cfae..37a79cf 100644 --- a/docs/sdks/timeoffs/README.md +++ b/docs/sdks/timeoffs/README.md @@ -1,8 +1,6 @@ # Timeoffs (*hris.timeoffs*) -## Overview - ### Available Operations * [list](#list) - List Time Offs @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisTimeoffsResponse](../../models/listhristimeoffsresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Timeoffs in any supported Hris software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + res = s.hris.timeoffs.create(x_connection_token="", unified_hris_timeoff_input={ "employee": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "approver": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", @@ -97,17 +97,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedHrisTimeoffOutput](../../models/unifiedhristimeoffoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a Time Off from any connected Hris software @@ -121,6 +120,7 @@ s = Panora( api_key="", ) + res = s.hris.timeoffs.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -138,10 +138,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisTimeoffOutput](../../models/unifiedhristimeoffoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/timesheetentries/README.md b/docs/sdks/timesheetentries/README.md index e553163..082bf50 100644 --- a/docs/sdks/timesheetentries/README.md +++ b/docs/sdks/timesheetentries/README.md @@ -1,8 +1,6 @@ # Timesheetentries (*hris.timesheetentries*) -## Overview - ### Available Operations * [list](#list) - List Timesheetentries @@ -22,16 +20,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -44,17 +44,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListHrisTimesheetentriesResponse](../../models/listhristimesheetentriesresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create Timesheetentrys in any supported Hris software @@ -69,6 +68,7 @@ s = Panora( api_key="", ) + 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"), @@ -93,17 +93,16 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.UnifiedHrisTimesheetEntryOutput](../../models/unifiedhristimesheetentryoutput.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve an Timesheetentry from any connected Hris software @@ -117,6 +116,7 @@ s = Panora( api_key="", ) + res = s.hris.timesheetentries.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -134,10 +134,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedHrisTimesheetEntryOutput](../../models/unifiedhristimesheetentryoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/trackingcategories/README.md b/docs/sdks/trackingcategories/README.md index 6737b3a..b018b2d 100644 --- a/docs/sdks/trackingcategories/README.md +++ b/docs/sdks/trackingcategories/README.md @@ -1,8 +1,6 @@ # Trackingcategories (*accounting.trackingcategories*) -## Overview - ### Available Operations * [list](#list) - List TrackingCategorys @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingTrackingCategorysResponse](../../models/listaccountingtrackingcategorysresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Tracking Categories from any connected Accounting software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.accounting.trackingcategories.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingTrackingcategoryOutput](../../models/unifiedaccountingtrackingcategoryoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/transactions/README.md b/docs/sdks/transactions/README.md index e1d754e..c6f061d 100644 --- a/docs/sdks/transactions/README.md +++ b/docs/sdks/transactions/README.md @@ -1,8 +1,6 @@ # Transactions (*accounting.transactions*) -## Overview - ### Available Operations * [list](#list) - List Transactions @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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: # handle items - res = res.next() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingTransactionResponse](../../models/listaccountingtransactionresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Transactions from any connected Accounting software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.accounting.transactions.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingTransactionOutput](../../models/unifiedaccountingtransactionoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index 20de0c0..d8ed1a4 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -1,8 +1,6 @@ # Users (*ticketing.users*) -## Overview - ### Available Operations * [list](#list) - List Users @@ -21,16 +19,18 @@ 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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListTicketingUsersResponse](../../models/listticketingusersresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve a User from any connected Ticketing software @@ -67,6 +66,7 @@ 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: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Ticketing software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedTicketingUserOutput](../../models/unifiedticketinguseroutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/vendorcredits/README.md b/docs/sdks/vendorcredits/README.md index d292faf..49256b7 100644 --- a/docs/sdks/vendorcredits/README.md +++ b/docs/sdks/vendorcredits/README.md @@ -1,8 +1,6 @@ # Vendorcredits (*accounting.vendorcredits*) -## Overview - ### Available Operations * [list](#list) - List VendorCredits @@ -21,16 +19,18 @@ s = Panora( api_key="", ) + 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() + res = res.Next() if res is None: break + ``` ### Parameters @@ -43,17 +43,16 @@ if res is not None: | `cursor` | *Optional[str]* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.ListAccountingVendorCreditResponse](../../models/listaccountingvendorcreditresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## retrieve Retrieve Vendor Credits from any connected Accounting software @@ -67,6 +66,7 @@ s = Panora( api_key="", ) + res = s.accounting.vendorcredits.retrieve(x_connection_token="", id="801f9ede-c698-4e66-a7fc-48d19eebaa4f", remote_data=False) if res is not None: @@ -84,10 +84,10 @@ if res is not None: | `remote_data` | *Optional[bool]* | :heavy_minus_sign: | Set to true to include data from the original Accounting software. | false | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.UnifiedAccountingVendorcreditOutput](../../models/unifiedaccountingvendorcreditoutput.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index 1a1d7d5..bb3b985 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -1,8 +1,6 @@ # Webhooks (*webhooks*) -## Overview - ### Available Operations * [list](#list) - List webhooks @@ -24,6 +22,7 @@ s = Panora( api_key="", ) + res = s.webhooks.list() if res is not None: @@ -38,17 +37,16 @@ if res is not None: | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[List[models.WebhookResponse]](../../models/.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## create Create webhook @@ -62,6 +60,7 @@ s = Panora( api_key="", ) + res = s.webhooks.create(request={ "url": "https://acme.com/webhook_receiver", "scope": [ @@ -83,17 +82,16 @@ if res is not None: | `request` | [models.WebhookDto](../../models/webhookdto.md) | :heavy_check_mark: | The request object to use for the request. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[models.WebhookResponse](../../models/webhookresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## delete Delete Webhook @@ -107,6 +105,7 @@ s = Panora( api_key="", ) + res = s.webhooks.delete(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") if res is not None: @@ -122,17 +121,16 @@ if res is not None: | `id` | *str* | :heavy_check_mark: | id of the webhook to delete. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.WebhookResponse](../../models/webhookresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## update_status Update webhook status @@ -146,6 +144,7 @@ s = Panora( api_key="", ) + res = s.webhooks.update_status(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f") if res is not None: @@ -161,17 +160,16 @@ if res is not None: | `id` | *str* | :heavy_check_mark: | id of the webhook to update. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + ### Response **[models.WebhookResponse](../../models/webhookresponse.md)** - ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | models.SDKError | 4xx-5xx | */* | - ## verify_event Verify payload signature of the webhook @@ -185,9 +183,10 @@ s = Panora( api_key="", ) + res = s.webhooks.verify_event(request={ "payload": { - + "key": "", }, "signature": "", "secret": "", @@ -206,10 +205,10 @@ if res is not None: | `request` | [models.SignatureVerificationDto](../../models/signatureverificationdto.md) | :heavy_check_mark: | The request object to use for the request. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + ### Response **[Dict[str, Any]](../../models/.md)** - ### Errors | Error Object | Status Code | Content Type | diff --git a/poetry.lock b/poetry.lock index 8a21add..ca764e1 100644 --- a/poetry.lock +++ b/poetry.lock @@ -87,20 +87,6 @@ files = [ graph = ["objgraph (>=1.7.2)"] profile = ["gprof2dot (>=2022.7.29)"] -[[package]] -name = "eval-type-backport" -version = "0.2.0" -description = "Like `typing._eval_type`, but lets older Python versions use newer typing features." -optional = false -python-versions = ">=3.8" -files = [ - {file = "eval_type_backport-0.2.0-py3-none-any.whl", hash = "sha256:ac2f73d30d40c5a30a80b8739a789d6bb5e49fdffa66d7912667e2015d9c9933"}, - {file = "eval_type_backport-0.2.0.tar.gz", hash = "sha256:68796cfbc7371ebf923f03bdf7bef415f3ec098aeced24e054b253a0e78f7b37"}, -] - -[package.extras] -tests = ["pytest"] - [[package]] name = "exceptiongroup" version = "1.2.2" @@ -276,6 +262,17 @@ files = [ {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, ] +[[package]] +name = "nodeenv" +version = "1.9.1" +description = "Node.js virtual environment builder" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" +files = [ + {file = "nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9"}, + {file = "nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f"}, +] + [[package]] name = "platformdirs" version = "4.2.2" @@ -294,123 +291,122 @@ type = ["mypy (>=1.8)"] [[package]] name = "pydantic" -version = "2.9.1" +version = "2.8.2" description = "Data validation using Python type hints" optional = false python-versions = ">=3.8" files = [ - {file = "pydantic-2.9.1-py3-none-any.whl", hash = "sha256:7aff4db5fdf3cf573d4b3c30926a510a10e19a0774d38fc4967f78beb6deb612"}, - {file = "pydantic-2.9.1.tar.gz", hash = "sha256:1363c7d975c7036df0db2b4a61f2e062fbc0aa5ab5f2772e0ffc7191a4f4bce2"}, + {file = "pydantic-2.8.2-py3-none-any.whl", hash = "sha256:73ee9fddd406dc318b885c7a2eab8a6472b68b8fb5ba8150949fc3db939f23c8"}, + {file = "pydantic-2.8.2.tar.gz", hash = "sha256:6f62c13d067b0755ad1c21a34bdd06c0c12625a22b0fc09c6b149816604f7c2a"}, ] [package.dependencies] -annotated-types = ">=0.6.0" -pydantic-core = "2.23.3" +annotated-types = ">=0.4.0" +pydantic-core = "2.20.1" typing-extensions = [ - {version = ">=4.6.1", markers = "python_version < \"3.13\""}, {version = ">=4.12.2", markers = "python_version >= \"3.13\""}, + {version = ">=4.6.1", markers = "python_version < \"3.13\""}, ] [package.extras] email = ["email-validator (>=2.0.0)"] -timezone = ["tzdata"] [[package]] name = "pydantic-core" -version = "2.23.3" +version = "2.20.1" description = "Core functionality for Pydantic validation and serialization" optional = false python-versions = ">=3.8" files = [ - {file = "pydantic_core-2.23.3-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:7f10a5d1b9281392f1bf507d16ac720e78285dfd635b05737c3911637601bae6"}, - {file = "pydantic_core-2.23.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:3c09a7885dd33ee8c65266e5aa7fb7e2f23d49d8043f089989726391dd7350c5"}, - {file = "pydantic_core-2.23.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6470b5a1ec4d1c2e9afe928c6cb37eb33381cab99292a708b8cb9aa89e62429b"}, - {file = "pydantic_core-2.23.3-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9172d2088e27d9a185ea0a6c8cebe227a9139fd90295221d7d495944d2367700"}, - {file = "pydantic_core-2.23.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:86fc6c762ca7ac8fbbdff80d61b2c59fb6b7d144aa46e2d54d9e1b7b0e780e01"}, - {file = "pydantic_core-2.23.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f0cb80fd5c2df4898693aa841425ea1727b1b6d2167448253077d2a49003e0ed"}, - {file = "pydantic_core-2.23.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:03667cec5daf43ac4995cefa8aaf58f99de036204a37b889c24a80927b629cec"}, - {file = "pydantic_core-2.23.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:047531242f8e9c2db733599f1c612925de095e93c9cc0e599e96cf536aaf56ba"}, - {file = "pydantic_core-2.23.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:5499798317fff7f25dbef9347f4451b91ac2a4330c6669821c8202fd354c7bee"}, - {file = "pydantic_core-2.23.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:bbb5e45eab7624440516ee3722a3044b83fff4c0372efe183fd6ba678ff681fe"}, - {file = "pydantic_core-2.23.3-cp310-none-win32.whl", hash = "sha256:8b5b3ed73abb147704a6e9f556d8c5cb078f8c095be4588e669d315e0d11893b"}, - {file = "pydantic_core-2.23.3-cp310-none-win_amd64.whl", hash = "sha256:2b603cde285322758a0279995b5796d64b63060bfbe214b50a3ca23b5cee3e83"}, - {file = "pydantic_core-2.23.3-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:c889fd87e1f1bbeb877c2ee56b63bb297de4636661cc9bbfcf4b34e5e925bc27"}, - {file = "pydantic_core-2.23.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ea85bda3189fb27503af4c45273735bcde3dd31c1ab17d11f37b04877859ef45"}, - {file = "pydantic_core-2.23.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a7f7f72f721223f33d3dc98a791666ebc6a91fa023ce63733709f4894a7dc611"}, - {file = "pydantic_core-2.23.3-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2b2b55b0448e9da68f56b696f313949cda1039e8ec7b5d294285335b53104b61"}, - {file = "pydantic_core-2.23.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c24574c7e92e2c56379706b9a3f07c1e0c7f2f87a41b6ee86653100c4ce343e5"}, - {file = "pydantic_core-2.23.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f2b05e6ccbee333a8f4b8f4d7c244fdb7a979e90977ad9c51ea31261e2085ce0"}, - {file = "pydantic_core-2.23.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e2c409ce1c219c091e47cb03feb3c4ed8c2b8e004efc940da0166aaee8f9d6c8"}, - {file = "pydantic_core-2.23.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d965e8b325f443ed3196db890d85dfebbb09f7384486a77461347f4adb1fa7f8"}, - {file = "pydantic_core-2.23.3-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:f56af3a420fb1ffaf43ece3ea09c2d27c444e7c40dcb7c6e7cf57aae764f2b48"}, - {file = "pydantic_core-2.23.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:5b01a078dd4f9a52494370af21aa52964e0a96d4862ac64ff7cea06e0f12d2c5"}, - {file = "pydantic_core-2.23.3-cp311-none-win32.whl", hash = "sha256:560e32f0df04ac69b3dd818f71339983f6d1f70eb99d4d1f8e9705fb6c34a5c1"}, - {file = "pydantic_core-2.23.3-cp311-none-win_amd64.whl", hash = "sha256:c744fa100fdea0d000d8bcddee95213d2de2e95b9c12be083370b2072333a0fa"}, - {file = "pydantic_core-2.23.3-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:e0ec50663feedf64d21bad0809f5857bac1ce91deded203efc4a84b31b2e4305"}, - {file = "pydantic_core-2.23.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:db6e6afcb95edbe6b357786684b71008499836e91f2a4a1e55b840955b341dbb"}, - {file = "pydantic_core-2.23.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:98ccd69edcf49f0875d86942f4418a4e83eb3047f20eb897bffa62a5d419c8fa"}, - {file = "pydantic_core-2.23.3-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a678c1ac5c5ec5685af0133262103defb427114e62eafeda12f1357a12140162"}, - {file = "pydantic_core-2.23.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:01491d8b4d8db9f3391d93b0df60701e644ff0894352947f31fff3e52bd5c801"}, - {file = "pydantic_core-2.23.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fcf31facf2796a2d3b7fe338fe8640aa0166e4e55b4cb108dbfd1058049bf4cb"}, - {file = "pydantic_core-2.23.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7200fd561fb3be06827340da066df4311d0b6b8eb0c2116a110be5245dceb326"}, - {file = "pydantic_core-2.23.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:dc1636770a809dee2bd44dd74b89cc80eb41172bcad8af75dd0bc182c2666d4c"}, - {file = "pydantic_core-2.23.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:67a5def279309f2e23014b608c4150b0c2d323bd7bccd27ff07b001c12c2415c"}, - {file = "pydantic_core-2.23.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:748bdf985014c6dd3e1e4cc3db90f1c3ecc7246ff5a3cd4ddab20c768b2f1dab"}, - {file = "pydantic_core-2.23.3-cp312-none-win32.whl", hash = "sha256:255ec6dcb899c115f1e2a64bc9ebc24cc0e3ab097775755244f77360d1f3c06c"}, - {file = "pydantic_core-2.23.3-cp312-none-win_amd64.whl", hash = "sha256:40b8441be16c1e940abebed83cd006ddb9e3737a279e339dbd6d31578b802f7b"}, - {file = "pydantic_core-2.23.3-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:6daaf5b1ba1369a22c8b050b643250e3e5efc6a78366d323294aee54953a4d5f"}, - {file = "pydantic_core-2.23.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:d015e63b985a78a3d4ccffd3bdf22b7c20b3bbd4b8227809b3e8e75bc37f9cb2"}, - {file = "pydantic_core-2.23.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a3fc572d9b5b5cfe13f8e8a6e26271d5d13f80173724b738557a8c7f3a8a3791"}, - {file = "pydantic_core-2.23.3-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f6bd91345b5163ee7448bee201ed7dd601ca24f43f439109b0212e296eb5b423"}, - {file = "pydantic_core-2.23.3-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fc379c73fd66606628b866f661e8785088afe2adaba78e6bbe80796baf708a63"}, - {file = "pydantic_core-2.23.3-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fbdce4b47592f9e296e19ac31667daed8753c8367ebb34b9a9bd89dacaa299c9"}, - {file = "pydantic_core-2.23.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fc3cf31edf405a161a0adad83246568647c54404739b614b1ff43dad2b02e6d5"}, - {file = "pydantic_core-2.23.3-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8e22b477bf90db71c156f89a55bfe4d25177b81fce4aa09294d9e805eec13855"}, - {file = "pydantic_core-2.23.3-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:0a0137ddf462575d9bce863c4c95bac3493ba8e22f8c28ca94634b4a1d3e2bb4"}, - {file = "pydantic_core-2.23.3-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:203171e48946c3164fe7691fc349c79241ff8f28306abd4cad5f4f75ed80bc8d"}, - {file = "pydantic_core-2.23.3-cp313-none-win32.whl", hash = "sha256:76bdab0de4acb3f119c2a4bff740e0c7dc2e6de7692774620f7452ce11ca76c8"}, - {file = "pydantic_core-2.23.3-cp313-none-win_amd64.whl", hash = "sha256:37ba321ac2a46100c578a92e9a6aa33afe9ec99ffa084424291d84e456f490c1"}, - {file = "pydantic_core-2.23.3-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:d063c6b9fed7d992bcbebfc9133f4c24b7a7f215d6b102f3e082b1117cddb72c"}, - {file = "pydantic_core-2.23.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:6cb968da9a0746a0cf521b2b5ef25fc5a0bee9b9a1a8214e0a1cfaea5be7e8a4"}, - {file = "pydantic_core-2.23.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:edbefe079a520c5984e30e1f1f29325054b59534729c25b874a16a5048028d16"}, - {file = "pydantic_core-2.23.3-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:cbaaf2ef20d282659093913da9d402108203f7cb5955020bd8d1ae5a2325d1c4"}, - {file = "pydantic_core-2.23.3-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fb539d7e5dc4aac345846f290cf504d2fd3c1be26ac4e8b5e4c2b688069ff4cf"}, - {file = "pydantic_core-2.23.3-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7e6f33503c5495059148cc486867e1d24ca35df5fc064686e631e314d959ad5b"}, - {file = "pydantic_core-2.23.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:04b07490bc2f6f2717b10c3969e1b830f5720b632f8ae2f3b8b1542394c47a8e"}, - {file = "pydantic_core-2.23.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:03795b9e8a5d7fda05f3873efc3f59105e2dcff14231680296b87b80bb327295"}, - {file = "pydantic_core-2.23.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:c483dab0f14b8d3f0df0c6c18d70b21b086f74c87ab03c59250dbf6d3c89baba"}, - {file = "pydantic_core-2.23.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:8b2682038e255e94baf2c473dca914a7460069171ff5cdd4080be18ab8a7fd6e"}, - {file = "pydantic_core-2.23.3-cp38-none-win32.whl", hash = "sha256:f4a57db8966b3a1d1a350012839c6a0099f0898c56512dfade8a1fe5fb278710"}, - {file = "pydantic_core-2.23.3-cp38-none-win_amd64.whl", hash = "sha256:13dd45ba2561603681a2676ca56006d6dee94493f03d5cadc055d2055615c3ea"}, - {file = "pydantic_core-2.23.3-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:82da2f4703894134a9f000e24965df73cc103e31e8c31906cc1ee89fde72cbd8"}, - {file = "pydantic_core-2.23.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:dd9be0a42de08f4b58a3cc73a123f124f65c24698b95a54c1543065baca8cf0e"}, - {file = "pydantic_core-2.23.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:89b731f25c80830c76fdb13705c68fef6a2b6dc494402987c7ea9584fe189f5d"}, - {file = "pydantic_core-2.23.3-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c6de1ec30c4bb94f3a69c9f5f2182baeda5b809f806676675e9ef6b8dc936f28"}, - {file = "pydantic_core-2.23.3-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bb68b41c3fa64587412b104294b9cbb027509dc2f6958446c502638d481525ef"}, - {file = "pydantic_core-2.23.3-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1c3980f2843de5184656aab58698011b42763ccba11c4a8c35936c8dd6c7068c"}, - {file = "pydantic_core-2.23.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:94f85614f2cba13f62c3c6481716e4adeae48e1eaa7e8bac379b9d177d93947a"}, - {file = "pydantic_core-2.23.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:510b7fb0a86dc8f10a8bb43bd2f97beb63cffad1203071dc434dac26453955cd"}, - {file = "pydantic_core-2.23.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:1eba2f7ce3e30ee2170410e2171867ea73dbd692433b81a93758ab2de6c64835"}, - {file = "pydantic_core-2.23.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:4b259fd8409ab84b4041b7b3f24dcc41e4696f180b775961ca8142b5b21d0e70"}, - {file = "pydantic_core-2.23.3-cp39-none-win32.whl", hash = "sha256:40d9bd259538dba2f40963286009bf7caf18b5112b19d2b55b09c14dde6db6a7"}, - {file = "pydantic_core-2.23.3-cp39-none-win_amd64.whl", hash = "sha256:5a8cd3074a98ee70173a8633ad3c10e00dcb991ecec57263aacb4095c5efb958"}, - {file = "pydantic_core-2.23.3-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:f399e8657c67313476a121a6944311fab377085ca7f490648c9af97fc732732d"}, - {file = "pydantic_core-2.23.3-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:6b5547d098c76e1694ba85f05b595720d7c60d342f24d5aad32c3049131fa5c4"}, - {file = "pydantic_core-2.23.3-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0dda0290a6f608504882d9f7650975b4651ff91c85673341789a476b1159f211"}, - {file = "pydantic_core-2.23.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:65b6e5da855e9c55a0c67f4db8a492bf13d8d3316a59999cfbaf98cc6e401961"}, - {file = "pydantic_core-2.23.3-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:09e926397f392059ce0afdcac920df29d9c833256354d0c55f1584b0b70cf07e"}, - {file = "pydantic_core-2.23.3-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:87cfa0ed6b8c5bd6ae8b66de941cece179281239d482f363814d2b986b79cedc"}, - {file = "pydantic_core-2.23.3-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:e61328920154b6a44d98cabcb709f10e8b74276bc709c9a513a8c37a18786cc4"}, - {file = "pydantic_core-2.23.3-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:ce3317d155628301d649fe5e16a99528d5680af4ec7aa70b90b8dacd2d725c9b"}, - {file = "pydantic_core-2.23.3-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:e89513f014c6be0d17b00a9a7c81b1c426f4eb9224b15433f3d98c1a071f8433"}, - {file = "pydantic_core-2.23.3-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:4f62c1c953d7ee375df5eb2e44ad50ce2f5aff931723b398b8bc6f0ac159791a"}, - {file = "pydantic_core-2.23.3-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2718443bc671c7ac331de4eef9b673063b10af32a0bb385019ad61dcf2cc8f6c"}, - {file = "pydantic_core-2.23.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a0d90e08b2727c5d01af1b5ef4121d2f0c99fbee692c762f4d9d0409c9da6541"}, - {file = "pydantic_core-2.23.3-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2b676583fc459c64146debea14ba3af54e540b61762dfc0613dc4e98c3f66eeb"}, - {file = "pydantic_core-2.23.3-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:50e4661f3337977740fdbfbae084ae5693e505ca2b3130a6d4eb0f2281dc43b8"}, - {file = "pydantic_core-2.23.3-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:68f4cf373f0de6abfe599a38307f4417c1c867ca381c03df27c873a9069cda25"}, - {file = "pydantic_core-2.23.3-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:59d52cf01854cb26c46958552a21acb10dd78a52aa34c86f284e66b209db8cab"}, - {file = "pydantic_core-2.23.3.tar.gz", hash = "sha256:3cb0f65d8b4121c1b015c60104a685feb929a29d7cf204387c7f2688c7974690"}, + {file = "pydantic_core-2.20.1-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:3acae97ffd19bf091c72df4d726d552c473f3576409b2a7ca36b2f535ffff4a3"}, + {file = "pydantic_core-2.20.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:41f4c96227a67a013e7de5ff8f20fb496ce573893b7f4f2707d065907bffdbd6"}, + {file = "pydantic_core-2.20.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5f239eb799a2081495ea659d8d4a43a8f42cd1fe9ff2e7e436295c38a10c286a"}, + {file = "pydantic_core-2.20.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:53e431da3fc53360db73eedf6f7124d1076e1b4ee4276b36fb25514544ceb4a3"}, + {file = "pydantic_core-2.20.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f1f62b2413c3a0e846c3b838b2ecd6c7a19ec6793b2a522745b0869e37ab5bc1"}, + {file = "pydantic_core-2.20.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5d41e6daee2813ecceea8eda38062d69e280b39df793f5a942fa515b8ed67953"}, + {file = "pydantic_core-2.20.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3d482efec8b7dc6bfaedc0f166b2ce349df0011f5d2f1f25537ced4cfc34fd98"}, + {file = "pydantic_core-2.20.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e93e1a4b4b33daed65d781a57a522ff153dcf748dee70b40c7258c5861e1768a"}, + {file = "pydantic_core-2.20.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e7c4ea22b6739b162c9ecaaa41d718dfad48a244909fe7ef4b54c0b530effc5a"}, + {file = "pydantic_core-2.20.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:4f2790949cf385d985a31984907fecb3896999329103df4e4983a4a41e13e840"}, + {file = "pydantic_core-2.20.1-cp310-none-win32.whl", hash = "sha256:5e999ba8dd90e93d57410c5e67ebb67ffcaadcea0ad973240fdfd3a135506250"}, + {file = "pydantic_core-2.20.1-cp310-none-win_amd64.whl", hash = "sha256:512ecfbefef6dac7bc5eaaf46177b2de58cdf7acac8793fe033b24ece0b9566c"}, + {file = "pydantic_core-2.20.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:d2a8fa9d6d6f891f3deec72f5cc668e6f66b188ab14bb1ab52422fe8e644f312"}, + {file = "pydantic_core-2.20.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:175873691124f3d0da55aeea1d90660a6ea7a3cfea137c38afa0a5ffabe37b88"}, + {file = "pydantic_core-2.20.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:37eee5b638f0e0dcd18d21f59b679686bbd18917b87db0193ae36f9c23c355fc"}, + {file = "pydantic_core-2.20.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:25e9185e2d06c16ee438ed39bf62935ec436474a6ac4f9358524220f1b236e43"}, + {file = "pydantic_core-2.20.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:150906b40ff188a3260cbee25380e7494ee85048584998c1e66df0c7a11c17a6"}, + {file = "pydantic_core-2.20.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8ad4aeb3e9a97286573c03df758fc7627aecdd02f1da04516a86dc159bf70121"}, + {file = "pydantic_core-2.20.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d3f3ed29cd9f978c604708511a1f9c2fdcb6c38b9aae36a51905b8811ee5cbf1"}, + {file = "pydantic_core-2.20.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b0dae11d8f5ded51699c74d9548dcc5938e0804cc8298ec0aa0da95c21fff57b"}, + {file = "pydantic_core-2.20.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:faa6b09ee09433b87992fb5a2859efd1c264ddc37280d2dd5db502126d0e7f27"}, + {file = "pydantic_core-2.20.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:9dc1b507c12eb0481d071f3c1808f0529ad41dc415d0ca11f7ebfc666e66a18b"}, + {file = "pydantic_core-2.20.1-cp311-none-win32.whl", hash = "sha256:fa2fddcb7107e0d1808086ca306dcade7df60a13a6c347a7acf1ec139aa6789a"}, + {file = "pydantic_core-2.20.1-cp311-none-win_amd64.whl", hash = "sha256:40a783fb7ee353c50bd3853e626f15677ea527ae556429453685ae32280c19c2"}, + {file = "pydantic_core-2.20.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:595ba5be69b35777474fa07f80fc260ea71255656191adb22a8c53aba4479231"}, + {file = "pydantic_core-2.20.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a4f55095ad087474999ee28d3398bae183a66be4823f753cd7d67dd0153427c9"}, + {file = "pydantic_core-2.20.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f9aa05d09ecf4c75157197f27cdc9cfaeb7c5f15021c6373932bf3e124af029f"}, + {file = "pydantic_core-2.20.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e97fdf088d4b31ff4ba35db26d9cc472ac7ef4a2ff2badeabf8d727b3377fc52"}, + {file = "pydantic_core-2.20.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bc633a9fe1eb87e250b5c57d389cf28998e4292336926b0b6cdaee353f89a237"}, + {file = "pydantic_core-2.20.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d573faf8eb7e6b1cbbcb4f5b247c60ca8be39fe2c674495df0eb4318303137fe"}, + {file = "pydantic_core-2.20.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:26dc97754b57d2fd00ac2b24dfa341abffc380b823211994c4efac7f13b9e90e"}, + {file = "pydantic_core-2.20.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:33499e85e739a4b60c9dac710c20a08dc73cb3240c9a0e22325e671b27b70d24"}, + {file = "pydantic_core-2.20.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:bebb4d6715c814597f85297c332297c6ce81e29436125ca59d1159b07f423eb1"}, + {file = "pydantic_core-2.20.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:516d9227919612425c8ef1c9b869bbbee249bc91912c8aaffb66116c0b447ebd"}, + {file = "pydantic_core-2.20.1-cp312-none-win32.whl", hash = "sha256:469f29f9093c9d834432034d33f5fe45699e664f12a13bf38c04967ce233d688"}, + {file = "pydantic_core-2.20.1-cp312-none-win_amd64.whl", hash = "sha256:035ede2e16da7281041f0e626459bcae33ed998cca6a0a007a5ebb73414ac72d"}, + {file = "pydantic_core-2.20.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:0827505a5c87e8aa285dc31e9ec7f4a17c81a813d45f70b1d9164e03a813a686"}, + {file = "pydantic_core-2.20.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:19c0fa39fa154e7e0b7f82f88ef85faa2a4c23cc65aae2f5aea625e3c13c735a"}, + {file = "pydantic_core-2.20.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4aa223cd1e36b642092c326d694d8bf59b71ddddc94cdb752bbbb1c5c91d833b"}, + {file = "pydantic_core-2.20.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c336a6d235522a62fef872c6295a42ecb0c4e1d0f1a3e500fe949415761b8a19"}, + {file = "pydantic_core-2.20.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7eb6a0587eded33aeefea9f916899d42b1799b7b14b8f8ff2753c0ac1741edac"}, + {file = "pydantic_core-2.20.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:70c8daf4faca8da5a6d655f9af86faf6ec2e1768f4b8b9d0226c02f3d6209703"}, + {file = "pydantic_core-2.20.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e9fa4c9bf273ca41f940bceb86922a7667cd5bf90e95dbb157cbb8441008482c"}, + {file = "pydantic_core-2.20.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:11b71d67b4725e7e2a9f6e9c0ac1239bbc0c48cce3dc59f98635efc57d6dac83"}, + {file = "pydantic_core-2.20.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:270755f15174fb983890c49881e93f8f1b80f0b5e3a3cc1394a255706cabd203"}, + {file = "pydantic_core-2.20.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:c81131869240e3e568916ef4c307f8b99583efaa60a8112ef27a366eefba8ef0"}, + {file = "pydantic_core-2.20.1-cp313-none-win32.whl", hash = "sha256:b91ced227c41aa29c672814f50dbb05ec93536abf8f43cd14ec9521ea09afe4e"}, + {file = "pydantic_core-2.20.1-cp313-none-win_amd64.whl", hash = "sha256:65db0f2eefcaad1a3950f498aabb4875c8890438bc80b19362cf633b87a8ab20"}, + {file = "pydantic_core-2.20.1-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:4745f4ac52cc6686390c40eaa01d48b18997cb130833154801a442323cc78f91"}, + {file = "pydantic_core-2.20.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a8ad4c766d3f33ba8fd692f9aa297c9058970530a32c728a2c4bfd2616d3358b"}, + {file = "pydantic_core-2.20.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:41e81317dd6a0127cabce83c0c9c3fbecceae981c8391e6f1dec88a77c8a569a"}, + {file = "pydantic_core-2.20.1-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:04024d270cf63f586ad41fff13fde4311c4fc13ea74676962c876d9577bcc78f"}, + {file = "pydantic_core-2.20.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:eaad4ff2de1c3823fddf82f41121bdf453d922e9a238642b1dedb33c4e4f98ad"}, + {file = "pydantic_core-2.20.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:26ab812fa0c845df815e506be30337e2df27e88399b985d0bb4e3ecfe72df31c"}, + {file = "pydantic_core-2.20.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3c5ebac750d9d5f2706654c638c041635c385596caf68f81342011ddfa1e5598"}, + {file = "pydantic_core-2.20.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2aafc5a503855ea5885559eae883978c9b6d8c8993d67766ee73d82e841300dd"}, + {file = "pydantic_core-2.20.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:4868f6bd7c9d98904b748a2653031fc9c2f85b6237009d475b1008bfaeb0a5aa"}, + {file = "pydantic_core-2.20.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:aa2f457b4af386254372dfa78a2eda2563680d982422641a85f271c859df1987"}, + {file = "pydantic_core-2.20.1-cp38-none-win32.whl", hash = "sha256:225b67a1f6d602de0ce7f6c1c3ae89a4aa25d3de9be857999e9124f15dab486a"}, + {file = "pydantic_core-2.20.1-cp38-none-win_amd64.whl", hash = "sha256:6b507132dcfc0dea440cce23ee2182c0ce7aba7054576efc65634f080dbe9434"}, + {file = "pydantic_core-2.20.1-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:b03f7941783b4c4a26051846dea594628b38f6940a2fdc0df00b221aed39314c"}, + {file = "pydantic_core-2.20.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:1eedfeb6089ed3fad42e81a67755846ad4dcc14d73698c120a82e4ccf0f1f9f6"}, + {file = "pydantic_core-2.20.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:635fee4e041ab9c479e31edda27fcf966ea9614fff1317e280d99eb3e5ab6fe2"}, + {file = "pydantic_core-2.20.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:77bf3ac639c1ff567ae3b47f8d4cc3dc20f9966a2a6dd2311dcc055d3d04fb8a"}, + {file = "pydantic_core-2.20.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7ed1b0132f24beeec5a78b67d9388656d03e6a7c837394f99257e2d55b461611"}, + {file = "pydantic_core-2.20.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c6514f963b023aeee506678a1cf821fe31159b925c4b76fe2afa94cc70b3222b"}, + {file = "pydantic_core-2.20.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:10d4204d8ca33146e761c79f83cc861df20e7ae9f6487ca290a97702daf56006"}, + {file = "pydantic_core-2.20.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2d036c7187b9422ae5b262badb87a20a49eb6c5238b2004e96d4da1231badef1"}, + {file = "pydantic_core-2.20.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:9ebfef07dbe1d93efb94b4700f2d278494e9162565a54f124c404a5656d7ff09"}, + {file = "pydantic_core-2.20.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:6b9d9bb600328a1ce523ab4f454859e9d439150abb0906c5a1983c146580ebab"}, + {file = "pydantic_core-2.20.1-cp39-none-win32.whl", hash = "sha256:784c1214cb6dd1e3b15dd8b91b9a53852aed16671cc3fbe4786f4f1db07089e2"}, + {file = "pydantic_core-2.20.1-cp39-none-win_amd64.whl", hash = "sha256:d2fe69c5434391727efa54b47a1e7986bb0186e72a41b203df8f5b0a19a4f669"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:a45f84b09ac9c3d35dfcf6a27fd0634d30d183205230a0ebe8373a0e8cfa0906"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:d02a72df14dfdbaf228424573a07af10637bd490f0901cee872c4f434a735b94"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d2b27e6af28f07e2f195552b37d7d66b150adbaa39a6d327766ffd695799780f"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:084659fac3c83fd674596612aeff6041a18402f1e1bc19ca39e417d554468482"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:242b8feb3c493ab78be289c034a1f659e8826e2233786e36f2893a950a719bb6"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:38cf1c40a921d05c5edc61a785c0ddb4bed67827069f535d794ce6bcded919fc"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:e0bbdd76ce9aa5d4209d65f2b27fc6e5ef1312ae6c5333c26db3f5ade53a1e99"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:254ec27fdb5b1ee60684f91683be95e5133c994cc54e86a0b0963afa25c8f8a6"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:407653af5617f0757261ae249d3fba09504d7a71ab36ac057c938572d1bc9331"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:c693e916709c2465b02ca0ad7b387c4f8423d1db7b4649c551f27a529181c5ad"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5b5ff4911aea936a47d9376fd3ab17e970cc543d1b68921886e7f64bd28308d1"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:177f55a886d74f1808763976ac4efd29b7ed15c69f4d838bbd74d9d09cf6fa86"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:964faa8a861d2664f0c7ab0c181af0bea66098b1919439815ca8803ef136fc4e"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:4dd484681c15e6b9a977c785a345d3e378d72678fd5f1f3c0509608da24f2ac0"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:f6d6cff3538391e8486a431569b77921adfcdef14eb18fbf19b7c0a5294d4e6a"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:a6d511cc297ff0883bc3708b465ff82d7560193169a8b93260f74ecb0a5e08a7"}, + {file = "pydantic_core-2.20.1.tar.gz", hash = "sha256:26ca695eeee5f9f1aeeb211ffc12f10bcb6f71e2989988fda61dabd65db878d4"}, ] [package.dependencies] @@ -431,8 +427,8 @@ files = [ astroid = ">=3.2.2,<=3.3.0-dev0" colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} dill = [ - {version = ">=0.2", markers = "python_version < \"3.11\""}, {version = ">=0.3.7", markers = "python_version >= \"3.12\""}, + {version = ">=0.2", markers = "python_version < \"3.11\""}, {version = ">=0.3.6", markers = "python_version >= \"3.11\" and python_version < \"3.12\""}, ] isort = ">=4.2.5,<5.13.0 || >5.13.0,<6" @@ -446,15 +442,33 @@ typing-extensions = {version = ">=3.10.0", markers = "python_version < \"3.10\"" spelling = ["pyenchant (>=3.2,<4.0)"] testutils = ["gitpython (>3)"] +[[package]] +name = "pyright" +version = "1.1.374" +description = "Command line wrapper for pyright" +optional = false +python-versions = ">=3.7" +files = [ + {file = "pyright-1.1.374-py3-none-any.whl", hash = "sha256:55752bcf7a3646d293cd76710a983b71e16f6128aab2d42468e6eb7e46c0a70d"}, + {file = "pyright-1.1.374.tar.gz", hash = "sha256:d01b2daf864ba5e0362e56b844984865970d7204158e61eb685e2dab7804cb82"}, +] + +[package.dependencies] +nodeenv = ">=1.6.0" + +[package.extras] +all = ["twine (>=3.4.1)"] +dev = ["twine (>=3.4.1)"] + [[package]] name = "python-dateutil" -version = "2.8.2" +version = "2.9.0.post0" description = "Extensions to the standard Python datetime module" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" files = [ - {file = "python-dateutil-2.8.2.tar.gz", hash = "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"}, - {file = "python_dateutil-2.8.2-py2.py3-none-any.whl", hash = "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9"}, + {file = "python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3"}, + {file = "python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427"}, ] [package.dependencies] @@ -544,4 +558,4 @@ typing-extensions = ">=3.7.4" [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "6bb5f77afb8fcbe7327ccd1fcc33f5c279c6a2582d43be73b69c2a94b836b85d" +content-hash = "7abd5a04c058be17d66b43322ac00b2ef97558ada53ffb184bd62b0bcb8e5059" diff --git a/pylintrc b/pylintrc index 5080038..224b0d5 100644 --- a/pylintrc +++ b/pylintrc @@ -440,6 +440,7 @@ disable=raw-checker-failed, broad-exception-raised, too-few-public-methods, too-many-branches, + chained-comparison, duplicate-code, trailing-newlines, too-many-public-methods, @@ -454,7 +455,7 @@ disable=raw-checker-failed, bare-except, broad-exception-caught, fixme, - relative-beyond-top-level + consider-using-from-import # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/pyproject.toml b/pyproject.toml index 4faa67e..883fa8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,9 @@ [tool.poetry] name = "panora-sdk" -version = "0.6.1" +version = "0.7.0" description = "Python Client SDK Generated by Speakeasy." authors = ["Speakeasy",] -readme = "README-PYPI.md" +readme = "README.md" repository = "https://github.com/panoratech/python-sdk.git" packages = [ { include = "panora_sdk", from = "src" } @@ -18,16 +18,16 @@ in-project = true [tool.poetry.dependencies] python = "^3.8" -eval-type-backport = "^0.2.0" httpx = "^0.27.0" jsonpath-python = "^1.0.6" -pydantic = "~2.9.0" -python-dateutil = "2.8.2" +pydantic = "~2.8.2" +python-dateutil = "^2.9.0.post0" typing-inspect = "^0.9.0" [tool.poetry.group.dev.dependencies] mypy = "==1.10.1" pylint = "==3.2.3" +pyright = "==1.1.374" types-python-dateutil = "^2.9.0.20240316" [build-system] diff --git a/scripts/compile.sh b/scripts/compile.sh index fafe635..aa49772 100755 --- a/scripts/compile.sh +++ b/scripts/compile.sh @@ -20,8 +20,6 @@ run_command() { } &> "$output_file" & } -poetry run python scripts/prepare-readme.py - # Create temporary files for outputs and statuses for cmd in compileall pylint mypy pyright; do output_files[$cmd]=$(mktemp) diff --git a/scripts/prepare-readme.py b/scripts/prepare-readme.py deleted file mode 100644 index 4849372..0000000 --- a/scripts/prepare-readme.py +++ /dev/null @@ -1,33 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -import re -import shutil - -try: - with open("README.md", "r") as rh: - readme_contents = rh.read() - GITHUB_URL = "https://github.com/panoratech/python-sdk.git" - GITHUB_URL = ( - GITHUB_URL[: -len(".git")] if GITHUB_URL.endswith(".git") else GITHUB_URL - ) - # links on PyPI should have absolute URLs - readme_contents = re.sub( - r"(\[[^\]]+\]\()((?!https?:)[^\)]+)(\))", - lambda m: m.group(1) - + GITHUB_URL - + "/blob/master/" - + m.group(2) - + m.group(3), - readme_contents, - ) - - with open("README-PYPI.md", "w") as wh: - wh.write(readme_contents) -except Exception as e: - try: - print("Failed to rewrite README.md to README-PYPI.md, copying original instead") - print(e) - shutil.copyfile("README.md", "README-PYPI.md") - except Exception as e: - print("Failed to copy README.md to README-PYPI.md") - print(e) diff --git a/scripts/publish.sh b/scripts/publish.sh index ab45b1f..1ee7194 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -2,6 +2,4 @@ export POETRY_PYPI_TOKEN_PYPI=${PYPI_TOKEN} -poetry run python scripts/prepare-readme.py - poetry publish --build --skip-existing diff --git a/src/panora_sdk/_hooks/sdkhooks.py b/src/panora_sdk/_hooks/sdkhooks.py index d050cb7..4a70615 100644 --- a/src/panora_sdk/_hooks/sdkhooks.py +++ b/src/panora_sdk/_hooks/sdkhooks.py @@ -1,20 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" import httpx -from .types import ( - SDKInitHook, - BeforeRequestContext, - BeforeRequestHook, - AfterSuccessContext, - AfterSuccessHook, - AfterErrorContext, - AfterErrorHook, - Hooks, -) +from .types import SDKInitHook, BeforeRequestContext, BeforeRequestHook, AfterSuccessContext, AfterSuccessHook, AfterErrorContext, AfterErrorHook, Hooks from typing import List, Optional, Tuple from panora_sdk.httpclient import HttpClient - class SDKHooks(Hooks): def __init__(self) -> None: self.sdk_init_hooks: List[SDKInitHook] = [] @@ -39,9 +29,7 @@ def sdk_init(self, base_url: str, client: HttpClient) -> Tuple[str, HttpClient]: base_url, client = hook.sdk_init(base_url, client) return base_url, client - def before_request( - self, hook_ctx: BeforeRequestContext, request: httpx.Request - ) -> httpx.Request: + def before_request(self, hook_ctx: BeforeRequestContext, request: httpx.Request) -> httpx.Request: for hook in self.before_request_hooks: out = hook.before_request(hook_ctx, request) if isinstance(out, Exception): @@ -50,9 +38,7 @@ def before_request( return request - def after_success( - self, hook_ctx: AfterSuccessContext, response: httpx.Response - ) -> httpx.Response: + def after_success(self, hook_ctx: AfterSuccessContext, response: httpx.Response) -> httpx.Response: for hook in self.after_success_hooks: out = hook.after_success(hook_ctx, response) if isinstance(out, Exception): @@ -60,12 +46,7 @@ def after_success( response = out return response - def after_error( - self, - hook_ctx: AfterErrorContext, - response: Optional[httpx.Response], - error: Optional[Exception], - ) -> Tuple[Optional[httpx.Response], Optional[Exception]]: + def after_error(self, hook_ctx: AfterErrorContext, response: Optional[httpx.Response], error: Optional[Exception]) -> Tuple[Optional[httpx.Response], Optional[Exception]]: for hook in self.after_error_hooks: result = hook.after_error(hook_ctx, response, error) if isinstance(result, Exception): diff --git a/src/panora_sdk/_hooks/types.py b/src/panora_sdk/_hooks/types.py index 48ed79b..6390613 100644 --- a/src/panora_sdk/_hooks/types.py +++ b/src/panora_sdk/_hooks/types.py @@ -1,5 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + from abc import ABC, abstractmethod import httpx from panora_sdk.httpclient import HttpClient @@ -11,12 +12,7 @@ class HookContext: oauth2_scopes: Optional[List[str]] = None security_source: Optional[Union[Any, Callable[[], Any]]] = None - def __init__( - self, - operation_id: str, - oauth2_scopes: Optional[List[str]], - security_source: Optional[Union[Any, Callable[[], Any]]], - ): + def __init__(self, operation_id: str, oauth2_scopes: Optional[List[str]], security_source: Optional[Union[Any, Callable[[], Any]]]): self.operation_id = operation_id self.oauth2_scopes = oauth2_scopes self.security_source = security_source @@ -24,23 +20,18 @@ def __init__( class BeforeRequestContext(HookContext): def __init__(self, hook_ctx: HookContext): - super().__init__( - hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source - ) + super().__init__(hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source) class AfterSuccessContext(HookContext): def __init__(self, hook_ctx: HookContext): - super().__init__( - hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source - ) + super().__init__(hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source) + class AfterErrorContext(HookContext): def __init__(self, hook_ctx: HookContext): - super().__init__( - hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source - ) + super().__init__(hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source) class SDKInitHook(ABC): @@ -51,28 +42,19 @@ def sdk_init(self, base_url: str, client: HttpClient) -> Tuple[str, HttpClient]: class BeforeRequestHook(ABC): @abstractmethod - def before_request( - self, hook_ctx: BeforeRequestContext, request: httpx.Request - ) -> Union[httpx.Request, Exception]: + def before_request(self, hook_ctx: BeforeRequestContext, request: httpx.Request) -> Union[httpx.Request, Exception]: pass class AfterSuccessHook(ABC): @abstractmethod - def after_success( - self, hook_ctx: AfterSuccessContext, response: httpx.Response - ) -> Union[httpx.Response, Exception]: + def after_success(self, hook_ctx: AfterSuccessContext, response: httpx.Response) -> Union[httpx.Response, Exception]: pass class AfterErrorHook(ABC): @abstractmethod - def after_error( - self, - hook_ctx: AfterErrorContext, - response: Optional[httpx.Response], - error: Optional[Exception], - ) -> Union[Tuple[Optional[httpx.Response], Optional[Exception]], Exception]: + def after_error(self, hook_ctx: AfterErrorContext, response: Optional[httpx.Response], error: Optional[Exception]) -> Union[Tuple[Optional[httpx.Response], Optional[Exception]], Exception]: pass diff --git a/src/panora_sdk/accounting.py b/src/panora_sdk/accounting.py index 901c87c..7dd1fad 100644 --- a/src/panora_sdk/accounting.py +++ b/src/panora_sdk/accounting.py @@ -23,7 +23,6 @@ from panora_sdk.transactions import Transactions from panora_sdk.vendorcredits import Vendorcredits - class Accounting(BaseSDK): accounts: PanoraAccounts addresses: Addresses @@ -45,12 +44,11 @@ class Accounting(BaseSDK): trackingcategories: Trackingcategories transactions: Transactions vendorcredits: Vendorcredits - def __init__(self, sdk_config: SDKConfiguration) -> None: BaseSDK.__init__(self, sdk_config) self.sdk_configuration = sdk_config self._init_sdks() - + def _init_sdks(self): self.accounts = PanoraAccounts(self.sdk_configuration) self.addresses = Addresses(self.sdk_configuration) @@ -72,3 +70,4 @@ def _init_sdks(self): self.trackingcategories = Trackingcategories(self.sdk_configuration) self.transactions = Transactions(self.sdk_configuration) self.vendorcredits = Vendorcredits(self.sdk_configuration) + diff --git a/src/panora_sdk/accounts.py b/src/panora_sdk/accounts.py index 595c243..dffed0d 100644 --- a/src/panora_sdk/accounts.py +++ b/src/panora_sdk/accounts.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Accounts(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingAccountResponse]: + ) -> models.ListTicketingAccountResponse: r"""List Accounts :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingAccountRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ticketing/accounts", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listTicketingAccount", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingAccount", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingAccountResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListTicketingAccountResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingAccountResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingAccountResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingAccountResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingAccountResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingAccountResponse]: + ) -> models.ListTicketingAccountResponse: r"""List Accounts :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingAccountRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/accounts", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listTicketingAccount", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingAccount", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingAccountResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListTicketingAccountResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingAccountResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingAccountResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingAccountResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingAccountResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingAccountRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ticketing/accounts/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveTicketingAccount", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingAccount", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingAccountOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingAccountOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingAccountRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/accounts/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveTicketingAccount", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingAccount", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingAccountOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingAccountOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/actions.py b/src/panora_sdk/actions.py index 130f13f..2b2e837 100644 --- a/src/panora_sdk/actions.py +++ b/src/panora_sdk/actions.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Actions(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationActionResponse]: + ) -> models.ListMarketingautomationActionResponse: r"""List Actions :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationActionRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/marketingautomation/actions", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listMarketingautomationAction", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationAction", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationActionResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListMarketingautomationActionResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationActionResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationActionResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationActionResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationActionResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationActionResponse]: + ) -> models.ListMarketingautomationActionResponse: r"""List Actions :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationActionRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/actions", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listMarketingautomationAction", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationAction", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationActionResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,36 +194,21 @@ def next_func() -> Optional[models.ListMarketingautomationActionResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationActionResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationActionResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationActionResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationActionResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_marketingautomation_action_input: Union[ - models.UnifiedMarketingautomationActionInput, - models.UnifiedMarketingautomationActionInputTypedDict, - ], + unified_marketingautomation_action_input: Union[models.UnifiedMarketingautomationActionInput, models.UnifiedMarketingautomationActionInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -241,7 +219,7 @@ def create( Create a action in any supported Marketingautomation software :param x_connection_token: The connection token - :param unified_marketingautomation_action_input: + :param unified_marketingautomation_action_input: :param remote_data: Set to true to include data from the original Marketingautomation software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -251,19 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateMarketingautomationActionRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_marketingautomation_action_input=utils.get_pydantic_model( - unified_marketingautomation_action_input, - models.UnifiedMarketingautomationActionInput, - ), + unified_marketingautomation_action_input=utils.get_pydantic_model(unified_marketingautomation_action_input, models.UnifiedMarketingautomationActionInput), ) - + req = self.build_request( method="POST", path="/marketingautomation/actions", @@ -276,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_marketingautomation_action_input, - False, - False, - "json", - models.UnifiedMarketingautomationActionInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_marketingautomation_action_input, False, False, "json", models.UnifiedMarketingautomationActionInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createMarketingautomationAction", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createMarketingautomationAction", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationActionOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationActionOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_marketingautomation_action_input: Union[ - models.UnifiedMarketingautomationActionInput, - models.UnifiedMarketingautomationActionInputTypedDict, - ], + unified_marketingautomation_action_input: Union[models.UnifiedMarketingautomationActionInput, models.UnifiedMarketingautomationActionInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -340,7 +300,7 @@ async def create_async( Create a action in any supported Marketingautomation software :param x_connection_token: The connection token - :param unified_marketingautomation_action_input: + :param unified_marketingautomation_action_input: :param remote_data: Set to true to include data from the original Marketingautomation software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -350,20 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateMarketingautomationActionRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_marketingautomation_action_input=utils.get_pydantic_model( - unified_marketingautomation_action_input, - models.UnifiedMarketingautomationActionInput, - ), + unified_marketingautomation_action_input=utils.get_pydantic_model(unified_marketingautomation_action_input, models.UnifiedMarketingautomationActionInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/marketingautomation/actions", base_url=base_url, @@ -375,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_marketingautomation_action_input, - False, - False, - "json", - models.UnifiedMarketingautomationActionInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_marketingautomation_action_input, False, False, "json", models.UnifiedMarketingautomationActionInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createMarketingautomationAction", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createMarketingautomationAction", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationActionOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationActionOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -446,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationActionRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/marketingautomation/actions/{id}", @@ -470,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationAction", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationAction", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationActionOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationActionOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -532,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationActionRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/actions/{id}", base_url=base_url, @@ -556,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationAction", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationAction", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationActionOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationActionOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/activities.py b/src/panora_sdk/activities.py index b362269..0866226 100644 --- a/src/panora_sdk/activities.py +++ b/src/panora_sdk/activities.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Activities(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsActivityResponse]: + ) -> models.ListAtsActivityResponse: r"""List Activities :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsActivityRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/activities", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsActivity", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsActivity", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsActivityResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsActivityResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsActivityResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsActivityResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsActivityResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsActivityResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsActivityResponse]: + ) -> models.ListAtsActivityResponse: r"""List Activities :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsActivityRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/activities", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsActivity", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsActivity", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsActivityResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,34 +194,21 @@ def next_func() -> Optional[models.ListAtsActivityResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsActivityResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsActivityResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsActivityResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsActivityResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_ats_activity_input: Union[ - models.UnifiedAtsActivityInput, models.UnifiedAtsActivityInputTypedDict - ], + unified_ats_activity_input: Union[models.UnifiedAtsActivityInput, models.UnifiedAtsActivityInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -238,7 +219,7 @@ def create( Create Activities in any supported Ats software :param x_connection_token: The connection token - :param unified_ats_activity_input: + :param unified_ats_activity_input: :param remote_data: Set to true to include data from the original Ats software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -248,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAtsActivityRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ats_activity_input=utils.get_pydantic_model( - unified_ats_activity_input, models.UnifiedAtsActivityInput - ), + unified_ats_activity_input=utils.get_pydantic_model(unified_ats_activity_input, models.UnifiedAtsActivityInput), ) - + req = self.build_request( method="POST", path="/ats/activities", @@ -272,59 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ats_activity_input, - False, - False, - "json", - models.UnifiedAtsActivityInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ats_activity_input, False, False, "json", models.UnifiedAtsActivityInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAtsActivity", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAtsActivity", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsActivityOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsActivityOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_ats_activity_input: Union[ - models.UnifiedAtsActivityInput, models.UnifiedAtsActivityInputTypedDict - ], + unified_ats_activity_input: Union[models.UnifiedAtsActivityInput, models.UnifiedAtsActivityInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -335,7 +300,7 @@ async def create_async( Create Activities in any supported Ats software :param x_connection_token: The connection token - :param unified_ats_activity_input: + :param unified_ats_activity_input: :param remote_data: Set to true to include data from the original Ats software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -345,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAtsActivityRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ats_activity_input=utils.get_pydantic_model( - unified_ats_activity_input, models.UnifiedAtsActivityInput - ), + unified_ats_activity_input=utils.get_pydantic_model(unified_ats_activity_input, models.UnifiedAtsActivityInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/ats/activities", base_url=base_url, @@ -369,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ats_activity_input, - False, - False, - "json", - models.UnifiedAtsActivityInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ats_activity_input, False, False, "json", models.UnifiedAtsActivityInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAtsActivity", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAtsActivity", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsActivityOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsActivityOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -440,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsActivityRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/activities/{id}", @@ -464,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsActivity", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsActivity", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsActivityOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsActivityOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -526,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsActivityRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/activities/{id}", base_url=base_url, @@ -550,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsActivity", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsActivity", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsActivityOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsActivityOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/addresses.py b/src/panora_sdk/addresses.py index 55f006a..4012a04 100644 --- a/src/panora_sdk/addresses.py +++ b/src/panora_sdk/addresses.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Addresses(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingAddressResponse]: + ) -> models.ListAccountingAddressResponse: r"""List Addresss :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingAddressRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/addresses", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingAddress", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingAddress", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingAddressResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAccountingAddressResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingAddressResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingAddressResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingAddressResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingAddressResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingAddressResponse]: + ) -> models.ListAccountingAddressResponse: r"""List Addresss :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingAddressRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/addresses", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingAddress", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingAddress", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingAddressResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAccountingAddressResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingAddressResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingAddressResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingAddressResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingAddressResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingAddressRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/addresses/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingAddress", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingAddress", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingAddressOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingAddressOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingAddressRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/addresses/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingAddress", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingAddress", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingAddressOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingAddressOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/applications.py b/src/panora_sdk/applications.py index 11f9bff..d9303c1 100644 --- a/src/panora_sdk/applications.py +++ b/src/panora_sdk/applications.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Applications(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsApplicationResponse]: + ) -> models.ListAtsApplicationResponse: r"""List Applications :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsApplicationRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/applications", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsApplication", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsApplication", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsApplicationResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsApplicationResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsApplicationResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsApplicationResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsApplicationResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsApplicationResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsApplicationResponse]: + ) -> models.ListAtsApplicationResponse: r"""List Applications :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsApplicationRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/applications", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsApplication", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsApplication", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsApplicationResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListAtsApplicationResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsApplicationResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsApplicationResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsApplicationResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsApplicationResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_ats_application_input: Union[ - models.UnifiedAtsApplicationInput, - models.UnifiedAtsApplicationInputTypedDict, - ], + unified_ats_application_input: Union[models.UnifiedAtsApplicationInput, models.UnifiedAtsApplicationInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create Applications in any supported Ats software :param x_connection_token: The connection token - :param unified_ats_application_input: + :param unified_ats_application_input: :param remote_data: Set to true to include data from the original Ats software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAtsApplicationRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ats_application_input=utils.get_pydantic_model( - unified_ats_application_input, models.UnifiedAtsApplicationInput - ), + unified_ats_application_input=utils.get_pydantic_model(unified_ats_application_input, models.UnifiedAtsApplicationInput), ) - + req = self.build_request( method="POST", path="/ats/applications", @@ -273,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ats_application_input, - False, - False, - "json", - models.UnifiedAtsApplicationInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ats_application_input, False, False, "json", models.UnifiedAtsApplicationInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAtsApplication", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAtsApplication", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsApplicationOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsApplicationOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_ats_application_input: Union[ - models.UnifiedAtsApplicationInput, - models.UnifiedAtsApplicationInputTypedDict, - ], + unified_ats_application_input: Union[models.UnifiedAtsApplicationInput, models.UnifiedAtsApplicationInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -337,7 +300,7 @@ async def create_async( Create Applications in any supported Ats software :param x_connection_token: The connection token - :param unified_ats_application_input: + :param unified_ats_application_input: :param remote_data: Set to true to include data from the original Ats software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -347,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAtsApplicationRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ats_application_input=utils.get_pydantic_model( - unified_ats_application_input, models.UnifiedAtsApplicationInput - ), + unified_ats_application_input=utils.get_pydantic_model(unified_ats_application_input, models.UnifiedAtsApplicationInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/ats/applications", base_url=base_url, @@ -371,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ats_application_input, - False, - False, - "json", - models.UnifiedAtsApplicationInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ats_application_input, False, False, "json", models.UnifiedAtsApplicationInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAtsApplication", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAtsApplication", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsApplicationOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsApplicationOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -442,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsApplicationRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/applications/{id}", @@ -466,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsApplication", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsApplication", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsApplicationOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsApplicationOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -528,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsApplicationRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/applications/{id}", base_url=base_url, @@ -552,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsApplication", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsApplication", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsApplicationOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsApplicationOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/ats.py b/src/panora_sdk/ats.py index f93bb76..62913f1 100644 --- a/src/panora_sdk/ats.py +++ b/src/panora_sdk/ats.py @@ -18,7 +18,6 @@ from panora_sdk.rejectreasons import Rejectreasons from panora_sdk.scorecards import Scorecards - class Ats(BaseSDK): activities: Activities applications: Applications @@ -35,12 +34,11 @@ class Ats(BaseSDK): tags: PanoraTags users: PanoraAtsUsers eeocs: Eeocs - def __init__(self, sdk_config: SDKConfiguration) -> None: BaseSDK.__init__(self, sdk_config) self.sdk_configuration = sdk_config self._init_sdks() - + def _init_sdks(self): self.activities = Activities(self.sdk_configuration) self.applications = Applications(self.sdk_configuration) @@ -57,3 +55,4 @@ def _init_sdks(self): self.tags = PanoraTags(self.sdk_configuration) self.users = PanoraAtsUsers(self.sdk_configuration) self.eeocs = Eeocs(self.sdk_configuration) + diff --git a/src/panora_sdk/attachments.py b/src/panora_sdk/attachments.py index de6bf38..77f6158 100644 --- a/src/panora_sdk/attachments.py +++ b/src/panora_sdk/attachments.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Attachments(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsAttachmentResponse]: + ) -> models.ListAtsAttachmentResponse: r"""List Attachments :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsAttachmentRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/attachments", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsAttachmentResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsAttachmentResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsAttachmentResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsAttachmentResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsAttachmentResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsAttachmentResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsAttachmentResponse]: + ) -> models.ListAtsAttachmentResponse: r"""List Attachments :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsAttachmentRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/attachments", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsAttachmentResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,34 +194,21 @@ def next_func() -> Optional[models.ListAtsAttachmentResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsAttachmentResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsAttachmentResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsAttachmentResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsAttachmentResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_ats_attachment_input: Union[ - models.UnifiedAtsAttachmentInput, models.UnifiedAtsAttachmentInputTypedDict - ], + unified_ats_attachment_input: Union[models.UnifiedAtsAttachmentInput, models.UnifiedAtsAttachmentInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -238,7 +219,7 @@ def create( Create Attachments in any supported ATS software :param x_connection_token: The connection token - :param unified_ats_attachment_input: + :param unified_ats_attachment_input: :param remote_data: Set to true to include data from the original Ats software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -248,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAtsAttachmentRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ats_attachment_input=utils.get_pydantic_model( - unified_ats_attachment_input, models.UnifiedAtsAttachmentInput - ), + unified_ats_attachment_input=utils.get_pydantic_model(unified_ats_attachment_input, models.UnifiedAtsAttachmentInput), ) - + req = self.build_request( method="POST", path="/ats/attachments", @@ -272,59 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ats_attachment_input, - False, - False, - "json", - models.UnifiedAtsAttachmentInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ats_attachment_input, False, False, "json", models.UnifiedAtsAttachmentInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAtsAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAtsAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsAttachmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsAttachmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_ats_attachment_input: Union[ - models.UnifiedAtsAttachmentInput, models.UnifiedAtsAttachmentInputTypedDict - ], + unified_ats_attachment_input: Union[models.UnifiedAtsAttachmentInput, models.UnifiedAtsAttachmentInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -335,7 +300,7 @@ async def create_async( Create Attachments in any supported ATS software :param x_connection_token: The connection token - :param unified_ats_attachment_input: + :param unified_ats_attachment_input: :param remote_data: Set to true to include data from the original Ats software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -345,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAtsAttachmentRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ats_attachment_input=utils.get_pydantic_model( - unified_ats_attachment_input, models.UnifiedAtsAttachmentInput - ), + unified_ats_attachment_input=utils.get_pydantic_model(unified_ats_attachment_input, models.UnifiedAtsAttachmentInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/ats/attachments", base_url=base_url, @@ -369,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ats_attachment_input, - False, - False, - "json", - models.UnifiedAtsAttachmentInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ats_attachment_input, False, False, "json", models.UnifiedAtsAttachmentInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAtsAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAtsAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsAttachmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsAttachmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -440,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsAttachmentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/attachments/{id}", @@ -464,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsAttachmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsAttachmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -526,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsAttachmentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/attachments/{id}", base_url=base_url, @@ -550,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsAttachmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsAttachmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/auth.py b/src/panora_sdk/auth.py index f04e995..f992786 100644 --- a/src/panora_sdk/auth.py +++ b/src/panora_sdk/auth.py @@ -4,14 +4,13 @@ from .sdkconfiguration import SDKConfiguration from panora_sdk.login import Login - class Auth(BaseSDK): login: Login - def __init__(self, sdk_config: SDKConfiguration) -> None: BaseSDK.__init__(self, sdk_config) self.sdk_configuration = sdk_config self._init_sdks() - + def _init_sdks(self): self.login = Login(self.sdk_configuration) + diff --git a/src/panora_sdk/automations.py b/src/panora_sdk/automations.py index 617175a..1fbc6f6 100644 --- a/src/panora_sdk/automations.py +++ b/src/panora_sdk/automations.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Automations(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationAutomationsResponse]: + ) -> models.ListMarketingautomationAutomationsResponse: r"""List Automations :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationAutomationsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/marketingautomation/automations", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listMarketingautomationAutomations", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationAutomations", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationAutomationsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListMarketingautomationAutomationsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationAutomationsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationAutomationsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationAutomationsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationAutomationsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationAutomationsResponse]: + ) -> models.ListMarketingautomationAutomationsResponse: r"""List Automations :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationAutomationsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/automations", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listMarketingautomationAutomations", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationAutomations", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationAutomationsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,36 +194,21 @@ def next_func() -> Optional[models.ListMarketingautomationAutomationsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationAutomationsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationAutomationsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationAutomationsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationAutomationsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_marketingautomation_automation_input: Union[ - models.UnifiedMarketingautomationAutomationInput, - models.UnifiedMarketingautomationAutomationInputTypedDict, - ], + unified_marketingautomation_automation_input: Union[models.UnifiedMarketingautomationAutomationInput, models.UnifiedMarketingautomationAutomationInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -241,7 +219,7 @@ def create( Create a automation in any supported Marketingautomation software :param x_connection_token: The connection token - :param unified_marketingautomation_automation_input: + :param unified_marketingautomation_automation_input: :param remote_data: Set to true to include data from the original Marketingautomation software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -251,19 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateMarketingautomationAutomationRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_marketingautomation_automation_input=utils.get_pydantic_model( - unified_marketingautomation_automation_input, - models.UnifiedMarketingautomationAutomationInput, - ), + unified_marketingautomation_automation_input=utils.get_pydantic_model(unified_marketingautomation_automation_input, models.UnifiedMarketingautomationAutomationInput), ) - + req = self.build_request( method="POST", path="/marketingautomation/automations", @@ -276,61 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_marketingautomation_automation_input, - False, - False, - "json", - models.UnifiedMarketingautomationAutomationInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_marketingautomation_automation_input, False, False, "json", models.UnifiedMarketingautomationAutomationInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createMarketingautomationAutomation", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createMarketingautomationAutomation", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, - Optional[models.UnifiedMarketingautomationAutomationOutput], - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationAutomationOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_marketingautomation_automation_input: Union[ - models.UnifiedMarketingautomationAutomationInput, - models.UnifiedMarketingautomationAutomationInputTypedDict, - ], + unified_marketingautomation_automation_input: Union[models.UnifiedMarketingautomationAutomationInput, models.UnifiedMarketingautomationAutomationInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -341,7 +300,7 @@ async def create_async( Create a automation in any supported Marketingautomation software :param x_connection_token: The connection token - :param unified_marketingautomation_automation_input: + :param unified_marketingautomation_automation_input: :param remote_data: Set to true to include data from the original Marketingautomation software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -351,20 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateMarketingautomationAutomationRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_marketingautomation_automation_input=utils.get_pydantic_model( - unified_marketingautomation_automation_input, - models.UnifiedMarketingautomationAutomationInput, - ), + unified_marketingautomation_automation_input=utils.get_pydantic_model(unified_marketingautomation_automation_input, models.UnifiedMarketingautomationAutomationInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/marketingautomation/automations", base_url=base_url, @@ -376,56 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_marketingautomation_automation_input, - False, - False, - "json", - models.UnifiedMarketingautomationAutomationInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_marketingautomation_automation_input, False, False, "json", models.UnifiedMarketingautomationAutomationInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createMarketingautomationAutomation", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createMarketingautomationAutomation", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, - Optional[models.UnifiedMarketingautomationAutomationOutput], - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationAutomationOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -448,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationAutomationRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/marketingautomation/automations/{id}", @@ -472,47 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationAutomation", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationAutomation", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, - Optional[models.UnifiedMarketingautomationAutomationOutput], - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationAutomationOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -535,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationAutomationRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/automations/{id}", base_url=base_url, @@ -559,40 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationAutomation", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationAutomation", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, - Optional[models.UnifiedMarketingautomationAutomationOutput], - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationAutomationOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/balancesheets.py b/src/panora_sdk/balancesheets.py index c7ee472..d13ca23 100644 --- a/src/panora_sdk/balancesheets.py +++ b/src/panora_sdk/balancesheets.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Balancesheets(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingBalanceSheetsResponse]: + ) -> models.ListAccountingBalanceSheetsResponse: r"""List BalanceSheets :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingBalanceSheetsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/balancesheets", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingBalanceSheets", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingBalanceSheets", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingBalanceSheetsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListAccountingBalanceSheetsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingBalanceSheetsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingBalanceSheetsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingBalanceSheetsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingBalanceSheetsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingBalanceSheetsResponse]: + ) -> models.ListAccountingBalanceSheetsResponse: r"""List BalanceSheets :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingBalanceSheetsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/balancesheets", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingBalanceSheets", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingBalanceSheets", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingBalanceSheetsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListAccountingBalanceSheetsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingBalanceSheetsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingBalanceSheetsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingBalanceSheetsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingBalanceSheetsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingBalanceSheetRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/balancesheets/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingBalanceSheet", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingBalanceSheet", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingBalancesheetOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingBalancesheetOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingBalanceSheetRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/balancesheets/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingBalanceSheet", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingBalanceSheet", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingBalancesheetOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingBalancesheetOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/bankinfos.py b/src/panora_sdk/bankinfos.py index 49508a9..6ef1b23 100644 --- a/src/panora_sdk/bankinfos.py +++ b/src/panora_sdk/bankinfos.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Bankinfos(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisBankInfoResponse]: + ) -> models.ListHrisBankInfoResponse: r"""List Bank Info :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisBankInfoRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/bankinfos", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisBankInfo", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisBankInfo", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisBankInfoResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisBankInfoResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisBankInfoResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisBankInfoResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisBankInfoResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisBankInfoResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisBankInfoResponse]: + ) -> models.ListHrisBankInfoResponse: r"""List Bank Info :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisBankInfoRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/bankinfos", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisBankInfo", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisBankInfo", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisBankInfoResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListHrisBankInfoResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisBankInfoResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisBankInfoResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisBankInfoResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisBankInfoResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisBankInfoRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/bankinfos/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisBankInfo", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisBankInfo", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisBankinfoOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisBankinfoOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisBankInfoRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/bankinfos/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisBankInfo", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisBankInfo", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisBankinfoOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisBankinfoOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/basesdk.py b/src/panora_sdk/basesdk.py index cfcb1eb..35ed6eb 100644 --- a/src/panora_sdk/basesdk.py +++ b/src/panora_sdk/basesdk.py @@ -2,16 +2,12 @@ from .sdkconfiguration import SDKConfiguration import httpx -from panora_sdk import models, utils -from panora_sdk._hooks import ( - AfterErrorContext, - AfterSuccessContext, - BeforeRequestContext, -) +from panora_sdk import models +from panora_sdk._hooks import AfterErrorContext, AfterSuccessContext, BeforeRequestContext +import panora_sdk.utils as utils from panora_sdk.utils import RetryConfig, SerializedRequestBody, get_body_content from typing import Callable, List, Optional, Tuple - class BaseSDK: sdk_configuration: SDKConfiguration @@ -29,46 +25,6 @@ def get_url(self, base_url, url_variables): return utils.template_url(base_url, url_variables) - def build_request_async( - self, - method, - path, - base_url, - url_variables, - request, - request_body_required, - request_has_path_params, - request_has_query_params, - user_agent_header, - accept_header_value, - _globals=None, - security=None, - timeout_ms: Optional[int] = None, - get_serialized_body: Optional[ - Callable[[], Optional[SerializedRequestBody]] - ] = None, - url_override: Optional[str] = None, - ) -> httpx.Request: - client = self.sdk_configuration.async_client - return self.build_request_with_client( - client, - method, - path, - base_url, - url_variables, - request, - request_body_required, - request_has_path_params, - request_has_query_params, - user_agent_header, - accept_header_value, - _globals, - security, - timeout_ms, - get_serialized_body, - url_override, - ) - def build_request( self, method, @@ -90,46 +46,7 @@ def build_request( url_override: Optional[str] = None, ) -> httpx.Request: client = self.sdk_configuration.client - return self.build_request_with_client( - client, - method, - path, - base_url, - url_variables, - request, - request_body_required, - request_has_path_params, - request_has_query_params, - user_agent_header, - accept_header_value, - _globals, - security, - timeout_ms, - get_serialized_body, - url_override, - ) - def build_request_with_client( - self, - client, - method, - path, - base_url, - url_variables, - request, - request_body_required, - request_has_path_params, - request_has_query_params, - user_agent_header, - accept_header_value, - _globals=None, - security=None, - timeout_ms: Optional[int] = None, - get_serialized_body: Optional[ - Callable[[], Optional[SerializedRequestBody]] - ] = None, - url_override: Optional[str] = None, - ) -> httpx.Request: query_params = {} url = url_override @@ -153,7 +70,7 @@ def build_request_with_client( if security is not None: if callable(security): security = security() - + if security is not None: security_headers, security_query_params = utils.get_security(security) headers = {**headers, **security_headers} @@ -213,7 +130,7 @@ def do(): req.method, req.url, req.headers, - get_body_content(req), + get_body_content(req) ) http_res = client.send(req, stream=stream) except Exception as e: @@ -233,7 +150,7 @@ def do(): http_res.status_code, http_res.url, http_res.headers, - "" if stream else http_res.text, + "" if stream else http_res.text ) if utils.match_status_codes(error_status_codes, http_res.status_code): @@ -273,7 +190,6 @@ async def do_request_async( ) -> httpx.Response: client = self.sdk_configuration.async_client logger = self.sdk_configuration.debug_logger - async def do(): http_res = None try: @@ -285,7 +201,7 @@ async def do(): req.method, req.url, req.headers, - get_body_content(req), + get_body_content(req) ) http_res = await client.send(req, stream=stream) except Exception as e: @@ -305,7 +221,7 @@ async def do(): http_res.status_code, http_res.url, http_res.headers, - "" if stream else http_res.text, + "" if stream else http_res.text ) if utils.match_status_codes(error_status_codes, http_res.status_code): diff --git a/src/panora_sdk/benefits.py b/src/panora_sdk/benefits.py index 1c09ec5..dcab906 100644 --- a/src/panora_sdk/benefits.py +++ b/src/panora_sdk/benefits.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Benefits(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisBenefitsResponse]: + ) -> models.ListHrisBenefitsResponse: r"""List Benefits :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisBenefitsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/benefits", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisBenefits", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisBenefits", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisBenefitsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisBenefitsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisBenefitsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisBenefitsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisBenefitsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisBenefitsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisBenefitsResponse]: + ) -> models.ListHrisBenefitsResponse: r"""List Benefits :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisBenefitsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/benefits", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisBenefits", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisBenefits", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisBenefitsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListHrisBenefitsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisBenefitsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisBenefitsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisBenefitsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisBenefitsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisBenefitRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/benefits/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisBenefit", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisBenefit", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisBenefitOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisBenefitOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisBenefitRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/benefits/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisBenefit", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisBenefit", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisBenefitOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisBenefitOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/campaigns.py b/src/panora_sdk/campaigns.py index a4a5dd8..38373c0 100644 --- a/src/panora_sdk/campaigns.py +++ b/src/panora_sdk/campaigns.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Campaigns(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationCampaignsResponse]: + ) -> models.ListMarketingautomationCampaignsResponse: r"""List Campaigns :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationCampaignsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/marketingautomation/campaigns", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listMarketingautomationCampaigns", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationCampaigns", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationCampaignsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListMarketingautomationCampaignsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationCampaignsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationCampaignsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationCampaignsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationCampaignsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationCampaignsResponse]: + ) -> models.ListMarketingautomationCampaignsResponse: r"""List Campaigns :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationCampaignsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/campaigns", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listMarketingautomationCampaigns", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationCampaigns", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationCampaignsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,36 +194,21 @@ def next_func() -> Optional[models.ListMarketingautomationCampaignsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationCampaignsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationCampaignsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationCampaignsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationCampaignsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_marketingautomation_campaign_input: Union[ - models.UnifiedMarketingautomationCampaignInput, - models.UnifiedMarketingautomationCampaignInputTypedDict, - ], + unified_marketingautomation_campaign_input: Union[models.UnifiedMarketingautomationCampaignInput, models.UnifiedMarketingautomationCampaignInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -241,7 +219,7 @@ def create( Create a campaign in any supported Marketingautomation software :param x_connection_token: The connection token - :param unified_marketingautomation_campaign_input: + :param unified_marketingautomation_campaign_input: :param remote_data: Set to true to include data from the original Marketingautomation software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -251,19 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateMarketingautomationCampaignRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_marketingautomation_campaign_input=utils.get_pydantic_model( - unified_marketingautomation_campaign_input, - models.UnifiedMarketingautomationCampaignInput, - ), + unified_marketingautomation_campaign_input=utils.get_pydantic_model(unified_marketingautomation_campaign_input, models.UnifiedMarketingautomationCampaignInput), ) - + req = self.build_request( method="POST", path="/marketingautomation/campaigns", @@ -276,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_marketingautomation_campaign_input, - False, - False, - "json", - models.UnifiedMarketingautomationCampaignInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_marketingautomation_campaign_input, False, False, "json", models.UnifiedMarketingautomationCampaignInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createMarketingautomationCampaign", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createMarketingautomationCampaign", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationCampaignOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationCampaignOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_marketingautomation_campaign_input: Union[ - models.UnifiedMarketingautomationCampaignInput, - models.UnifiedMarketingautomationCampaignInputTypedDict, - ], + unified_marketingautomation_campaign_input: Union[models.UnifiedMarketingautomationCampaignInput, models.UnifiedMarketingautomationCampaignInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -340,7 +300,7 @@ async def create_async( Create a campaign in any supported Marketingautomation software :param x_connection_token: The connection token - :param unified_marketingautomation_campaign_input: + :param unified_marketingautomation_campaign_input: :param remote_data: Set to true to include data from the original Marketingautomation software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -350,20 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateMarketingautomationCampaignRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_marketingautomation_campaign_input=utils.get_pydantic_model( - unified_marketingautomation_campaign_input, - models.UnifiedMarketingautomationCampaignInput, - ), + unified_marketingautomation_campaign_input=utils.get_pydantic_model(unified_marketingautomation_campaign_input, models.UnifiedMarketingautomationCampaignInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/marketingautomation/campaigns", base_url=base_url, @@ -375,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_marketingautomation_campaign_input, - False, - False, - "json", - models.UnifiedMarketingautomationCampaignInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_marketingautomation_campaign_input, False, False, "json", models.UnifiedMarketingautomationCampaignInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createMarketingautomationCampaign", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createMarketingautomationCampaign", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationCampaignOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationCampaignOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -446,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationCampaignRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/marketingautomation/campaigns/{id}", @@ -470,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationCampaign", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationCampaign", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationCampaignOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationCampaignOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -532,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationCampaignRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/campaigns/{id}", base_url=base_url, @@ -556,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationCampaign", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationCampaign", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationCampaignOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationCampaignOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/candidates.py b/src/panora_sdk/candidates.py index 9d3c2b3..f085c1d 100644 --- a/src/panora_sdk/candidates.py +++ b/src/panora_sdk/candidates.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Candidates(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsCandidateResponse]: + ) -> models.ListAtsCandidateResponse: r"""List Candidates :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsCandidateRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/candidates", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsCandidate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsCandidate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsCandidateResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsCandidateResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsCandidateResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsCandidateResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsCandidateResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsCandidateResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsCandidateResponse]: + ) -> models.ListAtsCandidateResponse: r"""List Candidates :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsCandidateRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/candidates", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsCandidate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsCandidate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsCandidateResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,34 +194,21 @@ def next_func() -> Optional[models.ListAtsCandidateResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsCandidateResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsCandidateResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsCandidateResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsCandidateResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_ats_candidate_input: Union[ - models.UnifiedAtsCandidateInput, models.UnifiedAtsCandidateInputTypedDict - ], + unified_ats_candidate_input: Union[models.UnifiedAtsCandidateInput, models.UnifiedAtsCandidateInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -238,7 +219,7 @@ def create( Create Candidates in any supported Ats software :param x_connection_token: The connection token - :param unified_ats_candidate_input: + :param unified_ats_candidate_input: :param remote_data: Set to true to include data from the original Ats software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -248,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAtsCandidateRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ats_candidate_input=utils.get_pydantic_model( - unified_ats_candidate_input, models.UnifiedAtsCandidateInput - ), + unified_ats_candidate_input=utils.get_pydantic_model(unified_ats_candidate_input, models.UnifiedAtsCandidateInput), ) - + req = self.build_request( method="POST", path="/ats/candidates", @@ -272,59 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ats_candidate_input, - False, - False, - "json", - models.UnifiedAtsCandidateInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ats_candidate_input, False, False, "json", models.UnifiedAtsCandidateInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAtsCandidate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAtsCandidate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsCandidateOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsCandidateOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_ats_candidate_input: Union[ - models.UnifiedAtsCandidateInput, models.UnifiedAtsCandidateInputTypedDict - ], + unified_ats_candidate_input: Union[models.UnifiedAtsCandidateInput, models.UnifiedAtsCandidateInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -335,7 +300,7 @@ async def create_async( Create Candidates in any supported Ats software :param x_connection_token: The connection token - :param unified_ats_candidate_input: + :param unified_ats_candidate_input: :param remote_data: Set to true to include data from the original Ats software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -345,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAtsCandidateRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ats_candidate_input=utils.get_pydantic_model( - unified_ats_candidate_input, models.UnifiedAtsCandidateInput - ), + unified_ats_candidate_input=utils.get_pydantic_model(unified_ats_candidate_input, models.UnifiedAtsCandidateInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/ats/candidates", base_url=base_url, @@ -369,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ats_candidate_input, - False, - False, - "json", - models.UnifiedAtsCandidateInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ats_candidate_input, False, False, "json", models.UnifiedAtsCandidateInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAtsCandidate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAtsCandidate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsCandidateOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsCandidateOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -440,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsCandidateRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/candidates/{id}", @@ -464,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsCandidate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsCandidate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsCandidateOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsCandidateOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -526,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsCandidateRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/candidates/{id}", base_url=base_url, @@ -550,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsCandidate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsCandidate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsCandidateOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsCandidateOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/cashflowstatements.py b/src/panora_sdk/cashflowstatements.py index 49e0950..a14bf0b 100644 --- a/src/panora_sdk/cashflowstatements.py +++ b/src/panora_sdk/cashflowstatements.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Cashflowstatements(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingCashflowStatementResponse]: + ) -> models.ListAccountingCashflowStatementResponse: r"""List CashflowStatements :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingCashflowStatementRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/cashflowstatements", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingCashflowStatement", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingCashflowStatement", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingCashflowStatementResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListAccountingCashflowStatementResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingCashflowStatementResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingCashflowStatementResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingCashflowStatementResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingCashflowStatementResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingCashflowStatementResponse]: + ) -> models.ListAccountingCashflowStatementResponse: r"""List CashflowStatements :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingCashflowStatementRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/cashflowstatements", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingCashflowStatement", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingCashflowStatement", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingCashflowStatementResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListAccountingCashflowStatementResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingCashflowStatementResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingCashflowStatementResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingCashflowStatementResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingCashflowStatementResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingCashflowStatementRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/cashflowstatements/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingCashflowStatement", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingCashflowStatement", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingCashflowstatementOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingCashflowstatementOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingCashflowStatementRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/cashflowstatements/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingCashflowStatement", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingCashflowStatement", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingCashflowstatementOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingCashflowstatementOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/collections.py b/src/panora_sdk/collections.py index 96d4ad1..d3174b8 100644 --- a/src/panora_sdk/collections.py +++ b/src/panora_sdk/collections.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Collections(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingCollectionsResponse]: + ) -> models.ListTicketingCollectionsResponse: r"""List Collections :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingCollectionsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ticketing/collections", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listTicketingCollections", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingCollections", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingCollectionsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListTicketingCollectionsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingCollectionsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingCollectionsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingCollectionsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingCollectionsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingCollectionsResponse]: + ) -> models.ListTicketingCollectionsResponse: r"""List Collections :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingCollectionsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/collections", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listTicketingCollections", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingCollections", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingCollectionsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListTicketingCollectionsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingCollectionsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingCollectionsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingCollectionsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingCollectionsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCollectionRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ticketing/collections/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveCollection", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCollection", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingCollectionOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingCollectionOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCollectionRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/collections/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveCollection", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCollection", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingCollectionOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingCollectionOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/comments.py b/src/panora_sdk/comments.py index b70936e..f2380e7 100644 --- a/src/panora_sdk/comments.py +++ b/src/panora_sdk/comments.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Comments(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingCommentsResponse]: + ) -> models.ListTicketingCommentsResponse: r"""List Comments :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingCommentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ticketing/comments", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listTicketingComments", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingComments", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingCommentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListTicketingCommentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingCommentsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingCommentsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingCommentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingCommentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingCommentsResponse]: + ) -> models.ListTicketingCommentsResponse: r"""List Comments :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingCommentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/comments", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listTicketingComments", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingComments", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingCommentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListTicketingCommentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingCommentsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingCommentsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingCommentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingCommentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_ticketing_comment_input: Union[ - models.UnifiedTicketingCommentInput, - models.UnifiedTicketingCommentInputTypedDict, - ], + unified_ticketing_comment_input: Union[models.UnifiedTicketingCommentInput, models.UnifiedTicketingCommentInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create Comments in any supported Ticketing software :param x_connection_token: The connection token - :param unified_ticketing_comment_input: + :param unified_ticketing_comment_input: :param remote_data: Set to true to include data from the original Ticketing software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateTicketingCommentRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ticketing_comment_input=utils.get_pydantic_model( - unified_ticketing_comment_input, models.UnifiedTicketingCommentInput - ), + unified_ticketing_comment_input=utils.get_pydantic_model(unified_ticketing_comment_input, models.UnifiedTicketingCommentInput), ) - + req = self.build_request( method="POST", path="/ticketing/comments", @@ -273,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ticketing_comment_input, - False, - False, - "json", - models.UnifiedTicketingCommentInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ticketing_comment_input, False, False, "json", models.UnifiedTicketingCommentInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createTicketingComment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createTicketingComment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingCommentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingCommentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_ticketing_comment_input: Union[ - models.UnifiedTicketingCommentInput, - models.UnifiedTicketingCommentInputTypedDict, - ], + unified_ticketing_comment_input: Union[models.UnifiedTicketingCommentInput, models.UnifiedTicketingCommentInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -337,7 +300,7 @@ async def create_async( Create Comments in any supported Ticketing software :param x_connection_token: The connection token - :param unified_ticketing_comment_input: + :param unified_ticketing_comment_input: :param remote_data: Set to true to include data from the original Ticketing software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -347,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateTicketingCommentRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ticketing_comment_input=utils.get_pydantic_model( - unified_ticketing_comment_input, models.UnifiedTicketingCommentInput - ), + unified_ticketing_comment_input=utils.get_pydantic_model(unified_ticketing_comment_input, models.UnifiedTicketingCommentInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/ticketing/comments", base_url=base_url, @@ -371,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ticketing_comment_input, - False, - False, - "json", - models.UnifiedTicketingCommentInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ticketing_comment_input, False, False, "json", models.UnifiedTicketingCommentInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createTicketingComment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createTicketingComment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingCommentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingCommentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -442,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingCommentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ticketing/comments/{id}", @@ -466,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveTicketingComment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingComment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.RetrieveTicketingCommentResponseBody] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.RetrieveTicketingCommentResponseBody]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -528,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingCommentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/comments/{id}", base_url=base_url, @@ -552,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveTicketingComment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingComment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.RetrieveTicketingCommentResponseBody] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.RetrieveTicketingCommentResponseBody]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/companies.py b/src/panora_sdk/companies.py index 0b02c0d..f2cb3dd 100644 --- a/src/panora_sdk/companies.py +++ b/src/panora_sdk/companies.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Companies(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmCompanyResponse]: + ) -> models.ListCrmCompanyResponse: r"""List Companies :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmCompanyRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/crm/companies", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listCrmCompany", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmCompany", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmCompanyResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListCrmCompanyResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmCompanyResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmCompanyResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmCompanyResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmCompanyResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmCompanyResponse]: + ) -> models.ListCrmCompanyResponse: r"""List Companies :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmCompanyRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/companies", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listCrmCompany", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmCompany", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmCompanyResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,34 +194,21 @@ def next_func() -> Optional[models.ListCrmCompanyResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmCompanyResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmCompanyResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmCompanyResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmCompanyResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_crm_company_input: Union[ - models.UnifiedCrmCompanyInput, models.UnifiedCrmCompanyInputTypedDict - ], + unified_crm_company_input: Union[models.UnifiedCrmCompanyInput, models.UnifiedCrmCompanyInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -238,7 +219,7 @@ def create( Create Companies in any supported CRM software :param x_connection_token: The connection token - :param unified_crm_company_input: + :param unified_crm_company_input: :param remote_data: Set to true to include data from the original CRM software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -248,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateCrmCompanyRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_crm_company_input=utils.get_pydantic_model( - unified_crm_company_input, models.UnifiedCrmCompanyInput - ), + unified_crm_company_input=utils.get_pydantic_model(unified_crm_company_input, models.UnifiedCrmCompanyInput), ) - + req = self.build_request( method="POST", path="/crm/companies", @@ -272,59 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_crm_company_input, - False, - False, - "json", - models.UnifiedCrmCompanyInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_crm_company_input, False, False, "json", models.UnifiedCrmCompanyInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createCrmCompany", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createCrmCompany", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmCompanyOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmCompanyOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_crm_company_input: Union[ - models.UnifiedCrmCompanyInput, models.UnifiedCrmCompanyInputTypedDict - ], + unified_crm_company_input: Union[models.UnifiedCrmCompanyInput, models.UnifiedCrmCompanyInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -335,7 +300,7 @@ async def create_async( Create Companies in any supported CRM software :param x_connection_token: The connection token - :param unified_crm_company_input: + :param unified_crm_company_input: :param remote_data: Set to true to include data from the original CRM software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -345,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateCrmCompanyRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_crm_company_input=utils.get_pydantic_model( - unified_crm_company_input, models.UnifiedCrmCompanyInput - ), + unified_crm_company_input=utils.get_pydantic_model(unified_crm_company_input, models.UnifiedCrmCompanyInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/crm/companies", base_url=base_url, @@ -369,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_crm_company_input, - False, - False, - "json", - models.UnifiedCrmCompanyInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_crm_company_input, False, False, "json", models.UnifiedCrmCompanyInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createCrmCompany", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createCrmCompany", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmCompanyOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmCompanyOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -440,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmCompanyRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/crm/companies/{id}", @@ -464,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveCrmCompany", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmCompany", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmCompanyOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmCompanyOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -526,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmCompanyRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/companies/{id}", base_url=base_url, @@ -550,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveCrmCompany", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmCompany", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmCompanyOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmCompanyOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/companyinfos.py b/src/panora_sdk/companyinfos.py index 1cb1949..996f44a 100644 --- a/src/panora_sdk/companyinfos.py +++ b/src/panora_sdk/companyinfos.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Companyinfos(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingCompanyInfosResponse]: + ) -> models.ListAccountingCompanyInfosResponse: r"""List CompanyInfos :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingCompanyInfosRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/companyinfos", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingCompanyInfos", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingCompanyInfos", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingCompanyInfosResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListAccountingCompanyInfosResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingCompanyInfosResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingCompanyInfosResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingCompanyInfosResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingCompanyInfosResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingCompanyInfosResponse]: + ) -> models.ListAccountingCompanyInfosResponse: r"""List CompanyInfos :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingCompanyInfosRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/companyinfos", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingCompanyInfos", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingCompanyInfos", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingCompanyInfosResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListAccountingCompanyInfosResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingCompanyInfosResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingCompanyInfosResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingCompanyInfosResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingCompanyInfosResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingCompanyInfoRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/companyinfos/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingCompanyInfo", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingCompanyInfo", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingCompanyinfoOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingCompanyinfoOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingCompanyInfoRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/companyinfos/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingCompanyInfo", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingCompanyInfo", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingCompanyinfoOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingCompanyinfoOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/connections.py b/src/panora_sdk/connections.py index b719da4..88795dd 100644 --- a/src/panora_sdk/connections.py +++ b/src/panora_sdk/connections.py @@ -1,16 +1,17 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import List, Optional - class Connections(BaseSDK): - def retrieve( - self, - *, + + + def list( + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -25,7 +26,7 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url req = self.build_request( @@ -42,46 +43,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveConnections", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listConnections", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[models.Connection]] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[List[models.Connection]]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) - async def retrieve_async( - self, - *, + + + async def list_async( + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -96,10 +91,10 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - req = self.build_request_async( + req = self.build_request( method="GET", path="/connections", base_url=base_url, @@ -113,39 +108,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveConnections", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listConnections", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[models.Connection]] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[List[models.Connection]]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/contacts.py b/src/panora_sdk/contacts.py index c89892f..13d80bc 100644 --- a/src/panora_sdk/contacts.py +++ b/src/panora_sdk/contacts.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Contacts(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingContactsResponse]: + ) -> models.ListTicketingContactsResponse: r"""List Contacts :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingContactsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ticketing/contacts", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listTicketingContacts", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingContacts", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingContactsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListTicketingContactsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingContactsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingContactsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingContactsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingContactsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingContactsResponse]: + ) -> models.ListTicketingContactsResponse: r"""List Contacts :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingContactsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/contacts", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listTicketingContacts", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingContacts", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingContactsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListTicketingContactsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingContactsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingContactsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingContactsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingContactsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingContactRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ticketing/contacts/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveTicketingContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.RetrieveTicketingContactResponseBody] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.RetrieveTicketingContactResponseBody]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingContactRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/contacts/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveTicketingContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.RetrieveTicketingContactResponseBody] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.RetrieveTicketingContactResponseBody]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/creditnotes.py b/src/panora_sdk/creditnotes.py index cea7e48..826a0c6 100644 --- a/src/panora_sdk/creditnotes.py +++ b/src/panora_sdk/creditnotes.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Creditnotes(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingCreditNoteResponse]: + ) -> models.ListAccountingCreditNoteResponse: r"""List CreditNotes :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingCreditNoteRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/creditnotes", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingCreditNote", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingCreditNote", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingCreditNoteResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAccountingCreditNoteResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingCreditNoteResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingCreditNoteResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingCreditNoteResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingCreditNoteResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingCreditNoteResponse]: + ) -> models.ListAccountingCreditNoteResponse: r"""List CreditNotes :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingCreditNoteRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/creditnotes", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingCreditNote", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingCreditNote", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingCreditNoteResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAccountingCreditNoteResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingCreditNoteResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingCreditNoteResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingCreditNoteResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingCreditNoteResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingCreditNoteRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/creditnotes/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingCreditNote", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingCreditNote", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingCreditnoteOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingCreditnoteOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingCreditNoteRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/creditnotes/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingCreditNote", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingCreditNote", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingCreditnoteOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingCreditnoteOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/crm.py b/src/panora_sdk/crm.py index 1617dfa..2751c6f 100644 --- a/src/panora_sdk/crm.py +++ b/src/panora_sdk/crm.py @@ -11,7 +11,6 @@ from panora_sdk.stages import Stages from panora_sdk.tasks import Tasks - class Crm(BaseSDK): companies: Companies contacts: PanoraContacts @@ -21,12 +20,11 @@ class Crm(BaseSDK): stages: Stages tasks: Tasks users: PanoraUsers - def __init__(self, sdk_config: SDKConfiguration) -> None: BaseSDK.__init__(self, sdk_config) self.sdk_configuration = sdk_config self._init_sdks() - + def _init_sdks(self): self.companies = Companies(self.sdk_configuration) self.contacts = PanoraContacts(self.sdk_configuration) @@ -36,3 +34,4 @@ def _init_sdks(self): self.stages = Stages(self.sdk_configuration) self.tasks = Tasks(self.sdk_configuration) self.users = PanoraUsers(self.sdk_configuration) + diff --git a/src/panora_sdk/customers.py b/src/panora_sdk/customers.py index 9dc9b84..5d937b7 100644 --- a/src/panora_sdk/customers.py +++ b/src/panora_sdk/customers.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Customers(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListEcommerceCustomersResponse]: + ) -> models.ListEcommerceCustomersResponse: r"""List Customers :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListEcommerceCustomersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ecommerce/customers", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listEcommerceCustomers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listEcommerceCustomers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListEcommerceCustomersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListEcommerceCustomersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListEcommerceCustomersResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListEcommerceCustomersResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListEcommerceCustomersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListEcommerceCustomersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListEcommerceCustomersResponse]: + ) -> models.ListEcommerceCustomersResponse: r"""List Customers :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListEcommerceCustomersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ecommerce/customers", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listEcommerceCustomers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listEcommerceCustomers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListEcommerceCustomersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListEcommerceCustomersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListEcommerceCustomersResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListEcommerceCustomersResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListEcommerceCustomersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListEcommerceCustomersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveEcommerceCustomerRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ecommerce/customers/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveEcommerceCustomer", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveEcommerceCustomer", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedEcommerceCustomerOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedEcommerceCustomerOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveEcommerceCustomerRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ecommerce/customers/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveEcommerceCustomer", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveEcommerceCustomer", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedEcommerceCustomerOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedEcommerceCustomerOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/deals.py b/src/panora_sdk/deals.py index 2f47e86..297c622 100644 --- a/src/panora_sdk/deals.py +++ b/src/panora_sdk/deals.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Deals(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmDealsResponse]: + ) -> models.ListCrmDealsResponse: r"""List Deals :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmDealsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/crm/deals", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listCrmDeals", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmDeals", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmDealsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListCrmDealsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmDealsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmDealsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmDealsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmDealsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmDealsResponse]: + ) -> models.ListCrmDealsResponse: r"""List Deals :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmDealsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/deals", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listCrmDeals", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmDeals", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmDealsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,34 +194,21 @@ def next_func() -> Optional[models.ListCrmDealsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmDealsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmDealsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmDealsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmDealsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_crm_deal_input: Union[ - models.UnifiedCrmDealInput, models.UnifiedCrmDealInputTypedDict - ], + unified_crm_deal_input: Union[models.UnifiedCrmDealInput, models.UnifiedCrmDealInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -238,7 +219,7 @@ def create( Create Deals in any supported Crm software :param x_connection_token: The connection token - :param unified_crm_deal_input: + :param unified_crm_deal_input: :param remote_data: Set to true to include data from the original Crm software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -248,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateCrmDealRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_crm_deal_input=utils.get_pydantic_model( - unified_crm_deal_input, models.UnifiedCrmDealInput - ), + unified_crm_deal_input=utils.get_pydantic_model(unified_crm_deal_input, models.UnifiedCrmDealInput), ) - + req = self.build_request( method="POST", path="/crm/deals", @@ -272,59 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_crm_deal_input, - False, - False, - "json", - models.UnifiedCrmDealInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_crm_deal_input, False, False, "json", models.UnifiedCrmDealInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createCrmDeal", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createCrmDeal", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmDealOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmDealOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_crm_deal_input: Union[ - models.UnifiedCrmDealInput, models.UnifiedCrmDealInputTypedDict - ], + unified_crm_deal_input: Union[models.UnifiedCrmDealInput, models.UnifiedCrmDealInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -335,7 +300,7 @@ async def create_async( Create Deals in any supported Crm software :param x_connection_token: The connection token - :param unified_crm_deal_input: + :param unified_crm_deal_input: :param remote_data: Set to true to include data from the original Crm software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -345,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateCrmDealRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_crm_deal_input=utils.get_pydantic_model( - unified_crm_deal_input, models.UnifiedCrmDealInput - ), + unified_crm_deal_input=utils.get_pydantic_model(unified_crm_deal_input, models.UnifiedCrmDealInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/crm/deals", base_url=base_url, @@ -369,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_crm_deal_input, - False, - False, - "json", - models.UnifiedCrmDealInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_crm_deal_input, False, False, "json", models.UnifiedCrmDealInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createCrmDeal", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createCrmDeal", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmDealOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmDealOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -440,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmDealRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/crm/deals/{id}", @@ -464,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveCrmDeal", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmDeal", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmDealOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmDealOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -526,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmDealRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/deals/{id}", base_url=base_url, @@ -550,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveCrmDeal", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmDeal", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmDealOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmDealOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/departments.py b/src/panora_sdk/departments.py index ecdc120..86eb4ac 100644 --- a/src/panora_sdk/departments.py +++ b/src/panora_sdk/departments.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Departments(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsDepartmentsResponse]: + ) -> models.ListAtsDepartmentsResponse: r"""List Departments :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsDepartmentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/departments", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsDepartments", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsDepartments", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsDepartmentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsDepartmentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsDepartmentsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsDepartmentsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsDepartmentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsDepartmentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsDepartmentsResponse]: + ) -> models.ListAtsDepartmentsResponse: r"""List Departments :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsDepartmentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/departments", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsDepartments", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsDepartments", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsDepartmentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAtsDepartmentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsDepartmentsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsDepartmentsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsDepartmentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsDepartmentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsDepartmentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/departments/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsDepartment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsDepartment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsDepartmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsDepartmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsDepartmentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/departments/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsDepartment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsDepartment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsDepartmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsDepartmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/dependents.py b/src/panora_sdk/dependents.py index 7450286..f55f766 100644 --- a/src/panora_sdk/dependents.py +++ b/src/panora_sdk/dependents.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Dependents(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisDependentsResponse]: + ) -> models.ListHrisDependentsResponse: r"""List Dependents :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisDependentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/dependents", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisDependents", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisDependents", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisDependentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisDependentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisDependentsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisDependentsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisDependentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisDependentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisDependentsResponse]: + ) -> models.ListHrisDependentsResponse: r"""List Dependents :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisDependentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/dependents", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisDependents", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisDependents", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisDependentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListHrisDependentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisDependentsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisDependentsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisDependentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisDependentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisDependentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/dependents/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisDependent", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisDependent", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisDependentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisDependentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisDependentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/dependents/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisDependent", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisDependent", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisDependentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisDependentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/ecommerce.py b/src/panora_sdk/ecommerce.py index c091ae7..3620d2e 100644 --- a/src/panora_sdk/ecommerce.py +++ b/src/panora_sdk/ecommerce.py @@ -7,20 +7,19 @@ from panora_sdk.orders import Orders from panora_sdk.products import Products - class Ecommerce(BaseSDK): products: Products orders: Orders customers: Customers fulfillments: Fulfillments - def __init__(self, sdk_config: SDKConfiguration) -> None: BaseSDK.__init__(self, sdk_config) self.sdk_configuration = sdk_config self._init_sdks() - + def _init_sdks(self): self.products = Products(self.sdk_configuration) self.orders = Orders(self.sdk_configuration) self.customers = Customers(self.sdk_configuration) self.fulfillments = Fulfillments(self.sdk_configuration) + diff --git a/src/panora_sdk/eeocs.py b/src/panora_sdk/eeocs.py index 3b8bc60..96bbe05 100644 --- a/src/panora_sdk/eeocs.py +++ b/src/panora_sdk/eeocs.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Eeocs(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsEeocsResponse]: + ) -> models.ListAtsEeocsResponse: r"""List Eeocss :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsEeocsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/eeocs", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsEeocs", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsEeocs", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsEeocsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsEeocsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsEeocsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsEeocsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsEeocsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsEeocsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsEeocsResponse]: + ) -> models.ListAtsEeocsResponse: r"""List Eeocss :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsEeocsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/eeocs", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsEeocs", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsEeocs", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsEeocsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAtsEeocsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsEeocsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsEeocsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsEeocsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsEeocsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsEeocsRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/eeocs/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsEeocs", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsEeocs", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsEeocsOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsEeocsOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsEeocsRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/eeocs/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsEeocs", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsEeocs", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsEeocsOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsEeocsOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/emails.py b/src/panora_sdk/emails.py index 0e7522f..87112e3 100644 --- a/src/panora_sdk/emails.py +++ b/src/panora_sdk/emails.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Emails(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationEmailsResponse]: + ) -> models.ListMarketingautomationEmailsResponse: r"""List Emails :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationEmailsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/marketingautomation/emails", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listMarketingautomationEmails", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationEmails", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationEmailsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListMarketingautomationEmailsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationEmailsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationEmailsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationEmailsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationEmailsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationEmailsResponse]: + ) -> models.ListMarketingautomationEmailsResponse: r"""List Emails :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationEmailsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/emails", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listMarketingautomationEmails", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationEmails", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationEmailsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListMarketingautomationEmailsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationEmailsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationEmailsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationEmailsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationEmailsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationEmailRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/marketingautomation/emails/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationEmail", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationEmail", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationEmailOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationEmailOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationEmailRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/emails/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationEmail", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationEmail", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationEmailOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationEmailOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/employeepayrollruns.py b/src/panora_sdk/employeepayrollruns.py index b34f06f..3360086 100644 --- a/src/panora_sdk/employeepayrollruns.py +++ b/src/panora_sdk/employeepayrollruns.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Employeepayrollruns(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisEmployeePayrollRunResponse]: + ) -> models.ListHrisEmployeePayrollRunResponse: r"""List Employee Payroll Runs :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisEmployeePayrollRunRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/employeepayrollruns", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisEmployeePayrollRun", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisEmployeePayrollRun", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisEmployeePayrollRunResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListHrisEmployeePayrollRunResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisEmployeePayrollRunResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListHrisEmployeePayrollRunResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisEmployeePayrollRunResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisEmployeePayrollRunResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisEmployeePayrollRunResponse]: + ) -> models.ListHrisEmployeePayrollRunResponse: r"""List Employee Payroll Runs :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisEmployeePayrollRunRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/employeepayrollruns", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisEmployeePayrollRun", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisEmployeePayrollRun", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisEmployeePayrollRunResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListHrisEmployeePayrollRunResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisEmployeePayrollRunResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListHrisEmployeePayrollRunResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisEmployeePayrollRunResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisEmployeePayrollRunResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisEmployeePayrollRunRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/employeepayrollruns/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisEmployeePayrollRun", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisEmployeePayrollRun", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisEmployeepayrollrunOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisEmployeepayrollrunOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisEmployeePayrollRunRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/employeepayrollruns/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisEmployeePayrollRun", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisEmployeePayrollRun", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisEmployeepayrollrunOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisEmployeepayrollrunOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/employees.py b/src/panora_sdk/employees.py index f240a55..8a0ad83 100644 --- a/src/panora_sdk/employees.py +++ b/src/panora_sdk/employees.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Employees(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisEmployeesResponse]: + ) -> models.ListHrisEmployeesResponse: r"""List Employees :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisEmployeesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/employees", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisEmployees", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisEmployees", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisEmployeesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisEmployeesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisEmployeesResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisEmployeesResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisEmployeesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisEmployeesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisEmployeesResponse]: + ) -> models.ListHrisEmployeesResponse: r"""List Employees :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisEmployeesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/employees", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisEmployees", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisEmployees", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisEmployeesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,34 +194,21 @@ def next_func() -> Optional[models.ListHrisEmployeesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisEmployeesResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisEmployeesResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisEmployeesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisEmployeesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_hris_employee_input: Union[ - models.UnifiedHrisEmployeeInput, models.UnifiedHrisEmployeeInputTypedDict - ], + unified_hris_employee_input: Union[models.UnifiedHrisEmployeeInput, models.UnifiedHrisEmployeeInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -238,7 +219,7 @@ def create( Create Employees in any supported Hris software :param x_connection_token: The connection token - :param unified_hris_employee_input: + :param unified_hris_employee_input: :param remote_data: Set to true to include data from the original Hris software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -248,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateHrisEmployeeRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_hris_employee_input=utils.get_pydantic_model( - unified_hris_employee_input, models.UnifiedHrisEmployeeInput - ), + unified_hris_employee_input=utils.get_pydantic_model(unified_hris_employee_input, models.UnifiedHrisEmployeeInput), ) - + req = self.build_request( method="POST", path="/hris/employees", @@ -272,59 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_hris_employee_input, - False, - False, - "json", - models.UnifiedHrisEmployeeInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_hris_employee_input, False, False, "json", models.UnifiedHrisEmployeeInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createHrisEmployee", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createHrisEmployee", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisEmployeeOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisEmployeeOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_hris_employee_input: Union[ - models.UnifiedHrisEmployeeInput, models.UnifiedHrisEmployeeInputTypedDict - ], + unified_hris_employee_input: Union[models.UnifiedHrisEmployeeInput, models.UnifiedHrisEmployeeInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -335,7 +300,7 @@ async def create_async( Create Employees in any supported Hris software :param x_connection_token: The connection token - :param unified_hris_employee_input: + :param unified_hris_employee_input: :param remote_data: Set to true to include data from the original Hris software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -345,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateHrisEmployeeRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_hris_employee_input=utils.get_pydantic_model( - unified_hris_employee_input, models.UnifiedHrisEmployeeInput - ), + unified_hris_employee_input=utils.get_pydantic_model(unified_hris_employee_input, models.UnifiedHrisEmployeeInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/hris/employees", base_url=base_url, @@ -369,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_hris_employee_input, - False, - False, - "json", - models.UnifiedHrisEmployeeInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_hris_employee_input, False, False, "json", models.UnifiedHrisEmployeeInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createHrisEmployee", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createHrisEmployee", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisEmployeeOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisEmployeeOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -440,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisEmployeeRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/employees/{id}", @@ -464,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisEmployee", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisEmployee", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisEmployeeOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisEmployeeOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -526,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisEmployeeRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/employees/{id}", base_url=base_url, @@ -550,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisEmployee", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisEmployee", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisEmployeeOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisEmployeeOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/employerbenefits.py b/src/panora_sdk/employerbenefits.py index 87dad35..2f2c28c 100644 --- a/src/panora_sdk/employerbenefits.py +++ b/src/panora_sdk/employerbenefits.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Employerbenefits(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisEmployerBenefitsResponse]: + ) -> models.ListHrisEmployerBenefitsResponse: r"""List Employer Benefits :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisEmployerBenefitsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/employerbenefits", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisEmployerBenefits", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisEmployerBenefits", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisEmployerBenefitsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisEmployerBenefitsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisEmployerBenefitsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisEmployerBenefitsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisEmployerBenefitsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisEmployerBenefitsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisEmployerBenefitsResponse]: + ) -> models.ListHrisEmployerBenefitsResponse: r"""List Employer Benefits :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisEmployerBenefitsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/employerbenefits", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisEmployerBenefits", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisEmployerBenefits", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisEmployerBenefitsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListHrisEmployerBenefitsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisEmployerBenefitsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisEmployerBenefitsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisEmployerBenefitsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisEmployerBenefitsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisEmployerBenefitRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/employerbenefits/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisEmployerBenefit", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisEmployerBenefit", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisEmployerbenefitOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisEmployerbenefitOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisEmployerBenefitRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/employerbenefits/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisEmployerBenefit", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisEmployerBenefit", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisEmployerbenefitOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisEmployerbenefitOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/employments.py b/src/panora_sdk/employments.py index 3c28b11..67cef34 100644 --- a/src/panora_sdk/employments.py +++ b/src/panora_sdk/employments.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Employments(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisEmploymentsResponse]: + ) -> models.ListHrisEmploymentsResponse: r"""List Employments :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisEmploymentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/employments", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisEmployments", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisEmployments", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisEmploymentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisEmploymentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisEmploymentsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisEmploymentsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisEmploymentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisEmploymentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisEmploymentsResponse]: + ) -> models.ListHrisEmploymentsResponse: r"""List Employments :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisEmploymentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/employments", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisEmployments", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisEmployments", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisEmploymentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListHrisEmploymentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisEmploymentsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisEmploymentsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisEmploymentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisEmploymentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisEmploymentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/employments/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisEmployment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisEmployment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisEmploymentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisEmploymentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisEmploymentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/employments/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisEmployment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisEmployment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisEmploymentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisEmploymentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/engagements.py b/src/panora_sdk/engagements.py index 4390188..d94e7ef 100644 --- a/src/panora_sdk/engagements.py +++ b/src/panora_sdk/engagements.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Engagements(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmEngagementsResponse]: + ) -> models.ListCrmEngagementsResponse: r"""List Engagements :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmEngagementsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/crm/engagements", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listCrmEngagements", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmEngagements", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmEngagementsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListCrmEngagementsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmEngagementsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmEngagementsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmEngagementsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmEngagementsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmEngagementsResponse]: + ) -> models.ListCrmEngagementsResponse: r"""List Engagements :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmEngagementsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/engagements", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listCrmEngagements", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmEngagements", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmEngagementsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,34 +194,21 @@ def next_func() -> Optional[models.ListCrmEngagementsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmEngagementsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmEngagementsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmEngagementsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmEngagementsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_crm_engagement_input: Union[ - models.UnifiedCrmEngagementInput, models.UnifiedCrmEngagementInputTypedDict - ], + unified_crm_engagement_input: Union[models.UnifiedCrmEngagementInput, models.UnifiedCrmEngagementInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -238,7 +219,7 @@ def create( Create Engagements in any supported Crm software :param x_connection_token: The connection token - :param unified_crm_engagement_input: + :param unified_crm_engagement_input: :param remote_data: Set to true to include data from the original Crm software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -248,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateCrmEngagementRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_crm_engagement_input=utils.get_pydantic_model( - unified_crm_engagement_input, models.UnifiedCrmEngagementInput - ), + unified_crm_engagement_input=utils.get_pydantic_model(unified_crm_engagement_input, models.UnifiedCrmEngagementInput), ) - + req = self.build_request( method="POST", path="/crm/engagements", @@ -272,59 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_crm_engagement_input, - False, - False, - "json", - models.UnifiedCrmEngagementInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_crm_engagement_input, False, False, "json", models.UnifiedCrmEngagementInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createCrmEngagement", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createCrmEngagement", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmEngagementOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmEngagementOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_crm_engagement_input: Union[ - models.UnifiedCrmEngagementInput, models.UnifiedCrmEngagementInputTypedDict - ], + unified_crm_engagement_input: Union[models.UnifiedCrmEngagementInput, models.UnifiedCrmEngagementInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -335,7 +300,7 @@ async def create_async( Create Engagements in any supported Crm software :param x_connection_token: The connection token - :param unified_crm_engagement_input: + :param unified_crm_engagement_input: :param remote_data: Set to true to include data from the original Crm software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -345,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateCrmEngagementRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_crm_engagement_input=utils.get_pydantic_model( - unified_crm_engagement_input, models.UnifiedCrmEngagementInput - ), + unified_crm_engagement_input=utils.get_pydantic_model(unified_crm_engagement_input, models.UnifiedCrmEngagementInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/crm/engagements", base_url=base_url, @@ -369,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_crm_engagement_input, - False, - False, - "json", - models.UnifiedCrmEngagementInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_crm_engagement_input, False, False, "json", models.UnifiedCrmEngagementInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createCrmEngagement", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createCrmEngagement", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmEngagementOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmEngagementOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -440,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmEngagementRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/crm/engagements/{id}", @@ -464,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveCrmEngagement", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmEngagement", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmEngagementOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmEngagementOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -526,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmEngagementRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/engagements/{id}", base_url=base_url, @@ -550,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveCrmEngagement", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmEngagement", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmEngagementOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmEngagementOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/events.py b/src/panora_sdk/events.py index aa17901..92135ec 100644 --- a/src/panora_sdk/events.py +++ b/src/panora_sdk/events.py @@ -1,16 +1,17 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import List, Optional - class Events(BaseSDK): + + def get_panora_core_events( - self, - *, + self, *, page: Optional[float] = 1, limit: Optional[float] = 10, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -19,8 +20,8 @@ def get_panora_core_events( ) -> Optional[List[models.EventResponse]]: r"""List Events - :param page: - :param limit: + :param page: + :param limit: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -29,15 +30,15 @@ def get_panora_core_events( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.GetPanoraCoreEventsRequest( page=page, limit=limit, ) - + req = self.build_request( method="GET", path="/events", @@ -52,46 +53,40 @@ def get_panora_core_events( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="getPanoraCoreEvents", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getPanoraCoreEvents", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[models.EventResponse]] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[List[models.EventResponse]]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def get_panora_core_events_async( - self, - *, + self, *, page: Optional[float] = 1, limit: Optional[float] = 10, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -100,8 +95,8 @@ async def get_panora_core_events_async( ) -> Optional[List[models.EventResponse]]: r"""List Events - :param page: - :param limit: + :param page: + :param limit: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -110,16 +105,16 @@ async def get_panora_core_events_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.GetPanoraCoreEventsRequest( page=page, limit=limit, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/events", base_url=base_url, @@ -133,39 +128,34 @@ async def get_panora_core_events_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="getPanoraCoreEvents", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getPanoraCoreEvents", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[models.EventResponse]] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[List[models.EventResponse]]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/expenses.py b/src/panora_sdk/expenses.py index e2e23a9..6f827cd 100644 --- a/src/panora_sdk/expenses.py +++ b/src/panora_sdk/expenses.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Expenses(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingExpenseResponse]: + ) -> models.ListAccountingExpenseResponse: r"""List Expenses :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingExpenseRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/expenses", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingExpense", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingExpense", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingExpenseResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAccountingExpenseResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingExpenseResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingExpenseResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingExpenseResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingExpenseResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingExpenseResponse]: + ) -> models.ListAccountingExpenseResponse: r"""List Expenses :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingExpenseRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/expenses", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingExpense", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingExpense", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingExpenseResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListAccountingExpenseResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingExpenseResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingExpenseResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingExpenseResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingExpenseResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_accounting_expense_input: Union[ - models.UnifiedAccountingExpenseInput, - models.UnifiedAccountingExpenseInputTypedDict, - ], + unified_accounting_expense_input: Union[models.UnifiedAccountingExpenseInput, models.UnifiedAccountingExpenseInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create Expenses in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_expense_input: + :param unified_accounting_expense_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingExpenseRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_expense_input=utils.get_pydantic_model( - unified_accounting_expense_input, models.UnifiedAccountingExpenseInput - ), + unified_accounting_expense_input=utils.get_pydantic_model(unified_accounting_expense_input, models.UnifiedAccountingExpenseInput), ) - + req = self.build_request( method="POST", path="/accounting/expenses", @@ -273,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_expense_input, - False, - False, - "json", - models.UnifiedAccountingExpenseInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_expense_input, False, False, "json", models.UnifiedAccountingExpenseInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAccountingExpense", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingExpense", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingExpenseOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingExpenseOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_accounting_expense_input: Union[ - models.UnifiedAccountingExpenseInput, - models.UnifiedAccountingExpenseInputTypedDict, - ], + unified_accounting_expense_input: Union[models.UnifiedAccountingExpenseInput, models.UnifiedAccountingExpenseInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -337,7 +300,7 @@ async def create_async( Create Expenses in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_expense_input: + :param unified_accounting_expense_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -347,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingExpenseRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_expense_input=utils.get_pydantic_model( - unified_accounting_expense_input, models.UnifiedAccountingExpenseInput - ), + unified_accounting_expense_input=utils.get_pydantic_model(unified_accounting_expense_input, models.UnifiedAccountingExpenseInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/accounting/expenses", base_url=base_url, @@ -371,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_expense_input, - False, - False, - "json", - models.UnifiedAccountingExpenseInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_expense_input, False, False, "json", models.UnifiedAccountingExpenseInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAccountingExpense", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingExpense", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingExpenseOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingExpenseOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -442,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingExpenseRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/expenses/{id}", @@ -466,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingExpense", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingExpense", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingExpenseOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingExpenseOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -528,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingExpenseRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/expenses/{id}", base_url=base_url, @@ -552,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingExpense", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingExpense", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingExpenseOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingExpenseOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/fieldmappings.py b/src/panora_sdk/fieldmappings.py index f578cc1..f117802 100644 --- a/src/panora_sdk/fieldmappings.py +++ b/src/panora_sdk/fieldmappings.py @@ -1,16 +1,17 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import BaseModel, OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Optional, Union, cast - class FieldMappings(BaseSDK): + + def get_field_mapping_values( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -25,7 +26,7 @@ def get_field_mapping_values( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url req = self.build_request( @@ -42,44 +43,40 @@ def get_field_mapping_values( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="getFieldMappingValues", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getFieldMappingValues", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def get_field_mapping_values_async( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -94,10 +91,10 @@ async def get_field_mapping_values_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - req = self.build_request_async( + req = self.build_request( method="GET", path="/field_mappings/values", base_url=base_url, @@ -111,44 +108,40 @@ async def get_field_mapping_values_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="getFieldMappingValues", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getFieldMappingValues", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def get_field_mappings_entities( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -163,7 +156,7 @@ def get_field_mappings_entities( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url req = self.build_request( @@ -180,44 +173,40 @@ def get_field_mappings_entities( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="getFieldMappingsEntities", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getFieldMappingsEntities", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def get_field_mappings_entities_async( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -232,10 +221,10 @@ async def get_field_mappings_entities_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - req = self.build_request_async( + req = self.build_request( method="GET", path="/field_mappings/entities", base_url=base_url, @@ -249,44 +238,40 @@ async def get_field_mappings_entities_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="getFieldMappingsEntities", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getFieldMappingsEntities", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def get_field_mappings( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -301,7 +286,7 @@ def get_field_mappings( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url req = self.build_request( @@ -318,44 +303,40 @@ def get_field_mappings( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="getFieldMappings", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getFieldMappings", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def get_field_mappings_async( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -370,10 +351,10 @@ async def get_field_mappings_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - req = self.build_request_async( + req = self.build_request( method="GET", path="/field_mappings/attributes", base_url=base_url, @@ -387,47 +368,41 @@ async def get_field_mappings_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="getFieldMappings", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getFieldMappings", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def definitions( - self, - *, - request: Union[ - models.DefineTargetFieldDto, models.DefineTargetFieldDtoTypedDict - ], + self, *, + request: Union[models.DefineTargetFieldDto, models.DefineTargetFieldDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -443,14 +418,14 @@ def definitions( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.DefineTargetFieldDto) request = cast(models.DefineTargetFieldDto, request) - + req = self.build_request( method="POST", path="/field_mappings/define", @@ -463,54 +438,44 @@ def definitions( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.DefineTargetFieldDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.DefineTargetFieldDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="definitions", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="definitions", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.CustomFieldResponse] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.CustomFieldResponse]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def definitions_async( - self, - *, - request: Union[ - models.DefineTargetFieldDto, models.DefineTargetFieldDtoTypedDict - ], + self, *, + request: Union[models.DefineTargetFieldDto, models.DefineTargetFieldDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -526,15 +491,15 @@ async def definitions_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.DefineTargetFieldDto) request = cast(models.DefineTargetFieldDto, request) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/field_mappings/define", base_url=base_url, @@ -546,54 +511,44 @@ async def definitions_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.DefineTargetFieldDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.DefineTargetFieldDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="definitions", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="definitions", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.CustomFieldResponse] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.CustomFieldResponse]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def define_custom_field( - self, - *, - request: Union[ - models.CustomFieldCreateDto, models.CustomFieldCreateDtoTypedDict - ], + self, *, + request: Union[models.CustomFieldCreateDto, models.CustomFieldCreateDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -609,14 +564,14 @@ def define_custom_field( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.CustomFieldCreateDto) request = cast(models.CustomFieldCreateDto, request) - + req = self.build_request( method="POST", path="/field_mappings", @@ -629,54 +584,44 @@ def define_custom_field( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CustomFieldCreateDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.CustomFieldCreateDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="defineCustomField", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="defineCustomField", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.CustomFieldResponse] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.CustomFieldResponse]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def define_custom_field_async( - self, - *, - request: Union[ - models.CustomFieldCreateDto, models.CustomFieldCreateDtoTypedDict - ], + self, *, + request: Union[models.CustomFieldCreateDto, models.CustomFieldCreateDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -692,15 +637,15 @@ async def define_custom_field_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.CustomFieldCreateDto) request = cast(models.CustomFieldCreateDto, request) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/field_mappings", base_url=base_url, @@ -712,54 +657,44 @@ async def define_custom_field_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CustomFieldCreateDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.CustomFieldCreateDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="defineCustomField", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="defineCustomField", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.CustomFieldResponse] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.CustomFieldResponse]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def map( - self, - *, - request: Union[ - models.MapFieldToProviderDto, models.MapFieldToProviderDtoTypedDict - ], + self, *, + request: Union[models.MapFieldToProviderDto, models.MapFieldToProviderDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -775,14 +710,14 @@ def map( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.MapFieldToProviderDto) request = cast(models.MapFieldToProviderDto, request) - + req = self.build_request( method="POST", path="/field_mappings/map", @@ -795,54 +730,44 @@ def map( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.MapFieldToProviderDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.MapFieldToProviderDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="map", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="map", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.CustomFieldResponse] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.CustomFieldResponse]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def map_async( - self, - *, - request: Union[ - models.MapFieldToProviderDto, models.MapFieldToProviderDtoTypedDict - ], + self, *, + request: Union[models.MapFieldToProviderDto, models.MapFieldToProviderDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -858,15 +783,15 @@ async def map_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.MapFieldToProviderDto) request = cast(models.MapFieldToProviderDto, request) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/field_mappings/map", base_url=base_url, @@ -878,44 +803,37 @@ async def map_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.MapFieldToProviderDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.MapFieldToProviderDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="map", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="map", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.CustomFieldResponse] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.CustomFieldResponse]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/files.py b/src/panora_sdk/files.py index fc864ce..7e5aa51 100644 --- a/src/panora_sdk/files.py +++ b/src/panora_sdk/files.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Files(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListFilestorageFileResponse]: + ) -> models.ListFilestorageFileResponse: r"""List Files :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListFilestorageFileRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/filestorage/files", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listFilestorageFile", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listFilestorageFile", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListFilestorageFileResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListFilestorageFileResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListFilestorageFileResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListFilestorageFileResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListFilestorageFileResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListFilestorageFileResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListFilestorageFileResponse]: + ) -> models.ListFilestorageFileResponse: r"""List Files :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListFilestorageFileRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/filestorage/files", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listFilestorageFile", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listFilestorageFile", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListFilestorageFileResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListFilestorageFileResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListFilestorageFileResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListFilestorageFileResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListFilestorageFileResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListFilestorageFileResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_filestorage_file_input: Union[ - models.UnifiedFilestorageFileInput, - models.UnifiedFilestorageFileInputTypedDict, - ], + unified_filestorage_file_input: Union[models.UnifiedFilestorageFileInput, models.UnifiedFilestorageFileInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create Files in any supported Filestorage software :param x_connection_token: The connection token - :param unified_filestorage_file_input: + :param unified_filestorage_file_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateFilestorageFileRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_filestorage_file_input=utils.get_pydantic_model( - unified_filestorage_file_input, models.UnifiedFilestorageFileInput - ), + unified_filestorage_file_input=utils.get_pydantic_model(unified_filestorage_file_input, models.UnifiedFilestorageFileInput), ) - + req = self.build_request( method="POST", path="/filestorage/files", @@ -273,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_filestorage_file_input, - False, - False, - "json", - models.UnifiedFilestorageFileInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_filestorage_file_input, False, False, "json", models.UnifiedFilestorageFileInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createFilestorageFile", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createFilestorageFile", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedFilestorageFileOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedFilestorageFileOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_filestorage_file_input: Union[ - models.UnifiedFilestorageFileInput, - models.UnifiedFilestorageFileInputTypedDict, - ], + unified_filestorage_file_input: Union[models.UnifiedFilestorageFileInput, models.UnifiedFilestorageFileInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -337,7 +300,7 @@ async def create_async( Create Files in any supported Filestorage software :param x_connection_token: The connection token - :param unified_filestorage_file_input: + :param unified_filestorage_file_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -347,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateFilestorageFileRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_filestorage_file_input=utils.get_pydantic_model( - unified_filestorage_file_input, models.UnifiedFilestorageFileInput - ), + unified_filestorage_file_input=utils.get_pydantic_model(unified_filestorage_file_input, models.UnifiedFilestorageFileInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/filestorage/files", base_url=base_url, @@ -371,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_filestorage_file_input, - False, - False, - "json", - models.UnifiedFilestorageFileInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_filestorage_file_input, False, False, "json", models.UnifiedFilestorageFileInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createFilestorageFile", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createFilestorageFile", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedFilestorageFileOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedFilestorageFileOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -442,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveFilestorageFileRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/filestorage/files/{id}", @@ -466,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveFilestorageFile", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveFilestorageFile", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedFilestorageFileOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedFilestorageFileOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -528,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveFilestorageFileRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/filestorage/files/{id}", base_url=base_url, @@ -552,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveFilestorageFile", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveFilestorageFile", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedFilestorageFileOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedFilestorageFileOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/filestorage.py b/src/panora_sdk/filestorage.py index b80545c..9398528 100644 --- a/src/panora_sdk/filestorage.py +++ b/src/panora_sdk/filestorage.py @@ -7,20 +7,19 @@ from panora_sdk.panora_filestorage_users import PanoraFilestorageUsers from panora_sdk.panora_groups import PanoraGroups - class Filestorage(BaseSDK): files: Files folders: Folders groups: PanoraGroups users: PanoraFilestorageUsers - def __init__(self, sdk_config: SDKConfiguration) -> None: BaseSDK.__init__(self, sdk_config) self.sdk_configuration = sdk_config self._init_sdks() - + def _init_sdks(self): self.files = Files(self.sdk_configuration) self.folders = Folders(self.sdk_configuration) self.groups = PanoraGroups(self.sdk_configuration) self.users = PanoraFilestorageUsers(self.sdk_configuration) + diff --git a/src/panora_sdk/folders.py b/src/panora_sdk/folders.py index 7ad18b7..4263ba2 100644 --- a/src/panora_sdk/folders.py +++ b/src/panora_sdk/folders.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Folders(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListFilestorageFolderResponse]: + ) -> models.ListFilestorageFolderResponse: r"""List Folders :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListFilestorageFolderRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/filestorage/folders", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listFilestorageFolder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listFilestorageFolder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListFilestorageFolderResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListFilestorageFolderResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListFilestorageFolderResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListFilestorageFolderResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListFilestorageFolderResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListFilestorageFolderResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListFilestorageFolderResponse]: + ) -> models.ListFilestorageFolderResponse: r"""List Folders :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListFilestorageFolderRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/filestorage/folders", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listFilestorageFolder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listFilestorageFolder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListFilestorageFolderResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListFilestorageFolderResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListFilestorageFolderResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListFilestorageFolderResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListFilestorageFolderResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListFilestorageFolderResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_filestorage_folder_input: Union[ - models.UnifiedFilestorageFolderInput, - models.UnifiedFilestorageFolderInputTypedDict, - ], + unified_filestorage_folder_input: Union[models.UnifiedFilestorageFolderInput, models.UnifiedFilestorageFolderInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create Folders in any supported Filestorage software :param x_connection_token: The connection token - :param unified_filestorage_folder_input: + :param unified_filestorage_folder_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateFilestorageFolderRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_filestorage_folder_input=utils.get_pydantic_model( - unified_filestorage_folder_input, models.UnifiedFilestorageFolderInput - ), + unified_filestorage_folder_input=utils.get_pydantic_model(unified_filestorage_folder_input, models.UnifiedFilestorageFolderInput), ) - + req = self.build_request( method="POST", path="/filestorage/folders", @@ -273,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_filestorage_folder_input, - False, - False, - "json", - models.UnifiedFilestorageFolderInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_filestorage_folder_input, False, False, "json", models.UnifiedFilestorageFolderInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createFilestorageFolder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createFilestorageFolder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedFilestorageFolderOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedFilestorageFolderOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_filestorage_folder_input: Union[ - models.UnifiedFilestorageFolderInput, - models.UnifiedFilestorageFolderInputTypedDict, - ], + unified_filestorage_folder_input: Union[models.UnifiedFilestorageFolderInput, models.UnifiedFilestorageFolderInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -337,7 +300,7 @@ async def create_async( Create Folders in any supported Filestorage software :param x_connection_token: The connection token - :param unified_filestorage_folder_input: + :param unified_filestorage_folder_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -347,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateFilestorageFolderRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_filestorage_folder_input=utils.get_pydantic_model( - unified_filestorage_folder_input, models.UnifiedFilestorageFolderInput - ), + unified_filestorage_folder_input=utils.get_pydantic_model(unified_filestorage_folder_input, models.UnifiedFilestorageFolderInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/filestorage/folders", base_url=base_url, @@ -371,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_filestorage_folder_input, - False, - False, - "json", - models.UnifiedFilestorageFolderInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_filestorage_folder_input, False, False, "json", models.UnifiedFilestorageFolderInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createFilestorageFolder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createFilestorageFolder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedFilestorageFolderOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedFilestorageFolderOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -442,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveFilestorageFolderRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/filestorage/folders/{id}", @@ -466,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveFilestorageFolder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveFilestorageFolder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedFilestorageFolderOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedFilestorageFolderOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -528,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveFilestorageFolderRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/filestorage/folders/{id}", base_url=base_url, @@ -552,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveFilestorageFolder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveFilestorageFolder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedFilestorageFolderOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedFilestorageFolderOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/fulfillments.py b/src/panora_sdk/fulfillments.py index 6f259f8..8eced21 100644 --- a/src/panora_sdk/fulfillments.py +++ b/src/panora_sdk/fulfillments.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Fulfillments(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListEcommerceFulfillmentsResponse]: + ) -> models.ListEcommerceFulfillmentsResponse: r"""List Fulfillments :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListEcommerceFulfillmentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ecommerce/fulfillments", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listEcommerceFulfillments", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listEcommerceFulfillments", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListEcommerceFulfillmentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListEcommerceFulfillmentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListEcommerceFulfillmentsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListEcommerceFulfillmentsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListEcommerceFulfillmentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListEcommerceFulfillmentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListEcommerceFulfillmentsResponse]: + ) -> models.ListEcommerceFulfillmentsResponse: r"""List Fulfillments :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListEcommerceFulfillmentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ecommerce/fulfillments", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listEcommerceFulfillments", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listEcommerceFulfillments", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListEcommerceFulfillmentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListEcommerceFulfillmentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListEcommerceFulfillmentsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListEcommerceFulfillmentsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListEcommerceFulfillmentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListEcommerceFulfillmentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveEcommerceFulfillmentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ecommerce/fulfillments/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveEcommerceFulfillment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveEcommerceFulfillment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedEcommerceFulfillmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedEcommerceFulfillmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveEcommerceFulfillmentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ecommerce/fulfillments/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveEcommerceFulfillment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveEcommerceFulfillment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedEcommerceFulfillmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedEcommerceFulfillmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/groups.py b/src/panora_sdk/groups.py index 607e57e..7b7006f 100644 --- a/src/panora_sdk/groups.py +++ b/src/panora_sdk/groups.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Groups(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisGroupsResponse]: + ) -> models.ListHrisGroupsResponse: r"""List Groups :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisGroupsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/groups", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisGroups", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisGroups", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisGroupsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisGroupsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisGroupsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisGroupsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisGroupsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisGroupsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisGroupsResponse]: + ) -> models.ListHrisGroupsResponse: r"""List Groups :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisGroupsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/groups", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisGroups", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisGroups", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisGroupsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListHrisGroupsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisGroupsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisGroupsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisGroupsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisGroupsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisGroupRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/groups/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisGroup", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisGroup", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisGroupOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisGroupOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisGroupRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/groups/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisGroup", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisGroup", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisGroupOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisGroupOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/hris.py b/src/panora_sdk/hris.py index d5536d7..3e1d937 100644 --- a/src/panora_sdk/hris.py +++ b/src/panora_sdk/hris.py @@ -18,7 +18,6 @@ from panora_sdk.timeoffs import Timeoffs from panora_sdk.timesheetentries import Timesheetentries - class Hris(BaseSDK): bankinfos: Bankinfos benefits: Benefits @@ -35,12 +34,11 @@ class Hris(BaseSDK): timeoffs: Timeoffs timeoffbalances: Timeoffbalances timesheetentries: Timesheetentries - def __init__(self, sdk_config: SDKConfiguration) -> None: BaseSDK.__init__(self, sdk_config) self.sdk_configuration = sdk_config self._init_sdks() - + def _init_sdks(self): self.bankinfos = Bankinfos(self.sdk_configuration) self.benefits = Benefits(self.sdk_configuration) @@ -57,3 +55,4 @@ def _init_sdks(self): self.timeoffs = Timeoffs(self.sdk_configuration) self.timeoffbalances = Timeoffbalances(self.sdk_configuration) self.timesheetentries = Timesheetentries(self.sdk_configuration) + diff --git a/src/panora_sdk/incomestatements.py b/src/panora_sdk/incomestatements.py index 8de533c..3727066 100644 --- a/src/panora_sdk/incomestatements.py +++ b/src/panora_sdk/incomestatements.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Incomestatements(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingIncomeStatementResponse]: + ) -> models.ListAccountingIncomeStatementResponse: r"""List IncomeStatements :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingIncomeStatementRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/incomestatements", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingIncomeStatement", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingIncomeStatement", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingIncomeStatementResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListAccountingIncomeStatementResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingIncomeStatementResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingIncomeStatementResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingIncomeStatementResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingIncomeStatementResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingIncomeStatementResponse]: + ) -> models.ListAccountingIncomeStatementResponse: r"""List IncomeStatements :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingIncomeStatementRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/incomestatements", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingIncomeStatement", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingIncomeStatement", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingIncomeStatementResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListAccountingIncomeStatementResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingIncomeStatementResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingIncomeStatementResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingIncomeStatementResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingIncomeStatementResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingIncomeStatementRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/incomestatements/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingIncomeStatement", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingIncomeStatement", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingIncomestatementOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingIncomestatementOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingIncomeStatementRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/incomestatements/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingIncomeStatement", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingIncomeStatement", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingIncomestatementOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingIncomestatementOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/interviews.py b/src/panora_sdk/interviews.py index 81821ea..a36c3ea 100644 --- a/src/panora_sdk/interviews.py +++ b/src/panora_sdk/interviews.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Interviews(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsInterviewResponse]: + ) -> models.ListAtsInterviewResponse: r"""List Interviews :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsInterviewRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/interviews", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsInterview", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsInterview", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsInterviewResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsInterviewResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsInterviewResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsInterviewResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsInterviewResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsInterviewResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsInterviewResponse]: + ) -> models.ListAtsInterviewResponse: r"""List Interviews :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsInterviewRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/interviews", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsInterview", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsInterview", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsInterviewResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,34 +194,21 @@ def next_func() -> Optional[models.ListAtsInterviewResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsInterviewResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsInterviewResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsInterviewResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsInterviewResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_ats_interview_input: Union[ - models.UnifiedAtsInterviewInput, models.UnifiedAtsInterviewInputTypedDict - ], + unified_ats_interview_input: Union[models.UnifiedAtsInterviewInput, models.UnifiedAtsInterviewInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -238,7 +219,7 @@ def create( Create Interviews in any supported Ats software :param x_connection_token: The connection token - :param unified_ats_interview_input: + :param unified_ats_interview_input: :param remote_data: Set to true to include data from the original Ats software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -248,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAtsInterviewRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ats_interview_input=utils.get_pydantic_model( - unified_ats_interview_input, models.UnifiedAtsInterviewInput - ), + unified_ats_interview_input=utils.get_pydantic_model(unified_ats_interview_input, models.UnifiedAtsInterviewInput), ) - + req = self.build_request( method="POST", path="/ats/interviews", @@ -272,59 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ats_interview_input, - False, - False, - "json", - models.UnifiedAtsInterviewInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ats_interview_input, False, False, "json", models.UnifiedAtsInterviewInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAtsInterview", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAtsInterview", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsInterviewOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsInterviewOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_ats_interview_input: Union[ - models.UnifiedAtsInterviewInput, models.UnifiedAtsInterviewInputTypedDict - ], + unified_ats_interview_input: Union[models.UnifiedAtsInterviewInput, models.UnifiedAtsInterviewInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -335,7 +300,7 @@ async def create_async( Create Interviews in any supported Ats software :param x_connection_token: The connection token - :param unified_ats_interview_input: + :param unified_ats_interview_input: :param remote_data: Set to true to include data from the original Ats software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -345,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAtsInterviewRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ats_interview_input=utils.get_pydantic_model( - unified_ats_interview_input, models.UnifiedAtsInterviewInput - ), + unified_ats_interview_input=utils.get_pydantic_model(unified_ats_interview_input, models.UnifiedAtsInterviewInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/ats/interviews", base_url=base_url, @@ -369,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ats_interview_input, - False, - False, - "json", - models.UnifiedAtsInterviewInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ats_interview_input, False, False, "json", models.UnifiedAtsInterviewInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAtsInterview", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAtsInterview", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsInterviewOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsInterviewOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -440,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsInterviewRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/interviews/{id}", @@ -464,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsInterview", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsInterview", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsInterviewOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsInterviewOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -526,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsInterviewRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/interviews/{id}", base_url=base_url, @@ -550,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsInterview", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsInterview", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsInterviewOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsInterviewOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/invoices.py b/src/panora_sdk/invoices.py index 8f17102..6e71d57 100644 --- a/src/panora_sdk/invoices.py +++ b/src/panora_sdk/invoices.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Invoices(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingInvoiceResponse]: + ) -> models.ListAccountingInvoiceResponse: r"""List Invoices :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingInvoiceRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/invoices", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingInvoice", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingInvoice", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingInvoiceResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAccountingInvoiceResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingInvoiceResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingInvoiceResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingInvoiceResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingInvoiceResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingInvoiceResponse]: + ) -> models.ListAccountingInvoiceResponse: r"""List Invoices :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingInvoiceRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/invoices", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingInvoice", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingInvoice", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingInvoiceResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListAccountingInvoiceResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingInvoiceResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingInvoiceResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingInvoiceResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingInvoiceResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_accounting_invoice_input: Union[ - models.UnifiedAccountingInvoiceInput, - models.UnifiedAccountingInvoiceInputTypedDict, - ], + unified_accounting_invoice_input: Union[models.UnifiedAccountingInvoiceInput, models.UnifiedAccountingInvoiceInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create invoices in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_invoice_input: + :param unified_accounting_invoice_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingInvoiceRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_invoice_input=utils.get_pydantic_model( - unified_accounting_invoice_input, models.UnifiedAccountingInvoiceInput - ), + unified_accounting_invoice_input=utils.get_pydantic_model(unified_accounting_invoice_input, models.UnifiedAccountingInvoiceInput), ) - + req = self.build_request( method="POST", path="/accounting/invoices", @@ -273,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_invoice_input, - False, - False, - "json", - models.UnifiedAccountingInvoiceInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_invoice_input, False, False, "json", models.UnifiedAccountingInvoiceInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAccountingInvoice", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingInvoice", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingInvoiceOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingInvoiceOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_accounting_invoice_input: Union[ - models.UnifiedAccountingInvoiceInput, - models.UnifiedAccountingInvoiceInputTypedDict, - ], + unified_accounting_invoice_input: Union[models.UnifiedAccountingInvoiceInput, models.UnifiedAccountingInvoiceInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -337,7 +300,7 @@ async def create_async( Create invoices in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_invoice_input: + :param unified_accounting_invoice_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -347,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingInvoiceRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_invoice_input=utils.get_pydantic_model( - unified_accounting_invoice_input, models.UnifiedAccountingInvoiceInput - ), + unified_accounting_invoice_input=utils.get_pydantic_model(unified_accounting_invoice_input, models.UnifiedAccountingInvoiceInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/accounting/invoices", base_url=base_url, @@ -371,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_invoice_input, - False, - False, - "json", - models.UnifiedAccountingInvoiceInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_invoice_input, False, False, "json", models.UnifiedAccountingInvoiceInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAccountingInvoice", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingInvoice", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingInvoiceOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingInvoiceOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -442,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingInvoiceRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/invoices/{id}", @@ -466,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingInvoice", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingInvoice", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingInvoiceOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingInvoiceOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -528,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingInvoiceRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/invoices/{id}", base_url=base_url, @@ -552,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingInvoice", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingInvoice", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingInvoiceOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingInvoiceOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/items.py b/src/panora_sdk/items.py index 28fde30..7368a2a 100644 --- a/src/panora_sdk/items.py +++ b/src/panora_sdk/items.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Items(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingItemResponse]: + ) -> models.ListAccountingItemResponse: r"""List Items :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingItemRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/items", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingItem", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingItem", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingItemResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAccountingItemResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingItemResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingItemResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingItemResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingItemResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingItemResponse]: + ) -> models.ListAccountingItemResponse: r"""List Items :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingItemRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/items", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingItem", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingItem", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingItemResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAccountingItemResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingItemResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingItemResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingItemResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingItemResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingItemRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/items/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingItem", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingItem", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingItemOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingItemOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingItemRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/items/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingItem", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingItem", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingItemOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingItemOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/jobinterviewstages.py b/src/panora_sdk/jobinterviewstages.py index f9fca05..ae58cd8 100644 --- a/src/panora_sdk/jobinterviewstages.py +++ b/src/panora_sdk/jobinterviewstages.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Jobinterviewstages(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsJobInterviewStageResponse]: + ) -> models.ListAtsJobInterviewStageResponse: r"""List JobInterviewStages :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsJobInterviewStageRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/jobinterviewstages", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsJobInterviewStage", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsJobInterviewStage", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsJobInterviewStageResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsJobInterviewStageResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsJobInterviewStageResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsJobInterviewStageResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsJobInterviewStageResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsJobInterviewStageResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsJobInterviewStageResponse]: + ) -> models.ListAtsJobInterviewStageResponse: r"""List JobInterviewStages :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsJobInterviewStageRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/jobinterviewstages", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsJobInterviewStage", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsJobInterviewStage", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsJobInterviewStageResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAtsJobInterviewStageResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsJobInterviewStageResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsJobInterviewStageResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsJobInterviewStageResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsJobInterviewStageResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsJobInterviewStageRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/jobinterviewstages/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsJobInterviewStage", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsJobInterviewStage", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsJobinterviewstageOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsJobinterviewstageOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsJobInterviewStageRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/jobinterviewstages/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsJobInterviewStage", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsJobInterviewStage", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsJobinterviewstageOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsJobinterviewstageOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/jobs.py b/src/panora_sdk/jobs.py index 3bac714..04cf04f 100644 --- a/src/panora_sdk/jobs.py +++ b/src/panora_sdk/jobs.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Jobs(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsJobResponse]: + ) -> models.ListAtsJobResponse: r"""List Jobs :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsJobRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/jobs", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsJob", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsJob", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsJobResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsJobResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsJobResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsJobResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsJobResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsJobResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsJobResponse]: + ) -> models.ListAtsJobResponse: r"""List Jobs :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsJobRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/jobs", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsJob", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsJob", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsJobResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAtsJobResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsJobResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsJobResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsJobResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsJobResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsJobRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/jobs/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsJob", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsJob", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsJobOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsJobOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsJobRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/jobs/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsJob", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsJob", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsJobOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsJobOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/journalentries.py b/src/panora_sdk/journalentries.py index 66ca16a..730eeb3 100644 --- a/src/panora_sdk/journalentries.py +++ b/src/panora_sdk/journalentries.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Journalentries(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingJournalEntryResponse]: + ) -> models.ListAccountingJournalEntryResponse: r"""List JournalEntrys :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingJournalEntryRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/journalentries", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingJournalEntry", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingJournalEntry", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingJournalEntryResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListAccountingJournalEntryResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingJournalEntryResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingJournalEntryResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingJournalEntryResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingJournalEntryResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingJournalEntryResponse]: + ) -> models.ListAccountingJournalEntryResponse: r"""List JournalEntrys :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingJournalEntryRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/journalentries", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingJournalEntry", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingJournalEntry", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingJournalEntryResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,36 +194,21 @@ def next_func() -> Optional[models.ListAccountingJournalEntryResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingJournalEntryResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingJournalEntryResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingJournalEntryResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingJournalEntryResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_accounting_journalentry_input: Union[ - models.UnifiedAccountingJournalentryInput, - models.UnifiedAccountingJournalentryInputTypedDict, - ], + unified_accounting_journalentry_input: Union[models.UnifiedAccountingJournalentryInput, models.UnifiedAccountingJournalentryInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -241,7 +219,7 @@ def create( Create Journal Entries in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_journalentry_input: + :param unified_accounting_journalentry_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -251,19 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingJournalEntryRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_journalentry_input=utils.get_pydantic_model( - unified_accounting_journalentry_input, - models.UnifiedAccountingJournalentryInput, - ), + unified_accounting_journalentry_input=utils.get_pydantic_model(unified_accounting_journalentry_input, models.UnifiedAccountingJournalentryInput), ) - + req = self.build_request( method="POST", path="/accounting/journalentries", @@ -276,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_journalentry_input, - False, - False, - "json", - models.UnifiedAccountingJournalentryInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_journalentry_input, False, False, "json", models.UnifiedAccountingJournalentryInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAccountingJournalEntry", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingJournalEntry", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingJournalentryOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingJournalentryOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_accounting_journalentry_input: Union[ - models.UnifiedAccountingJournalentryInput, - models.UnifiedAccountingJournalentryInputTypedDict, - ], + unified_accounting_journalentry_input: Union[models.UnifiedAccountingJournalentryInput, models.UnifiedAccountingJournalentryInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -340,7 +300,7 @@ async def create_async( Create Journal Entries in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_journalentry_input: + :param unified_accounting_journalentry_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -350,20 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingJournalEntryRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_journalentry_input=utils.get_pydantic_model( - unified_accounting_journalentry_input, - models.UnifiedAccountingJournalentryInput, - ), + unified_accounting_journalentry_input=utils.get_pydantic_model(unified_accounting_journalentry_input, models.UnifiedAccountingJournalentryInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/accounting/journalentries", base_url=base_url, @@ -375,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_journalentry_input, - False, - False, - "json", - models.UnifiedAccountingJournalentryInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_journalentry_input, False, False, "json", models.UnifiedAccountingJournalentryInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAccountingJournalEntry", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingJournalEntry", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingJournalentryOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingJournalentryOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -446,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingJournalEntryRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/journalentries/{id}", @@ -470,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingJournalEntry", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingJournalEntry", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingJournalentryOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingJournalentryOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -532,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingJournalEntryRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/journalentries/{id}", base_url=base_url, @@ -556,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingJournalEntry", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingJournalEntry", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingJournalentryOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingJournalentryOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/linkedusers.py b/src/panora_sdk/linkedusers.py index 13c4dab..4058949 100644 --- a/src/panora_sdk/linkedusers.py +++ b/src/panora_sdk/linkedusers.py @@ -1,16 +1,17 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import BaseModel, OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import List, Optional, Union, cast - class LinkedUsers(BaseSDK): + + def create( - self, - *, + self, *, request: Union[models.CreateLinkedUserDto, models.CreateLinkedUserDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -27,14 +28,14 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.CreateLinkedUserDto) request = cast(models.CreateLinkedUserDto, request) - + req = self.build_request( method="POST", path="/linked_users", @@ -47,51 +48,43 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateLinkedUserDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.CreateLinkedUserDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createLinkedUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createLinkedUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.LinkedUserResponse] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.LinkedUserResponse]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, request: Union[models.CreateLinkedUserDto, models.CreateLinkedUserDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -108,15 +101,15 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.CreateLinkedUserDto) request = cast(models.CreateLinkedUserDto, request) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/linked_users", base_url=base_url, @@ -128,51 +121,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateLinkedUserDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.CreateLinkedUserDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createLinkedUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createLinkedUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.LinkedUserResponse] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.LinkedUserResponse]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def list( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -187,7 +172,7 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url req = self.build_request( @@ -204,46 +189,40 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listLinkedUsers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listLinkedUsers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[models.LinkedUserResponse]] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[List[models.LinkedUserResponse]]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -258,10 +237,10 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - req = self.build_request_async( + req = self.build_request( method="GET", path="/linked_users", base_url=base_url, @@ -275,49 +254,41 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listLinkedUsers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listLinkedUsers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[models.LinkedUserResponse]] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[List[models.LinkedUserResponse]]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def import_batch( - self, - *, - request: Union[ - models.CreateBatchLinkedUserDto, models.CreateBatchLinkedUserDtoTypedDict - ], + self, *, + request: Union[models.CreateBatchLinkedUserDto, models.CreateBatchLinkedUserDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -333,14 +304,14 @@ def import_batch( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.CreateBatchLinkedUserDto) request = cast(models.CreateBatchLinkedUserDto, request) - + req = self.build_request( method="POST", path="/linked_users/batch", @@ -353,54 +324,44 @@ def import_batch( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateBatchLinkedUserDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.CreateBatchLinkedUserDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="importBatch", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="importBatch", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[models.LinkedUserResponse]] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[List[models.LinkedUserResponse]]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def import_batch_async( - self, - *, - request: Union[ - models.CreateBatchLinkedUserDto, models.CreateBatchLinkedUserDtoTypedDict - ], + self, *, + request: Union[models.CreateBatchLinkedUserDto, models.CreateBatchLinkedUserDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -416,15 +377,15 @@ async def import_batch_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.CreateBatchLinkedUserDto) request = cast(models.CreateBatchLinkedUserDto, request) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/linked_users/batch", base_url=base_url, @@ -436,51 +397,43 @@ async def import_batch_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateBatchLinkedUserDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.CreateBatchLinkedUserDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="importBatch", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="importBatch", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[models.LinkedUserResponse]] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[List[models.LinkedUserResponse]]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, id: str, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -488,7 +441,7 @@ def retrieve( ) -> Optional[models.LinkedUserResponse]: r"""Retrieve Linked Users - :param id: + :param id: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -497,14 +450,14 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveLinkedUserRequest( id=id, ) - + req = self.build_request( method="GET", path="/linked_users/{id}", @@ -519,46 +472,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveLinkedUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveLinkedUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.LinkedUserResponse] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.LinkedUserResponse]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, id: str, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -566,7 +513,7 @@ async def retrieve_async( ) -> Optional[models.LinkedUserResponse]: r"""Retrieve Linked Users - :param id: + :param id: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -575,15 +522,15 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveLinkedUserRequest( id=id, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/linked_users/{id}", base_url=base_url, @@ -597,46 +544,40 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveLinkedUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveLinkedUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.LinkedUserResponse] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.LinkedUserResponse]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def remote_id( - self, - *, + self, *, remote_id: str, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -644,7 +585,7 @@ def remote_id( ) -> Optional[models.LinkedUserResponse]: r"""Retrieve a Linked User From A Remote Id - :param remote_id: + :param remote_id: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -653,14 +594,14 @@ def remote_id( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RemoteIDRequest( remote_id=remote_id, ) - + req = self.build_request( method="GET", path="/linked_users/fromRemoteId", @@ -675,46 +616,40 @@ def remote_id( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="remoteId", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="remoteId", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.LinkedUserResponse] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.LinkedUserResponse]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def remote_id_async( - self, - *, + self, *, remote_id: str, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -722,7 +657,7 @@ async def remote_id_async( ) -> Optional[models.LinkedUserResponse]: r"""Retrieve a Linked User From A Remote Id - :param remote_id: + :param remote_id: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -731,15 +666,15 @@ async def remote_id_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RemoteIDRequest( remote_id=remote_id, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/linked_users/fromRemoteId", base_url=base_url, @@ -753,39 +688,34 @@ async def remote_id_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="remoteId", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="remoteId", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.LinkedUserResponse] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.LinkedUserResponse]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/lists.py b/src/panora_sdk/lists.py index 7808c30..30c3738 100644 --- a/src/panora_sdk/lists.py +++ b/src/panora_sdk/lists.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Lists(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationListsResponse]: + ) -> models.ListMarketingautomationListsResponse: r"""List Lists :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationListsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/marketingautomation/lists", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listMarketingautomationLists", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationLists", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationListsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListMarketingautomationListsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationListsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationListsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationListsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationListsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationListsResponse]: + ) -> models.ListMarketingautomationListsResponse: r"""List Lists :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationListsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/lists", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listMarketingautomationLists", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationLists", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationListsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,36 +194,21 @@ def next_func() -> Optional[models.ListMarketingautomationListsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationListsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationListsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationListsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationListsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_marketingautomation_list_input: Union[ - models.UnifiedMarketingautomationListInput, - models.UnifiedMarketingautomationListInputTypedDict, - ], + unified_marketingautomation_list_input: Union[models.UnifiedMarketingautomationListInput, models.UnifiedMarketingautomationListInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -241,7 +219,7 @@ def create( Create Lists in any supported Marketingautomation software :param x_connection_token: The connection token - :param unified_marketingautomation_list_input: + :param unified_marketingautomation_list_input: :param remote_data: Set to true to include data from the original Marketingautomation software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -251,19 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateMarketingautomationListRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_marketingautomation_list_input=utils.get_pydantic_model( - unified_marketingautomation_list_input, - models.UnifiedMarketingautomationListInput, - ), + unified_marketingautomation_list_input=utils.get_pydantic_model(unified_marketingautomation_list_input, models.UnifiedMarketingautomationListInput), ) - + req = self.build_request( method="POST", path="/marketingautomation/lists", @@ -276,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_marketingautomation_list_input, - False, - False, - "json", - models.UnifiedMarketingautomationListInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_marketingautomation_list_input, False, False, "json", models.UnifiedMarketingautomationListInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createMarketingautomationList", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createMarketingautomationList", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationListOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationListOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_marketingautomation_list_input: Union[ - models.UnifiedMarketingautomationListInput, - models.UnifiedMarketingautomationListInputTypedDict, - ], + unified_marketingautomation_list_input: Union[models.UnifiedMarketingautomationListInput, models.UnifiedMarketingautomationListInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -340,7 +300,7 @@ async def create_async( Create Lists in any supported Marketingautomation software :param x_connection_token: The connection token - :param unified_marketingautomation_list_input: + :param unified_marketingautomation_list_input: :param remote_data: Set to true to include data from the original Marketingautomation software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -350,20 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateMarketingautomationListRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_marketingautomation_list_input=utils.get_pydantic_model( - unified_marketingautomation_list_input, - models.UnifiedMarketingautomationListInput, - ), + unified_marketingautomation_list_input=utils.get_pydantic_model(unified_marketingautomation_list_input, models.UnifiedMarketingautomationListInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/marketingautomation/lists", base_url=base_url, @@ -375,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_marketingautomation_list_input, - False, - False, - "json", - models.UnifiedMarketingautomationListInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_marketingautomation_list_input, False, False, "json", models.UnifiedMarketingautomationListInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createMarketingautomationList", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createMarketingautomationList", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationListOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationListOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -446,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationListRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/marketingautomation/lists/{id}", @@ -470,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationList", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationList", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationListOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationListOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -532,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationListRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/lists/{id}", base_url=base_url, @@ -556,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationList", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationList", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationListOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationListOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/locations.py b/src/panora_sdk/locations.py index 87a2734..d7c3216 100644 --- a/src/panora_sdk/locations.py +++ b/src/panora_sdk/locations.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Locations(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisLocationsResponse]: + ) -> models.ListHrisLocationsResponse: r"""List Locations :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisLocationsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/locations", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisLocations", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisLocations", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisLocationsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisLocationsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisLocationsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisLocationsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisLocationsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisLocationsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisLocationsResponse]: + ) -> models.ListHrisLocationsResponse: r"""List Locations :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisLocationsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/locations", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisLocations", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisLocations", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisLocationsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListHrisLocationsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisLocationsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisLocationsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisLocationsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisLocationsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisLocationRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/locations/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisLocation", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisLocation", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisLocationOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisLocationOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisLocationRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/locations/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisLocation", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisLocation", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisLocationOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisLocationOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/login.py b/src/panora_sdk/login.py index 5b34c81..0831fa3 100644 --- a/src/panora_sdk/login.py +++ b/src/panora_sdk/login.py @@ -1,16 +1,17 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import BaseModel, OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Optional, Union, cast - class Login(BaseSDK): + + def sign_in( - self, - *, + self, *, request: Union[models.LoginDto, models.LoginDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -27,14 +28,14 @@ def sign_in( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.LoginDto) request = cast(models.LoginDto, request) - + req = self.build_request( method="POST", path="/auth/login", @@ -47,49 +48,43 @@ def sign_in( user_agent_header="user-agent", accept_header_value="*/*", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.LoginDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.LoginDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="signIn", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="signIn", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "*"): return - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def sign_in_async( - self, - *, + self, *, request: Union[models.LoginDto, models.LoginDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -106,15 +101,15 @@ async def sign_in_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.LoginDto) request = cast(models.LoginDto, request) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/auth/login", base_url=base_url, @@ -126,42 +121,37 @@ async def sign_in_async( user_agent_header="user-agent", accept_header_value="*/*", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.LoginDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.LoginDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="signIn", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="signIn", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "*"): return - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/marketingautomation.py b/src/panora_sdk/marketingautomation.py index 4881d61..0d8ee59 100644 --- a/src/panora_sdk/marketingautomation.py +++ b/src/panora_sdk/marketingautomation.py @@ -9,13 +9,10 @@ from panora_sdk.lists import Lists from panora_sdk.messages import Messages from panora_sdk.panora_events import PanoraEvents -from panora_sdk.panora_marketingautomation_contacts import ( - PanoraMarketingautomationContacts, -) +from panora_sdk.panora_marketingautomation_contacts import PanoraMarketingautomationContacts from panora_sdk.panora_marketingautomation_users import PanoraMarketingautomationUsers from panora_sdk.templates import Templates - class Marketingautomation(BaseSDK): actions: Actions automations: Automations @@ -27,12 +24,11 @@ class Marketingautomation(BaseSDK): messages: Messages templates: Templates users: PanoraMarketingautomationUsers - def __init__(self, sdk_config: SDKConfiguration) -> None: BaseSDK.__init__(self, sdk_config) self.sdk_configuration = sdk_config self._init_sdks() - + def _init_sdks(self): self.actions = Actions(self.sdk_configuration) self.automations = Automations(self.sdk_configuration) @@ -44,3 +40,4 @@ def _init_sdks(self): self.messages = Messages(self.sdk_configuration) self.templates = Templates(self.sdk_configuration) self.users = PanoraMarketingautomationUsers(self.sdk_configuration) + diff --git a/src/panora_sdk/messages.py b/src/panora_sdk/messages.py index ea1c3b5..62db71a 100644 --- a/src/panora_sdk/messages.py +++ b/src/panora_sdk/messages.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Messages(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationMessagesResponse]: + ) -> models.ListMarketingautomationMessagesResponse: r"""List Messages :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationMessagesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/marketingautomation/messages", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listMarketingautomationMessages", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationMessages", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationMessagesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListMarketingautomationMessagesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationMessagesResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationMessagesResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationMessagesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationMessagesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationMessagesResponse]: + ) -> models.ListMarketingautomationMessagesResponse: r"""List Messages :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationMessagesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/messages", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listMarketingautomationMessages", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationMessages", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationMessagesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListMarketingautomationMessagesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationMessagesResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationMessagesResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationMessagesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationMessagesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationMessageRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/marketingautomation/messages/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationMessage", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationMessage", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationMessageOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationMessageOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationMessageRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/messages/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationMessage", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationMessage", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationMessageOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationMessageOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/models/__init__.py b/src/panora_sdk/models/__init__.py index 977bb9a..1ec9aae 100644 --- a/src/panora_sdk/models/__init__.py +++ b/src/panora_sdk/models/__init__.py @@ -2,3252 +2,368 @@ from .address import Address, AddressTypedDict from .connection import Connection, ConnectionTypedDict, TokenType -from .createaccountingaccountop import ( - CreateAccountingAccountRequest, - CreateAccountingAccountRequestTypedDict, -) -from .createaccountingattachmentop import ( - CreateAccountingAttachmentRequest, - CreateAccountingAttachmentRequestTypedDict, -) -from .createaccountingcontactop import ( - CreateAccountingContactRequest, - CreateAccountingContactRequestTypedDict, -) -from .createaccountingexpenseop import ( - CreateAccountingExpenseRequest, - CreateAccountingExpenseRequestTypedDict, -) -from .createaccountinginvoiceop import ( - CreateAccountingInvoiceRequest, - CreateAccountingInvoiceRequestTypedDict, -) -from .createaccountingjournalentryop import ( - CreateAccountingJournalEntryRequest, - CreateAccountingJournalEntryRequestTypedDict, -) -from .createaccountingpaymentop import ( - CreateAccountingPaymentRequest, - CreateAccountingPaymentRequestTypedDict, -) -from .createaccountingpurchaseorderop import ( - CreateAccountingPurchaseOrderRequest, - CreateAccountingPurchaseOrderRequestTypedDict, -) -from .createatsactivityop import ( - CreateAtsActivityRequest, - CreateAtsActivityRequestTypedDict, -) -from .createatsapplicationop import ( - CreateAtsApplicationRequest, - CreateAtsApplicationRequestTypedDict, -) -from .createatsattachmentop import ( - CreateAtsAttachmentRequest, - CreateAtsAttachmentRequestTypedDict, -) -from .createatscandidateop import ( - CreateAtsCandidateRequest, - CreateAtsCandidateRequestTypedDict, -) -from .createatsinterviewop import ( - CreateAtsInterviewRequest, - CreateAtsInterviewRequestTypedDict, -) -from .createbatchlinkeduserdto import ( - CreateBatchLinkedUserDto, - CreateBatchLinkedUserDtoTypedDict, -) -from .createcrmcompanyop import ( - CreateCrmCompanyRequest, - CreateCrmCompanyRequestTypedDict, -) -from .createcrmcontactop import ( - CreateCrmContactRequest, - CreateCrmContactRequestTypedDict, -) +from .createaccountingaccountop import CreateAccountingAccountRequest, CreateAccountingAccountRequestTypedDict +from .createaccountingattachmentop import CreateAccountingAttachmentRequest, CreateAccountingAttachmentRequestTypedDict +from .createaccountingcontactop import CreateAccountingContactRequest, CreateAccountingContactRequestTypedDict +from .createaccountingexpenseop import CreateAccountingExpenseRequest, CreateAccountingExpenseRequestTypedDict +from .createaccountinginvoiceop import CreateAccountingInvoiceRequest, CreateAccountingInvoiceRequestTypedDict +from .createaccountingjournalentryop import CreateAccountingJournalEntryRequest, CreateAccountingJournalEntryRequestTypedDict +from .createaccountingpaymentop import CreateAccountingPaymentRequest, CreateAccountingPaymentRequestTypedDict +from .createaccountingpurchaseorderop import CreateAccountingPurchaseOrderRequest, CreateAccountingPurchaseOrderRequestTypedDict +from .createatsactivityop import CreateAtsActivityRequest, CreateAtsActivityRequestTypedDict +from .createatsapplicationop import CreateAtsApplicationRequest, CreateAtsApplicationRequestTypedDict +from .createatsattachmentop import CreateAtsAttachmentRequest, CreateAtsAttachmentRequestTypedDict +from .createatscandidateop import CreateAtsCandidateRequest, CreateAtsCandidateRequestTypedDict +from .createatsinterviewop import CreateAtsInterviewRequest, CreateAtsInterviewRequestTypedDict +from .createbatchlinkeduserdto import CreateBatchLinkedUserDto, CreateBatchLinkedUserDtoTypedDict +from .createcrmcompanyop import CreateCrmCompanyRequest, CreateCrmCompanyRequestTypedDict +from .createcrmcontactop import CreateCrmContactRequest, CreateCrmContactRequestTypedDict from .createcrmdealop import CreateCrmDealRequest, CreateCrmDealRequestTypedDict -from .createcrmengagementop import ( - CreateCrmEngagementRequest, - CreateCrmEngagementRequestTypedDict, -) +from .createcrmengagementop import CreateCrmEngagementRequest, CreateCrmEngagementRequestTypedDict from .createcrmnoteop import CreateCrmNoteRequest, CreateCrmNoteRequestTypedDict from .createcrmtaskop import CreateCrmTaskRequest, CreateCrmTaskRequestTypedDict -from .createecommerceorderop import ( - CreateEcommerceOrderRequest, - CreateEcommerceOrderRequestTypedDict, -) -from .createecommerceproductop import ( - CreateEcommerceProductRequest, - CreateEcommerceProductRequestTypedDict, -) -from .createfilestoragefileop import ( - CreateFilestorageFileRequest, - CreateFilestorageFileRequestTypedDict, -) -from .createfilestoragefolderop import ( - CreateFilestorageFolderRequest, - CreateFilestorageFolderRequestTypedDict, -) -from .createhrisemployeeop import ( - CreateHrisEmployeeRequest, - CreateHrisEmployeeRequestTypedDict, -) -from .createhristimeoffop import ( - CreateHrisTimeoffRequest, - CreateHrisTimeoffRequestTypedDict, -) -from .createhristimesheetentryop import ( - CreateHrisTimesheetentryRequest, - CreateHrisTimesheetentryRequestTypedDict, -) +from .createecommerceorderop import CreateEcommerceOrderRequest, CreateEcommerceOrderRequestTypedDict +from .createecommerceproductop import CreateEcommerceProductRequest, CreateEcommerceProductRequestTypedDict +from .createfilestoragefileop import CreateFilestorageFileRequest, CreateFilestorageFileRequestTypedDict +from .createfilestoragefolderop import CreateFilestorageFolderRequest, CreateFilestorageFolderRequestTypedDict +from .createhrisemployeeop import CreateHrisEmployeeRequest, CreateHrisEmployeeRequestTypedDict +from .createhristimeoffop import CreateHrisTimeoffRequest, CreateHrisTimeoffRequestTypedDict +from .createhristimesheetentryop import CreateHrisTimesheetentryRequest, CreateHrisTimesheetentryRequestTypedDict from .createlinkeduserdto import CreateLinkedUserDto, CreateLinkedUserDtoTypedDict -from .createmarketingautomationactionop import ( - CreateMarketingautomationActionRequest, - CreateMarketingautomationActionRequestTypedDict, -) -from .createmarketingautomationautomationop import ( - CreateMarketingautomationAutomationRequest, - CreateMarketingautomationAutomationRequestTypedDict, -) -from .createmarketingautomationcampaignop import ( - CreateMarketingautomationCampaignRequest, - CreateMarketingautomationCampaignRequestTypedDict, -) -from .createmarketingautomationcontactop import ( - CreateMarketingAutomationContactRequest, - CreateMarketingAutomationContactRequestTypedDict, -) -from .createmarketingautomationlistop import ( - CreateMarketingautomationListRequest, - CreateMarketingautomationListRequestTypedDict, -) -from .createmarketingautomationtemplateop import ( - CreateMarketingautomationTemplateRequest, - CreateMarketingautomationTemplateRequestTypedDict, -) +from .createmarketingautomationactionop import CreateMarketingautomationActionRequest, CreateMarketingautomationActionRequestTypedDict +from .createmarketingautomationautomationop import CreateMarketingautomationAutomationRequest, CreateMarketingautomationAutomationRequestTypedDict +from .createmarketingautomationcampaignop import CreateMarketingautomationCampaignRequest, CreateMarketingautomationCampaignRequestTypedDict +from .createmarketingautomationcontactop import CreateMarketingAutomationContactRequest, CreateMarketingAutomationContactRequestTypedDict +from .createmarketingautomationlistop import CreateMarketingautomationListRequest, CreateMarketingautomationListRequestTypedDict +from .createmarketingautomationtemplateop import CreateMarketingautomationTemplateRequest, CreateMarketingautomationTemplateRequestTypedDict from .createprojectdto import CreateProjectDto, CreateProjectDtoTypedDict -from .createticketingattachmentop import ( - CreateTicketingAttachmentRequest, - CreateTicketingAttachmentRequestTypedDict, -) -from .createticketingcommentop import ( - CreateTicketingCommentRequest, - CreateTicketingCommentRequestTypedDict, -) -from .createticketingticketop import ( - CreateTicketingTicketRequest, - CreateTicketingTicketRequestTypedDict, -) -from .customfieldcreatedto import ( - CustomFieldCreateDto, - CustomFieldCreateDtoDataType, - CustomFieldCreateDtoObjectTypeOwner, - CustomFieldCreateDtoTypedDict, -) -from .customfieldresponse import ( - CustomFieldResponse, - CustomFieldResponseDataType, - CustomFieldResponseTypedDict, -) +from .createticketingattachmentop import CreateTicketingAttachmentRequest, CreateTicketingAttachmentRequestTypedDict +from .createticketingcommentop import CreateTicketingCommentRequest, CreateTicketingCommentRequestTypedDict +from .createticketingticketop import CreateTicketingTicketRequest, CreateTicketingTicketRequestTypedDict +from .customfieldcreatedto import CustomFieldCreateDto, CustomFieldCreateDtoDataType, CustomFieldCreateDtoObjectTypeOwner, CustomFieldCreateDtoTypedDict +from .customfieldresponse import CustomFieldResponse, CustomFieldResponseDataType, CustomFieldResponseTypedDict from .deductionitem import DeductionItem, DeductionItemTypedDict -from .definetargetfielddto import ( - DataType, - DefineTargetFieldDto, - DefineTargetFieldDtoTypedDict, - ObjectTypeOwner, -) +from .definetargetfielddto import DataType, DefineTargetFieldDto, DefineTargetFieldDtoTypedDict, ObjectTypeOwner from .deleteop import DeleteRequest, DeleteRequestTypedDict from .earningitem import EarningItem, EarningItemTypedDict from .email import Email, EmailTypedDict, OwnerType -from .eventresponse import ( - EventResponse, - EventResponseStatus, - EventResponseTypedDict, - Method, - Type, -) -from .getpanoracoreeventsop import ( - GetPanoraCoreEventsRequest, - GetPanoraCoreEventsRequestTypedDict, -) -from .getretriedrequestresponseop import ( - GetRetriedRequestResponseRequest, - GetRetriedRequestResponseRequestTypedDict, -) +from .eventresponse import EventResponse, EventResponseStatus, EventResponseTypedDict, Method, Type +from .getpanoracoreeventsop import GetPanoraCoreEventsRequest, GetPanoraCoreEventsRequestTypedDict +from .getretriedrequestresponseop import GetRetriedRequestResponseRequest, GetRetriedRequestResponseRequestTypedDict from .lineitem import LineItem, LineItemTypedDict from .linkeduserresponse import LinkedUserResponse, LinkedUserResponseTypedDict -from .listaccountingaccountsop import ( - ListAccountingAccountsRequest, - ListAccountingAccountsRequestTypedDict, - ListAccountingAccountsResponse, - ListAccountingAccountsResponseBody, - ListAccountingAccountsResponseBodyTypedDict, - ListAccountingAccountsResponseTypedDict, -) -from .listaccountingaddressop import ( - ListAccountingAddressRequest, - ListAccountingAddressRequestTypedDict, - ListAccountingAddressResponse, - ListAccountingAddressResponseBody, - ListAccountingAddressResponseBodyTypedDict, - ListAccountingAddressResponseTypedDict, -) -from .listaccountingattachmentsop import ( - ListAccountingAttachmentsRequest, - ListAccountingAttachmentsRequestTypedDict, - ListAccountingAttachmentsResponse, - ListAccountingAttachmentsResponseBody, - ListAccountingAttachmentsResponseBodyTypedDict, - ListAccountingAttachmentsResponseTypedDict, -) -from .listaccountingbalancesheetsop import ( - ListAccountingBalanceSheetsRequest, - ListAccountingBalanceSheetsRequestTypedDict, - ListAccountingBalanceSheetsResponse, - ListAccountingBalanceSheetsResponseBody, - ListAccountingBalanceSheetsResponseBodyTypedDict, - ListAccountingBalanceSheetsResponseTypedDict, -) -from .listaccountingcashflowstatementop import ( - ListAccountingCashflowStatementRequest, - ListAccountingCashflowStatementRequestTypedDict, - ListAccountingCashflowStatementResponse, - ListAccountingCashflowStatementResponseBody, - ListAccountingCashflowStatementResponseBodyTypedDict, - ListAccountingCashflowStatementResponseTypedDict, -) -from .listaccountingcompanyinfosop import ( - ListAccountingCompanyInfosRequest, - ListAccountingCompanyInfosRequestTypedDict, - ListAccountingCompanyInfosResponse, - ListAccountingCompanyInfosResponseBody, - ListAccountingCompanyInfosResponseBodyTypedDict, - ListAccountingCompanyInfosResponseTypedDict, -) -from .listaccountingcontactsop import ( - ListAccountingContactsRequest, - ListAccountingContactsRequestTypedDict, - ListAccountingContactsResponse, - ListAccountingContactsResponseBody, - ListAccountingContactsResponseBodyTypedDict, - ListAccountingContactsResponseTypedDict, -) -from .listaccountingcreditnoteop import ( - ListAccountingCreditNoteRequest, - ListAccountingCreditNoteRequestTypedDict, - ListAccountingCreditNoteResponse, - ListAccountingCreditNoteResponseBody, - ListAccountingCreditNoteResponseBodyTypedDict, - ListAccountingCreditNoteResponseTypedDict, -) -from .listaccountingexpenseop import ( - ListAccountingExpenseRequest, - ListAccountingExpenseRequestTypedDict, - ListAccountingExpenseResponse, - ListAccountingExpenseResponseBody, - ListAccountingExpenseResponseBodyTypedDict, - ListAccountingExpenseResponseTypedDict, -) -from .listaccountingincomestatementop import ( - ListAccountingIncomeStatementRequest, - ListAccountingIncomeStatementRequestTypedDict, - ListAccountingIncomeStatementResponse, - ListAccountingIncomeStatementResponseBody, - ListAccountingIncomeStatementResponseBodyTypedDict, - ListAccountingIncomeStatementResponseTypedDict, -) -from .listaccountinginvoiceop import ( - ListAccountingInvoiceRequest, - ListAccountingInvoiceRequestTypedDict, - ListAccountingInvoiceResponse, - ListAccountingInvoiceResponseBody, - ListAccountingInvoiceResponseBodyTypedDict, - ListAccountingInvoiceResponseTypedDict, -) -from .listaccountingitemop import ( - ListAccountingItemRequest, - ListAccountingItemRequestTypedDict, - ListAccountingItemResponse, - ListAccountingItemResponseBody, - ListAccountingItemResponseBodyTypedDict, - ListAccountingItemResponseTypedDict, -) -from .listaccountingjournalentryop import ( - ListAccountingJournalEntryRequest, - ListAccountingJournalEntryRequestTypedDict, - ListAccountingJournalEntryResponse, - ListAccountingJournalEntryResponseBody, - ListAccountingJournalEntryResponseBodyTypedDict, - ListAccountingJournalEntryResponseTypedDict, -) -from .listaccountingpaymentop import ( - ListAccountingPaymentRequest, - ListAccountingPaymentRequestTypedDict, - ListAccountingPaymentResponse, - ListAccountingPaymentResponseBody, - ListAccountingPaymentResponseBodyTypedDict, - ListAccountingPaymentResponseTypedDict, -) -from .listaccountingphonenumberop import ( - ListAccountingPhonenumberRequest, - ListAccountingPhonenumberRequestTypedDict, - ListAccountingPhonenumberResponse, - ListAccountingPhonenumberResponseBody, - ListAccountingPhonenumberResponseBodyTypedDict, - ListAccountingPhonenumberResponseTypedDict, -) -from .listaccountingpurchaseorderop import ( - ListAccountingPurchaseOrderRequest, - ListAccountingPurchaseOrderRequestTypedDict, - ListAccountingPurchaseOrderResponse, - ListAccountingPurchaseOrderResponseBody, - ListAccountingPurchaseOrderResponseBodyTypedDict, - ListAccountingPurchaseOrderResponseTypedDict, -) -from .listaccountingtaxrateop import ( - ListAccountingTaxRateRequest, - ListAccountingTaxRateRequestTypedDict, - ListAccountingTaxRateResponse, - ListAccountingTaxRateResponseBody, - ListAccountingTaxRateResponseBodyTypedDict, - ListAccountingTaxRateResponseTypedDict, -) -from .listaccountingtrackingcategorysop import ( - ListAccountingTrackingCategorysRequest, - ListAccountingTrackingCategorysRequestTypedDict, - ListAccountingTrackingCategorysResponse, - ListAccountingTrackingCategorysResponseBody, - ListAccountingTrackingCategorysResponseBodyTypedDict, - ListAccountingTrackingCategorysResponseTypedDict, -) -from .listaccountingtransactionop import ( - ListAccountingTransactionRequest, - ListAccountingTransactionRequestTypedDict, - ListAccountingTransactionResponse, - ListAccountingTransactionResponseBody, - ListAccountingTransactionResponseBodyTypedDict, - ListAccountingTransactionResponseTypedDict, -) -from .listaccountingvendorcreditop import ( - ListAccountingVendorCreditRequest, - ListAccountingVendorCreditRequestTypedDict, - ListAccountingVendorCreditResponse, - ListAccountingVendorCreditResponseBody, - ListAccountingVendorCreditResponseBodyTypedDict, - ListAccountingVendorCreditResponseTypedDict, -) -from .listatsactivityop import ( - ListAtsActivityRequest, - ListAtsActivityRequestTypedDict, - ListAtsActivityResponse, - ListAtsActivityResponseBody, - ListAtsActivityResponseBodyTypedDict, - ListAtsActivityResponseTypedDict, -) -from .listatsapplicationop import ( - ListAtsApplicationRequest, - ListAtsApplicationRequestTypedDict, - ListAtsApplicationResponse, - ListAtsApplicationResponseBody, - ListAtsApplicationResponseBodyTypedDict, - ListAtsApplicationResponseTypedDict, -) -from .listatsattachmentop import ( - ListAtsAttachmentRequest, - ListAtsAttachmentRequestTypedDict, - ListAtsAttachmentResponse, - ListAtsAttachmentResponseBody, - ListAtsAttachmentResponseBodyTypedDict, - ListAtsAttachmentResponseTypedDict, -) -from .listatscandidateop import ( - ListAtsCandidateRequest, - ListAtsCandidateRequestTypedDict, - ListAtsCandidateResponse, - ListAtsCandidateResponseBody, - ListAtsCandidateResponseBodyTypedDict, - ListAtsCandidateResponseTypedDict, -) -from .listatsdepartmentsop import ( - ListAtsDepartmentsRequest, - ListAtsDepartmentsRequestTypedDict, - ListAtsDepartmentsResponse, - ListAtsDepartmentsResponseBody, - ListAtsDepartmentsResponseBodyTypedDict, - ListAtsDepartmentsResponseTypedDict, -) -from .listatseeocsop import ( - ListAtsEeocsRequest, - ListAtsEeocsRequestTypedDict, - ListAtsEeocsResponse, - ListAtsEeocsResponseBody, - ListAtsEeocsResponseBodyTypedDict, - ListAtsEeocsResponseTypedDict, -) -from .listatsinterviewop import ( - ListAtsInterviewRequest, - ListAtsInterviewRequestTypedDict, - ListAtsInterviewResponse, - ListAtsInterviewResponseBody, - ListAtsInterviewResponseBodyTypedDict, - ListAtsInterviewResponseTypedDict, -) -from .listatsjobinterviewstageop import ( - ListAtsJobInterviewStageRequest, - ListAtsJobInterviewStageRequestTypedDict, - ListAtsJobInterviewStageResponse, - ListAtsJobInterviewStageResponseBody, - ListAtsJobInterviewStageResponseBodyTypedDict, - ListAtsJobInterviewStageResponseTypedDict, -) -from .listatsjobop import ( - ListAtsJobRequest, - ListAtsJobRequestTypedDict, - ListAtsJobResponse, - ListAtsJobResponseBody, - ListAtsJobResponseBodyTypedDict, - ListAtsJobResponseTypedDict, -) -from .listatsofferop import ( - ListAtsOfferRequest, - ListAtsOfferRequestTypedDict, - ListAtsOfferResponse, - ListAtsOfferResponseBody, - ListAtsOfferResponseBodyTypedDict, - ListAtsOfferResponseTypedDict, -) -from .listatsofficeop import ( - ListAtsOfficeRequest, - ListAtsOfficeRequestTypedDict, - ListAtsOfficeResponse, - ListAtsOfficeResponseBody, - ListAtsOfficeResponseBodyTypedDict, - ListAtsOfficeResponseTypedDict, -) -from .listatsrejectreasonsop import ( - ListAtsRejectReasonsRequest, - ListAtsRejectReasonsRequestTypedDict, - ListAtsRejectReasonsResponse, - ListAtsRejectReasonsResponseBody, - ListAtsRejectReasonsResponseBodyTypedDict, - ListAtsRejectReasonsResponseTypedDict, -) -from .listatsscorecardop import ( - ListAtsScorecardRequest, - ListAtsScorecardRequestTypedDict, - ListAtsScorecardResponse, - ListAtsScorecardResponseBody, - ListAtsScorecardResponseBodyTypedDict, - ListAtsScorecardResponseTypedDict, -) -from .listatstagsop import ( - ListAtsTagsRequest, - ListAtsTagsRequestTypedDict, - ListAtsTagsResponse, - ListAtsTagsResponseBody, - ListAtsTagsResponseBodyTypedDict, - ListAtsTagsResponseTypedDict, -) -from .listatsusersop import ( - ListAtsUsersRequest, - ListAtsUsersRequestTypedDict, - ListAtsUsersResponse, - ListAtsUsersResponseBody, - ListAtsUsersResponseBodyTypedDict, - ListAtsUsersResponseTypedDict, -) -from .listcrmcompanyop import ( - ListCrmCompanyRequest, - ListCrmCompanyRequestTypedDict, - ListCrmCompanyResponse, - ListCrmCompanyResponseBody, - ListCrmCompanyResponseBodyTypedDict, - ListCrmCompanyResponseTypedDict, -) -from .listcrmcontactsop import ( - ListCrmContactsRequest, - ListCrmContactsRequestTypedDict, - ListCrmContactsResponse, - ListCrmContactsResponseBody, - ListCrmContactsResponseBodyTypedDict, - ListCrmContactsResponseTypedDict, -) -from .listcrmdealsop import ( - ListCrmDealsRequest, - ListCrmDealsRequestTypedDict, - ListCrmDealsResponse, - ListCrmDealsResponseBody, - ListCrmDealsResponseBodyTypedDict, - ListCrmDealsResponseTypedDict, -) -from .listcrmengagementsop import ( - ListCrmEngagementsRequest, - ListCrmEngagementsRequestTypedDict, - ListCrmEngagementsResponse, - ListCrmEngagementsResponseBody, - ListCrmEngagementsResponseBodyTypedDict, - ListCrmEngagementsResponseTypedDict, -) -from .listcrmnoteop import ( - ListCrmNoteRequest, - ListCrmNoteRequestTypedDict, - ListCrmNoteResponse, - ListCrmNoteResponseBody, - ListCrmNoteResponseBodyTypedDict, - ListCrmNoteResponseTypedDict, -) -from .listcrmstagesop import ( - ListCrmStagesRequest, - ListCrmStagesRequestTypedDict, - ListCrmStagesResponse, - ListCrmStagesResponseBody, - ListCrmStagesResponseBodyTypedDict, - ListCrmStagesResponseTypedDict, -) -from .listcrmtaskop import ( - ListCrmTaskRequest, - ListCrmTaskRequestTypedDict, - ListCrmTaskResponse, - ListCrmTaskResponseBody, - ListCrmTaskResponseBodyTypedDict, - ListCrmTaskResponseTypedDict, -) -from .listcrmusersop import ( - ListCrmUsersRequest, - ListCrmUsersRequestTypedDict, - ListCrmUsersResponse, - ListCrmUsersResponseBody, - ListCrmUsersResponseBodyTypedDict, - ListCrmUsersResponseTypedDict, -) -from .listecommercecustomersop import ( - ListEcommerceCustomersRequest, - ListEcommerceCustomersRequestTypedDict, - ListEcommerceCustomersResponse, - ListEcommerceCustomersResponseBody, - ListEcommerceCustomersResponseBodyTypedDict, - ListEcommerceCustomersResponseTypedDict, -) -from .listecommercefulfillmentsop import ( - ListEcommerceFulfillmentsRequest, - ListEcommerceFulfillmentsRequestTypedDict, - ListEcommerceFulfillmentsResponse, - ListEcommerceFulfillmentsResponseBody, - ListEcommerceFulfillmentsResponseBodyTypedDict, - ListEcommerceFulfillmentsResponseTypedDict, -) -from .listecommerceordersop import ( - ListEcommerceOrdersRequest, - ListEcommerceOrdersRequestTypedDict, - ListEcommerceOrdersResponse, - ListEcommerceOrdersResponseBody, - ListEcommerceOrdersResponseBodyTypedDict, - ListEcommerceOrdersResponseTypedDict, -) -from .listecommerceproductsop import ( - ListEcommerceProductsRequest, - ListEcommerceProductsRequestTypedDict, - ListEcommerceProductsResponse, - ListEcommerceProductsResponseBody, - ListEcommerceProductsResponseBodyTypedDict, - ListEcommerceProductsResponseTypedDict, -) -from .listfilestoragefileop import ( - ListFilestorageFileRequest, - ListFilestorageFileRequestTypedDict, - ListFilestorageFileResponse, - ListFilestorageFileResponseBody, - ListFilestorageFileResponseBodyTypedDict, - ListFilestorageFileResponseTypedDict, -) -from .listfilestoragefolderop import ( - ListFilestorageFolderRequest, - ListFilestorageFolderRequestTypedDict, - ListFilestorageFolderResponse, - ListFilestorageFolderResponseBody, - ListFilestorageFolderResponseBodyTypedDict, - ListFilestorageFolderResponseTypedDict, -) -from .listfilestoragegroupop import ( - ListFilestorageGroupRequest, - ListFilestorageGroupRequestTypedDict, - ListFilestorageGroupResponse, - ListFilestorageGroupResponseBody, - ListFilestorageGroupResponseBodyTypedDict, - ListFilestorageGroupResponseTypedDict, -) -from .listfilestorageusersop import ( - ListFilestorageUsersRequest, - ListFilestorageUsersRequestTypedDict, - ListFilestorageUsersResponse, - ListFilestorageUsersResponseBody, - ListFilestorageUsersResponseBodyTypedDict, - ListFilestorageUsersResponseTypedDict, -) -from .listhrisbankinfoop import ( - ListHrisBankInfoRequest, - ListHrisBankInfoRequestTypedDict, - ListHrisBankInfoResponse, - ListHrisBankInfoResponseBody, - ListHrisBankInfoResponseBodyTypedDict, - ListHrisBankInfoResponseTypedDict, -) -from .listhrisbenefitsop import ( - ListHrisBenefitsRequest, - ListHrisBenefitsRequestTypedDict, - ListHrisBenefitsResponse, - ListHrisBenefitsResponseBody, - ListHrisBenefitsResponseBodyTypedDict, - ListHrisBenefitsResponseTypedDict, -) -from .listhriscompaniesop import ( - ListHrisCompaniesRequest, - ListHrisCompaniesRequestTypedDict, - ListHrisCompaniesResponse, - ListHrisCompaniesResponseBody, - ListHrisCompaniesResponseBodyTypedDict, - ListHrisCompaniesResponseTypedDict, -) -from .listhrisdependentsop import ( - ListHrisDependentsRequest, - ListHrisDependentsRequestTypedDict, - ListHrisDependentsResponse, - ListHrisDependentsResponseBody, - ListHrisDependentsResponseBodyTypedDict, - ListHrisDependentsResponseTypedDict, -) -from .listhrisemployeepayrollrunop import ( - ListHrisEmployeePayrollRunRequest, - ListHrisEmployeePayrollRunRequestTypedDict, - ListHrisEmployeePayrollRunResponse, - ListHrisEmployeePayrollRunResponseBody, - ListHrisEmployeePayrollRunResponseBodyTypedDict, - ListHrisEmployeePayrollRunResponseTypedDict, -) -from .listhrisemployeesop import ( - ListHrisEmployeesRequest, - ListHrisEmployeesRequestTypedDict, - ListHrisEmployeesResponse, - ListHrisEmployeesResponseBody, - ListHrisEmployeesResponseBodyTypedDict, - ListHrisEmployeesResponseTypedDict, -) -from .listhrisemployerbenefitsop import ( - ListHrisEmployerBenefitsRequest, - ListHrisEmployerBenefitsRequestTypedDict, - ListHrisEmployerBenefitsResponse, - ListHrisEmployerBenefitsResponseBody, - ListHrisEmployerBenefitsResponseBodyTypedDict, - ListHrisEmployerBenefitsResponseTypedDict, -) -from .listhrisemploymentsop import ( - ListHrisEmploymentsRequest, - ListHrisEmploymentsRequestTypedDict, - ListHrisEmploymentsResponse, - ListHrisEmploymentsResponseBody, - ListHrisEmploymentsResponseBodyTypedDict, - ListHrisEmploymentsResponseTypedDict, -) -from .listhrisgroupsop import ( - ListHrisGroupsRequest, - ListHrisGroupsRequestTypedDict, - ListHrisGroupsResponse, - ListHrisGroupsResponseBody, - ListHrisGroupsResponseBodyTypedDict, - ListHrisGroupsResponseTypedDict, -) -from .listhrislocationsop import ( - ListHrisLocationsRequest, - ListHrisLocationsRequestTypedDict, - ListHrisLocationsResponse, - ListHrisLocationsResponseBody, - ListHrisLocationsResponseBodyTypedDict, - ListHrisLocationsResponseTypedDict, -) -from .listhrispaygroupsop import ( - ListHrisPaygroupsRequest, - ListHrisPaygroupsRequestTypedDict, - ListHrisPaygroupsResponse, - ListHrisPaygroupsResponseBody, - ListHrisPaygroupsResponseBodyTypedDict, - ListHrisPaygroupsResponseTypedDict, -) -from .listhrispayrollrunsop import ( - ListHrisPayrollRunsRequest, - ListHrisPayrollRunsRequestTypedDict, - ListHrisPayrollRunsResponse, - ListHrisPayrollRunsResponseBody, - ListHrisPayrollRunsResponseBodyTypedDict, - ListHrisPayrollRunsResponseTypedDict, -) -from .listhristimeoffbalancesop import ( - ListHrisTimeoffbalancesRequest, - ListHrisTimeoffbalancesRequestTypedDict, - ListHrisTimeoffbalancesResponse, - ListHrisTimeoffbalancesResponseBody, - ListHrisTimeoffbalancesResponseBodyTypedDict, - ListHrisTimeoffbalancesResponseTypedDict, -) -from .listhristimeoffsop import ( - ListHrisTimeoffsRequest, - ListHrisTimeoffsRequestTypedDict, - ListHrisTimeoffsResponse, - ListHrisTimeoffsResponseBody, - ListHrisTimeoffsResponseBodyTypedDict, - ListHrisTimeoffsResponseTypedDict, -) -from .listhristimesheetentriesop import ( - ListHrisTimesheetentriesRequest, - ListHrisTimesheetentriesRequestTypedDict, - ListHrisTimesheetentriesResponse, - ListHrisTimesheetentriesResponseBody, - ListHrisTimesheetentriesResponseBodyTypedDict, - ListHrisTimesheetentriesResponseTypedDict, -) -from .listmarketingautomationactionop import ( - ListMarketingautomationActionRequest, - ListMarketingautomationActionRequestTypedDict, - ListMarketingautomationActionResponse, - ListMarketingautomationActionResponseBody, - ListMarketingautomationActionResponseBodyTypedDict, - ListMarketingautomationActionResponseTypedDict, -) -from .listmarketingautomationautomationsop import ( - ListMarketingautomationAutomationsRequest, - ListMarketingautomationAutomationsRequestTypedDict, - ListMarketingautomationAutomationsResponse, - ListMarketingautomationAutomationsResponseBody, - ListMarketingautomationAutomationsResponseBodyTypedDict, - ListMarketingautomationAutomationsResponseTypedDict, -) -from .listmarketingautomationcampaignsop import ( - ListMarketingautomationCampaignsRequest, - ListMarketingautomationCampaignsRequestTypedDict, - ListMarketingautomationCampaignsResponse, - ListMarketingautomationCampaignsResponseBody, - ListMarketingautomationCampaignsResponseBodyTypedDict, - ListMarketingautomationCampaignsResponseTypedDict, -) -from .listmarketingautomationcontactsop import ( - ListMarketingAutomationContactsRequest, - ListMarketingAutomationContactsRequestTypedDict, - ListMarketingAutomationContactsResponse, - ListMarketingAutomationContactsResponseBody, - ListMarketingAutomationContactsResponseBodyTypedDict, - ListMarketingAutomationContactsResponseTypedDict, -) -from .listmarketingautomationemailsop import ( - ListMarketingautomationEmailsRequest, - ListMarketingautomationEmailsRequestTypedDict, - ListMarketingautomationEmailsResponse, - ListMarketingautomationEmailsResponseBody, - ListMarketingautomationEmailsResponseBodyTypedDict, - ListMarketingautomationEmailsResponseTypedDict, -) -from .listmarketingautomationeventsop import ( - ListMarketingAutomationEventsRequest, - ListMarketingAutomationEventsRequestTypedDict, - ListMarketingAutomationEventsResponse, - ListMarketingAutomationEventsResponseBody, - ListMarketingAutomationEventsResponseBodyTypedDict, - ListMarketingAutomationEventsResponseTypedDict, -) -from .listmarketingautomationlistsop import ( - ListMarketingautomationListsRequest, - ListMarketingautomationListsRequestTypedDict, - ListMarketingautomationListsResponse, - ListMarketingautomationListsResponseBody, - ListMarketingautomationListsResponseBodyTypedDict, - ListMarketingautomationListsResponseTypedDict, -) -from .listmarketingautomationmessagesop import ( - ListMarketingautomationMessagesRequest, - ListMarketingautomationMessagesRequestTypedDict, - ListMarketingautomationMessagesResponse, - ListMarketingautomationMessagesResponseBody, - ListMarketingautomationMessagesResponseBodyTypedDict, - ListMarketingautomationMessagesResponseTypedDict, -) -from .listmarketingautomationtemplatesop import ( - ListMarketingautomationTemplatesRequest, - ListMarketingautomationTemplatesRequestTypedDict, - ListMarketingautomationTemplatesResponse, - ListMarketingautomationTemplatesResponseBody, - ListMarketingautomationTemplatesResponseBodyTypedDict, - ListMarketingautomationTemplatesResponseTypedDict, -) -from .listmarketingautomationusersop import ( - ListMarketingAutomationUsersRequest, - ListMarketingAutomationUsersRequestTypedDict, - ListMarketingAutomationUsersResponse, - ListMarketingAutomationUsersResponseBody, - ListMarketingAutomationUsersResponseBodyTypedDict, - ListMarketingAutomationUsersResponseTypedDict, -) -from .listticketingaccountop import ( - ListTicketingAccountRequest, - ListTicketingAccountRequestTypedDict, - ListTicketingAccountResponse, - ListTicketingAccountResponseBody, - ListTicketingAccountResponseBodyTypedDict, - ListTicketingAccountResponseTypedDict, -) -from .listticketingattachmentsop import ( - ListTicketingAttachmentsRequest, - ListTicketingAttachmentsRequestTypedDict, - ListTicketingAttachmentsResponse, - ListTicketingAttachmentsResponseBody, - ListTicketingAttachmentsResponseBodyTypedDict, - ListTicketingAttachmentsResponseTypedDict, -) -from .listticketingcollectionsop import ( - ListTicketingCollectionsRequest, - ListTicketingCollectionsRequestTypedDict, - ListTicketingCollectionsResponse, - ListTicketingCollectionsResponseBody, - ListTicketingCollectionsResponseBodyTypedDict, - ListTicketingCollectionsResponseTypedDict, -) -from .listticketingcommentsop import ( - ListTicketingCommentsRequest, - ListTicketingCommentsRequestTypedDict, - ListTicketingCommentsResponse, - ListTicketingCommentsResponseBody, - ListTicketingCommentsResponseBodyTypedDict, - ListTicketingCommentsResponseTypedDict, -) -from .listticketingcontactsop import ( - ListTicketingContactsRequest, - ListTicketingContactsRequestTypedDict, - ListTicketingContactsResponse, - ListTicketingContactsResponseBody, - ListTicketingContactsResponseBodyTypedDict, - ListTicketingContactsResponseTypedDict, -) -from .listticketingtagsop import ( - ListTicketingTagsRequest, - ListTicketingTagsRequestTypedDict, - ListTicketingTagsResponse, - ListTicketingTagsResponseBody, - ListTicketingTagsResponseBodyTypedDict, - ListTicketingTagsResponseTypedDict, -) -from .listticketingteamsop import ( - ListTicketingTeamsRequest, - ListTicketingTeamsRequestTypedDict, - ListTicketingTeamsResponse, - ListTicketingTeamsResponseBody, - ListTicketingTeamsResponseBodyTypedDict, - ListTicketingTeamsResponseTypedDict, -) -from .listticketingticketop import ( - ListTicketingTicketRequest, - ListTicketingTicketRequestTypedDict, - ListTicketingTicketResponse, - ListTicketingTicketResponseBody, - ListTicketingTicketResponseBodyTypedDict, - ListTicketingTicketResponseTypedDict, -) -from .listticketingusersop import ( - ListTicketingUsersRequest, - ListTicketingUsersRequestTypedDict, - ListTicketingUsersResponse, - ListTicketingUsersResponseBody, - ListTicketingUsersResponseBodyTypedDict, - ListTicketingUsersResponseTypedDict, -) +from .listaccountingaccountsop import ListAccountingAccountsRequest, ListAccountingAccountsRequestTypedDict, ListAccountingAccountsResponse, ListAccountingAccountsResponseBody, ListAccountingAccountsResponseBodyTypedDict, ListAccountingAccountsResponseTypedDict +from .listaccountingaddressop import ListAccountingAddressRequest, ListAccountingAddressRequestTypedDict, ListAccountingAddressResponse, ListAccountingAddressResponseBody, ListAccountingAddressResponseBodyTypedDict, ListAccountingAddressResponseTypedDict +from .listaccountingattachmentsop import ListAccountingAttachmentsRequest, ListAccountingAttachmentsRequestTypedDict, ListAccountingAttachmentsResponse, ListAccountingAttachmentsResponseBody, ListAccountingAttachmentsResponseBodyTypedDict, ListAccountingAttachmentsResponseTypedDict +from .listaccountingbalancesheetsop import ListAccountingBalanceSheetsRequest, ListAccountingBalanceSheetsRequestTypedDict, ListAccountingBalanceSheetsResponse, ListAccountingBalanceSheetsResponseBody, ListAccountingBalanceSheetsResponseBodyTypedDict, ListAccountingBalanceSheetsResponseTypedDict +from .listaccountingcashflowstatementop import ListAccountingCashflowStatementRequest, ListAccountingCashflowStatementRequestTypedDict, ListAccountingCashflowStatementResponse, ListAccountingCashflowStatementResponseBody, ListAccountingCashflowStatementResponseBodyTypedDict, ListAccountingCashflowStatementResponseTypedDict +from .listaccountingcompanyinfosop import ListAccountingCompanyInfosRequest, ListAccountingCompanyInfosRequestTypedDict, ListAccountingCompanyInfosResponse, ListAccountingCompanyInfosResponseBody, ListAccountingCompanyInfosResponseBodyTypedDict, ListAccountingCompanyInfosResponseTypedDict +from .listaccountingcontactsop import ListAccountingContactsRequest, ListAccountingContactsRequestTypedDict, ListAccountingContactsResponse, ListAccountingContactsResponseBody, ListAccountingContactsResponseBodyTypedDict, ListAccountingContactsResponseTypedDict +from .listaccountingcreditnoteop import ListAccountingCreditNoteRequest, ListAccountingCreditNoteRequestTypedDict, ListAccountingCreditNoteResponse, ListAccountingCreditNoteResponseBody, ListAccountingCreditNoteResponseBodyTypedDict, ListAccountingCreditNoteResponseTypedDict +from .listaccountingexpenseop import ListAccountingExpenseRequest, ListAccountingExpenseRequestTypedDict, ListAccountingExpenseResponse, ListAccountingExpenseResponseBody, ListAccountingExpenseResponseBodyTypedDict, ListAccountingExpenseResponseTypedDict +from .listaccountingincomestatementop import ListAccountingIncomeStatementRequest, ListAccountingIncomeStatementRequestTypedDict, ListAccountingIncomeStatementResponse, ListAccountingIncomeStatementResponseBody, ListAccountingIncomeStatementResponseBodyTypedDict, ListAccountingIncomeStatementResponseTypedDict +from .listaccountinginvoiceop import ListAccountingInvoiceRequest, ListAccountingInvoiceRequestTypedDict, ListAccountingInvoiceResponse, ListAccountingInvoiceResponseBody, ListAccountingInvoiceResponseBodyTypedDict, ListAccountingInvoiceResponseTypedDict +from .listaccountingitemop import ListAccountingItemRequest, ListAccountingItemRequestTypedDict, ListAccountingItemResponse, ListAccountingItemResponseBody, ListAccountingItemResponseBodyTypedDict, ListAccountingItemResponseTypedDict +from .listaccountingjournalentryop import ListAccountingJournalEntryRequest, ListAccountingJournalEntryRequestTypedDict, ListAccountingJournalEntryResponse, ListAccountingJournalEntryResponseBody, ListAccountingJournalEntryResponseBodyTypedDict, ListAccountingJournalEntryResponseTypedDict +from .listaccountingpaymentop import ListAccountingPaymentRequest, ListAccountingPaymentRequestTypedDict, ListAccountingPaymentResponse, ListAccountingPaymentResponseBody, ListAccountingPaymentResponseBodyTypedDict, ListAccountingPaymentResponseTypedDict +from .listaccountingphonenumberop import ListAccountingPhonenumberRequest, ListAccountingPhonenumberRequestTypedDict, ListAccountingPhonenumberResponse, ListAccountingPhonenumberResponseBody, ListAccountingPhonenumberResponseBodyTypedDict, ListAccountingPhonenumberResponseTypedDict +from .listaccountingpurchaseorderop import ListAccountingPurchaseOrderRequest, ListAccountingPurchaseOrderRequestTypedDict, ListAccountingPurchaseOrderResponse, ListAccountingPurchaseOrderResponseBody, ListAccountingPurchaseOrderResponseBodyTypedDict, ListAccountingPurchaseOrderResponseTypedDict +from .listaccountingtaxrateop import ListAccountingTaxRateRequest, ListAccountingTaxRateRequestTypedDict, ListAccountingTaxRateResponse, ListAccountingTaxRateResponseBody, ListAccountingTaxRateResponseBodyTypedDict, ListAccountingTaxRateResponseTypedDict +from .listaccountingtrackingcategorysop import ListAccountingTrackingCategorysRequest, ListAccountingTrackingCategorysRequestTypedDict, ListAccountingTrackingCategorysResponse, ListAccountingTrackingCategorysResponseBody, ListAccountingTrackingCategorysResponseBodyTypedDict, ListAccountingTrackingCategorysResponseTypedDict +from .listaccountingtransactionop import ListAccountingTransactionRequest, ListAccountingTransactionRequestTypedDict, ListAccountingTransactionResponse, ListAccountingTransactionResponseBody, ListAccountingTransactionResponseBodyTypedDict, ListAccountingTransactionResponseTypedDict +from .listaccountingvendorcreditop import ListAccountingVendorCreditRequest, ListAccountingVendorCreditRequestTypedDict, ListAccountingVendorCreditResponse, ListAccountingVendorCreditResponseBody, ListAccountingVendorCreditResponseBodyTypedDict, ListAccountingVendorCreditResponseTypedDict +from .listatsactivityop import ListAtsActivityRequest, ListAtsActivityRequestTypedDict, ListAtsActivityResponse, ListAtsActivityResponseBody, ListAtsActivityResponseBodyTypedDict, ListAtsActivityResponseTypedDict +from .listatsapplicationop import ListAtsApplicationRequest, ListAtsApplicationRequestTypedDict, ListAtsApplicationResponse, ListAtsApplicationResponseBody, ListAtsApplicationResponseBodyTypedDict, ListAtsApplicationResponseTypedDict +from .listatsattachmentop import ListAtsAttachmentRequest, ListAtsAttachmentRequestTypedDict, ListAtsAttachmentResponse, ListAtsAttachmentResponseBody, ListAtsAttachmentResponseBodyTypedDict, ListAtsAttachmentResponseTypedDict +from .listatscandidateop import ListAtsCandidateRequest, ListAtsCandidateRequestTypedDict, ListAtsCandidateResponse, ListAtsCandidateResponseBody, ListAtsCandidateResponseBodyTypedDict, ListAtsCandidateResponseTypedDict +from .listatsdepartmentsop import ListAtsDepartmentsRequest, ListAtsDepartmentsRequestTypedDict, ListAtsDepartmentsResponse, ListAtsDepartmentsResponseBody, ListAtsDepartmentsResponseBodyTypedDict, ListAtsDepartmentsResponseTypedDict +from .listatseeocsop import ListAtsEeocsRequest, ListAtsEeocsRequestTypedDict, ListAtsEeocsResponse, ListAtsEeocsResponseBody, ListAtsEeocsResponseBodyTypedDict, ListAtsEeocsResponseTypedDict +from .listatsinterviewop import ListAtsInterviewRequest, ListAtsInterviewRequestTypedDict, ListAtsInterviewResponse, ListAtsInterviewResponseBody, ListAtsInterviewResponseBodyTypedDict, ListAtsInterviewResponseTypedDict +from .listatsjobinterviewstageop import ListAtsJobInterviewStageRequest, ListAtsJobInterviewStageRequestTypedDict, ListAtsJobInterviewStageResponse, ListAtsJobInterviewStageResponseBody, ListAtsJobInterviewStageResponseBodyTypedDict, ListAtsJobInterviewStageResponseTypedDict +from .listatsjobop import ListAtsJobRequest, ListAtsJobRequestTypedDict, ListAtsJobResponse, ListAtsJobResponseBody, ListAtsJobResponseBodyTypedDict, ListAtsJobResponseTypedDict +from .listatsofferop import ListAtsOfferRequest, ListAtsOfferRequestTypedDict, ListAtsOfferResponse, ListAtsOfferResponseBody, ListAtsOfferResponseBodyTypedDict, ListAtsOfferResponseTypedDict +from .listatsofficeop import ListAtsOfficeRequest, ListAtsOfficeRequestTypedDict, ListAtsOfficeResponse, ListAtsOfficeResponseBody, ListAtsOfficeResponseBodyTypedDict, ListAtsOfficeResponseTypedDict +from .listatsrejectreasonsop import ListAtsRejectReasonsRequest, ListAtsRejectReasonsRequestTypedDict, ListAtsRejectReasonsResponse, ListAtsRejectReasonsResponseBody, ListAtsRejectReasonsResponseBodyTypedDict, ListAtsRejectReasonsResponseTypedDict +from .listatsscorecardop import ListAtsScorecardRequest, ListAtsScorecardRequestTypedDict, ListAtsScorecardResponse, ListAtsScorecardResponseBody, ListAtsScorecardResponseBodyTypedDict, ListAtsScorecardResponseTypedDict +from .listatstagsop import ListAtsTagsRequest, ListAtsTagsRequestTypedDict, ListAtsTagsResponse, ListAtsTagsResponseBody, ListAtsTagsResponseBodyTypedDict, ListAtsTagsResponseTypedDict +from .listatsusersop import ListAtsUsersRequest, ListAtsUsersRequestTypedDict, ListAtsUsersResponse, ListAtsUsersResponseBody, ListAtsUsersResponseBodyTypedDict, ListAtsUsersResponseTypedDict +from .listcrmcompanyop import ListCrmCompanyRequest, ListCrmCompanyRequestTypedDict, ListCrmCompanyResponse, ListCrmCompanyResponseBody, ListCrmCompanyResponseBodyTypedDict, ListCrmCompanyResponseTypedDict +from .listcrmcontactsop import ListCrmContactsRequest, ListCrmContactsRequestTypedDict, ListCrmContactsResponse, ListCrmContactsResponseBody, ListCrmContactsResponseBodyTypedDict, ListCrmContactsResponseTypedDict +from .listcrmdealsop import ListCrmDealsRequest, ListCrmDealsRequestTypedDict, ListCrmDealsResponse, ListCrmDealsResponseBody, ListCrmDealsResponseBodyTypedDict, ListCrmDealsResponseTypedDict +from .listcrmengagementsop import ListCrmEngagementsRequest, ListCrmEngagementsRequestTypedDict, ListCrmEngagementsResponse, ListCrmEngagementsResponseBody, ListCrmEngagementsResponseBodyTypedDict, ListCrmEngagementsResponseTypedDict +from .listcrmnoteop import ListCrmNoteRequest, ListCrmNoteRequestTypedDict, ListCrmNoteResponse, ListCrmNoteResponseBody, ListCrmNoteResponseBodyTypedDict, ListCrmNoteResponseTypedDict +from .listcrmstagesop import ListCrmStagesRequest, ListCrmStagesRequestTypedDict, ListCrmStagesResponse, ListCrmStagesResponseBody, ListCrmStagesResponseBodyTypedDict, ListCrmStagesResponseTypedDict +from .listcrmtaskop import ListCrmTaskRequest, ListCrmTaskRequestTypedDict, ListCrmTaskResponse, ListCrmTaskResponseBody, ListCrmTaskResponseBodyTypedDict, ListCrmTaskResponseTypedDict +from .listcrmusersop import ListCrmUsersRequest, ListCrmUsersRequestTypedDict, ListCrmUsersResponse, ListCrmUsersResponseBody, ListCrmUsersResponseBodyTypedDict, ListCrmUsersResponseTypedDict +from .listecommercecustomersop import ListEcommerceCustomersRequest, ListEcommerceCustomersRequestTypedDict, ListEcommerceCustomersResponse, ListEcommerceCustomersResponseBody, ListEcommerceCustomersResponseBodyTypedDict, ListEcommerceCustomersResponseTypedDict +from .listecommercefulfillmentsop import ListEcommerceFulfillmentsRequest, ListEcommerceFulfillmentsRequestTypedDict, ListEcommerceFulfillmentsResponse, ListEcommerceFulfillmentsResponseBody, ListEcommerceFulfillmentsResponseBodyTypedDict, ListEcommerceFulfillmentsResponseTypedDict +from .listecommerceordersop import ListEcommerceOrdersRequest, ListEcommerceOrdersRequestTypedDict, ListEcommerceOrdersResponse, ListEcommerceOrdersResponseBody, ListEcommerceOrdersResponseBodyTypedDict, ListEcommerceOrdersResponseTypedDict +from .listecommerceproductsop import ListEcommerceProductsRequest, ListEcommerceProductsRequestTypedDict, ListEcommerceProductsResponse, ListEcommerceProductsResponseBody, ListEcommerceProductsResponseBodyTypedDict, ListEcommerceProductsResponseTypedDict +from .listfilestoragefileop import ListFilestorageFileRequest, ListFilestorageFileRequestTypedDict, ListFilestorageFileResponse, ListFilestorageFileResponseBody, ListFilestorageFileResponseBodyTypedDict, ListFilestorageFileResponseTypedDict +from .listfilestoragefolderop import ListFilestorageFolderRequest, ListFilestorageFolderRequestTypedDict, ListFilestorageFolderResponse, ListFilestorageFolderResponseBody, ListFilestorageFolderResponseBodyTypedDict, ListFilestorageFolderResponseTypedDict +from .listfilestoragegroupop import ListFilestorageGroupRequest, ListFilestorageGroupRequestTypedDict, ListFilestorageGroupResponse, ListFilestorageGroupResponseBody, ListFilestorageGroupResponseBodyTypedDict, ListFilestorageGroupResponseTypedDict +from .listfilestorageusersop import ListFilestorageUsersRequest, ListFilestorageUsersRequestTypedDict, ListFilestorageUsersResponse, ListFilestorageUsersResponseBody, ListFilestorageUsersResponseBodyTypedDict, ListFilestorageUsersResponseTypedDict +from .listhrisbankinfoop import ListHrisBankInfoRequest, ListHrisBankInfoRequestTypedDict, ListHrisBankInfoResponse, ListHrisBankInfoResponseBody, ListHrisBankInfoResponseBodyTypedDict, ListHrisBankInfoResponseTypedDict +from .listhrisbenefitsop import ListHrisBenefitsRequest, ListHrisBenefitsRequestTypedDict, ListHrisBenefitsResponse, ListHrisBenefitsResponseBody, ListHrisBenefitsResponseBodyTypedDict, ListHrisBenefitsResponseTypedDict +from .listhriscompaniesop import ListHrisCompaniesRequest, ListHrisCompaniesRequestTypedDict, ListHrisCompaniesResponse, ListHrisCompaniesResponseBody, ListHrisCompaniesResponseBodyTypedDict, ListHrisCompaniesResponseTypedDict +from .listhrisdependentsop import ListHrisDependentsRequest, ListHrisDependentsRequestTypedDict, ListHrisDependentsResponse, ListHrisDependentsResponseBody, ListHrisDependentsResponseBodyTypedDict, ListHrisDependentsResponseTypedDict +from .listhrisemployeepayrollrunop import ListHrisEmployeePayrollRunRequest, ListHrisEmployeePayrollRunRequestTypedDict, ListHrisEmployeePayrollRunResponse, ListHrisEmployeePayrollRunResponseBody, ListHrisEmployeePayrollRunResponseBodyTypedDict, ListHrisEmployeePayrollRunResponseTypedDict +from .listhrisemployeesop import ListHrisEmployeesRequest, ListHrisEmployeesRequestTypedDict, ListHrisEmployeesResponse, ListHrisEmployeesResponseBody, ListHrisEmployeesResponseBodyTypedDict, ListHrisEmployeesResponseTypedDict +from .listhrisemployerbenefitsop import ListHrisEmployerBenefitsRequest, ListHrisEmployerBenefitsRequestTypedDict, ListHrisEmployerBenefitsResponse, ListHrisEmployerBenefitsResponseBody, ListHrisEmployerBenefitsResponseBodyTypedDict, ListHrisEmployerBenefitsResponseTypedDict +from .listhrisemploymentsop import ListHrisEmploymentsRequest, ListHrisEmploymentsRequestTypedDict, ListHrisEmploymentsResponse, ListHrisEmploymentsResponseBody, ListHrisEmploymentsResponseBodyTypedDict, ListHrisEmploymentsResponseTypedDict +from .listhrisgroupsop import ListHrisGroupsRequest, ListHrisGroupsRequestTypedDict, ListHrisGroupsResponse, ListHrisGroupsResponseBody, ListHrisGroupsResponseBodyTypedDict, ListHrisGroupsResponseTypedDict +from .listhrislocationsop import ListHrisLocationsRequest, ListHrisLocationsRequestTypedDict, ListHrisLocationsResponse, ListHrisLocationsResponseBody, ListHrisLocationsResponseBodyTypedDict, ListHrisLocationsResponseTypedDict +from .listhrispaygroupsop import ListHrisPaygroupsRequest, ListHrisPaygroupsRequestTypedDict, ListHrisPaygroupsResponse, ListHrisPaygroupsResponseBody, ListHrisPaygroupsResponseBodyTypedDict, ListHrisPaygroupsResponseTypedDict +from .listhrispayrollrunsop import ListHrisPayrollRunsRequest, ListHrisPayrollRunsRequestTypedDict, ListHrisPayrollRunsResponse, ListHrisPayrollRunsResponseBody, ListHrisPayrollRunsResponseBodyTypedDict, ListHrisPayrollRunsResponseTypedDict +from .listhristimeoffbalancesop import ListHrisTimeoffbalancesRequest, ListHrisTimeoffbalancesRequestTypedDict, ListHrisTimeoffbalancesResponse, ListHrisTimeoffbalancesResponseBody, ListHrisTimeoffbalancesResponseBodyTypedDict, ListHrisTimeoffbalancesResponseTypedDict +from .listhristimeoffsop import ListHrisTimeoffsRequest, ListHrisTimeoffsRequestTypedDict, ListHrisTimeoffsResponse, ListHrisTimeoffsResponseBody, ListHrisTimeoffsResponseBodyTypedDict, ListHrisTimeoffsResponseTypedDict +from .listhristimesheetentriesop import ListHrisTimesheetentriesRequest, ListHrisTimesheetentriesRequestTypedDict, ListHrisTimesheetentriesResponse, ListHrisTimesheetentriesResponseBody, ListHrisTimesheetentriesResponseBodyTypedDict, ListHrisTimesheetentriesResponseTypedDict +from .listmarketingautomationactionop import ListMarketingautomationActionRequest, ListMarketingautomationActionRequestTypedDict, ListMarketingautomationActionResponse, ListMarketingautomationActionResponseBody, ListMarketingautomationActionResponseBodyTypedDict, ListMarketingautomationActionResponseTypedDict +from .listmarketingautomationautomationsop import ListMarketingautomationAutomationsRequest, ListMarketingautomationAutomationsRequestTypedDict, ListMarketingautomationAutomationsResponse, ListMarketingautomationAutomationsResponseBody, ListMarketingautomationAutomationsResponseBodyTypedDict, ListMarketingautomationAutomationsResponseTypedDict +from .listmarketingautomationcampaignsop import ListMarketingautomationCampaignsRequest, ListMarketingautomationCampaignsRequestTypedDict, ListMarketingautomationCampaignsResponse, ListMarketingautomationCampaignsResponseBody, ListMarketingautomationCampaignsResponseBodyTypedDict, ListMarketingautomationCampaignsResponseTypedDict +from .listmarketingautomationcontactsop import ListMarketingAutomationContactsRequest, ListMarketingAutomationContactsRequestTypedDict, ListMarketingAutomationContactsResponse, ListMarketingAutomationContactsResponseBody, ListMarketingAutomationContactsResponseBodyTypedDict, ListMarketingAutomationContactsResponseTypedDict +from .listmarketingautomationemailsop import ListMarketingautomationEmailsRequest, ListMarketingautomationEmailsRequestTypedDict, ListMarketingautomationEmailsResponse, ListMarketingautomationEmailsResponseBody, ListMarketingautomationEmailsResponseBodyTypedDict, ListMarketingautomationEmailsResponseTypedDict +from .listmarketingautomationeventsop import ListMarketingAutomationEventsRequest, ListMarketingAutomationEventsRequestTypedDict, ListMarketingAutomationEventsResponse, ListMarketingAutomationEventsResponseBody, ListMarketingAutomationEventsResponseBodyTypedDict, ListMarketingAutomationEventsResponseTypedDict +from .listmarketingautomationlistsop import ListMarketingautomationListsRequest, ListMarketingautomationListsRequestTypedDict, ListMarketingautomationListsResponse, ListMarketingautomationListsResponseBody, ListMarketingautomationListsResponseBodyTypedDict, ListMarketingautomationListsResponseTypedDict +from .listmarketingautomationmessagesop import ListMarketingautomationMessagesRequest, ListMarketingautomationMessagesRequestTypedDict, ListMarketingautomationMessagesResponse, ListMarketingautomationMessagesResponseBody, ListMarketingautomationMessagesResponseBodyTypedDict, ListMarketingautomationMessagesResponseTypedDict +from .listmarketingautomationtemplatesop import ListMarketingautomationTemplatesRequest, ListMarketingautomationTemplatesRequestTypedDict, ListMarketingautomationTemplatesResponse, ListMarketingautomationTemplatesResponseBody, ListMarketingautomationTemplatesResponseBodyTypedDict, ListMarketingautomationTemplatesResponseTypedDict +from .listmarketingautomationusersop import ListMarketingAutomationUsersRequest, ListMarketingAutomationUsersRequestTypedDict, ListMarketingAutomationUsersResponse, ListMarketingAutomationUsersResponseBody, ListMarketingAutomationUsersResponseBodyTypedDict, ListMarketingAutomationUsersResponseTypedDict +from .listticketingaccountop import ListTicketingAccountRequest, ListTicketingAccountRequestTypedDict, ListTicketingAccountResponse, ListTicketingAccountResponseBody, ListTicketingAccountResponseBodyTypedDict, ListTicketingAccountResponseTypedDict +from .listticketingattachmentsop import ListTicketingAttachmentsRequest, ListTicketingAttachmentsRequestTypedDict, ListTicketingAttachmentsResponse, ListTicketingAttachmentsResponseBody, ListTicketingAttachmentsResponseBodyTypedDict, ListTicketingAttachmentsResponseTypedDict +from .listticketingcollectionsop import ListTicketingCollectionsRequest, ListTicketingCollectionsRequestTypedDict, ListTicketingCollectionsResponse, ListTicketingCollectionsResponseBody, ListTicketingCollectionsResponseBodyTypedDict, ListTicketingCollectionsResponseTypedDict +from .listticketingcommentsop import ListTicketingCommentsRequest, ListTicketingCommentsRequestTypedDict, ListTicketingCommentsResponse, ListTicketingCommentsResponseBody, ListTicketingCommentsResponseBodyTypedDict, ListTicketingCommentsResponseTypedDict +from .listticketingcontactsop import ListTicketingContactsRequest, ListTicketingContactsRequestTypedDict, ListTicketingContactsResponse, ListTicketingContactsResponseBody, ListTicketingContactsResponseBodyTypedDict, ListTicketingContactsResponseTypedDict +from .listticketingtagsop import ListTicketingTagsRequest, ListTicketingTagsRequestTypedDict, ListTicketingTagsResponse, ListTicketingTagsResponseBody, ListTicketingTagsResponseBodyTypedDict, ListTicketingTagsResponseTypedDict +from .listticketingteamsop import ListTicketingTeamsRequest, ListTicketingTeamsRequestTypedDict, ListTicketingTeamsResponse, ListTicketingTeamsResponseBody, ListTicketingTeamsResponseBodyTypedDict, ListTicketingTeamsResponseTypedDict +from .listticketingticketop import ListTicketingTicketRequest, ListTicketingTicketRequestTypedDict, ListTicketingTicketResponse, ListTicketingTicketResponseBody, ListTicketingTicketResponseBodyTypedDict, ListTicketingTicketResponseTypedDict +from .listticketingusersop import ListTicketingUsersRequest, ListTicketingUsersRequestTypedDict, ListTicketingUsersResponse, ListTicketingUsersResponseBody, ListTicketingUsersResponseBodyTypedDict, ListTicketingUsersResponseTypedDict from .logindto import LoginDto, LoginDtoTypedDict from .mapfieldtoproviderdto import MapFieldToProviderDto, MapFieldToProviderDtoTypedDict -from .passthroughrequestdto import ( - Data, - DataTypedDict, - Headers, - HeadersTypedDict, - PassThroughRequestDto, - PassThroughRequestDtoMethod, - PassThroughRequestDtoTypedDict, - RequestFormat, - RequestFormatTypedDict, -) +from .passthroughrequestdto import Data, DataTypedDict, Headers, HeadersTypedDict, PassThroughRequestDto, PassThroughRequestDtoMethod, PassThroughRequestDtoTypedDict, RequestFormat, RequestFormatTypedDict from .phone import Phone, PhoneTypedDict from .projectresponse import ProjectResponse, ProjectResponseTypedDict -from .ragcontroller_queryembeddingsop import ( - RagControllerQueryEmbeddingsResponseBody, - RagControllerQueryEmbeddingsResponseBodyTypedDict, -) +from .querybody import QueryBody, QueryBodyTypedDict +from .queryop import QueryRequest, QueryRequestTypedDict, QueryResponseBody, QueryResponseBodyTypedDict from .remoteidop import RemoteIDRequest, RemoteIDRequestTypedDict -from .requestop import ( - RequestPassthroughResponseBody, - RequestPassthroughResponseBodyTypedDict, - RequestRequest, - RequestRequestTypedDict, - RequestResponse, - RequestResponseBody, - RequestResponseBodyTypedDict, - RequestResponseTypedDict, -) +from .requestop import RequestPassthroughResponseBody, RequestPassthroughResponseBodyTypedDict, RequestRequest, RequestRequestTypedDict, RequestResponse, RequestResponseBody, RequestResponseBodyTypedDict, RequestResponseTypedDict from .resyncstatusdto import ResyncStatusDto, ResyncStatusDtoTypedDict, Status, Vertical -from .retrieveaccountingaccountop import ( - RetrieveAccountingAccountRequest, - RetrieveAccountingAccountRequestTypedDict, -) -from .retrieveaccountingaddressop import ( - RetrieveAccountingAddressRequest, - RetrieveAccountingAddressRequestTypedDict, -) -from .retrieveaccountingattachmentop import ( - RetrieveAccountingAttachmentRequest, - RetrieveAccountingAttachmentRequestTypedDict, -) -from .retrieveaccountingbalancesheetop import ( - RetrieveAccountingBalanceSheetRequest, - RetrieveAccountingBalanceSheetRequestTypedDict, -) -from .retrieveaccountingcashflowstatementop import ( - RetrieveAccountingCashflowStatementRequest, - RetrieveAccountingCashflowStatementRequestTypedDict, -) -from .retrieveaccountingcompanyinfoop import ( - RetrieveAccountingCompanyInfoRequest, - RetrieveAccountingCompanyInfoRequestTypedDict, -) -from .retrieveaccountingcontactop import ( - RetrieveAccountingContactRequest, - RetrieveAccountingContactRequestTypedDict, -) -from .retrieveaccountingcreditnoteop import ( - RetrieveAccountingCreditNoteRequest, - RetrieveAccountingCreditNoteRequestTypedDict, -) -from .retrieveaccountingexpenseop import ( - RetrieveAccountingExpenseRequest, - RetrieveAccountingExpenseRequestTypedDict, -) -from .retrieveaccountingincomestatementop import ( - RetrieveAccountingIncomeStatementRequest, - RetrieveAccountingIncomeStatementRequestTypedDict, -) -from .retrieveaccountinginvoiceop import ( - RetrieveAccountingInvoiceRequest, - RetrieveAccountingInvoiceRequestTypedDict, -) -from .retrieveaccountingitemop import ( - RetrieveAccountingItemRequest, - RetrieveAccountingItemRequestTypedDict, -) -from .retrieveaccountingjournalentryop import ( - RetrieveAccountingJournalEntryRequest, - RetrieveAccountingJournalEntryRequestTypedDict, -) -from .retrieveaccountingpaymentop import ( - RetrieveAccountingPaymentRequest, - RetrieveAccountingPaymentRequestTypedDict, -) -from .retrieveaccountingphonenumberop import ( - RetrieveAccountingPhonenumberRequest, - RetrieveAccountingPhonenumberRequestTypedDict, -) -from .retrieveaccountingpurchaseorderop import ( - RetrieveAccountingPurchaseOrderRequest, - RetrieveAccountingPurchaseOrderRequestTypedDict, -) -from .retrieveaccountingtaxrateop import ( - RetrieveAccountingTaxRateRequest, - RetrieveAccountingTaxRateRequestTypedDict, -) -from .retrieveaccountingtrackingcategoryop import ( - RetrieveAccountingTrackingCategoryRequest, - RetrieveAccountingTrackingCategoryRequestTypedDict, -) -from .retrieveaccountingtransactionop import ( - RetrieveAccountingTransactionRequest, - RetrieveAccountingTransactionRequestTypedDict, -) -from .retrieveaccountingvendorcreditop import ( - RetrieveAccountingVendorCreditRequest, - RetrieveAccountingVendorCreditRequestTypedDict, -) -from .retrieveatsactivityop import ( - RetrieveAtsActivityRequest, - RetrieveAtsActivityRequestTypedDict, -) -from .retrieveatsapplicationop import ( - RetrieveAtsApplicationRequest, - RetrieveAtsApplicationRequestTypedDict, -) -from .retrieveatsattachmentop import ( - RetrieveAtsAttachmentRequest, - RetrieveAtsAttachmentRequestTypedDict, -) -from .retrieveatscandidateop import ( - RetrieveAtsCandidateRequest, - RetrieveAtsCandidateRequestTypedDict, -) -from .retrieveatsdepartmentop import ( - RetrieveAtsDepartmentRequest, - RetrieveAtsDepartmentRequestTypedDict, -) -from .retrieveatseeocsop import ( - RetrieveAtsEeocsRequest, - RetrieveAtsEeocsRequestTypedDict, -) -from .retrieveatsinterviewop import ( - RetrieveAtsInterviewRequest, - RetrieveAtsInterviewRequestTypedDict, -) -from .retrieveatsjobinterviewstageop import ( - RetrieveAtsJobInterviewStageRequest, - RetrieveAtsJobInterviewStageRequestTypedDict, -) +from .retrieveaccountingaccountop import RetrieveAccountingAccountRequest, RetrieveAccountingAccountRequestTypedDict +from .retrieveaccountingaddressop import RetrieveAccountingAddressRequest, RetrieveAccountingAddressRequestTypedDict +from .retrieveaccountingattachmentop import RetrieveAccountingAttachmentRequest, RetrieveAccountingAttachmentRequestTypedDict +from .retrieveaccountingbalancesheetop import RetrieveAccountingBalanceSheetRequest, RetrieveAccountingBalanceSheetRequestTypedDict +from .retrieveaccountingcashflowstatementop import RetrieveAccountingCashflowStatementRequest, RetrieveAccountingCashflowStatementRequestTypedDict +from .retrieveaccountingcompanyinfoop import RetrieveAccountingCompanyInfoRequest, RetrieveAccountingCompanyInfoRequestTypedDict +from .retrieveaccountingcontactop import RetrieveAccountingContactRequest, RetrieveAccountingContactRequestTypedDict +from .retrieveaccountingcreditnoteop import RetrieveAccountingCreditNoteRequest, RetrieveAccountingCreditNoteRequestTypedDict +from .retrieveaccountingexpenseop import RetrieveAccountingExpenseRequest, RetrieveAccountingExpenseRequestTypedDict +from .retrieveaccountingincomestatementop import RetrieveAccountingIncomeStatementRequest, RetrieveAccountingIncomeStatementRequestTypedDict +from .retrieveaccountinginvoiceop import RetrieveAccountingInvoiceRequest, RetrieveAccountingInvoiceRequestTypedDict +from .retrieveaccountingitemop import RetrieveAccountingItemRequest, RetrieveAccountingItemRequestTypedDict +from .retrieveaccountingjournalentryop import RetrieveAccountingJournalEntryRequest, RetrieveAccountingJournalEntryRequestTypedDict +from .retrieveaccountingpaymentop import RetrieveAccountingPaymentRequest, RetrieveAccountingPaymentRequestTypedDict +from .retrieveaccountingphonenumberop import RetrieveAccountingPhonenumberRequest, RetrieveAccountingPhonenumberRequestTypedDict +from .retrieveaccountingpurchaseorderop import RetrieveAccountingPurchaseOrderRequest, RetrieveAccountingPurchaseOrderRequestTypedDict +from .retrieveaccountingtaxrateop import RetrieveAccountingTaxRateRequest, RetrieveAccountingTaxRateRequestTypedDict +from .retrieveaccountingtrackingcategoryop import RetrieveAccountingTrackingCategoryRequest, RetrieveAccountingTrackingCategoryRequestTypedDict +from .retrieveaccountingtransactionop import RetrieveAccountingTransactionRequest, RetrieveAccountingTransactionRequestTypedDict +from .retrieveaccountingvendorcreditop import RetrieveAccountingVendorCreditRequest, RetrieveAccountingVendorCreditRequestTypedDict +from .retrieveatsactivityop import RetrieveAtsActivityRequest, RetrieveAtsActivityRequestTypedDict +from .retrieveatsapplicationop import RetrieveAtsApplicationRequest, RetrieveAtsApplicationRequestTypedDict +from .retrieveatsattachmentop import RetrieveAtsAttachmentRequest, RetrieveAtsAttachmentRequestTypedDict +from .retrieveatscandidateop import RetrieveAtsCandidateRequest, RetrieveAtsCandidateRequestTypedDict +from .retrieveatsdepartmentop import RetrieveAtsDepartmentRequest, RetrieveAtsDepartmentRequestTypedDict +from .retrieveatseeocsop import RetrieveAtsEeocsRequest, RetrieveAtsEeocsRequestTypedDict +from .retrieveatsinterviewop import RetrieveAtsInterviewRequest, RetrieveAtsInterviewRequestTypedDict +from .retrieveatsjobinterviewstageop import RetrieveAtsJobInterviewStageRequest, RetrieveAtsJobInterviewStageRequestTypedDict from .retrieveatsjobop import RetrieveAtsJobRequest, RetrieveAtsJobRequestTypedDict -from .retrieveatsofferop import ( - RetrieveAtsOfferRequest, - RetrieveAtsOfferRequestTypedDict, -) -from .retrieveatsofficeop import ( - RetrieveAtsOfficeRequest, - RetrieveAtsOfficeRequestTypedDict, -) -from .retrieveatsrejectreasonop import ( - RetrieveAtsRejectReasonRequest, - RetrieveAtsRejectReasonRequestTypedDict, -) -from .retrieveatsscorecardop import ( - RetrieveAtsScorecardRequest, - RetrieveAtsScorecardRequestTypedDict, -) +from .retrieveatsofferop import RetrieveAtsOfferRequest, RetrieveAtsOfferRequestTypedDict +from .retrieveatsofficeop import RetrieveAtsOfficeRequest, RetrieveAtsOfficeRequestTypedDict +from .retrieveatsrejectreasonop import RetrieveAtsRejectReasonRequest, RetrieveAtsRejectReasonRequestTypedDict +from .retrieveatsscorecardop import RetrieveAtsScorecardRequest, RetrieveAtsScorecardRequestTypedDict from .retrieveatstagop import RetrieveAtsTagRequest, RetrieveAtsTagRequestTypedDict from .retrieveatsuserop import RetrieveAtsUserRequest, RetrieveAtsUserRequestTypedDict -from .retrievecollectionop import ( - RetrieveCollectionRequest, - RetrieveCollectionRequestTypedDict, -) -from .retrievecrmcompanyop import ( - RetrieveCrmCompanyRequest, - RetrieveCrmCompanyRequestTypedDict, -) -from .retrievecrmcontactop import ( - RetrieveCrmContactRequest, - RetrieveCrmContactRequestTypedDict, -) +from .retrievecollectionop import RetrieveCollectionRequest, RetrieveCollectionRequestTypedDict +from .retrievecrmcompanyop import RetrieveCrmCompanyRequest, RetrieveCrmCompanyRequestTypedDict +from .retrievecrmcontactop import RetrieveCrmContactRequest, RetrieveCrmContactRequestTypedDict from .retrievecrmdealop import RetrieveCrmDealRequest, RetrieveCrmDealRequestTypedDict -from .retrievecrmengagementop import ( - RetrieveCrmEngagementRequest, - RetrieveCrmEngagementRequestTypedDict, -) +from .retrievecrmengagementop import RetrieveCrmEngagementRequest, RetrieveCrmEngagementRequestTypedDict from .retrievecrmnoteop import RetrieveCrmNoteRequest, RetrieveCrmNoteRequestTypedDict -from .retrievecrmstageop import ( - RetrieveCrmStageRequest, - RetrieveCrmStageRequestTypedDict, -) +from .retrievecrmstageop import RetrieveCrmStageRequest, RetrieveCrmStageRequestTypedDict from .retrievecrmtaskop import RetrieveCrmTaskRequest, RetrieveCrmTaskRequestTypedDict from .retrievecrmuserop import RetrieveCrmUserRequest, RetrieveCrmUserRequestTypedDict -from .retrieveecommercecustomerop import ( - RetrieveEcommerceCustomerRequest, - RetrieveEcommerceCustomerRequestTypedDict, -) -from .retrieveecommercefulfillmentop import ( - RetrieveEcommerceFulfillmentRequest, - RetrieveEcommerceFulfillmentRequestTypedDict, -) -from .retrieveecommerceorderop import ( - RetrieveEcommerceOrderRequest, - RetrieveEcommerceOrderRequestTypedDict, -) -from .retrieveecommerceproductop import ( - RetrieveEcommerceProductRequest, - RetrieveEcommerceProductRequestTypedDict, -) -from .retrievefilestoragefileop import ( - RetrieveFilestorageFileRequest, - RetrieveFilestorageFileRequestTypedDict, -) -from .retrievefilestoragefolderop import ( - RetrieveFilestorageFolderRequest, - RetrieveFilestorageFolderRequestTypedDict, -) -from .retrievefilestoragegroupop import ( - RetrieveFilestorageGroupRequest, - RetrieveFilestorageGroupRequestTypedDict, -) -from .retrievefilestorageuserop import ( - RetrieveFilestorageUserRequest, - RetrieveFilestorageUserRequestTypedDict, -) -from .retrievehrisbankinfoop import ( - RetrieveHrisBankInfoRequest, - RetrieveHrisBankInfoRequestTypedDict, -) -from .retrievehrisbenefitop import ( - RetrieveHrisBenefitRequest, - RetrieveHrisBenefitRequestTypedDict, -) -from .retrievehriscompanyop import ( - RetrieveHrisCompanyRequest, - RetrieveHrisCompanyRequestTypedDict, -) -from .retrievehrisdependentop import ( - RetrieveHrisDependentRequest, - RetrieveHrisDependentRequestTypedDict, -) -from .retrievehrisemployeeop import ( - RetrieveHrisEmployeeRequest, - RetrieveHrisEmployeeRequestTypedDict, -) -from .retrievehrisemployeepayrollrunop import ( - RetrieveHrisEmployeePayrollRunRequest, - RetrieveHrisEmployeePayrollRunRequestTypedDict, -) -from .retrievehrisemployerbenefitop import ( - RetrieveHrisEmployerBenefitRequest, - RetrieveHrisEmployerBenefitRequestTypedDict, -) -from .retrievehrisemploymentop import ( - RetrieveHrisEmploymentRequest, - RetrieveHrisEmploymentRequestTypedDict, -) -from .retrievehrisgroupop import ( - RetrieveHrisGroupRequest, - RetrieveHrisGroupRequestTypedDict, -) -from .retrievehrislocationop import ( - RetrieveHrisLocationRequest, - RetrieveHrisLocationRequestTypedDict, -) -from .retrievehrispaygroupop import ( - RetrieveHrisPaygroupRequest, - RetrieveHrisPaygroupRequestTypedDict, -) -from .retrievehrispayrollrunop import ( - RetrieveHrisPayrollRunRequest, - RetrieveHrisPayrollRunRequestTypedDict, -) -from .retrievehristimeoffbalanceop import ( - RetrieveHrisTimeoffbalanceRequest, - RetrieveHrisTimeoffbalanceRequestTypedDict, -) -from .retrievehristimeoffop import ( - RetrieveHrisTimeoffRequest, - RetrieveHrisTimeoffRequestTypedDict, -) -from .retrievehristimesheetentryop import ( - RetrieveHrisTimesheetentryRequest, - RetrieveHrisTimesheetentryRequestTypedDict, -) -from .retrievelinkeduserop import ( - RetrieveLinkedUserRequest, - RetrieveLinkedUserRequestTypedDict, -) -from .retrievemarketingautomationactionop import ( - RetrieveMarketingautomationActionRequest, - RetrieveMarketingautomationActionRequestTypedDict, -) -from .retrievemarketingautomationautomationop import ( - RetrieveMarketingautomationAutomationRequest, - RetrieveMarketingautomationAutomationRequestTypedDict, -) -from .retrievemarketingautomationcampaignop import ( - RetrieveMarketingautomationCampaignRequest, - RetrieveMarketingautomationCampaignRequestTypedDict, -) -from .retrievemarketingautomationcontactop import ( - RetrieveMarketingAutomationContactRequest, - RetrieveMarketingAutomationContactRequestTypedDict, -) -from .retrievemarketingautomationemailop import ( - RetrieveMarketingautomationEmailRequest, - RetrieveMarketingautomationEmailRequestTypedDict, -) -from .retrievemarketingautomationeventop import ( - RetrieveMarketingautomationEventRequest, - RetrieveMarketingautomationEventRequestTypedDict, -) -from .retrievemarketingautomationlistop import ( - RetrieveMarketingautomationListRequest, - RetrieveMarketingautomationListRequestTypedDict, -) -from .retrievemarketingautomationmessageop import ( - RetrieveMarketingautomationMessageRequest, - RetrieveMarketingautomationMessageRequestTypedDict, -) -from .retrievemarketingautomationtemplateop import ( - RetrieveMarketingautomationTemplateRequest, - RetrieveMarketingautomationTemplateRequestTypedDict, -) -from .retrievemarketingautomationuserop import ( - RetrieveMarketingAutomationUserRequest, - RetrieveMarketingAutomationUserRequestTypedDict, -) -from .retrieveticketingaccountop import ( - RetrieveTicketingAccountRequest, - RetrieveTicketingAccountRequestTypedDict, -) -from .retrieveticketingattachmentop import ( - RetrieveTicketingAttachmentRequest, - RetrieveTicketingAttachmentRequestTypedDict, -) -from .retrieveticketingcommentop import ( - RetrieveTicketingCommentRequest, - RetrieveTicketingCommentRequestTypedDict, - RetrieveTicketingCommentResponseBody, - RetrieveTicketingCommentResponseBodyTypedDict, -) -from .retrieveticketingcontactop import ( - RetrieveTicketingContactRequest, - RetrieveTicketingContactRequestTypedDict, - RetrieveTicketingContactResponseBody, - RetrieveTicketingContactResponseBodyTypedDict, -) -from .retrieveticketingtagop import ( - RetrieveTicketingTagRequest, - RetrieveTicketingTagRequestTypedDict, -) -from .retrieveticketingteamop import ( - RetrieveTicketingTeamRequest, - RetrieveTicketingTeamRequestTypedDict, -) -from .retrieveticketingticketop import ( - RetrieveTicketingTicketRequest, - RetrieveTicketingTicketRequestTypedDict, -) -from .retrieveticketinguserop import ( - RetrieveTicketingUserRequest, - RetrieveTicketingUserRequestTypedDict, -) +from .retrieveecommercecustomerop import RetrieveEcommerceCustomerRequest, RetrieveEcommerceCustomerRequestTypedDict +from .retrieveecommercefulfillmentop import RetrieveEcommerceFulfillmentRequest, RetrieveEcommerceFulfillmentRequestTypedDict +from .retrieveecommerceorderop import RetrieveEcommerceOrderRequest, RetrieveEcommerceOrderRequestTypedDict +from .retrieveecommerceproductop import RetrieveEcommerceProductRequest, RetrieveEcommerceProductRequestTypedDict +from .retrievefilestoragefileop import RetrieveFilestorageFileRequest, RetrieveFilestorageFileRequestTypedDict +from .retrievefilestoragefolderop import RetrieveFilestorageFolderRequest, RetrieveFilestorageFolderRequestTypedDict +from .retrievefilestoragegroupop import RetrieveFilestorageGroupRequest, RetrieveFilestorageGroupRequestTypedDict +from .retrievefilestorageuserop import RetrieveFilestorageUserRequest, RetrieveFilestorageUserRequestTypedDict +from .retrievehrisbankinfoop import RetrieveHrisBankInfoRequest, RetrieveHrisBankInfoRequestTypedDict +from .retrievehrisbenefitop import RetrieveHrisBenefitRequest, RetrieveHrisBenefitRequestTypedDict +from .retrievehriscompanyop import RetrieveHrisCompanyRequest, RetrieveHrisCompanyRequestTypedDict +from .retrievehrisdependentop import RetrieveHrisDependentRequest, RetrieveHrisDependentRequestTypedDict +from .retrievehrisemployeeop import RetrieveHrisEmployeeRequest, RetrieveHrisEmployeeRequestTypedDict +from .retrievehrisemployeepayrollrunop import RetrieveHrisEmployeePayrollRunRequest, RetrieveHrisEmployeePayrollRunRequestTypedDict +from .retrievehrisemployerbenefitop import RetrieveHrisEmployerBenefitRequest, RetrieveHrisEmployerBenefitRequestTypedDict +from .retrievehrisemploymentop import RetrieveHrisEmploymentRequest, RetrieveHrisEmploymentRequestTypedDict +from .retrievehrisgroupop import RetrieveHrisGroupRequest, RetrieveHrisGroupRequestTypedDict +from .retrievehrislocationop import RetrieveHrisLocationRequest, RetrieveHrisLocationRequestTypedDict +from .retrievehrispaygroupop import RetrieveHrisPaygroupRequest, RetrieveHrisPaygroupRequestTypedDict +from .retrievehrispayrollrunop import RetrieveHrisPayrollRunRequest, RetrieveHrisPayrollRunRequestTypedDict +from .retrievehristimeoffbalanceop import RetrieveHrisTimeoffbalanceRequest, RetrieveHrisTimeoffbalanceRequestTypedDict +from .retrievehristimeoffop import RetrieveHrisTimeoffRequest, RetrieveHrisTimeoffRequestTypedDict +from .retrievehristimesheetentryop import RetrieveHrisTimesheetentryRequest, RetrieveHrisTimesheetentryRequestTypedDict +from .retrievelinkeduserop import RetrieveLinkedUserRequest, RetrieveLinkedUserRequestTypedDict +from .retrievemarketingautomationactionop import RetrieveMarketingautomationActionRequest, RetrieveMarketingautomationActionRequestTypedDict +from .retrievemarketingautomationautomationop import RetrieveMarketingautomationAutomationRequest, RetrieveMarketingautomationAutomationRequestTypedDict +from .retrievemarketingautomationcampaignop import RetrieveMarketingautomationCampaignRequest, RetrieveMarketingautomationCampaignRequestTypedDict +from .retrievemarketingautomationcontactop import RetrieveMarketingAutomationContactRequest, RetrieveMarketingAutomationContactRequestTypedDict +from .retrievemarketingautomationemailop import RetrieveMarketingautomationEmailRequest, RetrieveMarketingautomationEmailRequestTypedDict +from .retrievemarketingautomationeventop import RetrieveMarketingautomationEventRequest, RetrieveMarketingautomationEventRequestTypedDict +from .retrievemarketingautomationlistop import RetrieveMarketingautomationListRequest, RetrieveMarketingautomationListRequestTypedDict +from .retrievemarketingautomationmessageop import RetrieveMarketingautomationMessageRequest, RetrieveMarketingautomationMessageRequestTypedDict +from .retrievemarketingautomationtemplateop import RetrieveMarketingautomationTemplateRequest, RetrieveMarketingautomationTemplateRequestTypedDict +from .retrievemarketingautomationuserop import RetrieveMarketingAutomationUserRequest, RetrieveMarketingAutomationUserRequestTypedDict +from .retrieveticketingaccountop import RetrieveTicketingAccountRequest, RetrieveTicketingAccountRequestTypedDict +from .retrieveticketingattachmentop import RetrieveTicketingAttachmentRequest, RetrieveTicketingAttachmentRequestTypedDict +from .retrieveticketingcommentop import RetrieveTicketingCommentRequest, RetrieveTicketingCommentRequestTypedDict, RetrieveTicketingCommentResponseBody, RetrieveTicketingCommentResponseBodyTypedDict +from .retrieveticketingcontactop import RetrieveTicketingContactRequest, RetrieveTicketingContactRequestTypedDict, RetrieveTicketingContactResponseBody, RetrieveTicketingContactResponseBodyTypedDict +from .retrieveticketingtagop import RetrieveTicketingTagRequest, RetrieveTicketingTagRequestTypedDict +from .retrieveticketingteamop import RetrieveTicketingTeamRequest, RetrieveTicketingTeamRequestTypedDict +from .retrieveticketingticketop import RetrieveTicketingTicketRequest, RetrieveTicketingTicketRequestTypedDict +from .retrieveticketinguserop import RetrieveTicketingUserRequest, RetrieveTicketingUserRequestTypedDict from .sdkerror import SDKError from .security import Security, SecurityTypedDict -from .signatureverificationdto import ( - SignatureVerificationDto, - SignatureVerificationDtoTypedDict, -) +from .signatureverificationdto import SignatureVerificationDto, SignatureVerificationDtoTypedDict from .statusop import PathParamVertical, StatusRequest, StatusRequestTypedDict from .taxitem import TaxItem, TaxItemTypedDict -from .unifiedaccountingaccountinput import ( - UnifiedAccountingAccountInput, - UnifiedAccountingAccountInputFieldMappings, - UnifiedAccountingAccountInputFieldMappingsTypedDict, - UnifiedAccountingAccountInputTypedDict, -) -from .unifiedaccountingaccountoutput import ( - UnifiedAccountingAccountOutput, - UnifiedAccountingAccountOutputFieldMappings, - UnifiedAccountingAccountOutputFieldMappingsTypedDict, - UnifiedAccountingAccountOutputRemoteData, - UnifiedAccountingAccountOutputRemoteDataTypedDict, - UnifiedAccountingAccountOutputTypedDict, -) -from .unifiedaccountingaddressoutput import ( - UnifiedAccountingAddressOutput, - UnifiedAccountingAddressOutputFieldMappings, - UnifiedAccountingAddressOutputFieldMappingsTypedDict, - UnifiedAccountingAddressOutputRemoteData, - UnifiedAccountingAddressOutputRemoteDataTypedDict, - UnifiedAccountingAddressOutputTypedDict, -) -from .unifiedaccountingattachmentinput import ( - UnifiedAccountingAttachmentInput, - UnifiedAccountingAttachmentInputFieldMappings, - UnifiedAccountingAttachmentInputFieldMappingsTypedDict, - UnifiedAccountingAttachmentInputTypedDict, -) -from .unifiedaccountingattachmentoutput import ( - UnifiedAccountingAttachmentOutput, - UnifiedAccountingAttachmentOutputFieldMappings, - UnifiedAccountingAttachmentOutputFieldMappingsTypedDict, - UnifiedAccountingAttachmentOutputRemoteData, - UnifiedAccountingAttachmentOutputRemoteDataTypedDict, - UnifiedAccountingAttachmentOutputTypedDict, -) -from .unifiedaccountingbalancesheetoutput import ( - UnifiedAccountingBalancesheetOutput, - UnifiedAccountingBalancesheetOutputFieldMappings, - UnifiedAccountingBalancesheetOutputFieldMappingsTypedDict, - UnifiedAccountingBalancesheetOutputRemoteData, - UnifiedAccountingBalancesheetOutputRemoteDataTypedDict, - UnifiedAccountingBalancesheetOutputTypedDict, -) -from .unifiedaccountingcashflowstatementoutput import ( - UnifiedAccountingCashflowstatementOutput, - UnifiedAccountingCashflowstatementOutputFieldMappings, - UnifiedAccountingCashflowstatementOutputFieldMappingsTypedDict, - UnifiedAccountingCashflowstatementOutputRemoteData, - UnifiedAccountingCashflowstatementOutputRemoteDataTypedDict, - UnifiedAccountingCashflowstatementOutputTypedDict, -) -from .unifiedaccountingcompanyinfooutput import ( - UnifiedAccountingCompanyinfoOutput, - UnifiedAccountingCompanyinfoOutputFieldMappings, - UnifiedAccountingCompanyinfoOutputFieldMappingsTypedDict, - UnifiedAccountingCompanyinfoOutputRemoteData, - UnifiedAccountingCompanyinfoOutputRemoteDataTypedDict, - UnifiedAccountingCompanyinfoOutputTypedDict, -) -from .unifiedaccountingcontactinput import ( - UnifiedAccountingContactInput, - UnifiedAccountingContactInputFieldMappings, - UnifiedAccountingContactInputFieldMappingsTypedDict, - UnifiedAccountingContactInputTypedDict, -) -from .unifiedaccountingcontactoutput import ( - UnifiedAccountingContactOutput, - UnifiedAccountingContactOutputFieldMappings, - UnifiedAccountingContactOutputFieldMappingsTypedDict, - UnifiedAccountingContactOutputRemoteData, - UnifiedAccountingContactOutputRemoteDataTypedDict, - UnifiedAccountingContactOutputTypedDict, -) -from .unifiedaccountingcreditnoteoutput import ( - UnifiedAccountingCreditnoteOutput, - UnifiedAccountingCreditnoteOutputFieldMappings, - UnifiedAccountingCreditnoteOutputFieldMappingsTypedDict, - UnifiedAccountingCreditnoteOutputRemoteData, - UnifiedAccountingCreditnoteOutputRemoteDataTypedDict, - UnifiedAccountingCreditnoteOutputTypedDict, -) -from .unifiedaccountingexpenseinput import ( - UnifiedAccountingExpenseInput, - UnifiedAccountingExpenseInputFieldMappings, - UnifiedAccountingExpenseInputFieldMappingsTypedDict, - UnifiedAccountingExpenseInputTypedDict, -) -from .unifiedaccountingexpenseoutput import ( - UnifiedAccountingExpenseOutput, - UnifiedAccountingExpenseOutputFieldMappings, - UnifiedAccountingExpenseOutputFieldMappingsTypedDict, - UnifiedAccountingExpenseOutputRemoteData, - UnifiedAccountingExpenseOutputRemoteDataTypedDict, - UnifiedAccountingExpenseOutputTypedDict, -) -from .unifiedaccountingincomestatementoutput import ( - UnifiedAccountingIncomestatementOutput, - UnifiedAccountingIncomestatementOutputFieldMappings, - UnifiedAccountingIncomestatementOutputFieldMappingsTypedDict, - UnifiedAccountingIncomestatementOutputRemoteData, - UnifiedAccountingIncomestatementOutputRemoteDataTypedDict, - UnifiedAccountingIncomestatementOutputTypedDict, -) -from .unifiedaccountinginvoiceinput import ( - UnifiedAccountingInvoiceInput, - UnifiedAccountingInvoiceInputFieldMappings, - UnifiedAccountingInvoiceInputFieldMappingsTypedDict, - UnifiedAccountingInvoiceInputTypedDict, -) -from .unifiedaccountinginvoiceoutput import ( - UnifiedAccountingInvoiceOutput, - UnifiedAccountingInvoiceOutputFieldMappings, - UnifiedAccountingInvoiceOutputFieldMappingsTypedDict, - UnifiedAccountingInvoiceOutputRemoteData, - UnifiedAccountingInvoiceOutputRemoteDataTypedDict, - UnifiedAccountingInvoiceOutputTypedDict, -) -from .unifiedaccountingitemoutput import ( - UnifiedAccountingItemOutput, - UnifiedAccountingItemOutputFieldMappings, - UnifiedAccountingItemOutputFieldMappingsTypedDict, - UnifiedAccountingItemOutputRemoteData, - UnifiedAccountingItemOutputRemoteDataTypedDict, - UnifiedAccountingItemOutputTypedDict, -) -from .unifiedaccountingjournalentryinput import ( - UnifiedAccountingJournalentryInput, - UnifiedAccountingJournalentryInputFieldMappings, - UnifiedAccountingJournalentryInputFieldMappingsTypedDict, - UnifiedAccountingJournalentryInputTypedDict, -) -from .unifiedaccountingjournalentryoutput import ( - UnifiedAccountingJournalentryOutput, - UnifiedAccountingJournalentryOutputFieldMappings, - UnifiedAccountingJournalentryOutputFieldMappingsTypedDict, - UnifiedAccountingJournalentryOutputRemoteData, - UnifiedAccountingJournalentryOutputRemoteDataTypedDict, - UnifiedAccountingJournalentryOutputTypedDict, -) -from .unifiedaccountingpaymentinput import ( - UnifiedAccountingPaymentInput, - UnifiedAccountingPaymentInputFieldMappings, - UnifiedAccountingPaymentInputFieldMappingsTypedDict, - UnifiedAccountingPaymentInputTypedDict, -) -from .unifiedaccountingpaymentoutput import ( - UnifiedAccountingPaymentOutput, - UnifiedAccountingPaymentOutputFieldMappings, - UnifiedAccountingPaymentOutputFieldMappingsTypedDict, - UnifiedAccountingPaymentOutputRemoteData, - UnifiedAccountingPaymentOutputRemoteDataTypedDict, - UnifiedAccountingPaymentOutputTypedDict, -) -from .unifiedaccountingphonenumberoutput import ( - UnifiedAccountingPhonenumberOutput, - UnifiedAccountingPhonenumberOutputFieldMappings, - UnifiedAccountingPhonenumberOutputFieldMappingsTypedDict, - UnifiedAccountingPhonenumberOutputRemoteData, - UnifiedAccountingPhonenumberOutputRemoteDataTypedDict, - UnifiedAccountingPhonenumberOutputTypedDict, -) -from .unifiedaccountingpurchaseorderinput import ( - UnifiedAccountingPurchaseorderInput, - UnifiedAccountingPurchaseorderInputFieldMappings, - UnifiedAccountingPurchaseorderInputFieldMappingsTypedDict, - UnifiedAccountingPurchaseorderInputTypedDict, -) -from .unifiedaccountingpurchaseorderoutput import ( - UnifiedAccountingPurchaseorderOutput, - UnifiedAccountingPurchaseorderOutputFieldMappings, - UnifiedAccountingPurchaseorderOutputFieldMappingsTypedDict, - UnifiedAccountingPurchaseorderOutputRemoteData, - UnifiedAccountingPurchaseorderOutputRemoteDataTypedDict, - UnifiedAccountingPurchaseorderOutputTypedDict, -) -from .unifiedaccountingtaxrateoutput import ( - UnifiedAccountingTaxrateOutput, - UnifiedAccountingTaxrateOutputFieldMappings, - UnifiedAccountingTaxrateOutputFieldMappingsTypedDict, - UnifiedAccountingTaxrateOutputRemoteData, - UnifiedAccountingTaxrateOutputRemoteDataTypedDict, - UnifiedAccountingTaxrateOutputTypedDict, -) -from .unifiedaccountingtrackingcategoryoutput import ( - UnifiedAccountingTrackingcategoryOutput, - UnifiedAccountingTrackingcategoryOutputFieldMappings, - UnifiedAccountingTrackingcategoryOutputFieldMappingsTypedDict, - UnifiedAccountingTrackingcategoryOutputRemoteData, - UnifiedAccountingTrackingcategoryOutputRemoteDataTypedDict, - UnifiedAccountingTrackingcategoryOutputTypedDict, -) -from .unifiedaccountingtransactionoutput import ( - UnifiedAccountingTransactionOutput, - UnifiedAccountingTransactionOutputFieldMappings, - UnifiedAccountingTransactionOutputFieldMappingsTypedDict, - UnifiedAccountingTransactionOutputRemoteData, - UnifiedAccountingTransactionOutputRemoteDataTypedDict, - UnifiedAccountingTransactionOutputTypedDict, -) -from .unifiedaccountingvendorcreditoutput import ( - UnifiedAccountingVendorcreditOutput, - UnifiedAccountingVendorcreditOutputFieldMappings, - UnifiedAccountingVendorcreditOutputFieldMappingsTypedDict, - UnifiedAccountingVendorcreditOutputRemoteData, - UnifiedAccountingVendorcreditOutputRemoteDataTypedDict, - UnifiedAccountingVendorcreditOutputTypedDict, -) -from .unifiedatsactivityinput import ( - UnifiedAtsActivityInput, - UnifiedAtsActivityInputTypedDict, -) -from .unifiedatsactivityoutput import ( - UnifiedAtsActivityOutput, - UnifiedAtsActivityOutputTypedDict, -) -from .unifiedatsapplicationinput import ( - UnifiedAtsApplicationInput, - UnifiedAtsApplicationInputTypedDict, -) -from .unifiedatsapplicationoutput import ( - UnifiedAtsApplicationOutput, - UnifiedAtsApplicationOutputTypedDict, -) -from .unifiedatsattachmentinput import ( - UnifiedAtsAttachmentInput, - UnifiedAtsAttachmentInputTypedDict, -) -from .unifiedatsattachmentoutput import ( - UnifiedAtsAttachmentOutput, - UnifiedAtsAttachmentOutputTypedDict, -) -from .unifiedatscandidateinput import ( - UnifiedAtsCandidateInput, - UnifiedAtsCandidateInputApplications, - UnifiedAtsCandidateInputApplicationsTypedDict, - UnifiedAtsCandidateInputAttachments, - UnifiedAtsCandidateInputAttachmentsTypedDict, - UnifiedAtsCandidateInputTags, - UnifiedAtsCandidateInputTagsTypedDict, - UnifiedAtsCandidateInputTypedDict, -) -from .unifiedatscandidateoutput import ( - ApplicationsModel, - ApplicationsModelTypedDict, - UnifiedAtsCandidateOutput, - UnifiedAtsCandidateOutputAttachments, - UnifiedAtsCandidateOutputAttachmentsTypedDict, - UnifiedAtsCandidateOutputTags, - UnifiedAtsCandidateOutputTagsTypedDict, - UnifiedAtsCandidateOutputTypedDict, -) -from .unifiedatsdepartmentoutput import ( - UnifiedAtsDepartmentOutput, - UnifiedAtsDepartmentOutputTypedDict, -) +from .unifiedaccountingaccountinput import UnifiedAccountingAccountInput, UnifiedAccountingAccountInputFieldMappings, UnifiedAccountingAccountInputFieldMappingsTypedDict, UnifiedAccountingAccountInputTypedDict +from .unifiedaccountingaccountoutput import UnifiedAccountingAccountOutput, UnifiedAccountingAccountOutputFieldMappings, UnifiedAccountingAccountOutputFieldMappingsTypedDict, UnifiedAccountingAccountOutputRemoteData, UnifiedAccountingAccountOutputRemoteDataTypedDict, UnifiedAccountingAccountOutputTypedDict +from .unifiedaccountingaddressoutput import UnifiedAccountingAddressOutput, UnifiedAccountingAddressOutputFieldMappings, UnifiedAccountingAddressOutputFieldMappingsTypedDict, UnifiedAccountingAddressOutputRemoteData, UnifiedAccountingAddressOutputRemoteDataTypedDict, UnifiedAccountingAddressOutputTypedDict +from .unifiedaccountingattachmentinput import UnifiedAccountingAttachmentInput, UnifiedAccountingAttachmentInputFieldMappings, UnifiedAccountingAttachmentInputFieldMappingsTypedDict, UnifiedAccountingAttachmentInputTypedDict +from .unifiedaccountingattachmentoutput import UnifiedAccountingAttachmentOutput, UnifiedAccountingAttachmentOutputFieldMappings, UnifiedAccountingAttachmentOutputFieldMappingsTypedDict, UnifiedAccountingAttachmentOutputRemoteData, UnifiedAccountingAttachmentOutputRemoteDataTypedDict, UnifiedAccountingAttachmentOutputTypedDict +from .unifiedaccountingbalancesheetoutput import UnifiedAccountingBalancesheetOutput, UnifiedAccountingBalancesheetOutputFieldMappings, UnifiedAccountingBalancesheetOutputFieldMappingsTypedDict, UnifiedAccountingBalancesheetOutputRemoteData, UnifiedAccountingBalancesheetOutputRemoteDataTypedDict, UnifiedAccountingBalancesheetOutputTypedDict +from .unifiedaccountingcashflowstatementoutput import UnifiedAccountingCashflowstatementOutput, UnifiedAccountingCashflowstatementOutputFieldMappings, UnifiedAccountingCashflowstatementOutputFieldMappingsTypedDict, UnifiedAccountingCashflowstatementOutputRemoteData, UnifiedAccountingCashflowstatementOutputRemoteDataTypedDict, UnifiedAccountingCashflowstatementOutputTypedDict +from .unifiedaccountingcompanyinfooutput import UnifiedAccountingCompanyinfoOutput, UnifiedAccountingCompanyinfoOutputFieldMappings, UnifiedAccountingCompanyinfoOutputFieldMappingsTypedDict, UnifiedAccountingCompanyinfoOutputRemoteData, UnifiedAccountingCompanyinfoOutputRemoteDataTypedDict, UnifiedAccountingCompanyinfoOutputTypedDict +from .unifiedaccountingcontactinput import UnifiedAccountingContactInput, UnifiedAccountingContactInputFieldMappings, UnifiedAccountingContactInputFieldMappingsTypedDict, UnifiedAccountingContactInputTypedDict +from .unifiedaccountingcontactoutput import UnifiedAccountingContactOutput, UnifiedAccountingContactOutputFieldMappings, UnifiedAccountingContactOutputFieldMappingsTypedDict, UnifiedAccountingContactOutputRemoteData, UnifiedAccountingContactOutputRemoteDataTypedDict, UnifiedAccountingContactOutputTypedDict +from .unifiedaccountingcreditnoteoutput import UnifiedAccountingCreditnoteOutput, UnifiedAccountingCreditnoteOutputFieldMappings, UnifiedAccountingCreditnoteOutputFieldMappingsTypedDict, UnifiedAccountingCreditnoteOutputRemoteData, UnifiedAccountingCreditnoteOutputRemoteDataTypedDict, UnifiedAccountingCreditnoteOutputTypedDict +from .unifiedaccountingexpenseinput import UnifiedAccountingExpenseInput, UnifiedAccountingExpenseInputFieldMappings, UnifiedAccountingExpenseInputFieldMappingsTypedDict, UnifiedAccountingExpenseInputTypedDict +from .unifiedaccountingexpenseoutput import UnifiedAccountingExpenseOutput, UnifiedAccountingExpenseOutputFieldMappings, UnifiedAccountingExpenseOutputFieldMappingsTypedDict, UnifiedAccountingExpenseOutputRemoteData, UnifiedAccountingExpenseOutputRemoteDataTypedDict, UnifiedAccountingExpenseOutputTypedDict +from .unifiedaccountingincomestatementoutput import UnifiedAccountingIncomestatementOutput, UnifiedAccountingIncomestatementOutputFieldMappings, UnifiedAccountingIncomestatementOutputFieldMappingsTypedDict, UnifiedAccountingIncomestatementOutputRemoteData, UnifiedAccountingIncomestatementOutputRemoteDataTypedDict, UnifiedAccountingIncomestatementOutputTypedDict +from .unifiedaccountinginvoiceinput import UnifiedAccountingInvoiceInput, UnifiedAccountingInvoiceInputFieldMappings, UnifiedAccountingInvoiceInputFieldMappingsTypedDict, UnifiedAccountingInvoiceInputTypedDict +from .unifiedaccountinginvoiceoutput import UnifiedAccountingInvoiceOutput, UnifiedAccountingInvoiceOutputFieldMappings, UnifiedAccountingInvoiceOutputFieldMappingsTypedDict, UnifiedAccountingInvoiceOutputRemoteData, UnifiedAccountingInvoiceOutputRemoteDataTypedDict, UnifiedAccountingInvoiceOutputTypedDict +from .unifiedaccountingitemoutput import UnifiedAccountingItemOutput, UnifiedAccountingItemOutputFieldMappings, UnifiedAccountingItemOutputFieldMappingsTypedDict, UnifiedAccountingItemOutputRemoteData, UnifiedAccountingItemOutputRemoteDataTypedDict, UnifiedAccountingItemOutputTypedDict +from .unifiedaccountingjournalentryinput import UnifiedAccountingJournalentryInput, UnifiedAccountingJournalentryInputFieldMappings, UnifiedAccountingJournalentryInputFieldMappingsTypedDict, UnifiedAccountingJournalentryInputTypedDict +from .unifiedaccountingjournalentryoutput import UnifiedAccountingJournalentryOutput, UnifiedAccountingJournalentryOutputFieldMappings, UnifiedAccountingJournalentryOutputFieldMappingsTypedDict, UnifiedAccountingJournalentryOutputRemoteData, UnifiedAccountingJournalentryOutputRemoteDataTypedDict, UnifiedAccountingJournalentryOutputTypedDict +from .unifiedaccountingpaymentinput import UnifiedAccountingPaymentInput, UnifiedAccountingPaymentInputFieldMappings, UnifiedAccountingPaymentInputFieldMappingsTypedDict, UnifiedAccountingPaymentInputTypedDict +from .unifiedaccountingpaymentoutput import UnifiedAccountingPaymentOutput, UnifiedAccountingPaymentOutputFieldMappings, UnifiedAccountingPaymentOutputFieldMappingsTypedDict, UnifiedAccountingPaymentOutputRemoteData, UnifiedAccountingPaymentOutputRemoteDataTypedDict, UnifiedAccountingPaymentOutputTypedDict +from .unifiedaccountingphonenumberoutput import UnifiedAccountingPhonenumberOutput, UnifiedAccountingPhonenumberOutputFieldMappings, UnifiedAccountingPhonenumberOutputFieldMappingsTypedDict, UnifiedAccountingPhonenumberOutputRemoteData, UnifiedAccountingPhonenumberOutputRemoteDataTypedDict, UnifiedAccountingPhonenumberOutputTypedDict +from .unifiedaccountingpurchaseorderinput import UnifiedAccountingPurchaseorderInput, UnifiedAccountingPurchaseorderInputFieldMappings, UnifiedAccountingPurchaseorderInputFieldMappingsTypedDict, UnifiedAccountingPurchaseorderInputTypedDict +from .unifiedaccountingpurchaseorderoutput import UnifiedAccountingPurchaseorderOutput, UnifiedAccountingPurchaseorderOutputFieldMappings, UnifiedAccountingPurchaseorderOutputFieldMappingsTypedDict, UnifiedAccountingPurchaseorderOutputRemoteData, UnifiedAccountingPurchaseorderOutputRemoteDataTypedDict, UnifiedAccountingPurchaseorderOutputTypedDict +from .unifiedaccountingtaxrateoutput import UnifiedAccountingTaxrateOutput, UnifiedAccountingTaxrateOutputFieldMappings, UnifiedAccountingTaxrateOutputFieldMappingsTypedDict, UnifiedAccountingTaxrateOutputRemoteData, UnifiedAccountingTaxrateOutputRemoteDataTypedDict, UnifiedAccountingTaxrateOutputTypedDict +from .unifiedaccountingtrackingcategoryoutput import UnifiedAccountingTrackingcategoryOutput, UnifiedAccountingTrackingcategoryOutputFieldMappings, UnifiedAccountingTrackingcategoryOutputFieldMappingsTypedDict, UnifiedAccountingTrackingcategoryOutputRemoteData, UnifiedAccountingTrackingcategoryOutputRemoteDataTypedDict, UnifiedAccountingTrackingcategoryOutputTypedDict +from .unifiedaccountingtransactionoutput import UnifiedAccountingTransactionOutput, UnifiedAccountingTransactionOutputFieldMappings, UnifiedAccountingTransactionOutputFieldMappingsTypedDict, UnifiedAccountingTransactionOutputRemoteData, UnifiedAccountingTransactionOutputRemoteDataTypedDict, UnifiedAccountingTransactionOutputTypedDict +from .unifiedaccountingvendorcreditoutput import UnifiedAccountingVendorcreditOutput, UnifiedAccountingVendorcreditOutputFieldMappings, UnifiedAccountingVendorcreditOutputFieldMappingsTypedDict, UnifiedAccountingVendorcreditOutputRemoteData, UnifiedAccountingVendorcreditOutputRemoteDataTypedDict, UnifiedAccountingVendorcreditOutputTypedDict +from .unifiedatsactivityinput import UnifiedAtsActivityInput, UnifiedAtsActivityInputTypedDict +from .unifiedatsactivityoutput import UnifiedAtsActivityOutput, UnifiedAtsActivityOutputTypedDict +from .unifiedatsapplicationinput import UnifiedAtsApplicationInput, UnifiedAtsApplicationInputTypedDict +from .unifiedatsapplicationoutput import UnifiedAtsApplicationOutput, UnifiedAtsApplicationOutputTypedDict +from .unifiedatsattachmentinput import UnifiedAtsAttachmentInput, UnifiedAtsAttachmentInputTypedDict +from .unifiedatsattachmentoutput import UnifiedAtsAttachmentOutput, UnifiedAtsAttachmentOutputTypedDict +from .unifiedatscandidateinput import UnifiedAtsCandidateInput, UnifiedAtsCandidateInputApplications, UnifiedAtsCandidateInputApplicationsTypedDict, UnifiedAtsCandidateInputAttachments, UnifiedAtsCandidateInputAttachmentsTypedDict, UnifiedAtsCandidateInputTags, UnifiedAtsCandidateInputTagsTypedDict, UnifiedAtsCandidateInputTypedDict +from .unifiedatscandidateoutput import ApplicationsModel, ApplicationsModelTypedDict, UnifiedAtsCandidateOutput, UnifiedAtsCandidateOutputAttachments, UnifiedAtsCandidateOutputAttachmentsTypedDict, UnifiedAtsCandidateOutputTags, UnifiedAtsCandidateOutputTagsTypedDict, UnifiedAtsCandidateOutputTypedDict +from .unifiedatsdepartmentoutput import UnifiedAtsDepartmentOutput, UnifiedAtsDepartmentOutputTypedDict from .unifiedatseeocsoutput import UnifiedAtsEeocsOutput, UnifiedAtsEeocsOutputTypedDict -from .unifiedatsinterviewinput import ( - UnifiedAtsInterviewInput, - UnifiedAtsInterviewInputTypedDict, -) -from .unifiedatsinterviewoutput import ( - UnifiedAtsInterviewOutput, - UnifiedAtsInterviewOutputTypedDict, -) -from .unifiedatsjobinterviewstageoutput import ( - UnifiedAtsJobinterviewstageOutput, - UnifiedAtsJobinterviewstageOutputTypedDict, -) +from .unifiedatsinterviewinput import UnifiedAtsInterviewInput, UnifiedAtsInterviewInputTypedDict +from .unifiedatsinterviewoutput import UnifiedAtsInterviewOutput, UnifiedAtsInterviewOutputTypedDict +from .unifiedatsjobinterviewstageoutput import UnifiedAtsJobinterviewstageOutput, UnifiedAtsJobinterviewstageOutputTypedDict from .unifiedatsjoboutput import UnifiedAtsJobOutput, UnifiedAtsJobOutputTypedDict -from .unifiedatsofferoutput import ( - UnifiedAtsOfferOutput, - UnifiedAtsOfferOutputCreatedAt, - UnifiedAtsOfferOutputCreatedAtTypedDict, - UnifiedAtsOfferOutputModifiedAt, - UnifiedAtsOfferOutputModifiedAtTypedDict, - UnifiedAtsOfferOutputTypedDict, -) -from .unifiedatsofficeoutput import ( - UnifiedAtsOfficeOutput, - UnifiedAtsOfficeOutputTypedDict, -) -from .unifiedatsrejectreasonoutput import ( - UnifiedAtsRejectreasonOutput, - UnifiedAtsRejectreasonOutputTypedDict, -) -from .unifiedatsscorecardoutput import ( - UnifiedAtsScorecardOutput, - UnifiedAtsScorecardOutputTypedDict, -) +from .unifiedatsofferoutput import UnifiedAtsOfferOutput, UnifiedAtsOfferOutputCreatedAt, UnifiedAtsOfferOutputCreatedAtTypedDict, UnifiedAtsOfferOutputModifiedAt, UnifiedAtsOfferOutputModifiedAtTypedDict, UnifiedAtsOfferOutputTypedDict +from .unifiedatsofficeoutput import UnifiedAtsOfficeOutput, UnifiedAtsOfficeOutputTypedDict +from .unifiedatsrejectreasonoutput import UnifiedAtsRejectreasonOutput, UnifiedAtsRejectreasonOutputTypedDict +from .unifiedatsscorecardoutput import UnifiedAtsScorecardOutput, UnifiedAtsScorecardOutputTypedDict from .unifiedatstagoutput import UnifiedAtsTagOutput, UnifiedAtsTagOutputTypedDict from .unifiedatsuseroutput import UnifiedAtsUserOutput, UnifiedAtsUserOutputTypedDict -from .unifiedcrmcompanyinput import ( - UnifiedCrmCompanyInput, - UnifiedCrmCompanyInputTypedDict, -) -from .unifiedcrmcompanyoutput import ( - CreatedAt, - CreatedAtTypedDict, - ModifiedAt, - ModifiedAtTypedDict, - UnifiedCrmCompanyOutput, - UnifiedCrmCompanyOutputTypedDict, -) -from .unifiedcrmcontactinput import ( - UnifiedCrmContactInput, - UnifiedCrmContactInputTypedDict, -) -from .unifiedcrmcontactoutput import ( - UnifiedCrmContactOutput, - UnifiedCrmContactOutputTypedDict, -) +from .unifiedcrmcompanyinput import UnifiedCrmCompanyInput, UnifiedCrmCompanyInputTypedDict +from .unifiedcrmcompanyoutput import CreatedAt, CreatedAtTypedDict, ModifiedAt, ModifiedAtTypedDict, UnifiedCrmCompanyOutput, UnifiedCrmCompanyOutputTypedDict +from .unifiedcrmcontactinput import UnifiedCrmContactInput, UnifiedCrmContactInputTypedDict +from .unifiedcrmcontactoutput import UnifiedCrmContactOutput, UnifiedCrmContactOutputTypedDict from .unifiedcrmdealinput import UnifiedCrmDealInput, UnifiedCrmDealInputTypedDict from .unifiedcrmdealoutput import UnifiedCrmDealOutput, UnifiedCrmDealOutputTypedDict -from .unifiedcrmengagementinput import ( - UnifiedCrmEngagementInput, - UnifiedCrmEngagementInputTypedDict, -) -from .unifiedcrmengagementoutput import ( - UnifiedCrmEngagementOutput, - UnifiedCrmEngagementOutputTypedDict, -) +from .unifiedcrmengagementinput import UnifiedCrmEngagementInput, UnifiedCrmEngagementInputTypedDict +from .unifiedcrmengagementoutput import UnifiedCrmEngagementOutput, UnifiedCrmEngagementOutputTypedDict from .unifiedcrmnoteinput import UnifiedCrmNoteInput, UnifiedCrmNoteInputTypedDict from .unifiedcrmnoteoutput import UnifiedCrmNoteOutput, UnifiedCrmNoteOutputTypedDict -from .unifiedcrmstageoutput import ( - UnifiedCrmStageOutput, - UnifiedCrmStageOutputCreatedAt, - UnifiedCrmStageOutputCreatedAtTypedDict, - UnifiedCrmStageOutputModifiedAt, - UnifiedCrmStageOutputModifiedAtTypedDict, - UnifiedCrmStageOutputTypedDict, -) +from .unifiedcrmstageoutput import UnifiedCrmStageOutput, UnifiedCrmStageOutputCreatedAt, UnifiedCrmStageOutputCreatedAtTypedDict, UnifiedCrmStageOutputModifiedAt, UnifiedCrmStageOutputModifiedAtTypedDict, UnifiedCrmStageOutputTypedDict from .unifiedcrmtaskinput import UnifiedCrmTaskInput, UnifiedCrmTaskInputTypedDict from .unifiedcrmtaskoutput import UnifiedCrmTaskOutput, UnifiedCrmTaskOutputTypedDict from .unifiedcrmuseroutput import UnifiedCrmUserOutput, UnifiedCrmUserOutputTypedDict -from .unifiedecommercecustomeroutput import ( - UnifiedEcommerceCustomerOutput, - UnifiedEcommerceCustomerOutputFieldMappings, - UnifiedEcommerceCustomerOutputFieldMappingsTypedDict, - UnifiedEcommerceCustomerOutputRemoteData, - UnifiedEcommerceCustomerOutputRemoteDataTypedDict, - UnifiedEcommerceCustomerOutputTypedDict, -) -from .unifiedecommercefulfillmentoutput import ( - ItemsModel, - ItemsModelTypedDict, - UnifiedEcommerceFulfillmentOutput, - UnifiedEcommerceFulfillmentOutputFieldMappings, - UnifiedEcommerceFulfillmentOutputFieldMappingsTypedDict, - UnifiedEcommerceFulfillmentOutputRemoteData, - UnifiedEcommerceFulfillmentOutputRemoteDataTypedDict, - UnifiedEcommerceFulfillmentOutputTypedDict, -) -from .unifiedecommerceorderinput import ( - UnifiedEcommerceOrderInput, - UnifiedEcommerceOrderInputFieldMappings, - UnifiedEcommerceOrderInputFieldMappingsTypedDict, - UnifiedEcommerceOrderInputTypedDict, -) -from .unifiedecommerceorderoutput import ( - UnifiedEcommerceOrderOutput, - UnifiedEcommerceOrderOutputFieldMappings, - UnifiedEcommerceOrderOutputFieldMappingsTypedDict, - UnifiedEcommerceOrderOutputRemoteData, - UnifiedEcommerceOrderOutputRemoteDataTypedDict, - UnifiedEcommerceOrderOutputTypedDict, -) -from .unifiedecommerceproductinput import ( - UnifiedEcommerceProductInput, - UnifiedEcommerceProductInputFieldMappings, - UnifiedEcommerceProductInputFieldMappingsTypedDict, - UnifiedEcommerceProductInputTypedDict, -) -from .unifiedecommerceproductoutput import ( - UnifiedEcommerceProductOutput, - UnifiedEcommerceProductOutputFieldMappings, - UnifiedEcommerceProductOutputFieldMappingsTypedDict, - UnifiedEcommerceProductOutputRemoteData, - UnifiedEcommerceProductOutputRemoteDataTypedDict, - UnifiedEcommerceProductOutputTypedDict, -) -from .unifiedfilestoragefileinput import ( - UnifiedFilestorageFileInput, - UnifiedFilestorageFileInputTypedDict, -) -from .unifiedfilestoragefileoutput import ( - UnifiedFilestorageFileOutput, - UnifiedFilestorageFileOutputTypedDict, -) -from .unifiedfilestoragefolderinput import ( - UnifiedFilestorageFolderInput, - UnifiedFilestorageFolderInputTypedDict, -) -from .unifiedfilestoragefolderoutput import ( - UnifiedFilestorageFolderOutput, - UnifiedFilestorageFolderOutputTypedDict, -) -from .unifiedfilestoragegroupoutput import ( - UnifiedFilestorageGroupOutput, - UnifiedFilestorageGroupOutputTypedDict, - UsersModel, - UsersModelTypedDict, -) -from .unifiedfilestorageuseroutput import ( - UnifiedFilestorageUserOutput, - UnifiedFilestorageUserOutputTypedDict, -) -from .unifiedhrisbankinfooutput import ( - FieldMappingsModel, - FieldMappingsModelTypedDict, - RemoteData, - RemoteDataTypedDict, - UnifiedHrisBankinfoOutput, - UnifiedHrisBankinfoOutputTypedDict, -) -from .unifiedhrisbenefitoutput import ( - UnifiedHrisBenefitOutput, - UnifiedHrisBenefitOutputFieldMappings, - UnifiedHrisBenefitOutputFieldMappingsTypedDict, - UnifiedHrisBenefitOutputRemoteData, - UnifiedHrisBenefitOutputRemoteDataTypedDict, - UnifiedHrisBenefitOutputTypedDict, -) -from .unifiedhriscompanyoutput import ( - UnifiedHrisCompanyOutput, - UnifiedHrisCompanyOutputFieldMappings, - UnifiedHrisCompanyOutputFieldMappingsTypedDict, - UnifiedHrisCompanyOutputRemoteData, - UnifiedHrisCompanyOutputRemoteDataTypedDict, - UnifiedHrisCompanyOutputTypedDict, -) -from .unifiedhrisdependentoutput import ( - UnifiedHrisDependentOutput, - UnifiedHrisDependentOutputFieldMappings, - UnifiedHrisDependentOutputFieldMappingsTypedDict, - UnifiedHrisDependentOutputRemoteData, - UnifiedHrisDependentOutputRemoteDataTypedDict, - UnifiedHrisDependentOutputTypedDict, -) -from .unifiedhrisemployeeinput import ( - UnifiedHrisEmployeeInput, - UnifiedHrisEmployeeInputFieldMappings, - UnifiedHrisEmployeeInputFieldMappingsTypedDict, - UnifiedHrisEmployeeInputTypedDict, -) -from .unifiedhrisemployeeoutput import ( - UnifiedHrisEmployeeOutput, - UnifiedHrisEmployeeOutputFieldMappings, - UnifiedHrisEmployeeOutputFieldMappingsTypedDict, - UnifiedHrisEmployeeOutputRemoteData, - UnifiedHrisEmployeeOutputRemoteDataTypedDict, - UnifiedHrisEmployeeOutputTypedDict, -) -from .unifiedhrisemployeepayrollrunoutput import ( - UnifiedHrisEmployeepayrollrunOutput, - UnifiedHrisEmployeepayrollrunOutputFieldMappings, - UnifiedHrisEmployeepayrollrunOutputFieldMappingsTypedDict, - UnifiedHrisEmployeepayrollrunOutputRemoteData, - UnifiedHrisEmployeepayrollrunOutputRemoteDataTypedDict, - UnifiedHrisEmployeepayrollrunOutputTypedDict, -) -from .unifiedhrisemployerbenefitoutput import ( - UnifiedHrisEmployerbenefitOutput, - UnifiedHrisEmployerbenefitOutputFieldMappings, - UnifiedHrisEmployerbenefitOutputFieldMappingsTypedDict, - UnifiedHrisEmployerbenefitOutputRemoteData, - UnifiedHrisEmployerbenefitOutputRemoteDataTypedDict, - UnifiedHrisEmployerbenefitOutputTypedDict, -) -from .unifiedhrisemploymentoutput import ( - UnifiedHrisEmploymentOutput, - UnifiedHrisEmploymentOutputFieldMappings, - UnifiedHrisEmploymentOutputFieldMappingsTypedDict, - UnifiedHrisEmploymentOutputRemoteData, - UnifiedHrisEmploymentOutputRemoteDataTypedDict, - UnifiedHrisEmploymentOutputTypedDict, -) -from .unifiedhrisgroupoutput import ( - UnifiedHrisGroupOutput, - UnifiedHrisGroupOutputFieldMappings, - UnifiedHrisGroupOutputFieldMappingsTypedDict, - UnifiedHrisGroupOutputRemoteData, - UnifiedHrisGroupOutputRemoteDataTypedDict, - UnifiedHrisGroupOutputTypedDict, -) -from .unifiedhrislocationoutput import ( - UnifiedHrisLocationOutput, - UnifiedHrisLocationOutputFieldMappings, - UnifiedHrisLocationOutputFieldMappingsTypedDict, - UnifiedHrisLocationOutputRemoteData, - UnifiedHrisLocationOutputRemoteDataTypedDict, - UnifiedHrisLocationOutputTypedDict, -) -from .unifiedhrispaygroupoutput import ( - UnifiedHrisPaygroupOutput, - UnifiedHrisPaygroupOutputFieldMappings, - UnifiedHrisPaygroupOutputFieldMappingsTypedDict, - UnifiedHrisPaygroupOutputRemoteData, - UnifiedHrisPaygroupOutputRemoteDataTypedDict, - UnifiedHrisPaygroupOutputTypedDict, -) -from .unifiedhrispayrollrunoutput import ( - UnifiedHrisPayrollrunOutput, - UnifiedHrisPayrollrunOutputFieldMappings, - UnifiedHrisPayrollrunOutputFieldMappingsTypedDict, - UnifiedHrisPayrollrunOutputRemoteData, - UnifiedHrisPayrollrunOutputRemoteDataTypedDict, - UnifiedHrisPayrollrunOutputTypedDict, -) -from .unifiedhristimeoffbalanceoutput import ( - UnifiedHrisTimeoffbalanceOutput, - UnifiedHrisTimeoffbalanceOutputFieldMappings, - UnifiedHrisTimeoffbalanceOutputFieldMappingsTypedDict, - UnifiedHrisTimeoffbalanceOutputRemoteData, - UnifiedHrisTimeoffbalanceOutputRemoteDataTypedDict, - UnifiedHrisTimeoffbalanceOutputTypedDict, -) -from .unifiedhristimeoffinput import ( - UnifiedHrisTimeoffInput, - UnifiedHrisTimeoffInputFieldMappings, - UnifiedHrisTimeoffInputFieldMappingsTypedDict, - UnifiedHrisTimeoffInputTypedDict, -) -from .unifiedhristimeoffoutput import ( - UnifiedHrisTimeoffOutput, - UnifiedHrisTimeoffOutputFieldMappings, - UnifiedHrisTimeoffOutputFieldMappingsTypedDict, - UnifiedHrisTimeoffOutputRemoteData, - UnifiedHrisTimeoffOutputRemoteDataTypedDict, - UnifiedHrisTimeoffOutputTypedDict, -) -from .unifiedhristimesheetentryinput import ( - UnifiedHrisTimesheetEntryInput, - UnifiedHrisTimesheetEntryInputFieldMappings, - UnifiedHrisTimesheetEntryInputFieldMappingsTypedDict, - UnifiedHrisTimesheetEntryInputTypedDict, -) -from .unifiedhristimesheetentryoutput import ( - UnifiedHrisTimesheetEntryOutput, - UnifiedHrisTimesheetEntryOutputFieldMappings, - UnifiedHrisTimesheetEntryOutputFieldMappingsTypedDict, - UnifiedHrisTimesheetEntryOutputRemoteData, - UnifiedHrisTimesheetEntryOutputRemoteDataTypedDict, - UnifiedHrisTimesheetEntryOutputTypedDict, -) -from .unifiedmarketingautomationactioninput import ( - UnifiedMarketingautomationActionInput, - UnifiedMarketingautomationActionInputTypedDict, -) -from .unifiedmarketingautomationactionoutput import ( - UnifiedMarketingautomationActionOutput, - UnifiedMarketingautomationActionOutputTypedDict, -) -from .unifiedmarketingautomationautomationinput import ( - UnifiedMarketingautomationAutomationInput, - UnifiedMarketingautomationAutomationInputTypedDict, -) -from .unifiedmarketingautomationautomationoutput import ( - UnifiedMarketingautomationAutomationOutput, - UnifiedMarketingautomationAutomationOutputTypedDict, -) -from .unifiedmarketingautomationcampaigninput import ( - UnifiedMarketingautomationCampaignInput, - UnifiedMarketingautomationCampaignInputTypedDict, -) -from .unifiedmarketingautomationcampaignoutput import ( - UnifiedMarketingautomationCampaignOutput, - UnifiedMarketingautomationCampaignOutputTypedDict, -) -from .unifiedmarketingautomationcontactinput import ( - UnifiedMarketingautomationContactInput, - UnifiedMarketingautomationContactInputTypedDict, -) -from .unifiedmarketingautomationcontactoutput import ( - UnifiedMarketingautomationContactOutput, - UnifiedMarketingautomationContactOutputTypedDict, -) -from .unifiedmarketingautomationemailoutput import ( - UnifiedMarketingautomationEmailOutput, - UnifiedMarketingautomationEmailOutputTypedDict, -) -from .unifiedmarketingautomationeventoutput import ( - UnifiedMarketingautomationEventOutput, - UnifiedMarketingautomationEventOutputTypedDict, -) -from .unifiedmarketingautomationlistinput import ( - UnifiedMarketingautomationListInput, - UnifiedMarketingautomationListInputTypedDict, -) -from .unifiedmarketingautomationlistoutput import ( - UnifiedMarketingautomationListOutput, - UnifiedMarketingautomationListOutputTypedDict, -) -from .unifiedmarketingautomationmessageoutput import ( - UnifiedMarketingautomationMessageOutput, - UnifiedMarketingautomationMessageOutputTypedDict, -) -from .unifiedmarketingautomationtemplateinput import ( - UnifiedMarketingautomationTemplateInput, - UnifiedMarketingautomationTemplateInputTypedDict, -) -from .unifiedmarketingautomationtemplateoutput import ( - UnifiedMarketingautomationTemplateOutput, - UnifiedMarketingautomationTemplateOutputTypedDict, -) -from .unifiedmarketingautomationuseroutput import ( - UnifiedMarketingautomationUserOutput, - UnifiedMarketingautomationUserOutputTypedDict, -) -from .unifiedticketingaccountoutput import ( - UnifiedTicketingAccountOutput, - UnifiedTicketingAccountOutputTypedDict, -) -from .unifiedticketingattachmentinput import ( - UnifiedTicketingAttachmentInput, - UnifiedTicketingAttachmentInputTypedDict, -) -from .unifiedticketingattachmentoutput import ( - UnifiedTicketingAttachmentOutput, - UnifiedTicketingAttachmentOutputTypedDict, -) -from .unifiedticketingcollectionoutput import ( - UnifiedTicketingCollectionOutput, - UnifiedTicketingCollectionOutputTypedDict, -) -from .unifiedticketingcommentinput import ( - UnifiedTicketingCommentInput, - UnifiedTicketingCommentInputAttachments, - UnifiedTicketingCommentInputAttachmentsTypedDict, - UnifiedTicketingCommentInputTypedDict, -) -from .unifiedticketingcommentoutput import ( - UnifiedTicketingCommentOutput, - UnifiedTicketingCommentOutputAttachments, - UnifiedTicketingCommentOutputAttachmentsTypedDict, - UnifiedTicketingCommentOutputTypedDict, -) -from .unifiedticketingcontactoutput import ( - UnifiedTicketingContactOutput, - UnifiedTicketingContactOutputTypedDict, -) -from .unifiedticketingtagoutput import ( - UnifiedTicketingTagOutput, - UnifiedTicketingTagOutputTypedDict, -) -from .unifiedticketingteamoutput import ( - UnifiedTicketingTeamOutput, - UnifiedTicketingTeamOutputTypedDict, -) -from .unifiedticketingticketinput import ( - UnifiedTicketingTicketInput, - UnifiedTicketingTicketInputAttachments, - UnifiedTicketingTicketInputAttachmentsTypedDict, - UnifiedTicketingTicketInputCollections, - UnifiedTicketingTicketInputCollectionsTypedDict, - UnifiedTicketingTicketInputComment, - UnifiedTicketingTicketInputCommentAttachments, - UnifiedTicketingTicketInputCommentAttachmentsTypedDict, - UnifiedTicketingTicketInputCommentTypedDict, - UnifiedTicketingTicketInputTags, - UnifiedTicketingTicketInputTagsTypedDict, - UnifiedTicketingTicketInputTypedDict, -) -from .unifiedticketingticketoutput import ( - AttachmentsModel, - AttachmentsModelTypedDict, - CollectionsModel, - CollectionsModelTypedDict, - Comment, - CommentTypedDict, - TagsModel, - TagsModelTypedDict, - UnifiedTicketingTicketOutput, - UnifiedTicketingTicketOutputAttachments, - UnifiedTicketingTicketOutputAttachmentsTypedDict, - UnifiedTicketingTicketOutputTypedDict, -) -from .unifiedticketinguseroutput import ( - UnifiedTicketingUserOutput, - UnifiedTicketingUserOutputTypedDict, -) -from .updatepullfrequencydto import ( - UpdatePullFrequencyDto, - UpdatePullFrequencyDtoTypedDict, -) -from .updatepullfrequencyop import ( - UpdatePullFrequencyResponseBody, - UpdatePullFrequencyResponseBodyTypedDict, -) +from .unifiedecommercecustomeroutput import UnifiedEcommerceCustomerOutput, UnifiedEcommerceCustomerOutputFieldMappings, UnifiedEcommerceCustomerOutputFieldMappingsTypedDict, UnifiedEcommerceCustomerOutputRemoteData, UnifiedEcommerceCustomerOutputRemoteDataTypedDict, UnifiedEcommerceCustomerOutputTypedDict +from .unifiedecommercefulfillmentoutput import ItemsModel, ItemsModelTypedDict, UnifiedEcommerceFulfillmentOutput, UnifiedEcommerceFulfillmentOutputFieldMappings, UnifiedEcommerceFulfillmentOutputFieldMappingsTypedDict, UnifiedEcommerceFulfillmentOutputRemoteData, UnifiedEcommerceFulfillmentOutputRemoteDataTypedDict, UnifiedEcommerceFulfillmentOutputTypedDict +from .unifiedecommerceorderinput import UnifiedEcommerceOrderInput, UnifiedEcommerceOrderInputFieldMappings, UnifiedEcommerceOrderInputFieldMappingsTypedDict, UnifiedEcommerceOrderInputTypedDict +from .unifiedecommerceorderoutput import UnifiedEcommerceOrderOutput, UnifiedEcommerceOrderOutputFieldMappings, UnifiedEcommerceOrderOutputFieldMappingsTypedDict, UnifiedEcommerceOrderOutputRemoteData, UnifiedEcommerceOrderOutputRemoteDataTypedDict, UnifiedEcommerceOrderOutputTypedDict +from .unifiedecommerceproductinput import UnifiedEcommerceProductInput, UnifiedEcommerceProductInputFieldMappings, UnifiedEcommerceProductInputFieldMappingsTypedDict, UnifiedEcommerceProductInputTypedDict +from .unifiedecommerceproductoutput import UnifiedEcommerceProductOutput, UnifiedEcommerceProductOutputFieldMappings, UnifiedEcommerceProductOutputFieldMappingsTypedDict, UnifiedEcommerceProductOutputRemoteData, UnifiedEcommerceProductOutputRemoteDataTypedDict, UnifiedEcommerceProductOutputTypedDict +from .unifiedfilestoragefileinput import UnifiedFilestorageFileInput, UnifiedFilestorageFileInputTypedDict +from .unifiedfilestoragefileoutput import UnifiedFilestorageFileOutput, UnifiedFilestorageFileOutputTypedDict +from .unifiedfilestoragefolderinput import UnifiedFilestorageFolderInput, UnifiedFilestorageFolderInputTypedDict +from .unifiedfilestoragefolderoutput import UnifiedFilestorageFolderOutput, UnifiedFilestorageFolderOutputTypedDict +from .unifiedfilestoragegroupoutput import UnifiedFilestorageGroupOutput, UnifiedFilestorageGroupOutputTypedDict, UsersModel, UsersModelTypedDict +from .unifiedfilestorageuseroutput import UnifiedFilestorageUserOutput, UnifiedFilestorageUserOutputTypedDict +from .unifiedhrisbankinfooutput import FieldMappingsModel, FieldMappingsModelTypedDict, RemoteData, RemoteDataTypedDict, UnifiedHrisBankinfoOutput, UnifiedHrisBankinfoOutputTypedDict +from .unifiedhrisbenefitoutput import UnifiedHrisBenefitOutput, UnifiedHrisBenefitOutputFieldMappings, UnifiedHrisBenefitOutputFieldMappingsTypedDict, UnifiedHrisBenefitOutputRemoteData, UnifiedHrisBenefitOutputRemoteDataTypedDict, UnifiedHrisBenefitOutputTypedDict +from .unifiedhriscompanyoutput import UnifiedHrisCompanyOutput, UnifiedHrisCompanyOutputFieldMappings, UnifiedHrisCompanyOutputFieldMappingsTypedDict, UnifiedHrisCompanyOutputRemoteData, UnifiedHrisCompanyOutputRemoteDataTypedDict, UnifiedHrisCompanyOutputTypedDict +from .unifiedhrisdependentoutput import UnifiedHrisDependentOutput, UnifiedHrisDependentOutputFieldMappings, UnifiedHrisDependentOutputFieldMappingsTypedDict, UnifiedHrisDependentOutputRemoteData, UnifiedHrisDependentOutputRemoteDataTypedDict, UnifiedHrisDependentOutputTypedDict +from .unifiedhrisemployeeinput import UnifiedHrisEmployeeInput, UnifiedHrisEmployeeInputFieldMappings, UnifiedHrisEmployeeInputFieldMappingsTypedDict, UnifiedHrisEmployeeInputTypedDict +from .unifiedhrisemployeeoutput import UnifiedHrisEmployeeOutput, UnifiedHrisEmployeeOutputFieldMappings, UnifiedHrisEmployeeOutputFieldMappingsTypedDict, UnifiedHrisEmployeeOutputRemoteData, UnifiedHrisEmployeeOutputRemoteDataTypedDict, UnifiedHrisEmployeeOutputTypedDict +from .unifiedhrisemployeepayrollrunoutput import UnifiedHrisEmployeepayrollrunOutput, UnifiedHrisEmployeepayrollrunOutputFieldMappings, UnifiedHrisEmployeepayrollrunOutputFieldMappingsTypedDict, UnifiedHrisEmployeepayrollrunOutputRemoteData, UnifiedHrisEmployeepayrollrunOutputRemoteDataTypedDict, UnifiedHrisEmployeepayrollrunOutputTypedDict +from .unifiedhrisemployerbenefitoutput import UnifiedHrisEmployerbenefitOutput, UnifiedHrisEmployerbenefitOutputFieldMappings, UnifiedHrisEmployerbenefitOutputFieldMappingsTypedDict, UnifiedHrisEmployerbenefitOutputRemoteData, UnifiedHrisEmployerbenefitOutputRemoteDataTypedDict, UnifiedHrisEmployerbenefitOutputTypedDict +from .unifiedhrisemploymentoutput import UnifiedHrisEmploymentOutput, UnifiedHrisEmploymentOutputFieldMappings, UnifiedHrisEmploymentOutputFieldMappingsTypedDict, UnifiedHrisEmploymentOutputRemoteData, UnifiedHrisEmploymentOutputRemoteDataTypedDict, UnifiedHrisEmploymentOutputTypedDict +from .unifiedhrisgroupoutput import UnifiedHrisGroupOutput, UnifiedHrisGroupOutputFieldMappings, UnifiedHrisGroupOutputFieldMappingsTypedDict, UnifiedHrisGroupOutputRemoteData, UnifiedHrisGroupOutputRemoteDataTypedDict, UnifiedHrisGroupOutputTypedDict +from .unifiedhrislocationoutput import UnifiedHrisLocationOutput, UnifiedHrisLocationOutputFieldMappings, UnifiedHrisLocationOutputFieldMappingsTypedDict, UnifiedHrisLocationOutputRemoteData, UnifiedHrisLocationOutputRemoteDataTypedDict, UnifiedHrisLocationOutputTypedDict +from .unifiedhrispaygroupoutput import UnifiedHrisPaygroupOutput, UnifiedHrisPaygroupOutputFieldMappings, UnifiedHrisPaygroupOutputFieldMappingsTypedDict, UnifiedHrisPaygroupOutputRemoteData, UnifiedHrisPaygroupOutputRemoteDataTypedDict, UnifiedHrisPaygroupOutputTypedDict +from .unifiedhrispayrollrunoutput import UnifiedHrisPayrollrunOutput, UnifiedHrisPayrollrunOutputFieldMappings, UnifiedHrisPayrollrunOutputFieldMappingsTypedDict, UnifiedHrisPayrollrunOutputRemoteData, UnifiedHrisPayrollrunOutputRemoteDataTypedDict, UnifiedHrisPayrollrunOutputTypedDict +from .unifiedhristimeoffbalanceoutput import UnifiedHrisTimeoffbalanceOutput, UnifiedHrisTimeoffbalanceOutputFieldMappings, UnifiedHrisTimeoffbalanceOutputFieldMappingsTypedDict, UnifiedHrisTimeoffbalanceOutputRemoteData, UnifiedHrisTimeoffbalanceOutputRemoteDataTypedDict, UnifiedHrisTimeoffbalanceOutputTypedDict +from .unifiedhristimeoffinput import UnifiedHrisTimeoffInput, UnifiedHrisTimeoffInputFieldMappings, UnifiedHrisTimeoffInputFieldMappingsTypedDict, UnifiedHrisTimeoffInputTypedDict +from .unifiedhristimeoffoutput import UnifiedHrisTimeoffOutput, UnifiedHrisTimeoffOutputFieldMappings, UnifiedHrisTimeoffOutputFieldMappingsTypedDict, UnifiedHrisTimeoffOutputRemoteData, UnifiedHrisTimeoffOutputRemoteDataTypedDict, UnifiedHrisTimeoffOutputTypedDict +from .unifiedhristimesheetentryinput import UnifiedHrisTimesheetEntryInput, UnifiedHrisTimesheetEntryInputFieldMappings, UnifiedHrisTimesheetEntryInputFieldMappingsTypedDict, UnifiedHrisTimesheetEntryInputTypedDict +from .unifiedhristimesheetentryoutput import UnifiedHrisTimesheetEntryOutput, UnifiedHrisTimesheetEntryOutputFieldMappings, UnifiedHrisTimesheetEntryOutputFieldMappingsTypedDict, UnifiedHrisTimesheetEntryOutputRemoteData, UnifiedHrisTimesheetEntryOutputRemoteDataTypedDict, UnifiedHrisTimesheetEntryOutputTypedDict +from .unifiedmarketingautomationactioninput import UnifiedMarketingautomationActionInput, UnifiedMarketingautomationActionInputTypedDict +from .unifiedmarketingautomationactionoutput import UnifiedMarketingautomationActionOutput, UnifiedMarketingautomationActionOutputTypedDict +from .unifiedmarketingautomationautomationinput import UnifiedMarketingautomationAutomationInput, UnifiedMarketingautomationAutomationInputTypedDict +from .unifiedmarketingautomationautomationoutput import UnifiedMarketingautomationAutomationOutput, UnifiedMarketingautomationAutomationOutputTypedDict +from .unifiedmarketingautomationcampaigninput import UnifiedMarketingautomationCampaignInput, UnifiedMarketingautomationCampaignInputTypedDict +from .unifiedmarketingautomationcampaignoutput import UnifiedMarketingautomationCampaignOutput, UnifiedMarketingautomationCampaignOutputTypedDict +from .unifiedmarketingautomationcontactinput import UnifiedMarketingautomationContactInput, UnifiedMarketingautomationContactInputTypedDict +from .unifiedmarketingautomationcontactoutput import UnifiedMarketingautomationContactOutput, UnifiedMarketingautomationContactOutputTypedDict +from .unifiedmarketingautomationemailoutput import UnifiedMarketingautomationEmailOutput, UnifiedMarketingautomationEmailOutputTypedDict +from .unifiedmarketingautomationeventoutput import UnifiedMarketingautomationEventOutput, UnifiedMarketingautomationEventOutputTypedDict +from .unifiedmarketingautomationlistinput import UnifiedMarketingautomationListInput, UnifiedMarketingautomationListInputTypedDict +from .unifiedmarketingautomationlistoutput import UnifiedMarketingautomationListOutput, UnifiedMarketingautomationListOutputTypedDict +from .unifiedmarketingautomationmessageoutput import UnifiedMarketingautomationMessageOutput, UnifiedMarketingautomationMessageOutputTypedDict +from .unifiedmarketingautomationtemplateinput import UnifiedMarketingautomationTemplateInput, UnifiedMarketingautomationTemplateInputTypedDict +from .unifiedmarketingautomationtemplateoutput import UnifiedMarketingautomationTemplateOutput, UnifiedMarketingautomationTemplateOutputTypedDict +from .unifiedmarketingautomationuseroutput import UnifiedMarketingautomationUserOutput, UnifiedMarketingautomationUserOutputTypedDict +from .unifiedticketingaccountoutput import UnifiedTicketingAccountOutput, UnifiedTicketingAccountOutputTypedDict +from .unifiedticketingattachmentinput import UnifiedTicketingAttachmentInput, UnifiedTicketingAttachmentInputTypedDict +from .unifiedticketingattachmentoutput import UnifiedTicketingAttachmentOutput, UnifiedTicketingAttachmentOutputTypedDict +from .unifiedticketingcollectionoutput import UnifiedTicketingCollectionOutput, UnifiedTicketingCollectionOutputTypedDict +from .unifiedticketingcommentinput import UnifiedTicketingCommentInput, UnifiedTicketingCommentInputAttachments, UnifiedTicketingCommentInputAttachmentsTypedDict, UnifiedTicketingCommentInputTypedDict +from .unifiedticketingcommentoutput import UnifiedTicketingCommentOutput, UnifiedTicketingCommentOutputAttachments, UnifiedTicketingCommentOutputAttachmentsTypedDict, UnifiedTicketingCommentOutputTypedDict +from .unifiedticketingcontactoutput import UnifiedTicketingContactOutput, UnifiedTicketingContactOutputTypedDict +from .unifiedticketingtagoutput import UnifiedTicketingTagOutput, UnifiedTicketingTagOutputTypedDict +from .unifiedticketingteamoutput import UnifiedTicketingTeamOutput, UnifiedTicketingTeamOutputTypedDict +from .unifiedticketingticketinput import UnifiedTicketingTicketInput, UnifiedTicketingTicketInputAttachments, UnifiedTicketingTicketInputAttachmentsTypedDict, UnifiedTicketingTicketInputCollections, UnifiedTicketingTicketInputCollectionsTypedDict, UnifiedTicketingTicketInputComment, UnifiedTicketingTicketInputCommentAttachments, UnifiedTicketingTicketInputCommentAttachmentsTypedDict, UnifiedTicketingTicketInputCommentTypedDict, UnifiedTicketingTicketInputTags, UnifiedTicketingTicketInputTagsTypedDict, UnifiedTicketingTicketInputTypedDict +from .unifiedticketingticketoutput import AttachmentsModel, AttachmentsModelTypedDict, CollectionsModel, CollectionsModelTypedDict, Comment, CommentTypedDict, TagsModel, TagsModelTypedDict, UnifiedTicketingTicketOutput, UnifiedTicketingTicketOutputAttachments, UnifiedTicketingTicketOutputAttachmentsTypedDict, UnifiedTicketingTicketOutputTypedDict +from .unifiedticketinguseroutput import UnifiedTicketingUserOutput, UnifiedTicketingUserOutputTypedDict +from .updatepullfrequencydto import UpdatePullFrequencyDto, UpdatePullFrequencyDtoTypedDict +from .updatepullfrequencyop import UpdatePullFrequencyResponseBody, UpdatePullFrequencyResponseBodyTypedDict from .updatestatusop import UpdateStatusRequest, UpdateStatusRequestTypedDict from .url import URL, URLTypedDict from .variant import Variant, VariantTypedDict from .webhookdto import WebhookDto, WebhookDtoTypedDict from .webhookresponse import WebhookResponse, WebhookResponseTypedDict -__all__ = [ - "Address", - "AddressTypedDict", - "ApplicationsModel", - "ApplicationsModelTypedDict", - "AttachmentsModel", - "AttachmentsModelTypedDict", - "CollectionsModel", - "CollectionsModelTypedDict", - "Comment", - "CommentTypedDict", - "Connection", - "ConnectionTypedDict", - "CreateAccountingAccountRequest", - "CreateAccountingAccountRequestTypedDict", - "CreateAccountingAttachmentRequest", - "CreateAccountingAttachmentRequestTypedDict", - "CreateAccountingContactRequest", - "CreateAccountingContactRequestTypedDict", - "CreateAccountingExpenseRequest", - "CreateAccountingExpenseRequestTypedDict", - "CreateAccountingInvoiceRequest", - "CreateAccountingInvoiceRequestTypedDict", - "CreateAccountingJournalEntryRequest", - "CreateAccountingJournalEntryRequestTypedDict", - "CreateAccountingPaymentRequest", - "CreateAccountingPaymentRequestTypedDict", - "CreateAccountingPurchaseOrderRequest", - "CreateAccountingPurchaseOrderRequestTypedDict", - "CreateAtsActivityRequest", - "CreateAtsActivityRequestTypedDict", - "CreateAtsApplicationRequest", - "CreateAtsApplicationRequestTypedDict", - "CreateAtsAttachmentRequest", - "CreateAtsAttachmentRequestTypedDict", - "CreateAtsCandidateRequest", - "CreateAtsCandidateRequestTypedDict", - "CreateAtsInterviewRequest", - "CreateAtsInterviewRequestTypedDict", - "CreateBatchLinkedUserDto", - "CreateBatchLinkedUserDtoTypedDict", - "CreateCrmCompanyRequest", - "CreateCrmCompanyRequestTypedDict", - "CreateCrmContactRequest", - "CreateCrmContactRequestTypedDict", - "CreateCrmDealRequest", - "CreateCrmDealRequestTypedDict", - "CreateCrmEngagementRequest", - "CreateCrmEngagementRequestTypedDict", - "CreateCrmNoteRequest", - "CreateCrmNoteRequestTypedDict", - "CreateCrmTaskRequest", - "CreateCrmTaskRequestTypedDict", - "CreateEcommerceOrderRequest", - "CreateEcommerceOrderRequestTypedDict", - "CreateEcommerceProductRequest", - "CreateEcommerceProductRequestTypedDict", - "CreateFilestorageFileRequest", - "CreateFilestorageFileRequestTypedDict", - "CreateFilestorageFolderRequest", - "CreateFilestorageFolderRequestTypedDict", - "CreateHrisEmployeeRequest", - "CreateHrisEmployeeRequestTypedDict", - "CreateHrisTimeoffRequest", - "CreateHrisTimeoffRequestTypedDict", - "CreateHrisTimesheetentryRequest", - "CreateHrisTimesheetentryRequestTypedDict", - "CreateLinkedUserDto", - "CreateLinkedUserDtoTypedDict", - "CreateMarketingAutomationContactRequest", - "CreateMarketingAutomationContactRequestTypedDict", - "CreateMarketingautomationActionRequest", - "CreateMarketingautomationActionRequestTypedDict", - "CreateMarketingautomationAutomationRequest", - "CreateMarketingautomationAutomationRequestTypedDict", - "CreateMarketingautomationCampaignRequest", - "CreateMarketingautomationCampaignRequestTypedDict", - "CreateMarketingautomationListRequest", - "CreateMarketingautomationListRequestTypedDict", - "CreateMarketingautomationTemplateRequest", - "CreateMarketingautomationTemplateRequestTypedDict", - "CreateProjectDto", - "CreateProjectDtoTypedDict", - "CreateTicketingAttachmentRequest", - "CreateTicketingAttachmentRequestTypedDict", - "CreateTicketingCommentRequest", - "CreateTicketingCommentRequestTypedDict", - "CreateTicketingTicketRequest", - "CreateTicketingTicketRequestTypedDict", - "CreatedAt", - "CreatedAtTypedDict", - "CustomFieldCreateDto", - "CustomFieldCreateDtoDataType", - "CustomFieldCreateDtoObjectTypeOwner", - "CustomFieldCreateDtoTypedDict", - "CustomFieldResponse", - "CustomFieldResponseDataType", - "CustomFieldResponseTypedDict", - "Data", - "DataType", - "DataTypedDict", - "DeductionItem", - "DeductionItemTypedDict", - "DefineTargetFieldDto", - "DefineTargetFieldDtoTypedDict", - "DeleteRequest", - "DeleteRequestTypedDict", - "EarningItem", - "EarningItemTypedDict", - "Email", - "EmailTypedDict", - "EventResponse", - "EventResponseStatus", - "EventResponseTypedDict", - "FieldMappingsModel", - "FieldMappingsModelTypedDict", - "GetPanoraCoreEventsRequest", - "GetPanoraCoreEventsRequestTypedDict", - "GetRetriedRequestResponseRequest", - "GetRetriedRequestResponseRequestTypedDict", - "Headers", - "HeadersTypedDict", - "ItemsModel", - "ItemsModelTypedDict", - "LineItem", - "LineItemTypedDict", - "LinkedUserResponse", - "LinkedUserResponseTypedDict", - "ListAccountingAccountsRequest", - "ListAccountingAccountsRequestTypedDict", - "ListAccountingAccountsResponse", - "ListAccountingAccountsResponseBody", - "ListAccountingAccountsResponseBodyTypedDict", - "ListAccountingAccountsResponseTypedDict", - "ListAccountingAddressRequest", - "ListAccountingAddressRequestTypedDict", - "ListAccountingAddressResponse", - "ListAccountingAddressResponseBody", - "ListAccountingAddressResponseBodyTypedDict", - "ListAccountingAddressResponseTypedDict", - "ListAccountingAttachmentsRequest", - "ListAccountingAttachmentsRequestTypedDict", - "ListAccountingAttachmentsResponse", - "ListAccountingAttachmentsResponseBody", - "ListAccountingAttachmentsResponseBodyTypedDict", - "ListAccountingAttachmentsResponseTypedDict", - "ListAccountingBalanceSheetsRequest", - "ListAccountingBalanceSheetsRequestTypedDict", - "ListAccountingBalanceSheetsResponse", - "ListAccountingBalanceSheetsResponseBody", - "ListAccountingBalanceSheetsResponseBodyTypedDict", - "ListAccountingBalanceSheetsResponseTypedDict", - "ListAccountingCashflowStatementRequest", - "ListAccountingCashflowStatementRequestTypedDict", - "ListAccountingCashflowStatementResponse", - "ListAccountingCashflowStatementResponseBody", - "ListAccountingCashflowStatementResponseBodyTypedDict", - "ListAccountingCashflowStatementResponseTypedDict", - "ListAccountingCompanyInfosRequest", - "ListAccountingCompanyInfosRequestTypedDict", - "ListAccountingCompanyInfosResponse", - "ListAccountingCompanyInfosResponseBody", - "ListAccountingCompanyInfosResponseBodyTypedDict", - "ListAccountingCompanyInfosResponseTypedDict", - "ListAccountingContactsRequest", - "ListAccountingContactsRequestTypedDict", - "ListAccountingContactsResponse", - "ListAccountingContactsResponseBody", - "ListAccountingContactsResponseBodyTypedDict", - "ListAccountingContactsResponseTypedDict", - "ListAccountingCreditNoteRequest", - "ListAccountingCreditNoteRequestTypedDict", - "ListAccountingCreditNoteResponse", - "ListAccountingCreditNoteResponseBody", - "ListAccountingCreditNoteResponseBodyTypedDict", - "ListAccountingCreditNoteResponseTypedDict", - "ListAccountingExpenseRequest", - "ListAccountingExpenseRequestTypedDict", - "ListAccountingExpenseResponse", - "ListAccountingExpenseResponseBody", - "ListAccountingExpenseResponseBodyTypedDict", - "ListAccountingExpenseResponseTypedDict", - "ListAccountingIncomeStatementRequest", - "ListAccountingIncomeStatementRequestTypedDict", - "ListAccountingIncomeStatementResponse", - "ListAccountingIncomeStatementResponseBody", - "ListAccountingIncomeStatementResponseBodyTypedDict", - "ListAccountingIncomeStatementResponseTypedDict", - "ListAccountingInvoiceRequest", - "ListAccountingInvoiceRequestTypedDict", - "ListAccountingInvoiceResponse", - "ListAccountingInvoiceResponseBody", - "ListAccountingInvoiceResponseBodyTypedDict", - "ListAccountingInvoiceResponseTypedDict", - "ListAccountingItemRequest", - "ListAccountingItemRequestTypedDict", - "ListAccountingItemResponse", - "ListAccountingItemResponseBody", - "ListAccountingItemResponseBodyTypedDict", - "ListAccountingItemResponseTypedDict", - "ListAccountingJournalEntryRequest", - "ListAccountingJournalEntryRequestTypedDict", - "ListAccountingJournalEntryResponse", - "ListAccountingJournalEntryResponseBody", - "ListAccountingJournalEntryResponseBodyTypedDict", - "ListAccountingJournalEntryResponseTypedDict", - "ListAccountingPaymentRequest", - "ListAccountingPaymentRequestTypedDict", - "ListAccountingPaymentResponse", - "ListAccountingPaymentResponseBody", - "ListAccountingPaymentResponseBodyTypedDict", - "ListAccountingPaymentResponseTypedDict", - "ListAccountingPhonenumberRequest", - "ListAccountingPhonenumberRequestTypedDict", - "ListAccountingPhonenumberResponse", - "ListAccountingPhonenumberResponseBody", - "ListAccountingPhonenumberResponseBodyTypedDict", - "ListAccountingPhonenumberResponseTypedDict", - "ListAccountingPurchaseOrderRequest", - "ListAccountingPurchaseOrderRequestTypedDict", - "ListAccountingPurchaseOrderResponse", - "ListAccountingPurchaseOrderResponseBody", - "ListAccountingPurchaseOrderResponseBodyTypedDict", - "ListAccountingPurchaseOrderResponseTypedDict", - "ListAccountingTaxRateRequest", - "ListAccountingTaxRateRequestTypedDict", - "ListAccountingTaxRateResponse", - "ListAccountingTaxRateResponseBody", - "ListAccountingTaxRateResponseBodyTypedDict", - "ListAccountingTaxRateResponseTypedDict", - "ListAccountingTrackingCategorysRequest", - "ListAccountingTrackingCategorysRequestTypedDict", - "ListAccountingTrackingCategorysResponse", - "ListAccountingTrackingCategorysResponseBody", - "ListAccountingTrackingCategorysResponseBodyTypedDict", - "ListAccountingTrackingCategorysResponseTypedDict", - "ListAccountingTransactionRequest", - "ListAccountingTransactionRequestTypedDict", - "ListAccountingTransactionResponse", - "ListAccountingTransactionResponseBody", - "ListAccountingTransactionResponseBodyTypedDict", - "ListAccountingTransactionResponseTypedDict", - "ListAccountingVendorCreditRequest", - "ListAccountingVendorCreditRequestTypedDict", - "ListAccountingVendorCreditResponse", - "ListAccountingVendorCreditResponseBody", - "ListAccountingVendorCreditResponseBodyTypedDict", - "ListAccountingVendorCreditResponseTypedDict", - "ListAtsActivityRequest", - "ListAtsActivityRequestTypedDict", - "ListAtsActivityResponse", - "ListAtsActivityResponseBody", - "ListAtsActivityResponseBodyTypedDict", - "ListAtsActivityResponseTypedDict", - "ListAtsApplicationRequest", - "ListAtsApplicationRequestTypedDict", - "ListAtsApplicationResponse", - "ListAtsApplicationResponseBody", - "ListAtsApplicationResponseBodyTypedDict", - "ListAtsApplicationResponseTypedDict", - "ListAtsAttachmentRequest", - "ListAtsAttachmentRequestTypedDict", - "ListAtsAttachmentResponse", - "ListAtsAttachmentResponseBody", - "ListAtsAttachmentResponseBodyTypedDict", - "ListAtsAttachmentResponseTypedDict", - "ListAtsCandidateRequest", - "ListAtsCandidateRequestTypedDict", - "ListAtsCandidateResponse", - "ListAtsCandidateResponseBody", - "ListAtsCandidateResponseBodyTypedDict", - "ListAtsCandidateResponseTypedDict", - "ListAtsDepartmentsRequest", - "ListAtsDepartmentsRequestTypedDict", - "ListAtsDepartmentsResponse", - "ListAtsDepartmentsResponseBody", - "ListAtsDepartmentsResponseBodyTypedDict", - "ListAtsDepartmentsResponseTypedDict", - "ListAtsEeocsRequest", - "ListAtsEeocsRequestTypedDict", - "ListAtsEeocsResponse", - "ListAtsEeocsResponseBody", - "ListAtsEeocsResponseBodyTypedDict", - "ListAtsEeocsResponseTypedDict", - "ListAtsInterviewRequest", - "ListAtsInterviewRequestTypedDict", - "ListAtsInterviewResponse", - "ListAtsInterviewResponseBody", - "ListAtsInterviewResponseBodyTypedDict", - "ListAtsInterviewResponseTypedDict", - "ListAtsJobInterviewStageRequest", - "ListAtsJobInterviewStageRequestTypedDict", - "ListAtsJobInterviewStageResponse", - "ListAtsJobInterviewStageResponseBody", - "ListAtsJobInterviewStageResponseBodyTypedDict", - "ListAtsJobInterviewStageResponseTypedDict", - "ListAtsJobRequest", - "ListAtsJobRequestTypedDict", - "ListAtsJobResponse", - "ListAtsJobResponseBody", - "ListAtsJobResponseBodyTypedDict", - "ListAtsJobResponseTypedDict", - "ListAtsOfferRequest", - "ListAtsOfferRequestTypedDict", - "ListAtsOfferResponse", - "ListAtsOfferResponseBody", - "ListAtsOfferResponseBodyTypedDict", - "ListAtsOfferResponseTypedDict", - "ListAtsOfficeRequest", - "ListAtsOfficeRequestTypedDict", - "ListAtsOfficeResponse", - "ListAtsOfficeResponseBody", - "ListAtsOfficeResponseBodyTypedDict", - "ListAtsOfficeResponseTypedDict", - "ListAtsRejectReasonsRequest", - "ListAtsRejectReasonsRequestTypedDict", - "ListAtsRejectReasonsResponse", - "ListAtsRejectReasonsResponseBody", - "ListAtsRejectReasonsResponseBodyTypedDict", - "ListAtsRejectReasonsResponseTypedDict", - "ListAtsScorecardRequest", - "ListAtsScorecardRequestTypedDict", - "ListAtsScorecardResponse", - "ListAtsScorecardResponseBody", - "ListAtsScorecardResponseBodyTypedDict", - "ListAtsScorecardResponseTypedDict", - "ListAtsTagsRequest", - "ListAtsTagsRequestTypedDict", - "ListAtsTagsResponse", - "ListAtsTagsResponseBody", - "ListAtsTagsResponseBodyTypedDict", - "ListAtsTagsResponseTypedDict", - "ListAtsUsersRequest", - "ListAtsUsersRequestTypedDict", - "ListAtsUsersResponse", - "ListAtsUsersResponseBody", - "ListAtsUsersResponseBodyTypedDict", - "ListAtsUsersResponseTypedDict", - "ListCrmCompanyRequest", - "ListCrmCompanyRequestTypedDict", - "ListCrmCompanyResponse", - "ListCrmCompanyResponseBody", - "ListCrmCompanyResponseBodyTypedDict", - "ListCrmCompanyResponseTypedDict", - "ListCrmContactsRequest", - "ListCrmContactsRequestTypedDict", - "ListCrmContactsResponse", - "ListCrmContactsResponseBody", - "ListCrmContactsResponseBodyTypedDict", - "ListCrmContactsResponseTypedDict", - "ListCrmDealsRequest", - "ListCrmDealsRequestTypedDict", - "ListCrmDealsResponse", - "ListCrmDealsResponseBody", - "ListCrmDealsResponseBodyTypedDict", - "ListCrmDealsResponseTypedDict", - "ListCrmEngagementsRequest", - "ListCrmEngagementsRequestTypedDict", - "ListCrmEngagementsResponse", - "ListCrmEngagementsResponseBody", - "ListCrmEngagementsResponseBodyTypedDict", - "ListCrmEngagementsResponseTypedDict", - "ListCrmNoteRequest", - "ListCrmNoteRequestTypedDict", - "ListCrmNoteResponse", - "ListCrmNoteResponseBody", - "ListCrmNoteResponseBodyTypedDict", - "ListCrmNoteResponseTypedDict", - "ListCrmStagesRequest", - "ListCrmStagesRequestTypedDict", - "ListCrmStagesResponse", - "ListCrmStagesResponseBody", - "ListCrmStagesResponseBodyTypedDict", - "ListCrmStagesResponseTypedDict", - "ListCrmTaskRequest", - "ListCrmTaskRequestTypedDict", - "ListCrmTaskResponse", - "ListCrmTaskResponseBody", - "ListCrmTaskResponseBodyTypedDict", - "ListCrmTaskResponseTypedDict", - "ListCrmUsersRequest", - "ListCrmUsersRequestTypedDict", - "ListCrmUsersResponse", - "ListCrmUsersResponseBody", - "ListCrmUsersResponseBodyTypedDict", - "ListCrmUsersResponseTypedDict", - "ListEcommerceCustomersRequest", - "ListEcommerceCustomersRequestTypedDict", - "ListEcommerceCustomersResponse", - "ListEcommerceCustomersResponseBody", - "ListEcommerceCustomersResponseBodyTypedDict", - "ListEcommerceCustomersResponseTypedDict", - "ListEcommerceFulfillmentsRequest", - "ListEcommerceFulfillmentsRequestTypedDict", - "ListEcommerceFulfillmentsResponse", - "ListEcommerceFulfillmentsResponseBody", - "ListEcommerceFulfillmentsResponseBodyTypedDict", - "ListEcommerceFulfillmentsResponseTypedDict", - "ListEcommerceOrdersRequest", - "ListEcommerceOrdersRequestTypedDict", - "ListEcommerceOrdersResponse", - "ListEcommerceOrdersResponseBody", - "ListEcommerceOrdersResponseBodyTypedDict", - "ListEcommerceOrdersResponseTypedDict", - "ListEcommerceProductsRequest", - "ListEcommerceProductsRequestTypedDict", - "ListEcommerceProductsResponse", - "ListEcommerceProductsResponseBody", - "ListEcommerceProductsResponseBodyTypedDict", - "ListEcommerceProductsResponseTypedDict", - "ListFilestorageFileRequest", - "ListFilestorageFileRequestTypedDict", - "ListFilestorageFileResponse", - "ListFilestorageFileResponseBody", - "ListFilestorageFileResponseBodyTypedDict", - "ListFilestorageFileResponseTypedDict", - "ListFilestorageFolderRequest", - "ListFilestorageFolderRequestTypedDict", - "ListFilestorageFolderResponse", - "ListFilestorageFolderResponseBody", - "ListFilestorageFolderResponseBodyTypedDict", - "ListFilestorageFolderResponseTypedDict", - "ListFilestorageGroupRequest", - "ListFilestorageGroupRequestTypedDict", - "ListFilestorageGroupResponse", - "ListFilestorageGroupResponseBody", - "ListFilestorageGroupResponseBodyTypedDict", - "ListFilestorageGroupResponseTypedDict", - "ListFilestorageUsersRequest", - "ListFilestorageUsersRequestTypedDict", - "ListFilestorageUsersResponse", - "ListFilestorageUsersResponseBody", - "ListFilestorageUsersResponseBodyTypedDict", - "ListFilestorageUsersResponseTypedDict", - "ListHrisBankInfoRequest", - "ListHrisBankInfoRequestTypedDict", - "ListHrisBankInfoResponse", - "ListHrisBankInfoResponseBody", - "ListHrisBankInfoResponseBodyTypedDict", - "ListHrisBankInfoResponseTypedDict", - "ListHrisBenefitsRequest", - "ListHrisBenefitsRequestTypedDict", - "ListHrisBenefitsResponse", - "ListHrisBenefitsResponseBody", - "ListHrisBenefitsResponseBodyTypedDict", - "ListHrisBenefitsResponseTypedDict", - "ListHrisCompaniesRequest", - "ListHrisCompaniesRequestTypedDict", - "ListHrisCompaniesResponse", - "ListHrisCompaniesResponseBody", - "ListHrisCompaniesResponseBodyTypedDict", - "ListHrisCompaniesResponseTypedDict", - "ListHrisDependentsRequest", - "ListHrisDependentsRequestTypedDict", - "ListHrisDependentsResponse", - "ListHrisDependentsResponseBody", - "ListHrisDependentsResponseBodyTypedDict", - "ListHrisDependentsResponseTypedDict", - "ListHrisEmployeePayrollRunRequest", - "ListHrisEmployeePayrollRunRequestTypedDict", - "ListHrisEmployeePayrollRunResponse", - "ListHrisEmployeePayrollRunResponseBody", - "ListHrisEmployeePayrollRunResponseBodyTypedDict", - "ListHrisEmployeePayrollRunResponseTypedDict", - "ListHrisEmployeesRequest", - "ListHrisEmployeesRequestTypedDict", - "ListHrisEmployeesResponse", - "ListHrisEmployeesResponseBody", - "ListHrisEmployeesResponseBodyTypedDict", - "ListHrisEmployeesResponseTypedDict", - "ListHrisEmployerBenefitsRequest", - "ListHrisEmployerBenefitsRequestTypedDict", - "ListHrisEmployerBenefitsResponse", - "ListHrisEmployerBenefitsResponseBody", - "ListHrisEmployerBenefitsResponseBodyTypedDict", - "ListHrisEmployerBenefitsResponseTypedDict", - "ListHrisEmploymentsRequest", - "ListHrisEmploymentsRequestTypedDict", - "ListHrisEmploymentsResponse", - "ListHrisEmploymentsResponseBody", - "ListHrisEmploymentsResponseBodyTypedDict", - "ListHrisEmploymentsResponseTypedDict", - "ListHrisGroupsRequest", - "ListHrisGroupsRequestTypedDict", - "ListHrisGroupsResponse", - "ListHrisGroupsResponseBody", - "ListHrisGroupsResponseBodyTypedDict", - "ListHrisGroupsResponseTypedDict", - "ListHrisLocationsRequest", - "ListHrisLocationsRequestTypedDict", - "ListHrisLocationsResponse", - "ListHrisLocationsResponseBody", - "ListHrisLocationsResponseBodyTypedDict", - "ListHrisLocationsResponseTypedDict", - "ListHrisPaygroupsRequest", - "ListHrisPaygroupsRequestTypedDict", - "ListHrisPaygroupsResponse", - "ListHrisPaygroupsResponseBody", - "ListHrisPaygroupsResponseBodyTypedDict", - "ListHrisPaygroupsResponseTypedDict", - "ListHrisPayrollRunsRequest", - "ListHrisPayrollRunsRequestTypedDict", - "ListHrisPayrollRunsResponse", - "ListHrisPayrollRunsResponseBody", - "ListHrisPayrollRunsResponseBodyTypedDict", - "ListHrisPayrollRunsResponseTypedDict", - "ListHrisTimeoffbalancesRequest", - "ListHrisTimeoffbalancesRequestTypedDict", - "ListHrisTimeoffbalancesResponse", - "ListHrisTimeoffbalancesResponseBody", - "ListHrisTimeoffbalancesResponseBodyTypedDict", - "ListHrisTimeoffbalancesResponseTypedDict", - "ListHrisTimeoffsRequest", - "ListHrisTimeoffsRequestTypedDict", - "ListHrisTimeoffsResponse", - "ListHrisTimeoffsResponseBody", - "ListHrisTimeoffsResponseBodyTypedDict", - "ListHrisTimeoffsResponseTypedDict", - "ListHrisTimesheetentriesRequest", - "ListHrisTimesheetentriesRequestTypedDict", - "ListHrisTimesheetentriesResponse", - "ListHrisTimesheetentriesResponseBody", - "ListHrisTimesheetentriesResponseBodyTypedDict", - "ListHrisTimesheetentriesResponseTypedDict", - "ListMarketingAutomationContactsRequest", - "ListMarketingAutomationContactsRequestTypedDict", - "ListMarketingAutomationContactsResponse", - "ListMarketingAutomationContactsResponseBody", - "ListMarketingAutomationContactsResponseBodyTypedDict", - "ListMarketingAutomationContactsResponseTypedDict", - "ListMarketingAutomationEventsRequest", - "ListMarketingAutomationEventsRequestTypedDict", - "ListMarketingAutomationEventsResponse", - "ListMarketingAutomationEventsResponseBody", - "ListMarketingAutomationEventsResponseBodyTypedDict", - "ListMarketingAutomationEventsResponseTypedDict", - "ListMarketingAutomationUsersRequest", - "ListMarketingAutomationUsersRequestTypedDict", - "ListMarketingAutomationUsersResponse", - "ListMarketingAutomationUsersResponseBody", - "ListMarketingAutomationUsersResponseBodyTypedDict", - "ListMarketingAutomationUsersResponseTypedDict", - "ListMarketingautomationActionRequest", - "ListMarketingautomationActionRequestTypedDict", - "ListMarketingautomationActionResponse", - "ListMarketingautomationActionResponseBody", - "ListMarketingautomationActionResponseBodyTypedDict", - "ListMarketingautomationActionResponseTypedDict", - "ListMarketingautomationAutomationsRequest", - "ListMarketingautomationAutomationsRequestTypedDict", - "ListMarketingautomationAutomationsResponse", - "ListMarketingautomationAutomationsResponseBody", - "ListMarketingautomationAutomationsResponseBodyTypedDict", - "ListMarketingautomationAutomationsResponseTypedDict", - "ListMarketingautomationCampaignsRequest", - "ListMarketingautomationCampaignsRequestTypedDict", - "ListMarketingautomationCampaignsResponse", - "ListMarketingautomationCampaignsResponseBody", - "ListMarketingautomationCampaignsResponseBodyTypedDict", - "ListMarketingautomationCampaignsResponseTypedDict", - "ListMarketingautomationEmailsRequest", - "ListMarketingautomationEmailsRequestTypedDict", - "ListMarketingautomationEmailsResponse", - "ListMarketingautomationEmailsResponseBody", - "ListMarketingautomationEmailsResponseBodyTypedDict", - "ListMarketingautomationEmailsResponseTypedDict", - "ListMarketingautomationListsRequest", - "ListMarketingautomationListsRequestTypedDict", - "ListMarketingautomationListsResponse", - "ListMarketingautomationListsResponseBody", - "ListMarketingautomationListsResponseBodyTypedDict", - "ListMarketingautomationListsResponseTypedDict", - "ListMarketingautomationMessagesRequest", - "ListMarketingautomationMessagesRequestTypedDict", - "ListMarketingautomationMessagesResponse", - "ListMarketingautomationMessagesResponseBody", - "ListMarketingautomationMessagesResponseBodyTypedDict", - "ListMarketingautomationMessagesResponseTypedDict", - "ListMarketingautomationTemplatesRequest", - "ListMarketingautomationTemplatesRequestTypedDict", - "ListMarketingautomationTemplatesResponse", - "ListMarketingautomationTemplatesResponseBody", - "ListMarketingautomationTemplatesResponseBodyTypedDict", - "ListMarketingautomationTemplatesResponseTypedDict", - "ListTicketingAccountRequest", - "ListTicketingAccountRequestTypedDict", - "ListTicketingAccountResponse", - "ListTicketingAccountResponseBody", - "ListTicketingAccountResponseBodyTypedDict", - "ListTicketingAccountResponseTypedDict", - "ListTicketingAttachmentsRequest", - "ListTicketingAttachmentsRequestTypedDict", - "ListTicketingAttachmentsResponse", - "ListTicketingAttachmentsResponseBody", - "ListTicketingAttachmentsResponseBodyTypedDict", - "ListTicketingAttachmentsResponseTypedDict", - "ListTicketingCollectionsRequest", - "ListTicketingCollectionsRequestTypedDict", - "ListTicketingCollectionsResponse", - "ListTicketingCollectionsResponseBody", - "ListTicketingCollectionsResponseBodyTypedDict", - "ListTicketingCollectionsResponseTypedDict", - "ListTicketingCommentsRequest", - "ListTicketingCommentsRequestTypedDict", - "ListTicketingCommentsResponse", - "ListTicketingCommentsResponseBody", - "ListTicketingCommentsResponseBodyTypedDict", - "ListTicketingCommentsResponseTypedDict", - "ListTicketingContactsRequest", - "ListTicketingContactsRequestTypedDict", - "ListTicketingContactsResponse", - "ListTicketingContactsResponseBody", - "ListTicketingContactsResponseBodyTypedDict", - "ListTicketingContactsResponseTypedDict", - "ListTicketingTagsRequest", - "ListTicketingTagsRequestTypedDict", - "ListTicketingTagsResponse", - "ListTicketingTagsResponseBody", - "ListTicketingTagsResponseBodyTypedDict", - "ListTicketingTagsResponseTypedDict", - "ListTicketingTeamsRequest", - "ListTicketingTeamsRequestTypedDict", - "ListTicketingTeamsResponse", - "ListTicketingTeamsResponseBody", - "ListTicketingTeamsResponseBodyTypedDict", - "ListTicketingTeamsResponseTypedDict", - "ListTicketingTicketRequest", - "ListTicketingTicketRequestTypedDict", - "ListTicketingTicketResponse", - "ListTicketingTicketResponseBody", - "ListTicketingTicketResponseBodyTypedDict", - "ListTicketingTicketResponseTypedDict", - "ListTicketingUsersRequest", - "ListTicketingUsersRequestTypedDict", - "ListTicketingUsersResponse", - "ListTicketingUsersResponseBody", - "ListTicketingUsersResponseBodyTypedDict", - "ListTicketingUsersResponseTypedDict", - "LoginDto", - "LoginDtoTypedDict", - "MapFieldToProviderDto", - "MapFieldToProviderDtoTypedDict", - "Method", - "ModifiedAt", - "ModifiedAtTypedDict", - "ObjectTypeOwner", - "OwnerType", - "PassThroughRequestDto", - "PassThroughRequestDtoMethod", - "PassThroughRequestDtoTypedDict", - "PathParamVertical", - "Phone", - "PhoneTypedDict", - "ProjectResponse", - "ProjectResponseTypedDict", - "RagControllerQueryEmbeddingsResponseBody", - "RagControllerQueryEmbeddingsResponseBodyTypedDict", - "RemoteData", - "RemoteDataTypedDict", - "RemoteIDRequest", - "RemoteIDRequestTypedDict", - "RequestFormat", - "RequestFormatTypedDict", - "RequestPassthroughResponseBody", - "RequestPassthroughResponseBodyTypedDict", - "RequestRequest", - "RequestRequestTypedDict", - "RequestResponse", - "RequestResponseBody", - "RequestResponseBodyTypedDict", - "RequestResponseTypedDict", - "ResyncStatusDto", - "ResyncStatusDtoTypedDict", - "RetrieveAccountingAccountRequest", - "RetrieveAccountingAccountRequestTypedDict", - "RetrieveAccountingAddressRequest", - "RetrieveAccountingAddressRequestTypedDict", - "RetrieveAccountingAttachmentRequest", - "RetrieveAccountingAttachmentRequestTypedDict", - "RetrieveAccountingBalanceSheetRequest", - "RetrieveAccountingBalanceSheetRequestTypedDict", - "RetrieveAccountingCashflowStatementRequest", - "RetrieveAccountingCashflowStatementRequestTypedDict", - "RetrieveAccountingCompanyInfoRequest", - "RetrieveAccountingCompanyInfoRequestTypedDict", - "RetrieveAccountingContactRequest", - "RetrieveAccountingContactRequestTypedDict", - "RetrieveAccountingCreditNoteRequest", - "RetrieveAccountingCreditNoteRequestTypedDict", - "RetrieveAccountingExpenseRequest", - "RetrieveAccountingExpenseRequestTypedDict", - "RetrieveAccountingIncomeStatementRequest", - "RetrieveAccountingIncomeStatementRequestTypedDict", - "RetrieveAccountingInvoiceRequest", - "RetrieveAccountingInvoiceRequestTypedDict", - "RetrieveAccountingItemRequest", - "RetrieveAccountingItemRequestTypedDict", - "RetrieveAccountingJournalEntryRequest", - "RetrieveAccountingJournalEntryRequestTypedDict", - "RetrieveAccountingPaymentRequest", - "RetrieveAccountingPaymentRequestTypedDict", - "RetrieveAccountingPhonenumberRequest", - "RetrieveAccountingPhonenumberRequestTypedDict", - "RetrieveAccountingPurchaseOrderRequest", - "RetrieveAccountingPurchaseOrderRequestTypedDict", - "RetrieveAccountingTaxRateRequest", - "RetrieveAccountingTaxRateRequestTypedDict", - "RetrieveAccountingTrackingCategoryRequest", - "RetrieveAccountingTrackingCategoryRequestTypedDict", - "RetrieveAccountingTransactionRequest", - "RetrieveAccountingTransactionRequestTypedDict", - "RetrieveAccountingVendorCreditRequest", - "RetrieveAccountingVendorCreditRequestTypedDict", - "RetrieveAtsActivityRequest", - "RetrieveAtsActivityRequestTypedDict", - "RetrieveAtsApplicationRequest", - "RetrieveAtsApplicationRequestTypedDict", - "RetrieveAtsAttachmentRequest", - "RetrieveAtsAttachmentRequestTypedDict", - "RetrieveAtsCandidateRequest", - "RetrieveAtsCandidateRequestTypedDict", - "RetrieveAtsDepartmentRequest", - "RetrieveAtsDepartmentRequestTypedDict", - "RetrieveAtsEeocsRequest", - "RetrieveAtsEeocsRequestTypedDict", - "RetrieveAtsInterviewRequest", - "RetrieveAtsInterviewRequestTypedDict", - "RetrieveAtsJobInterviewStageRequest", - "RetrieveAtsJobInterviewStageRequestTypedDict", - "RetrieveAtsJobRequest", - "RetrieveAtsJobRequestTypedDict", - "RetrieveAtsOfferRequest", - "RetrieveAtsOfferRequestTypedDict", - "RetrieveAtsOfficeRequest", - "RetrieveAtsOfficeRequestTypedDict", - "RetrieveAtsRejectReasonRequest", - "RetrieveAtsRejectReasonRequestTypedDict", - "RetrieveAtsScorecardRequest", - "RetrieveAtsScorecardRequestTypedDict", - "RetrieveAtsTagRequest", - "RetrieveAtsTagRequestTypedDict", - "RetrieveAtsUserRequest", - "RetrieveAtsUserRequestTypedDict", - "RetrieveCollectionRequest", - "RetrieveCollectionRequestTypedDict", - "RetrieveCrmCompanyRequest", - "RetrieveCrmCompanyRequestTypedDict", - "RetrieveCrmContactRequest", - "RetrieveCrmContactRequestTypedDict", - "RetrieveCrmDealRequest", - "RetrieveCrmDealRequestTypedDict", - "RetrieveCrmEngagementRequest", - "RetrieveCrmEngagementRequestTypedDict", - "RetrieveCrmNoteRequest", - "RetrieveCrmNoteRequestTypedDict", - "RetrieveCrmStageRequest", - "RetrieveCrmStageRequestTypedDict", - "RetrieveCrmTaskRequest", - "RetrieveCrmTaskRequestTypedDict", - "RetrieveCrmUserRequest", - "RetrieveCrmUserRequestTypedDict", - "RetrieveEcommerceCustomerRequest", - "RetrieveEcommerceCustomerRequestTypedDict", - "RetrieveEcommerceFulfillmentRequest", - "RetrieveEcommerceFulfillmentRequestTypedDict", - "RetrieveEcommerceOrderRequest", - "RetrieveEcommerceOrderRequestTypedDict", - "RetrieveEcommerceProductRequest", - "RetrieveEcommerceProductRequestTypedDict", - "RetrieveFilestorageFileRequest", - "RetrieveFilestorageFileRequestTypedDict", - "RetrieveFilestorageFolderRequest", - "RetrieveFilestorageFolderRequestTypedDict", - "RetrieveFilestorageGroupRequest", - "RetrieveFilestorageGroupRequestTypedDict", - "RetrieveFilestorageUserRequest", - "RetrieveFilestorageUserRequestTypedDict", - "RetrieveHrisBankInfoRequest", - "RetrieveHrisBankInfoRequestTypedDict", - "RetrieveHrisBenefitRequest", - "RetrieveHrisBenefitRequestTypedDict", - "RetrieveHrisCompanyRequest", - "RetrieveHrisCompanyRequestTypedDict", - "RetrieveHrisDependentRequest", - "RetrieveHrisDependentRequestTypedDict", - "RetrieveHrisEmployeePayrollRunRequest", - "RetrieveHrisEmployeePayrollRunRequestTypedDict", - "RetrieveHrisEmployeeRequest", - "RetrieveHrisEmployeeRequestTypedDict", - "RetrieveHrisEmployerBenefitRequest", - "RetrieveHrisEmployerBenefitRequestTypedDict", - "RetrieveHrisEmploymentRequest", - "RetrieveHrisEmploymentRequestTypedDict", - "RetrieveHrisGroupRequest", - "RetrieveHrisGroupRequestTypedDict", - "RetrieveHrisLocationRequest", - "RetrieveHrisLocationRequestTypedDict", - "RetrieveHrisPaygroupRequest", - "RetrieveHrisPaygroupRequestTypedDict", - "RetrieveHrisPayrollRunRequest", - "RetrieveHrisPayrollRunRequestTypedDict", - "RetrieveHrisTimeoffRequest", - "RetrieveHrisTimeoffRequestTypedDict", - "RetrieveHrisTimeoffbalanceRequest", - "RetrieveHrisTimeoffbalanceRequestTypedDict", - "RetrieveHrisTimesheetentryRequest", - "RetrieveHrisTimesheetentryRequestTypedDict", - "RetrieveLinkedUserRequest", - "RetrieveLinkedUserRequestTypedDict", - "RetrieveMarketingAutomationContactRequest", - "RetrieveMarketingAutomationContactRequestTypedDict", - "RetrieveMarketingAutomationUserRequest", - "RetrieveMarketingAutomationUserRequestTypedDict", - "RetrieveMarketingautomationActionRequest", - "RetrieveMarketingautomationActionRequestTypedDict", - "RetrieveMarketingautomationAutomationRequest", - "RetrieveMarketingautomationAutomationRequestTypedDict", - "RetrieveMarketingautomationCampaignRequest", - "RetrieveMarketingautomationCampaignRequestTypedDict", - "RetrieveMarketingautomationEmailRequest", - "RetrieveMarketingautomationEmailRequestTypedDict", - "RetrieveMarketingautomationEventRequest", - "RetrieveMarketingautomationEventRequestTypedDict", - "RetrieveMarketingautomationListRequest", - "RetrieveMarketingautomationListRequestTypedDict", - "RetrieveMarketingautomationMessageRequest", - "RetrieveMarketingautomationMessageRequestTypedDict", - "RetrieveMarketingautomationTemplateRequest", - "RetrieveMarketingautomationTemplateRequestTypedDict", - "RetrieveTicketingAccountRequest", - "RetrieveTicketingAccountRequestTypedDict", - "RetrieveTicketingAttachmentRequest", - "RetrieveTicketingAttachmentRequestTypedDict", - "RetrieveTicketingCommentRequest", - "RetrieveTicketingCommentRequestTypedDict", - "RetrieveTicketingCommentResponseBody", - "RetrieveTicketingCommentResponseBodyTypedDict", - "RetrieveTicketingContactRequest", - "RetrieveTicketingContactRequestTypedDict", - "RetrieveTicketingContactResponseBody", - "RetrieveTicketingContactResponseBodyTypedDict", - "RetrieveTicketingTagRequest", - "RetrieveTicketingTagRequestTypedDict", - "RetrieveTicketingTeamRequest", - "RetrieveTicketingTeamRequestTypedDict", - "RetrieveTicketingTicketRequest", - "RetrieveTicketingTicketRequestTypedDict", - "RetrieveTicketingUserRequest", - "RetrieveTicketingUserRequestTypedDict", - "SDKError", - "Security", - "SecurityTypedDict", - "SignatureVerificationDto", - "SignatureVerificationDtoTypedDict", - "Status", - "StatusRequest", - "StatusRequestTypedDict", - "TagsModel", - "TagsModelTypedDict", - "TaxItem", - "TaxItemTypedDict", - "TokenType", - "Type", - "URL", - "URLTypedDict", - "UnifiedAccountingAccountInput", - "UnifiedAccountingAccountInputFieldMappings", - "UnifiedAccountingAccountInputFieldMappingsTypedDict", - "UnifiedAccountingAccountInputTypedDict", - "UnifiedAccountingAccountOutput", - "UnifiedAccountingAccountOutputFieldMappings", - "UnifiedAccountingAccountOutputFieldMappingsTypedDict", - "UnifiedAccountingAccountOutputRemoteData", - "UnifiedAccountingAccountOutputRemoteDataTypedDict", - "UnifiedAccountingAccountOutputTypedDict", - "UnifiedAccountingAddressOutput", - "UnifiedAccountingAddressOutputFieldMappings", - "UnifiedAccountingAddressOutputFieldMappingsTypedDict", - "UnifiedAccountingAddressOutputRemoteData", - "UnifiedAccountingAddressOutputRemoteDataTypedDict", - "UnifiedAccountingAddressOutputTypedDict", - "UnifiedAccountingAttachmentInput", - "UnifiedAccountingAttachmentInputFieldMappings", - "UnifiedAccountingAttachmentInputFieldMappingsTypedDict", - "UnifiedAccountingAttachmentInputTypedDict", - "UnifiedAccountingAttachmentOutput", - "UnifiedAccountingAttachmentOutputFieldMappings", - "UnifiedAccountingAttachmentOutputFieldMappingsTypedDict", - "UnifiedAccountingAttachmentOutputRemoteData", - "UnifiedAccountingAttachmentOutputRemoteDataTypedDict", - "UnifiedAccountingAttachmentOutputTypedDict", - "UnifiedAccountingBalancesheetOutput", - "UnifiedAccountingBalancesheetOutputFieldMappings", - "UnifiedAccountingBalancesheetOutputFieldMappingsTypedDict", - "UnifiedAccountingBalancesheetOutputRemoteData", - "UnifiedAccountingBalancesheetOutputRemoteDataTypedDict", - "UnifiedAccountingBalancesheetOutputTypedDict", - "UnifiedAccountingCashflowstatementOutput", - "UnifiedAccountingCashflowstatementOutputFieldMappings", - "UnifiedAccountingCashflowstatementOutputFieldMappingsTypedDict", - "UnifiedAccountingCashflowstatementOutputRemoteData", - "UnifiedAccountingCashflowstatementOutputRemoteDataTypedDict", - "UnifiedAccountingCashflowstatementOutputTypedDict", - "UnifiedAccountingCompanyinfoOutput", - "UnifiedAccountingCompanyinfoOutputFieldMappings", - "UnifiedAccountingCompanyinfoOutputFieldMappingsTypedDict", - "UnifiedAccountingCompanyinfoOutputRemoteData", - "UnifiedAccountingCompanyinfoOutputRemoteDataTypedDict", - "UnifiedAccountingCompanyinfoOutputTypedDict", - "UnifiedAccountingContactInput", - "UnifiedAccountingContactInputFieldMappings", - "UnifiedAccountingContactInputFieldMappingsTypedDict", - "UnifiedAccountingContactInputTypedDict", - "UnifiedAccountingContactOutput", - "UnifiedAccountingContactOutputFieldMappings", - "UnifiedAccountingContactOutputFieldMappingsTypedDict", - "UnifiedAccountingContactOutputRemoteData", - "UnifiedAccountingContactOutputRemoteDataTypedDict", - "UnifiedAccountingContactOutputTypedDict", - "UnifiedAccountingCreditnoteOutput", - "UnifiedAccountingCreditnoteOutputFieldMappings", - "UnifiedAccountingCreditnoteOutputFieldMappingsTypedDict", - "UnifiedAccountingCreditnoteOutputRemoteData", - "UnifiedAccountingCreditnoteOutputRemoteDataTypedDict", - "UnifiedAccountingCreditnoteOutputTypedDict", - "UnifiedAccountingExpenseInput", - "UnifiedAccountingExpenseInputFieldMappings", - "UnifiedAccountingExpenseInputFieldMappingsTypedDict", - "UnifiedAccountingExpenseInputTypedDict", - "UnifiedAccountingExpenseOutput", - "UnifiedAccountingExpenseOutputFieldMappings", - "UnifiedAccountingExpenseOutputFieldMappingsTypedDict", - "UnifiedAccountingExpenseOutputRemoteData", - "UnifiedAccountingExpenseOutputRemoteDataTypedDict", - "UnifiedAccountingExpenseOutputTypedDict", - "UnifiedAccountingIncomestatementOutput", - "UnifiedAccountingIncomestatementOutputFieldMappings", - "UnifiedAccountingIncomestatementOutputFieldMappingsTypedDict", - "UnifiedAccountingIncomestatementOutputRemoteData", - "UnifiedAccountingIncomestatementOutputRemoteDataTypedDict", - "UnifiedAccountingIncomestatementOutputTypedDict", - "UnifiedAccountingInvoiceInput", - "UnifiedAccountingInvoiceInputFieldMappings", - "UnifiedAccountingInvoiceInputFieldMappingsTypedDict", - "UnifiedAccountingInvoiceInputTypedDict", - "UnifiedAccountingInvoiceOutput", - "UnifiedAccountingInvoiceOutputFieldMappings", - "UnifiedAccountingInvoiceOutputFieldMappingsTypedDict", - "UnifiedAccountingInvoiceOutputRemoteData", - "UnifiedAccountingInvoiceOutputRemoteDataTypedDict", - "UnifiedAccountingInvoiceOutputTypedDict", - "UnifiedAccountingItemOutput", - "UnifiedAccountingItemOutputFieldMappings", - "UnifiedAccountingItemOutputFieldMappingsTypedDict", - "UnifiedAccountingItemOutputRemoteData", - "UnifiedAccountingItemOutputRemoteDataTypedDict", - "UnifiedAccountingItemOutputTypedDict", - "UnifiedAccountingJournalentryInput", - "UnifiedAccountingJournalentryInputFieldMappings", - "UnifiedAccountingJournalentryInputFieldMappingsTypedDict", - "UnifiedAccountingJournalentryInputTypedDict", - "UnifiedAccountingJournalentryOutput", - "UnifiedAccountingJournalentryOutputFieldMappings", - "UnifiedAccountingJournalentryOutputFieldMappingsTypedDict", - "UnifiedAccountingJournalentryOutputRemoteData", - "UnifiedAccountingJournalentryOutputRemoteDataTypedDict", - "UnifiedAccountingJournalentryOutputTypedDict", - "UnifiedAccountingPaymentInput", - "UnifiedAccountingPaymentInputFieldMappings", - "UnifiedAccountingPaymentInputFieldMappingsTypedDict", - "UnifiedAccountingPaymentInputTypedDict", - "UnifiedAccountingPaymentOutput", - "UnifiedAccountingPaymentOutputFieldMappings", - "UnifiedAccountingPaymentOutputFieldMappingsTypedDict", - "UnifiedAccountingPaymentOutputRemoteData", - "UnifiedAccountingPaymentOutputRemoteDataTypedDict", - "UnifiedAccountingPaymentOutputTypedDict", - "UnifiedAccountingPhonenumberOutput", - "UnifiedAccountingPhonenumberOutputFieldMappings", - "UnifiedAccountingPhonenumberOutputFieldMappingsTypedDict", - "UnifiedAccountingPhonenumberOutputRemoteData", - "UnifiedAccountingPhonenumberOutputRemoteDataTypedDict", - "UnifiedAccountingPhonenumberOutputTypedDict", - "UnifiedAccountingPurchaseorderInput", - "UnifiedAccountingPurchaseorderInputFieldMappings", - "UnifiedAccountingPurchaseorderInputFieldMappingsTypedDict", - "UnifiedAccountingPurchaseorderInputTypedDict", - "UnifiedAccountingPurchaseorderOutput", - "UnifiedAccountingPurchaseorderOutputFieldMappings", - "UnifiedAccountingPurchaseorderOutputFieldMappingsTypedDict", - "UnifiedAccountingPurchaseorderOutputRemoteData", - "UnifiedAccountingPurchaseorderOutputRemoteDataTypedDict", - "UnifiedAccountingPurchaseorderOutputTypedDict", - "UnifiedAccountingTaxrateOutput", - "UnifiedAccountingTaxrateOutputFieldMappings", - "UnifiedAccountingTaxrateOutputFieldMappingsTypedDict", - "UnifiedAccountingTaxrateOutputRemoteData", - "UnifiedAccountingTaxrateOutputRemoteDataTypedDict", - "UnifiedAccountingTaxrateOutputTypedDict", - "UnifiedAccountingTrackingcategoryOutput", - "UnifiedAccountingTrackingcategoryOutputFieldMappings", - "UnifiedAccountingTrackingcategoryOutputFieldMappingsTypedDict", - "UnifiedAccountingTrackingcategoryOutputRemoteData", - "UnifiedAccountingTrackingcategoryOutputRemoteDataTypedDict", - "UnifiedAccountingTrackingcategoryOutputTypedDict", - "UnifiedAccountingTransactionOutput", - "UnifiedAccountingTransactionOutputFieldMappings", - "UnifiedAccountingTransactionOutputFieldMappingsTypedDict", - "UnifiedAccountingTransactionOutputRemoteData", - "UnifiedAccountingTransactionOutputRemoteDataTypedDict", - "UnifiedAccountingTransactionOutputTypedDict", - "UnifiedAccountingVendorcreditOutput", - "UnifiedAccountingVendorcreditOutputFieldMappings", - "UnifiedAccountingVendorcreditOutputFieldMappingsTypedDict", - "UnifiedAccountingVendorcreditOutputRemoteData", - "UnifiedAccountingVendorcreditOutputRemoteDataTypedDict", - "UnifiedAccountingVendorcreditOutputTypedDict", - "UnifiedAtsActivityInput", - "UnifiedAtsActivityInputTypedDict", - "UnifiedAtsActivityOutput", - "UnifiedAtsActivityOutputTypedDict", - "UnifiedAtsApplicationInput", - "UnifiedAtsApplicationInputTypedDict", - "UnifiedAtsApplicationOutput", - "UnifiedAtsApplicationOutputTypedDict", - "UnifiedAtsAttachmentInput", - "UnifiedAtsAttachmentInputTypedDict", - "UnifiedAtsAttachmentOutput", - "UnifiedAtsAttachmentOutputTypedDict", - "UnifiedAtsCandidateInput", - "UnifiedAtsCandidateInputApplications", - "UnifiedAtsCandidateInputApplicationsTypedDict", - "UnifiedAtsCandidateInputAttachments", - "UnifiedAtsCandidateInputAttachmentsTypedDict", - "UnifiedAtsCandidateInputTags", - "UnifiedAtsCandidateInputTagsTypedDict", - "UnifiedAtsCandidateInputTypedDict", - "UnifiedAtsCandidateOutput", - "UnifiedAtsCandidateOutputAttachments", - "UnifiedAtsCandidateOutputAttachmentsTypedDict", - "UnifiedAtsCandidateOutputTags", - "UnifiedAtsCandidateOutputTagsTypedDict", - "UnifiedAtsCandidateOutputTypedDict", - "UnifiedAtsDepartmentOutput", - "UnifiedAtsDepartmentOutputTypedDict", - "UnifiedAtsEeocsOutput", - "UnifiedAtsEeocsOutputTypedDict", - "UnifiedAtsInterviewInput", - "UnifiedAtsInterviewInputTypedDict", - "UnifiedAtsInterviewOutput", - "UnifiedAtsInterviewOutputTypedDict", - "UnifiedAtsJobOutput", - "UnifiedAtsJobOutputTypedDict", - "UnifiedAtsJobinterviewstageOutput", - "UnifiedAtsJobinterviewstageOutputTypedDict", - "UnifiedAtsOfferOutput", - "UnifiedAtsOfferOutputCreatedAt", - "UnifiedAtsOfferOutputCreatedAtTypedDict", - "UnifiedAtsOfferOutputModifiedAt", - "UnifiedAtsOfferOutputModifiedAtTypedDict", - "UnifiedAtsOfferOutputTypedDict", - "UnifiedAtsOfficeOutput", - "UnifiedAtsOfficeOutputTypedDict", - "UnifiedAtsRejectreasonOutput", - "UnifiedAtsRejectreasonOutputTypedDict", - "UnifiedAtsScorecardOutput", - "UnifiedAtsScorecardOutputTypedDict", - "UnifiedAtsTagOutput", - "UnifiedAtsTagOutputTypedDict", - "UnifiedAtsUserOutput", - "UnifiedAtsUserOutputTypedDict", - "UnifiedCrmCompanyInput", - "UnifiedCrmCompanyInputTypedDict", - "UnifiedCrmCompanyOutput", - "UnifiedCrmCompanyOutputTypedDict", - "UnifiedCrmContactInput", - "UnifiedCrmContactInputTypedDict", - "UnifiedCrmContactOutput", - "UnifiedCrmContactOutputTypedDict", - "UnifiedCrmDealInput", - "UnifiedCrmDealInputTypedDict", - "UnifiedCrmDealOutput", - "UnifiedCrmDealOutputTypedDict", - "UnifiedCrmEngagementInput", - "UnifiedCrmEngagementInputTypedDict", - "UnifiedCrmEngagementOutput", - "UnifiedCrmEngagementOutputTypedDict", - "UnifiedCrmNoteInput", - "UnifiedCrmNoteInputTypedDict", - "UnifiedCrmNoteOutput", - "UnifiedCrmNoteOutputTypedDict", - "UnifiedCrmStageOutput", - "UnifiedCrmStageOutputCreatedAt", - "UnifiedCrmStageOutputCreatedAtTypedDict", - "UnifiedCrmStageOutputModifiedAt", - "UnifiedCrmStageOutputModifiedAtTypedDict", - "UnifiedCrmStageOutputTypedDict", - "UnifiedCrmTaskInput", - "UnifiedCrmTaskInputTypedDict", - "UnifiedCrmTaskOutput", - "UnifiedCrmTaskOutputTypedDict", - "UnifiedCrmUserOutput", - "UnifiedCrmUserOutputTypedDict", - "UnifiedEcommerceCustomerOutput", - "UnifiedEcommerceCustomerOutputFieldMappings", - "UnifiedEcommerceCustomerOutputFieldMappingsTypedDict", - "UnifiedEcommerceCustomerOutputRemoteData", - "UnifiedEcommerceCustomerOutputRemoteDataTypedDict", - "UnifiedEcommerceCustomerOutputTypedDict", - "UnifiedEcommerceFulfillmentOutput", - "UnifiedEcommerceFulfillmentOutputFieldMappings", - "UnifiedEcommerceFulfillmentOutputFieldMappingsTypedDict", - "UnifiedEcommerceFulfillmentOutputRemoteData", - "UnifiedEcommerceFulfillmentOutputRemoteDataTypedDict", - "UnifiedEcommerceFulfillmentOutputTypedDict", - "UnifiedEcommerceOrderInput", - "UnifiedEcommerceOrderInputFieldMappings", - "UnifiedEcommerceOrderInputFieldMappingsTypedDict", - "UnifiedEcommerceOrderInputTypedDict", - "UnifiedEcommerceOrderOutput", - "UnifiedEcommerceOrderOutputFieldMappings", - "UnifiedEcommerceOrderOutputFieldMappingsTypedDict", - "UnifiedEcommerceOrderOutputRemoteData", - "UnifiedEcommerceOrderOutputRemoteDataTypedDict", - "UnifiedEcommerceOrderOutputTypedDict", - "UnifiedEcommerceProductInput", - "UnifiedEcommerceProductInputFieldMappings", - "UnifiedEcommerceProductInputFieldMappingsTypedDict", - "UnifiedEcommerceProductInputTypedDict", - "UnifiedEcommerceProductOutput", - "UnifiedEcommerceProductOutputFieldMappings", - "UnifiedEcommerceProductOutputFieldMappingsTypedDict", - "UnifiedEcommerceProductOutputRemoteData", - "UnifiedEcommerceProductOutputRemoteDataTypedDict", - "UnifiedEcommerceProductOutputTypedDict", - "UnifiedFilestorageFileInput", - "UnifiedFilestorageFileInputTypedDict", - "UnifiedFilestorageFileOutput", - "UnifiedFilestorageFileOutputTypedDict", - "UnifiedFilestorageFolderInput", - "UnifiedFilestorageFolderInputTypedDict", - "UnifiedFilestorageFolderOutput", - "UnifiedFilestorageFolderOutputTypedDict", - "UnifiedFilestorageGroupOutput", - "UnifiedFilestorageGroupOutputTypedDict", - "UnifiedFilestorageUserOutput", - "UnifiedFilestorageUserOutputTypedDict", - "UnifiedHrisBankinfoOutput", - "UnifiedHrisBankinfoOutputTypedDict", - "UnifiedHrisBenefitOutput", - "UnifiedHrisBenefitOutputFieldMappings", - "UnifiedHrisBenefitOutputFieldMappingsTypedDict", - "UnifiedHrisBenefitOutputRemoteData", - "UnifiedHrisBenefitOutputRemoteDataTypedDict", - "UnifiedHrisBenefitOutputTypedDict", - "UnifiedHrisCompanyOutput", - "UnifiedHrisCompanyOutputFieldMappings", - "UnifiedHrisCompanyOutputFieldMappingsTypedDict", - "UnifiedHrisCompanyOutputRemoteData", - "UnifiedHrisCompanyOutputRemoteDataTypedDict", - "UnifiedHrisCompanyOutputTypedDict", - "UnifiedHrisDependentOutput", - "UnifiedHrisDependentOutputFieldMappings", - "UnifiedHrisDependentOutputFieldMappingsTypedDict", - "UnifiedHrisDependentOutputRemoteData", - "UnifiedHrisDependentOutputRemoteDataTypedDict", - "UnifiedHrisDependentOutputTypedDict", - "UnifiedHrisEmployeeInput", - "UnifiedHrisEmployeeInputFieldMappings", - "UnifiedHrisEmployeeInputFieldMappingsTypedDict", - "UnifiedHrisEmployeeInputTypedDict", - "UnifiedHrisEmployeeOutput", - "UnifiedHrisEmployeeOutputFieldMappings", - "UnifiedHrisEmployeeOutputFieldMappingsTypedDict", - "UnifiedHrisEmployeeOutputRemoteData", - "UnifiedHrisEmployeeOutputRemoteDataTypedDict", - "UnifiedHrisEmployeeOutputTypedDict", - "UnifiedHrisEmployeepayrollrunOutput", - "UnifiedHrisEmployeepayrollrunOutputFieldMappings", - "UnifiedHrisEmployeepayrollrunOutputFieldMappingsTypedDict", - "UnifiedHrisEmployeepayrollrunOutputRemoteData", - "UnifiedHrisEmployeepayrollrunOutputRemoteDataTypedDict", - "UnifiedHrisEmployeepayrollrunOutputTypedDict", - "UnifiedHrisEmployerbenefitOutput", - "UnifiedHrisEmployerbenefitOutputFieldMappings", - "UnifiedHrisEmployerbenefitOutputFieldMappingsTypedDict", - "UnifiedHrisEmployerbenefitOutputRemoteData", - "UnifiedHrisEmployerbenefitOutputRemoteDataTypedDict", - "UnifiedHrisEmployerbenefitOutputTypedDict", - "UnifiedHrisEmploymentOutput", - "UnifiedHrisEmploymentOutputFieldMappings", - "UnifiedHrisEmploymentOutputFieldMappingsTypedDict", - "UnifiedHrisEmploymentOutputRemoteData", - "UnifiedHrisEmploymentOutputRemoteDataTypedDict", - "UnifiedHrisEmploymentOutputTypedDict", - "UnifiedHrisGroupOutput", - "UnifiedHrisGroupOutputFieldMappings", - "UnifiedHrisGroupOutputFieldMappingsTypedDict", - "UnifiedHrisGroupOutputRemoteData", - "UnifiedHrisGroupOutputRemoteDataTypedDict", - "UnifiedHrisGroupOutputTypedDict", - "UnifiedHrisLocationOutput", - "UnifiedHrisLocationOutputFieldMappings", - "UnifiedHrisLocationOutputFieldMappingsTypedDict", - "UnifiedHrisLocationOutputRemoteData", - "UnifiedHrisLocationOutputRemoteDataTypedDict", - "UnifiedHrisLocationOutputTypedDict", - "UnifiedHrisPaygroupOutput", - "UnifiedHrisPaygroupOutputFieldMappings", - "UnifiedHrisPaygroupOutputFieldMappingsTypedDict", - "UnifiedHrisPaygroupOutputRemoteData", - "UnifiedHrisPaygroupOutputRemoteDataTypedDict", - "UnifiedHrisPaygroupOutputTypedDict", - "UnifiedHrisPayrollrunOutput", - "UnifiedHrisPayrollrunOutputFieldMappings", - "UnifiedHrisPayrollrunOutputFieldMappingsTypedDict", - "UnifiedHrisPayrollrunOutputRemoteData", - "UnifiedHrisPayrollrunOutputRemoteDataTypedDict", - "UnifiedHrisPayrollrunOutputTypedDict", - "UnifiedHrisTimeoffInput", - "UnifiedHrisTimeoffInputFieldMappings", - "UnifiedHrisTimeoffInputFieldMappingsTypedDict", - "UnifiedHrisTimeoffInputTypedDict", - "UnifiedHrisTimeoffOutput", - "UnifiedHrisTimeoffOutputFieldMappings", - "UnifiedHrisTimeoffOutputFieldMappingsTypedDict", - "UnifiedHrisTimeoffOutputRemoteData", - "UnifiedHrisTimeoffOutputRemoteDataTypedDict", - "UnifiedHrisTimeoffOutputTypedDict", - "UnifiedHrisTimeoffbalanceOutput", - "UnifiedHrisTimeoffbalanceOutputFieldMappings", - "UnifiedHrisTimeoffbalanceOutputFieldMappingsTypedDict", - "UnifiedHrisTimeoffbalanceOutputRemoteData", - "UnifiedHrisTimeoffbalanceOutputRemoteDataTypedDict", - "UnifiedHrisTimeoffbalanceOutputTypedDict", - "UnifiedHrisTimesheetEntryInput", - "UnifiedHrisTimesheetEntryInputFieldMappings", - "UnifiedHrisTimesheetEntryInputFieldMappingsTypedDict", - "UnifiedHrisTimesheetEntryInputTypedDict", - "UnifiedHrisTimesheetEntryOutput", - "UnifiedHrisTimesheetEntryOutputFieldMappings", - "UnifiedHrisTimesheetEntryOutputFieldMappingsTypedDict", - "UnifiedHrisTimesheetEntryOutputRemoteData", - "UnifiedHrisTimesheetEntryOutputRemoteDataTypedDict", - "UnifiedHrisTimesheetEntryOutputTypedDict", - "UnifiedMarketingautomationActionInput", - "UnifiedMarketingautomationActionInputTypedDict", - "UnifiedMarketingautomationActionOutput", - "UnifiedMarketingautomationActionOutputTypedDict", - "UnifiedMarketingautomationAutomationInput", - "UnifiedMarketingautomationAutomationInputTypedDict", - "UnifiedMarketingautomationAutomationOutput", - "UnifiedMarketingautomationAutomationOutputTypedDict", - "UnifiedMarketingautomationCampaignInput", - "UnifiedMarketingautomationCampaignInputTypedDict", - "UnifiedMarketingautomationCampaignOutput", - "UnifiedMarketingautomationCampaignOutputTypedDict", - "UnifiedMarketingautomationContactInput", - "UnifiedMarketingautomationContactInputTypedDict", - "UnifiedMarketingautomationContactOutput", - "UnifiedMarketingautomationContactOutputTypedDict", - "UnifiedMarketingautomationEmailOutput", - "UnifiedMarketingautomationEmailOutputTypedDict", - "UnifiedMarketingautomationEventOutput", - "UnifiedMarketingautomationEventOutputTypedDict", - "UnifiedMarketingautomationListInput", - "UnifiedMarketingautomationListInputTypedDict", - "UnifiedMarketingautomationListOutput", - "UnifiedMarketingautomationListOutputTypedDict", - "UnifiedMarketingautomationMessageOutput", - "UnifiedMarketingautomationMessageOutputTypedDict", - "UnifiedMarketingautomationTemplateInput", - "UnifiedMarketingautomationTemplateInputTypedDict", - "UnifiedMarketingautomationTemplateOutput", - "UnifiedMarketingautomationTemplateOutputTypedDict", - "UnifiedMarketingautomationUserOutput", - "UnifiedMarketingautomationUserOutputTypedDict", - "UnifiedTicketingAccountOutput", - "UnifiedTicketingAccountOutputTypedDict", - "UnifiedTicketingAttachmentInput", - "UnifiedTicketingAttachmentInputTypedDict", - "UnifiedTicketingAttachmentOutput", - "UnifiedTicketingAttachmentOutputTypedDict", - "UnifiedTicketingCollectionOutput", - "UnifiedTicketingCollectionOutputTypedDict", - "UnifiedTicketingCommentInput", - "UnifiedTicketingCommentInputAttachments", - "UnifiedTicketingCommentInputAttachmentsTypedDict", - "UnifiedTicketingCommentInputTypedDict", - "UnifiedTicketingCommentOutput", - "UnifiedTicketingCommentOutputAttachments", - "UnifiedTicketingCommentOutputAttachmentsTypedDict", - "UnifiedTicketingCommentOutputTypedDict", - "UnifiedTicketingContactOutput", - "UnifiedTicketingContactOutputTypedDict", - "UnifiedTicketingTagOutput", - "UnifiedTicketingTagOutputTypedDict", - "UnifiedTicketingTeamOutput", - "UnifiedTicketingTeamOutputTypedDict", - "UnifiedTicketingTicketInput", - "UnifiedTicketingTicketInputAttachments", - "UnifiedTicketingTicketInputAttachmentsTypedDict", - "UnifiedTicketingTicketInputCollections", - "UnifiedTicketingTicketInputCollectionsTypedDict", - "UnifiedTicketingTicketInputComment", - "UnifiedTicketingTicketInputCommentAttachments", - "UnifiedTicketingTicketInputCommentAttachmentsTypedDict", - "UnifiedTicketingTicketInputCommentTypedDict", - "UnifiedTicketingTicketInputTags", - "UnifiedTicketingTicketInputTagsTypedDict", - "UnifiedTicketingTicketInputTypedDict", - "UnifiedTicketingTicketOutput", - "UnifiedTicketingTicketOutputAttachments", - "UnifiedTicketingTicketOutputAttachmentsTypedDict", - "UnifiedTicketingTicketOutputTypedDict", - "UnifiedTicketingUserOutput", - "UnifiedTicketingUserOutputTypedDict", - "UpdatePullFrequencyDto", - "UpdatePullFrequencyDtoTypedDict", - "UpdatePullFrequencyResponseBody", - "UpdatePullFrequencyResponseBodyTypedDict", - "UpdateStatusRequest", - "UpdateStatusRequestTypedDict", - "UsersModel", - "UsersModelTypedDict", - "Variant", - "VariantTypedDict", - "Vertical", - "WebhookDto", - "WebhookDtoTypedDict", - "WebhookResponse", - "WebhookResponseTypedDict", -] +__all__ = ["Address", "AddressTypedDict", "ApplicationsModel", "ApplicationsModelTypedDict", "AttachmentsModel", "AttachmentsModelTypedDict", "CollectionsModel", "CollectionsModelTypedDict", "Comment", "CommentTypedDict", "Connection", "ConnectionTypedDict", "CreateAccountingAccountRequest", "CreateAccountingAccountRequestTypedDict", "CreateAccountingAttachmentRequest", "CreateAccountingAttachmentRequestTypedDict", "CreateAccountingContactRequest", "CreateAccountingContactRequestTypedDict", "CreateAccountingExpenseRequest", "CreateAccountingExpenseRequestTypedDict", "CreateAccountingInvoiceRequest", "CreateAccountingInvoiceRequestTypedDict", "CreateAccountingJournalEntryRequest", "CreateAccountingJournalEntryRequestTypedDict", "CreateAccountingPaymentRequest", "CreateAccountingPaymentRequestTypedDict", "CreateAccountingPurchaseOrderRequest", "CreateAccountingPurchaseOrderRequestTypedDict", "CreateAtsActivityRequest", "CreateAtsActivityRequestTypedDict", "CreateAtsApplicationRequest", "CreateAtsApplicationRequestTypedDict", "CreateAtsAttachmentRequest", "CreateAtsAttachmentRequestTypedDict", "CreateAtsCandidateRequest", "CreateAtsCandidateRequestTypedDict", "CreateAtsInterviewRequest", "CreateAtsInterviewRequestTypedDict", "CreateBatchLinkedUserDto", "CreateBatchLinkedUserDtoTypedDict", "CreateCrmCompanyRequest", "CreateCrmCompanyRequestTypedDict", "CreateCrmContactRequest", "CreateCrmContactRequestTypedDict", "CreateCrmDealRequest", "CreateCrmDealRequestTypedDict", "CreateCrmEngagementRequest", "CreateCrmEngagementRequestTypedDict", "CreateCrmNoteRequest", "CreateCrmNoteRequestTypedDict", "CreateCrmTaskRequest", "CreateCrmTaskRequestTypedDict", "CreateEcommerceOrderRequest", "CreateEcommerceOrderRequestTypedDict", "CreateEcommerceProductRequest", "CreateEcommerceProductRequestTypedDict", "CreateFilestorageFileRequest", "CreateFilestorageFileRequestTypedDict", "CreateFilestorageFolderRequest", "CreateFilestorageFolderRequestTypedDict", "CreateHrisEmployeeRequest", "CreateHrisEmployeeRequestTypedDict", "CreateHrisTimeoffRequest", "CreateHrisTimeoffRequestTypedDict", "CreateHrisTimesheetentryRequest", "CreateHrisTimesheetentryRequestTypedDict", "CreateLinkedUserDto", "CreateLinkedUserDtoTypedDict", "CreateMarketingAutomationContactRequest", "CreateMarketingAutomationContactRequestTypedDict", "CreateMarketingautomationActionRequest", "CreateMarketingautomationActionRequestTypedDict", "CreateMarketingautomationAutomationRequest", "CreateMarketingautomationAutomationRequestTypedDict", "CreateMarketingautomationCampaignRequest", "CreateMarketingautomationCampaignRequestTypedDict", "CreateMarketingautomationListRequest", "CreateMarketingautomationListRequestTypedDict", "CreateMarketingautomationTemplateRequest", "CreateMarketingautomationTemplateRequestTypedDict", "CreateProjectDto", "CreateProjectDtoTypedDict", "CreateTicketingAttachmentRequest", "CreateTicketingAttachmentRequestTypedDict", "CreateTicketingCommentRequest", "CreateTicketingCommentRequestTypedDict", "CreateTicketingTicketRequest", "CreateTicketingTicketRequestTypedDict", "CreatedAt", "CreatedAtTypedDict", "CustomFieldCreateDto", "CustomFieldCreateDtoDataType", "CustomFieldCreateDtoObjectTypeOwner", "CustomFieldCreateDtoTypedDict", "CustomFieldResponse", "CustomFieldResponseDataType", "CustomFieldResponseTypedDict", "Data", "DataType", "DataTypedDict", "DeductionItem", "DeductionItemTypedDict", "DefineTargetFieldDto", "DefineTargetFieldDtoTypedDict", "DeleteRequest", "DeleteRequestTypedDict", "EarningItem", "EarningItemTypedDict", "Email", "EmailTypedDict", "EventResponse", "EventResponseStatus", "EventResponseTypedDict", "FieldMappingsModel", "FieldMappingsModelTypedDict", "GetPanoraCoreEventsRequest", "GetPanoraCoreEventsRequestTypedDict", "GetRetriedRequestResponseRequest", "GetRetriedRequestResponseRequestTypedDict", "Headers", "HeadersTypedDict", "ItemsModel", "ItemsModelTypedDict", "LineItem", "LineItemTypedDict", "LinkedUserResponse", "LinkedUserResponseTypedDict", "ListAccountingAccountsRequest", "ListAccountingAccountsRequestTypedDict", "ListAccountingAccountsResponse", "ListAccountingAccountsResponseBody", "ListAccountingAccountsResponseBodyTypedDict", "ListAccountingAccountsResponseTypedDict", "ListAccountingAddressRequest", "ListAccountingAddressRequestTypedDict", "ListAccountingAddressResponse", "ListAccountingAddressResponseBody", "ListAccountingAddressResponseBodyTypedDict", "ListAccountingAddressResponseTypedDict", "ListAccountingAttachmentsRequest", "ListAccountingAttachmentsRequestTypedDict", "ListAccountingAttachmentsResponse", "ListAccountingAttachmentsResponseBody", "ListAccountingAttachmentsResponseBodyTypedDict", "ListAccountingAttachmentsResponseTypedDict", "ListAccountingBalanceSheetsRequest", "ListAccountingBalanceSheetsRequestTypedDict", "ListAccountingBalanceSheetsResponse", "ListAccountingBalanceSheetsResponseBody", "ListAccountingBalanceSheetsResponseBodyTypedDict", "ListAccountingBalanceSheetsResponseTypedDict", "ListAccountingCashflowStatementRequest", "ListAccountingCashflowStatementRequestTypedDict", "ListAccountingCashflowStatementResponse", "ListAccountingCashflowStatementResponseBody", "ListAccountingCashflowStatementResponseBodyTypedDict", "ListAccountingCashflowStatementResponseTypedDict", "ListAccountingCompanyInfosRequest", "ListAccountingCompanyInfosRequestTypedDict", "ListAccountingCompanyInfosResponse", "ListAccountingCompanyInfosResponseBody", "ListAccountingCompanyInfosResponseBodyTypedDict", "ListAccountingCompanyInfosResponseTypedDict", "ListAccountingContactsRequest", "ListAccountingContactsRequestTypedDict", "ListAccountingContactsResponse", "ListAccountingContactsResponseBody", "ListAccountingContactsResponseBodyTypedDict", "ListAccountingContactsResponseTypedDict", "ListAccountingCreditNoteRequest", "ListAccountingCreditNoteRequestTypedDict", "ListAccountingCreditNoteResponse", "ListAccountingCreditNoteResponseBody", "ListAccountingCreditNoteResponseBodyTypedDict", "ListAccountingCreditNoteResponseTypedDict", "ListAccountingExpenseRequest", "ListAccountingExpenseRequestTypedDict", "ListAccountingExpenseResponse", "ListAccountingExpenseResponseBody", "ListAccountingExpenseResponseBodyTypedDict", "ListAccountingExpenseResponseTypedDict", "ListAccountingIncomeStatementRequest", "ListAccountingIncomeStatementRequestTypedDict", "ListAccountingIncomeStatementResponse", "ListAccountingIncomeStatementResponseBody", "ListAccountingIncomeStatementResponseBodyTypedDict", "ListAccountingIncomeStatementResponseTypedDict", "ListAccountingInvoiceRequest", "ListAccountingInvoiceRequestTypedDict", "ListAccountingInvoiceResponse", "ListAccountingInvoiceResponseBody", "ListAccountingInvoiceResponseBodyTypedDict", "ListAccountingInvoiceResponseTypedDict", "ListAccountingItemRequest", "ListAccountingItemRequestTypedDict", "ListAccountingItemResponse", "ListAccountingItemResponseBody", "ListAccountingItemResponseBodyTypedDict", "ListAccountingItemResponseTypedDict", "ListAccountingJournalEntryRequest", "ListAccountingJournalEntryRequestTypedDict", "ListAccountingJournalEntryResponse", "ListAccountingJournalEntryResponseBody", "ListAccountingJournalEntryResponseBodyTypedDict", "ListAccountingJournalEntryResponseTypedDict", "ListAccountingPaymentRequest", "ListAccountingPaymentRequestTypedDict", "ListAccountingPaymentResponse", "ListAccountingPaymentResponseBody", "ListAccountingPaymentResponseBodyTypedDict", "ListAccountingPaymentResponseTypedDict", "ListAccountingPhonenumberRequest", "ListAccountingPhonenumberRequestTypedDict", "ListAccountingPhonenumberResponse", "ListAccountingPhonenumberResponseBody", "ListAccountingPhonenumberResponseBodyTypedDict", "ListAccountingPhonenumberResponseTypedDict", "ListAccountingPurchaseOrderRequest", "ListAccountingPurchaseOrderRequestTypedDict", "ListAccountingPurchaseOrderResponse", "ListAccountingPurchaseOrderResponseBody", "ListAccountingPurchaseOrderResponseBodyTypedDict", "ListAccountingPurchaseOrderResponseTypedDict", "ListAccountingTaxRateRequest", "ListAccountingTaxRateRequestTypedDict", "ListAccountingTaxRateResponse", "ListAccountingTaxRateResponseBody", "ListAccountingTaxRateResponseBodyTypedDict", "ListAccountingTaxRateResponseTypedDict", "ListAccountingTrackingCategorysRequest", "ListAccountingTrackingCategorysRequestTypedDict", "ListAccountingTrackingCategorysResponse", "ListAccountingTrackingCategorysResponseBody", "ListAccountingTrackingCategorysResponseBodyTypedDict", "ListAccountingTrackingCategorysResponseTypedDict", "ListAccountingTransactionRequest", "ListAccountingTransactionRequestTypedDict", "ListAccountingTransactionResponse", "ListAccountingTransactionResponseBody", "ListAccountingTransactionResponseBodyTypedDict", "ListAccountingTransactionResponseTypedDict", "ListAccountingVendorCreditRequest", "ListAccountingVendorCreditRequestTypedDict", "ListAccountingVendorCreditResponse", "ListAccountingVendorCreditResponseBody", "ListAccountingVendorCreditResponseBodyTypedDict", "ListAccountingVendorCreditResponseTypedDict", "ListAtsActivityRequest", "ListAtsActivityRequestTypedDict", "ListAtsActivityResponse", "ListAtsActivityResponseBody", "ListAtsActivityResponseBodyTypedDict", "ListAtsActivityResponseTypedDict", "ListAtsApplicationRequest", "ListAtsApplicationRequestTypedDict", "ListAtsApplicationResponse", "ListAtsApplicationResponseBody", "ListAtsApplicationResponseBodyTypedDict", "ListAtsApplicationResponseTypedDict", "ListAtsAttachmentRequest", "ListAtsAttachmentRequestTypedDict", "ListAtsAttachmentResponse", "ListAtsAttachmentResponseBody", "ListAtsAttachmentResponseBodyTypedDict", "ListAtsAttachmentResponseTypedDict", "ListAtsCandidateRequest", "ListAtsCandidateRequestTypedDict", "ListAtsCandidateResponse", "ListAtsCandidateResponseBody", "ListAtsCandidateResponseBodyTypedDict", "ListAtsCandidateResponseTypedDict", "ListAtsDepartmentsRequest", "ListAtsDepartmentsRequestTypedDict", "ListAtsDepartmentsResponse", "ListAtsDepartmentsResponseBody", "ListAtsDepartmentsResponseBodyTypedDict", "ListAtsDepartmentsResponseTypedDict", "ListAtsEeocsRequest", "ListAtsEeocsRequestTypedDict", "ListAtsEeocsResponse", "ListAtsEeocsResponseBody", "ListAtsEeocsResponseBodyTypedDict", "ListAtsEeocsResponseTypedDict", "ListAtsInterviewRequest", "ListAtsInterviewRequestTypedDict", "ListAtsInterviewResponse", "ListAtsInterviewResponseBody", "ListAtsInterviewResponseBodyTypedDict", "ListAtsInterviewResponseTypedDict", "ListAtsJobInterviewStageRequest", "ListAtsJobInterviewStageRequestTypedDict", "ListAtsJobInterviewStageResponse", "ListAtsJobInterviewStageResponseBody", "ListAtsJobInterviewStageResponseBodyTypedDict", "ListAtsJobInterviewStageResponseTypedDict", "ListAtsJobRequest", "ListAtsJobRequestTypedDict", "ListAtsJobResponse", "ListAtsJobResponseBody", "ListAtsJobResponseBodyTypedDict", "ListAtsJobResponseTypedDict", "ListAtsOfferRequest", "ListAtsOfferRequestTypedDict", "ListAtsOfferResponse", "ListAtsOfferResponseBody", "ListAtsOfferResponseBodyTypedDict", "ListAtsOfferResponseTypedDict", "ListAtsOfficeRequest", "ListAtsOfficeRequestTypedDict", "ListAtsOfficeResponse", "ListAtsOfficeResponseBody", "ListAtsOfficeResponseBodyTypedDict", "ListAtsOfficeResponseTypedDict", "ListAtsRejectReasonsRequest", "ListAtsRejectReasonsRequestTypedDict", "ListAtsRejectReasonsResponse", "ListAtsRejectReasonsResponseBody", "ListAtsRejectReasonsResponseBodyTypedDict", "ListAtsRejectReasonsResponseTypedDict", "ListAtsScorecardRequest", "ListAtsScorecardRequestTypedDict", "ListAtsScorecardResponse", "ListAtsScorecardResponseBody", "ListAtsScorecardResponseBodyTypedDict", "ListAtsScorecardResponseTypedDict", "ListAtsTagsRequest", "ListAtsTagsRequestTypedDict", "ListAtsTagsResponse", "ListAtsTagsResponseBody", "ListAtsTagsResponseBodyTypedDict", "ListAtsTagsResponseTypedDict", "ListAtsUsersRequest", "ListAtsUsersRequestTypedDict", "ListAtsUsersResponse", "ListAtsUsersResponseBody", "ListAtsUsersResponseBodyTypedDict", "ListAtsUsersResponseTypedDict", "ListCrmCompanyRequest", "ListCrmCompanyRequestTypedDict", "ListCrmCompanyResponse", "ListCrmCompanyResponseBody", "ListCrmCompanyResponseBodyTypedDict", "ListCrmCompanyResponseTypedDict", "ListCrmContactsRequest", "ListCrmContactsRequestTypedDict", "ListCrmContactsResponse", "ListCrmContactsResponseBody", "ListCrmContactsResponseBodyTypedDict", "ListCrmContactsResponseTypedDict", "ListCrmDealsRequest", "ListCrmDealsRequestTypedDict", "ListCrmDealsResponse", "ListCrmDealsResponseBody", "ListCrmDealsResponseBodyTypedDict", "ListCrmDealsResponseTypedDict", "ListCrmEngagementsRequest", "ListCrmEngagementsRequestTypedDict", "ListCrmEngagementsResponse", "ListCrmEngagementsResponseBody", "ListCrmEngagementsResponseBodyTypedDict", "ListCrmEngagementsResponseTypedDict", "ListCrmNoteRequest", "ListCrmNoteRequestTypedDict", "ListCrmNoteResponse", "ListCrmNoteResponseBody", "ListCrmNoteResponseBodyTypedDict", "ListCrmNoteResponseTypedDict", "ListCrmStagesRequest", "ListCrmStagesRequestTypedDict", "ListCrmStagesResponse", "ListCrmStagesResponseBody", "ListCrmStagesResponseBodyTypedDict", "ListCrmStagesResponseTypedDict", "ListCrmTaskRequest", "ListCrmTaskRequestTypedDict", "ListCrmTaskResponse", "ListCrmTaskResponseBody", "ListCrmTaskResponseBodyTypedDict", "ListCrmTaskResponseTypedDict", "ListCrmUsersRequest", "ListCrmUsersRequestTypedDict", "ListCrmUsersResponse", "ListCrmUsersResponseBody", "ListCrmUsersResponseBodyTypedDict", "ListCrmUsersResponseTypedDict", "ListEcommerceCustomersRequest", "ListEcommerceCustomersRequestTypedDict", "ListEcommerceCustomersResponse", "ListEcommerceCustomersResponseBody", "ListEcommerceCustomersResponseBodyTypedDict", "ListEcommerceCustomersResponseTypedDict", "ListEcommerceFulfillmentsRequest", "ListEcommerceFulfillmentsRequestTypedDict", "ListEcommerceFulfillmentsResponse", "ListEcommerceFulfillmentsResponseBody", "ListEcommerceFulfillmentsResponseBodyTypedDict", "ListEcommerceFulfillmentsResponseTypedDict", "ListEcommerceOrdersRequest", "ListEcommerceOrdersRequestTypedDict", "ListEcommerceOrdersResponse", "ListEcommerceOrdersResponseBody", "ListEcommerceOrdersResponseBodyTypedDict", "ListEcommerceOrdersResponseTypedDict", "ListEcommerceProductsRequest", "ListEcommerceProductsRequestTypedDict", "ListEcommerceProductsResponse", "ListEcommerceProductsResponseBody", "ListEcommerceProductsResponseBodyTypedDict", "ListEcommerceProductsResponseTypedDict", "ListFilestorageFileRequest", "ListFilestorageFileRequestTypedDict", "ListFilestorageFileResponse", "ListFilestorageFileResponseBody", "ListFilestorageFileResponseBodyTypedDict", "ListFilestorageFileResponseTypedDict", "ListFilestorageFolderRequest", "ListFilestorageFolderRequestTypedDict", "ListFilestorageFolderResponse", "ListFilestorageFolderResponseBody", "ListFilestorageFolderResponseBodyTypedDict", "ListFilestorageFolderResponseTypedDict", "ListFilestorageGroupRequest", "ListFilestorageGroupRequestTypedDict", "ListFilestorageGroupResponse", "ListFilestorageGroupResponseBody", "ListFilestorageGroupResponseBodyTypedDict", "ListFilestorageGroupResponseTypedDict", "ListFilestorageUsersRequest", "ListFilestorageUsersRequestTypedDict", "ListFilestorageUsersResponse", "ListFilestorageUsersResponseBody", "ListFilestorageUsersResponseBodyTypedDict", "ListFilestorageUsersResponseTypedDict", "ListHrisBankInfoRequest", "ListHrisBankInfoRequestTypedDict", "ListHrisBankInfoResponse", "ListHrisBankInfoResponseBody", "ListHrisBankInfoResponseBodyTypedDict", "ListHrisBankInfoResponseTypedDict", "ListHrisBenefitsRequest", "ListHrisBenefitsRequestTypedDict", "ListHrisBenefitsResponse", "ListHrisBenefitsResponseBody", "ListHrisBenefitsResponseBodyTypedDict", "ListHrisBenefitsResponseTypedDict", "ListHrisCompaniesRequest", "ListHrisCompaniesRequestTypedDict", "ListHrisCompaniesResponse", "ListHrisCompaniesResponseBody", "ListHrisCompaniesResponseBodyTypedDict", "ListHrisCompaniesResponseTypedDict", "ListHrisDependentsRequest", "ListHrisDependentsRequestTypedDict", "ListHrisDependentsResponse", "ListHrisDependentsResponseBody", "ListHrisDependentsResponseBodyTypedDict", "ListHrisDependentsResponseTypedDict", "ListHrisEmployeePayrollRunRequest", "ListHrisEmployeePayrollRunRequestTypedDict", "ListHrisEmployeePayrollRunResponse", "ListHrisEmployeePayrollRunResponseBody", "ListHrisEmployeePayrollRunResponseBodyTypedDict", "ListHrisEmployeePayrollRunResponseTypedDict", "ListHrisEmployeesRequest", "ListHrisEmployeesRequestTypedDict", "ListHrisEmployeesResponse", "ListHrisEmployeesResponseBody", "ListHrisEmployeesResponseBodyTypedDict", "ListHrisEmployeesResponseTypedDict", "ListHrisEmployerBenefitsRequest", "ListHrisEmployerBenefitsRequestTypedDict", "ListHrisEmployerBenefitsResponse", "ListHrisEmployerBenefitsResponseBody", "ListHrisEmployerBenefitsResponseBodyTypedDict", "ListHrisEmployerBenefitsResponseTypedDict", "ListHrisEmploymentsRequest", "ListHrisEmploymentsRequestTypedDict", "ListHrisEmploymentsResponse", "ListHrisEmploymentsResponseBody", "ListHrisEmploymentsResponseBodyTypedDict", "ListHrisEmploymentsResponseTypedDict", "ListHrisGroupsRequest", "ListHrisGroupsRequestTypedDict", "ListHrisGroupsResponse", "ListHrisGroupsResponseBody", "ListHrisGroupsResponseBodyTypedDict", "ListHrisGroupsResponseTypedDict", "ListHrisLocationsRequest", "ListHrisLocationsRequestTypedDict", "ListHrisLocationsResponse", "ListHrisLocationsResponseBody", "ListHrisLocationsResponseBodyTypedDict", "ListHrisLocationsResponseTypedDict", "ListHrisPaygroupsRequest", "ListHrisPaygroupsRequestTypedDict", "ListHrisPaygroupsResponse", "ListHrisPaygroupsResponseBody", "ListHrisPaygroupsResponseBodyTypedDict", "ListHrisPaygroupsResponseTypedDict", "ListHrisPayrollRunsRequest", "ListHrisPayrollRunsRequestTypedDict", "ListHrisPayrollRunsResponse", "ListHrisPayrollRunsResponseBody", "ListHrisPayrollRunsResponseBodyTypedDict", "ListHrisPayrollRunsResponseTypedDict", "ListHrisTimeoffbalancesRequest", "ListHrisTimeoffbalancesRequestTypedDict", "ListHrisTimeoffbalancesResponse", "ListHrisTimeoffbalancesResponseBody", "ListHrisTimeoffbalancesResponseBodyTypedDict", "ListHrisTimeoffbalancesResponseTypedDict", "ListHrisTimeoffsRequest", "ListHrisTimeoffsRequestTypedDict", "ListHrisTimeoffsResponse", "ListHrisTimeoffsResponseBody", "ListHrisTimeoffsResponseBodyTypedDict", "ListHrisTimeoffsResponseTypedDict", "ListHrisTimesheetentriesRequest", "ListHrisTimesheetentriesRequestTypedDict", "ListHrisTimesheetentriesResponse", "ListHrisTimesheetentriesResponseBody", "ListHrisTimesheetentriesResponseBodyTypedDict", "ListHrisTimesheetentriesResponseTypedDict", "ListMarketingAutomationContactsRequest", "ListMarketingAutomationContactsRequestTypedDict", "ListMarketingAutomationContactsResponse", "ListMarketingAutomationContactsResponseBody", "ListMarketingAutomationContactsResponseBodyTypedDict", "ListMarketingAutomationContactsResponseTypedDict", "ListMarketingAutomationEventsRequest", "ListMarketingAutomationEventsRequestTypedDict", "ListMarketingAutomationEventsResponse", "ListMarketingAutomationEventsResponseBody", "ListMarketingAutomationEventsResponseBodyTypedDict", "ListMarketingAutomationEventsResponseTypedDict", "ListMarketingAutomationUsersRequest", "ListMarketingAutomationUsersRequestTypedDict", "ListMarketingAutomationUsersResponse", "ListMarketingAutomationUsersResponseBody", "ListMarketingAutomationUsersResponseBodyTypedDict", "ListMarketingAutomationUsersResponseTypedDict", "ListMarketingautomationActionRequest", "ListMarketingautomationActionRequestTypedDict", "ListMarketingautomationActionResponse", "ListMarketingautomationActionResponseBody", "ListMarketingautomationActionResponseBodyTypedDict", "ListMarketingautomationActionResponseTypedDict", "ListMarketingautomationAutomationsRequest", "ListMarketingautomationAutomationsRequestTypedDict", "ListMarketingautomationAutomationsResponse", "ListMarketingautomationAutomationsResponseBody", "ListMarketingautomationAutomationsResponseBodyTypedDict", "ListMarketingautomationAutomationsResponseTypedDict", "ListMarketingautomationCampaignsRequest", "ListMarketingautomationCampaignsRequestTypedDict", "ListMarketingautomationCampaignsResponse", "ListMarketingautomationCampaignsResponseBody", "ListMarketingautomationCampaignsResponseBodyTypedDict", "ListMarketingautomationCampaignsResponseTypedDict", "ListMarketingautomationEmailsRequest", "ListMarketingautomationEmailsRequestTypedDict", "ListMarketingautomationEmailsResponse", "ListMarketingautomationEmailsResponseBody", "ListMarketingautomationEmailsResponseBodyTypedDict", "ListMarketingautomationEmailsResponseTypedDict", "ListMarketingautomationListsRequest", "ListMarketingautomationListsRequestTypedDict", "ListMarketingautomationListsResponse", "ListMarketingautomationListsResponseBody", "ListMarketingautomationListsResponseBodyTypedDict", "ListMarketingautomationListsResponseTypedDict", "ListMarketingautomationMessagesRequest", "ListMarketingautomationMessagesRequestTypedDict", "ListMarketingautomationMessagesResponse", "ListMarketingautomationMessagesResponseBody", "ListMarketingautomationMessagesResponseBodyTypedDict", "ListMarketingautomationMessagesResponseTypedDict", "ListMarketingautomationTemplatesRequest", "ListMarketingautomationTemplatesRequestTypedDict", "ListMarketingautomationTemplatesResponse", "ListMarketingautomationTemplatesResponseBody", "ListMarketingautomationTemplatesResponseBodyTypedDict", "ListMarketingautomationTemplatesResponseTypedDict", "ListTicketingAccountRequest", "ListTicketingAccountRequestTypedDict", "ListTicketingAccountResponse", "ListTicketingAccountResponseBody", "ListTicketingAccountResponseBodyTypedDict", "ListTicketingAccountResponseTypedDict", "ListTicketingAttachmentsRequest", "ListTicketingAttachmentsRequestTypedDict", "ListTicketingAttachmentsResponse", "ListTicketingAttachmentsResponseBody", "ListTicketingAttachmentsResponseBodyTypedDict", "ListTicketingAttachmentsResponseTypedDict", "ListTicketingCollectionsRequest", "ListTicketingCollectionsRequestTypedDict", "ListTicketingCollectionsResponse", "ListTicketingCollectionsResponseBody", "ListTicketingCollectionsResponseBodyTypedDict", "ListTicketingCollectionsResponseTypedDict", "ListTicketingCommentsRequest", "ListTicketingCommentsRequestTypedDict", "ListTicketingCommentsResponse", "ListTicketingCommentsResponseBody", "ListTicketingCommentsResponseBodyTypedDict", "ListTicketingCommentsResponseTypedDict", "ListTicketingContactsRequest", "ListTicketingContactsRequestTypedDict", "ListTicketingContactsResponse", "ListTicketingContactsResponseBody", "ListTicketingContactsResponseBodyTypedDict", "ListTicketingContactsResponseTypedDict", "ListTicketingTagsRequest", "ListTicketingTagsRequestTypedDict", "ListTicketingTagsResponse", "ListTicketingTagsResponseBody", "ListTicketingTagsResponseBodyTypedDict", "ListTicketingTagsResponseTypedDict", "ListTicketingTeamsRequest", "ListTicketingTeamsRequestTypedDict", "ListTicketingTeamsResponse", "ListTicketingTeamsResponseBody", "ListTicketingTeamsResponseBodyTypedDict", "ListTicketingTeamsResponseTypedDict", "ListTicketingTicketRequest", "ListTicketingTicketRequestTypedDict", "ListTicketingTicketResponse", "ListTicketingTicketResponseBody", "ListTicketingTicketResponseBodyTypedDict", "ListTicketingTicketResponseTypedDict", "ListTicketingUsersRequest", "ListTicketingUsersRequestTypedDict", "ListTicketingUsersResponse", "ListTicketingUsersResponseBody", "ListTicketingUsersResponseBodyTypedDict", "ListTicketingUsersResponseTypedDict", "LoginDto", "LoginDtoTypedDict", "MapFieldToProviderDto", "MapFieldToProviderDtoTypedDict", "Method", "ModifiedAt", "ModifiedAtTypedDict", "ObjectTypeOwner", "OwnerType", "PassThroughRequestDto", "PassThroughRequestDtoMethod", "PassThroughRequestDtoTypedDict", "PathParamVertical", "Phone", "PhoneTypedDict", "ProjectResponse", "ProjectResponseTypedDict", "QueryBody", "QueryBodyTypedDict", "QueryRequest", "QueryRequestTypedDict", "QueryResponseBody", "QueryResponseBodyTypedDict", "RemoteData", "RemoteDataTypedDict", "RemoteIDRequest", "RemoteIDRequestTypedDict", "RequestFormat", "RequestFormatTypedDict", "RequestPassthroughResponseBody", "RequestPassthroughResponseBodyTypedDict", "RequestRequest", "RequestRequestTypedDict", "RequestResponse", "RequestResponseBody", "RequestResponseBodyTypedDict", "RequestResponseTypedDict", "ResyncStatusDto", "ResyncStatusDtoTypedDict", "RetrieveAccountingAccountRequest", "RetrieveAccountingAccountRequestTypedDict", "RetrieveAccountingAddressRequest", "RetrieveAccountingAddressRequestTypedDict", "RetrieveAccountingAttachmentRequest", "RetrieveAccountingAttachmentRequestTypedDict", "RetrieveAccountingBalanceSheetRequest", "RetrieveAccountingBalanceSheetRequestTypedDict", "RetrieveAccountingCashflowStatementRequest", "RetrieveAccountingCashflowStatementRequestTypedDict", "RetrieveAccountingCompanyInfoRequest", "RetrieveAccountingCompanyInfoRequestTypedDict", "RetrieveAccountingContactRequest", "RetrieveAccountingContactRequestTypedDict", "RetrieveAccountingCreditNoteRequest", "RetrieveAccountingCreditNoteRequestTypedDict", "RetrieveAccountingExpenseRequest", "RetrieveAccountingExpenseRequestTypedDict", "RetrieveAccountingIncomeStatementRequest", "RetrieveAccountingIncomeStatementRequestTypedDict", "RetrieveAccountingInvoiceRequest", "RetrieveAccountingInvoiceRequestTypedDict", "RetrieveAccountingItemRequest", "RetrieveAccountingItemRequestTypedDict", "RetrieveAccountingJournalEntryRequest", "RetrieveAccountingJournalEntryRequestTypedDict", "RetrieveAccountingPaymentRequest", "RetrieveAccountingPaymentRequestTypedDict", "RetrieveAccountingPhonenumberRequest", "RetrieveAccountingPhonenumberRequestTypedDict", "RetrieveAccountingPurchaseOrderRequest", "RetrieveAccountingPurchaseOrderRequestTypedDict", "RetrieveAccountingTaxRateRequest", "RetrieveAccountingTaxRateRequestTypedDict", "RetrieveAccountingTrackingCategoryRequest", "RetrieveAccountingTrackingCategoryRequestTypedDict", "RetrieveAccountingTransactionRequest", "RetrieveAccountingTransactionRequestTypedDict", "RetrieveAccountingVendorCreditRequest", "RetrieveAccountingVendorCreditRequestTypedDict", "RetrieveAtsActivityRequest", "RetrieveAtsActivityRequestTypedDict", "RetrieveAtsApplicationRequest", "RetrieveAtsApplicationRequestTypedDict", "RetrieveAtsAttachmentRequest", "RetrieveAtsAttachmentRequestTypedDict", "RetrieveAtsCandidateRequest", "RetrieveAtsCandidateRequestTypedDict", "RetrieveAtsDepartmentRequest", "RetrieveAtsDepartmentRequestTypedDict", "RetrieveAtsEeocsRequest", "RetrieveAtsEeocsRequestTypedDict", "RetrieveAtsInterviewRequest", "RetrieveAtsInterviewRequestTypedDict", "RetrieveAtsJobInterviewStageRequest", "RetrieveAtsJobInterviewStageRequestTypedDict", "RetrieveAtsJobRequest", "RetrieveAtsJobRequestTypedDict", "RetrieveAtsOfferRequest", "RetrieveAtsOfferRequestTypedDict", "RetrieveAtsOfficeRequest", "RetrieveAtsOfficeRequestTypedDict", "RetrieveAtsRejectReasonRequest", "RetrieveAtsRejectReasonRequestTypedDict", "RetrieveAtsScorecardRequest", "RetrieveAtsScorecardRequestTypedDict", "RetrieveAtsTagRequest", "RetrieveAtsTagRequestTypedDict", "RetrieveAtsUserRequest", "RetrieveAtsUserRequestTypedDict", "RetrieveCollectionRequest", "RetrieveCollectionRequestTypedDict", "RetrieveCrmCompanyRequest", "RetrieveCrmCompanyRequestTypedDict", "RetrieveCrmContactRequest", "RetrieveCrmContactRequestTypedDict", "RetrieveCrmDealRequest", "RetrieveCrmDealRequestTypedDict", "RetrieveCrmEngagementRequest", "RetrieveCrmEngagementRequestTypedDict", "RetrieveCrmNoteRequest", "RetrieveCrmNoteRequestTypedDict", "RetrieveCrmStageRequest", "RetrieveCrmStageRequestTypedDict", "RetrieveCrmTaskRequest", "RetrieveCrmTaskRequestTypedDict", "RetrieveCrmUserRequest", "RetrieveCrmUserRequestTypedDict", "RetrieveEcommerceCustomerRequest", "RetrieveEcommerceCustomerRequestTypedDict", "RetrieveEcommerceFulfillmentRequest", "RetrieveEcommerceFulfillmentRequestTypedDict", "RetrieveEcommerceOrderRequest", "RetrieveEcommerceOrderRequestTypedDict", "RetrieveEcommerceProductRequest", "RetrieveEcommerceProductRequestTypedDict", "RetrieveFilestorageFileRequest", "RetrieveFilestorageFileRequestTypedDict", "RetrieveFilestorageFolderRequest", "RetrieveFilestorageFolderRequestTypedDict", "RetrieveFilestorageGroupRequest", "RetrieveFilestorageGroupRequestTypedDict", "RetrieveFilestorageUserRequest", "RetrieveFilestorageUserRequestTypedDict", "RetrieveHrisBankInfoRequest", "RetrieveHrisBankInfoRequestTypedDict", "RetrieveHrisBenefitRequest", "RetrieveHrisBenefitRequestTypedDict", "RetrieveHrisCompanyRequest", "RetrieveHrisCompanyRequestTypedDict", "RetrieveHrisDependentRequest", "RetrieveHrisDependentRequestTypedDict", "RetrieveHrisEmployeePayrollRunRequest", "RetrieveHrisEmployeePayrollRunRequestTypedDict", "RetrieveHrisEmployeeRequest", "RetrieveHrisEmployeeRequestTypedDict", "RetrieveHrisEmployerBenefitRequest", "RetrieveHrisEmployerBenefitRequestTypedDict", "RetrieveHrisEmploymentRequest", "RetrieveHrisEmploymentRequestTypedDict", "RetrieveHrisGroupRequest", "RetrieveHrisGroupRequestTypedDict", "RetrieveHrisLocationRequest", "RetrieveHrisLocationRequestTypedDict", "RetrieveHrisPaygroupRequest", "RetrieveHrisPaygroupRequestTypedDict", "RetrieveHrisPayrollRunRequest", "RetrieveHrisPayrollRunRequestTypedDict", "RetrieveHrisTimeoffRequest", "RetrieveHrisTimeoffRequestTypedDict", "RetrieveHrisTimeoffbalanceRequest", "RetrieveHrisTimeoffbalanceRequestTypedDict", "RetrieveHrisTimesheetentryRequest", "RetrieveHrisTimesheetentryRequestTypedDict", "RetrieveLinkedUserRequest", "RetrieveLinkedUserRequestTypedDict", "RetrieveMarketingAutomationContactRequest", "RetrieveMarketingAutomationContactRequestTypedDict", "RetrieveMarketingAutomationUserRequest", "RetrieveMarketingAutomationUserRequestTypedDict", "RetrieveMarketingautomationActionRequest", "RetrieveMarketingautomationActionRequestTypedDict", "RetrieveMarketingautomationAutomationRequest", "RetrieveMarketingautomationAutomationRequestTypedDict", "RetrieveMarketingautomationCampaignRequest", "RetrieveMarketingautomationCampaignRequestTypedDict", "RetrieveMarketingautomationEmailRequest", "RetrieveMarketingautomationEmailRequestTypedDict", "RetrieveMarketingautomationEventRequest", "RetrieveMarketingautomationEventRequestTypedDict", "RetrieveMarketingautomationListRequest", "RetrieveMarketingautomationListRequestTypedDict", "RetrieveMarketingautomationMessageRequest", "RetrieveMarketingautomationMessageRequestTypedDict", "RetrieveMarketingautomationTemplateRequest", "RetrieveMarketingautomationTemplateRequestTypedDict", "RetrieveTicketingAccountRequest", "RetrieveTicketingAccountRequestTypedDict", "RetrieveTicketingAttachmentRequest", "RetrieveTicketingAttachmentRequestTypedDict", "RetrieveTicketingCommentRequest", "RetrieveTicketingCommentRequestTypedDict", "RetrieveTicketingCommentResponseBody", "RetrieveTicketingCommentResponseBodyTypedDict", "RetrieveTicketingContactRequest", "RetrieveTicketingContactRequestTypedDict", "RetrieveTicketingContactResponseBody", "RetrieveTicketingContactResponseBodyTypedDict", "RetrieveTicketingTagRequest", "RetrieveTicketingTagRequestTypedDict", "RetrieveTicketingTeamRequest", "RetrieveTicketingTeamRequestTypedDict", "RetrieveTicketingTicketRequest", "RetrieveTicketingTicketRequestTypedDict", "RetrieveTicketingUserRequest", "RetrieveTicketingUserRequestTypedDict", "SDKError", "Security", "SecurityTypedDict", "SignatureVerificationDto", "SignatureVerificationDtoTypedDict", "Status", "StatusRequest", "StatusRequestTypedDict", "TagsModel", "TagsModelTypedDict", "TaxItem", "TaxItemTypedDict", "TokenType", "Type", "URL", "URLTypedDict", "UnifiedAccountingAccountInput", "UnifiedAccountingAccountInputFieldMappings", "UnifiedAccountingAccountInputFieldMappingsTypedDict", "UnifiedAccountingAccountInputTypedDict", "UnifiedAccountingAccountOutput", "UnifiedAccountingAccountOutputFieldMappings", "UnifiedAccountingAccountOutputFieldMappingsTypedDict", "UnifiedAccountingAccountOutputRemoteData", "UnifiedAccountingAccountOutputRemoteDataTypedDict", "UnifiedAccountingAccountOutputTypedDict", "UnifiedAccountingAddressOutput", "UnifiedAccountingAddressOutputFieldMappings", "UnifiedAccountingAddressOutputFieldMappingsTypedDict", "UnifiedAccountingAddressOutputRemoteData", "UnifiedAccountingAddressOutputRemoteDataTypedDict", "UnifiedAccountingAddressOutputTypedDict", "UnifiedAccountingAttachmentInput", "UnifiedAccountingAttachmentInputFieldMappings", "UnifiedAccountingAttachmentInputFieldMappingsTypedDict", "UnifiedAccountingAttachmentInputTypedDict", "UnifiedAccountingAttachmentOutput", "UnifiedAccountingAttachmentOutputFieldMappings", "UnifiedAccountingAttachmentOutputFieldMappingsTypedDict", "UnifiedAccountingAttachmentOutputRemoteData", "UnifiedAccountingAttachmentOutputRemoteDataTypedDict", "UnifiedAccountingAttachmentOutputTypedDict", "UnifiedAccountingBalancesheetOutput", "UnifiedAccountingBalancesheetOutputFieldMappings", "UnifiedAccountingBalancesheetOutputFieldMappingsTypedDict", "UnifiedAccountingBalancesheetOutputRemoteData", "UnifiedAccountingBalancesheetOutputRemoteDataTypedDict", "UnifiedAccountingBalancesheetOutputTypedDict", "UnifiedAccountingCashflowstatementOutput", "UnifiedAccountingCashflowstatementOutputFieldMappings", "UnifiedAccountingCashflowstatementOutputFieldMappingsTypedDict", "UnifiedAccountingCashflowstatementOutputRemoteData", "UnifiedAccountingCashflowstatementOutputRemoteDataTypedDict", "UnifiedAccountingCashflowstatementOutputTypedDict", "UnifiedAccountingCompanyinfoOutput", "UnifiedAccountingCompanyinfoOutputFieldMappings", "UnifiedAccountingCompanyinfoOutputFieldMappingsTypedDict", "UnifiedAccountingCompanyinfoOutputRemoteData", "UnifiedAccountingCompanyinfoOutputRemoteDataTypedDict", "UnifiedAccountingCompanyinfoOutputTypedDict", "UnifiedAccountingContactInput", "UnifiedAccountingContactInputFieldMappings", "UnifiedAccountingContactInputFieldMappingsTypedDict", "UnifiedAccountingContactInputTypedDict", "UnifiedAccountingContactOutput", "UnifiedAccountingContactOutputFieldMappings", "UnifiedAccountingContactOutputFieldMappingsTypedDict", "UnifiedAccountingContactOutputRemoteData", "UnifiedAccountingContactOutputRemoteDataTypedDict", "UnifiedAccountingContactOutputTypedDict", "UnifiedAccountingCreditnoteOutput", "UnifiedAccountingCreditnoteOutputFieldMappings", "UnifiedAccountingCreditnoteOutputFieldMappingsTypedDict", "UnifiedAccountingCreditnoteOutputRemoteData", "UnifiedAccountingCreditnoteOutputRemoteDataTypedDict", "UnifiedAccountingCreditnoteOutputTypedDict", "UnifiedAccountingExpenseInput", "UnifiedAccountingExpenseInputFieldMappings", "UnifiedAccountingExpenseInputFieldMappingsTypedDict", "UnifiedAccountingExpenseInputTypedDict", "UnifiedAccountingExpenseOutput", "UnifiedAccountingExpenseOutputFieldMappings", "UnifiedAccountingExpenseOutputFieldMappingsTypedDict", "UnifiedAccountingExpenseOutputRemoteData", "UnifiedAccountingExpenseOutputRemoteDataTypedDict", "UnifiedAccountingExpenseOutputTypedDict", "UnifiedAccountingIncomestatementOutput", "UnifiedAccountingIncomestatementOutputFieldMappings", "UnifiedAccountingIncomestatementOutputFieldMappingsTypedDict", "UnifiedAccountingIncomestatementOutputRemoteData", "UnifiedAccountingIncomestatementOutputRemoteDataTypedDict", "UnifiedAccountingIncomestatementOutputTypedDict", "UnifiedAccountingInvoiceInput", "UnifiedAccountingInvoiceInputFieldMappings", "UnifiedAccountingInvoiceInputFieldMappingsTypedDict", "UnifiedAccountingInvoiceInputTypedDict", "UnifiedAccountingInvoiceOutput", "UnifiedAccountingInvoiceOutputFieldMappings", "UnifiedAccountingInvoiceOutputFieldMappingsTypedDict", "UnifiedAccountingInvoiceOutputRemoteData", "UnifiedAccountingInvoiceOutputRemoteDataTypedDict", "UnifiedAccountingInvoiceOutputTypedDict", "UnifiedAccountingItemOutput", "UnifiedAccountingItemOutputFieldMappings", "UnifiedAccountingItemOutputFieldMappingsTypedDict", "UnifiedAccountingItemOutputRemoteData", "UnifiedAccountingItemOutputRemoteDataTypedDict", "UnifiedAccountingItemOutputTypedDict", "UnifiedAccountingJournalentryInput", "UnifiedAccountingJournalentryInputFieldMappings", "UnifiedAccountingJournalentryInputFieldMappingsTypedDict", "UnifiedAccountingJournalentryInputTypedDict", "UnifiedAccountingJournalentryOutput", "UnifiedAccountingJournalentryOutputFieldMappings", "UnifiedAccountingJournalentryOutputFieldMappingsTypedDict", "UnifiedAccountingJournalentryOutputRemoteData", "UnifiedAccountingJournalentryOutputRemoteDataTypedDict", "UnifiedAccountingJournalentryOutputTypedDict", "UnifiedAccountingPaymentInput", "UnifiedAccountingPaymentInputFieldMappings", "UnifiedAccountingPaymentInputFieldMappingsTypedDict", "UnifiedAccountingPaymentInputTypedDict", "UnifiedAccountingPaymentOutput", "UnifiedAccountingPaymentOutputFieldMappings", "UnifiedAccountingPaymentOutputFieldMappingsTypedDict", "UnifiedAccountingPaymentOutputRemoteData", "UnifiedAccountingPaymentOutputRemoteDataTypedDict", "UnifiedAccountingPaymentOutputTypedDict", "UnifiedAccountingPhonenumberOutput", "UnifiedAccountingPhonenumberOutputFieldMappings", "UnifiedAccountingPhonenumberOutputFieldMappingsTypedDict", "UnifiedAccountingPhonenumberOutputRemoteData", "UnifiedAccountingPhonenumberOutputRemoteDataTypedDict", "UnifiedAccountingPhonenumberOutputTypedDict", "UnifiedAccountingPurchaseorderInput", "UnifiedAccountingPurchaseorderInputFieldMappings", "UnifiedAccountingPurchaseorderInputFieldMappingsTypedDict", "UnifiedAccountingPurchaseorderInputTypedDict", "UnifiedAccountingPurchaseorderOutput", "UnifiedAccountingPurchaseorderOutputFieldMappings", "UnifiedAccountingPurchaseorderOutputFieldMappingsTypedDict", "UnifiedAccountingPurchaseorderOutputRemoteData", "UnifiedAccountingPurchaseorderOutputRemoteDataTypedDict", "UnifiedAccountingPurchaseorderOutputTypedDict", "UnifiedAccountingTaxrateOutput", "UnifiedAccountingTaxrateOutputFieldMappings", "UnifiedAccountingTaxrateOutputFieldMappingsTypedDict", "UnifiedAccountingTaxrateOutputRemoteData", "UnifiedAccountingTaxrateOutputRemoteDataTypedDict", "UnifiedAccountingTaxrateOutputTypedDict", "UnifiedAccountingTrackingcategoryOutput", "UnifiedAccountingTrackingcategoryOutputFieldMappings", "UnifiedAccountingTrackingcategoryOutputFieldMappingsTypedDict", "UnifiedAccountingTrackingcategoryOutputRemoteData", "UnifiedAccountingTrackingcategoryOutputRemoteDataTypedDict", "UnifiedAccountingTrackingcategoryOutputTypedDict", "UnifiedAccountingTransactionOutput", "UnifiedAccountingTransactionOutputFieldMappings", "UnifiedAccountingTransactionOutputFieldMappingsTypedDict", "UnifiedAccountingTransactionOutputRemoteData", "UnifiedAccountingTransactionOutputRemoteDataTypedDict", "UnifiedAccountingTransactionOutputTypedDict", "UnifiedAccountingVendorcreditOutput", "UnifiedAccountingVendorcreditOutputFieldMappings", "UnifiedAccountingVendorcreditOutputFieldMappingsTypedDict", "UnifiedAccountingVendorcreditOutputRemoteData", "UnifiedAccountingVendorcreditOutputRemoteDataTypedDict", "UnifiedAccountingVendorcreditOutputTypedDict", "UnifiedAtsActivityInput", "UnifiedAtsActivityInputTypedDict", "UnifiedAtsActivityOutput", "UnifiedAtsActivityOutputTypedDict", "UnifiedAtsApplicationInput", "UnifiedAtsApplicationInputTypedDict", "UnifiedAtsApplicationOutput", "UnifiedAtsApplicationOutputTypedDict", "UnifiedAtsAttachmentInput", "UnifiedAtsAttachmentInputTypedDict", "UnifiedAtsAttachmentOutput", "UnifiedAtsAttachmentOutputTypedDict", "UnifiedAtsCandidateInput", "UnifiedAtsCandidateInputApplications", "UnifiedAtsCandidateInputApplicationsTypedDict", "UnifiedAtsCandidateInputAttachments", "UnifiedAtsCandidateInputAttachmentsTypedDict", "UnifiedAtsCandidateInputTags", "UnifiedAtsCandidateInputTagsTypedDict", "UnifiedAtsCandidateInputTypedDict", "UnifiedAtsCandidateOutput", "UnifiedAtsCandidateOutputAttachments", "UnifiedAtsCandidateOutputAttachmentsTypedDict", "UnifiedAtsCandidateOutputTags", "UnifiedAtsCandidateOutputTagsTypedDict", "UnifiedAtsCandidateOutputTypedDict", "UnifiedAtsDepartmentOutput", "UnifiedAtsDepartmentOutputTypedDict", "UnifiedAtsEeocsOutput", "UnifiedAtsEeocsOutputTypedDict", "UnifiedAtsInterviewInput", "UnifiedAtsInterviewInputTypedDict", "UnifiedAtsInterviewOutput", "UnifiedAtsInterviewOutputTypedDict", "UnifiedAtsJobOutput", "UnifiedAtsJobOutputTypedDict", "UnifiedAtsJobinterviewstageOutput", "UnifiedAtsJobinterviewstageOutputTypedDict", "UnifiedAtsOfferOutput", "UnifiedAtsOfferOutputCreatedAt", "UnifiedAtsOfferOutputCreatedAtTypedDict", "UnifiedAtsOfferOutputModifiedAt", "UnifiedAtsOfferOutputModifiedAtTypedDict", "UnifiedAtsOfferOutputTypedDict", "UnifiedAtsOfficeOutput", "UnifiedAtsOfficeOutputTypedDict", "UnifiedAtsRejectreasonOutput", "UnifiedAtsRejectreasonOutputTypedDict", "UnifiedAtsScorecardOutput", "UnifiedAtsScorecardOutputTypedDict", "UnifiedAtsTagOutput", "UnifiedAtsTagOutputTypedDict", "UnifiedAtsUserOutput", "UnifiedAtsUserOutputTypedDict", "UnifiedCrmCompanyInput", "UnifiedCrmCompanyInputTypedDict", "UnifiedCrmCompanyOutput", "UnifiedCrmCompanyOutputTypedDict", "UnifiedCrmContactInput", "UnifiedCrmContactInputTypedDict", "UnifiedCrmContactOutput", "UnifiedCrmContactOutputTypedDict", "UnifiedCrmDealInput", "UnifiedCrmDealInputTypedDict", "UnifiedCrmDealOutput", "UnifiedCrmDealOutputTypedDict", "UnifiedCrmEngagementInput", "UnifiedCrmEngagementInputTypedDict", "UnifiedCrmEngagementOutput", "UnifiedCrmEngagementOutputTypedDict", "UnifiedCrmNoteInput", "UnifiedCrmNoteInputTypedDict", "UnifiedCrmNoteOutput", "UnifiedCrmNoteOutputTypedDict", "UnifiedCrmStageOutput", "UnifiedCrmStageOutputCreatedAt", "UnifiedCrmStageOutputCreatedAtTypedDict", "UnifiedCrmStageOutputModifiedAt", "UnifiedCrmStageOutputModifiedAtTypedDict", "UnifiedCrmStageOutputTypedDict", "UnifiedCrmTaskInput", "UnifiedCrmTaskInputTypedDict", "UnifiedCrmTaskOutput", "UnifiedCrmTaskOutputTypedDict", "UnifiedCrmUserOutput", "UnifiedCrmUserOutputTypedDict", "UnifiedEcommerceCustomerOutput", "UnifiedEcommerceCustomerOutputFieldMappings", "UnifiedEcommerceCustomerOutputFieldMappingsTypedDict", "UnifiedEcommerceCustomerOutputRemoteData", "UnifiedEcommerceCustomerOutputRemoteDataTypedDict", "UnifiedEcommerceCustomerOutputTypedDict", "UnifiedEcommerceFulfillmentOutput", "UnifiedEcommerceFulfillmentOutputFieldMappings", "UnifiedEcommerceFulfillmentOutputFieldMappingsTypedDict", "UnifiedEcommerceFulfillmentOutputRemoteData", "UnifiedEcommerceFulfillmentOutputRemoteDataTypedDict", "UnifiedEcommerceFulfillmentOutputTypedDict", "UnifiedEcommerceOrderInput", "UnifiedEcommerceOrderInputFieldMappings", "UnifiedEcommerceOrderInputFieldMappingsTypedDict", "UnifiedEcommerceOrderInputTypedDict", "UnifiedEcommerceOrderOutput", "UnifiedEcommerceOrderOutputFieldMappings", "UnifiedEcommerceOrderOutputFieldMappingsTypedDict", "UnifiedEcommerceOrderOutputRemoteData", "UnifiedEcommerceOrderOutputRemoteDataTypedDict", "UnifiedEcommerceOrderOutputTypedDict", "UnifiedEcommerceProductInput", "UnifiedEcommerceProductInputFieldMappings", "UnifiedEcommerceProductInputFieldMappingsTypedDict", "UnifiedEcommerceProductInputTypedDict", "UnifiedEcommerceProductOutput", "UnifiedEcommerceProductOutputFieldMappings", "UnifiedEcommerceProductOutputFieldMappingsTypedDict", "UnifiedEcommerceProductOutputRemoteData", "UnifiedEcommerceProductOutputRemoteDataTypedDict", "UnifiedEcommerceProductOutputTypedDict", "UnifiedFilestorageFileInput", "UnifiedFilestorageFileInputTypedDict", "UnifiedFilestorageFileOutput", "UnifiedFilestorageFileOutputTypedDict", "UnifiedFilestorageFolderInput", "UnifiedFilestorageFolderInputTypedDict", "UnifiedFilestorageFolderOutput", "UnifiedFilestorageFolderOutputTypedDict", "UnifiedFilestorageGroupOutput", "UnifiedFilestorageGroupOutputTypedDict", "UnifiedFilestorageUserOutput", "UnifiedFilestorageUserOutputTypedDict", "UnifiedHrisBankinfoOutput", "UnifiedHrisBankinfoOutputTypedDict", "UnifiedHrisBenefitOutput", "UnifiedHrisBenefitOutputFieldMappings", "UnifiedHrisBenefitOutputFieldMappingsTypedDict", "UnifiedHrisBenefitOutputRemoteData", "UnifiedHrisBenefitOutputRemoteDataTypedDict", "UnifiedHrisBenefitOutputTypedDict", "UnifiedHrisCompanyOutput", "UnifiedHrisCompanyOutputFieldMappings", "UnifiedHrisCompanyOutputFieldMappingsTypedDict", "UnifiedHrisCompanyOutputRemoteData", "UnifiedHrisCompanyOutputRemoteDataTypedDict", "UnifiedHrisCompanyOutputTypedDict", "UnifiedHrisDependentOutput", "UnifiedHrisDependentOutputFieldMappings", "UnifiedHrisDependentOutputFieldMappingsTypedDict", "UnifiedHrisDependentOutputRemoteData", "UnifiedHrisDependentOutputRemoteDataTypedDict", "UnifiedHrisDependentOutputTypedDict", "UnifiedHrisEmployeeInput", "UnifiedHrisEmployeeInputFieldMappings", "UnifiedHrisEmployeeInputFieldMappingsTypedDict", "UnifiedHrisEmployeeInputTypedDict", "UnifiedHrisEmployeeOutput", "UnifiedHrisEmployeeOutputFieldMappings", "UnifiedHrisEmployeeOutputFieldMappingsTypedDict", "UnifiedHrisEmployeeOutputRemoteData", "UnifiedHrisEmployeeOutputRemoteDataTypedDict", "UnifiedHrisEmployeeOutputTypedDict", "UnifiedHrisEmployeepayrollrunOutput", "UnifiedHrisEmployeepayrollrunOutputFieldMappings", "UnifiedHrisEmployeepayrollrunOutputFieldMappingsTypedDict", "UnifiedHrisEmployeepayrollrunOutputRemoteData", "UnifiedHrisEmployeepayrollrunOutputRemoteDataTypedDict", "UnifiedHrisEmployeepayrollrunOutputTypedDict", "UnifiedHrisEmployerbenefitOutput", "UnifiedHrisEmployerbenefitOutputFieldMappings", "UnifiedHrisEmployerbenefitOutputFieldMappingsTypedDict", "UnifiedHrisEmployerbenefitOutputRemoteData", "UnifiedHrisEmployerbenefitOutputRemoteDataTypedDict", "UnifiedHrisEmployerbenefitOutputTypedDict", "UnifiedHrisEmploymentOutput", "UnifiedHrisEmploymentOutputFieldMappings", "UnifiedHrisEmploymentOutputFieldMappingsTypedDict", "UnifiedHrisEmploymentOutputRemoteData", "UnifiedHrisEmploymentOutputRemoteDataTypedDict", "UnifiedHrisEmploymentOutputTypedDict", "UnifiedHrisGroupOutput", "UnifiedHrisGroupOutputFieldMappings", "UnifiedHrisGroupOutputFieldMappingsTypedDict", "UnifiedHrisGroupOutputRemoteData", "UnifiedHrisGroupOutputRemoteDataTypedDict", "UnifiedHrisGroupOutputTypedDict", "UnifiedHrisLocationOutput", "UnifiedHrisLocationOutputFieldMappings", "UnifiedHrisLocationOutputFieldMappingsTypedDict", "UnifiedHrisLocationOutputRemoteData", "UnifiedHrisLocationOutputRemoteDataTypedDict", "UnifiedHrisLocationOutputTypedDict", "UnifiedHrisPaygroupOutput", "UnifiedHrisPaygroupOutputFieldMappings", "UnifiedHrisPaygroupOutputFieldMappingsTypedDict", "UnifiedHrisPaygroupOutputRemoteData", "UnifiedHrisPaygroupOutputRemoteDataTypedDict", "UnifiedHrisPaygroupOutputTypedDict", "UnifiedHrisPayrollrunOutput", "UnifiedHrisPayrollrunOutputFieldMappings", "UnifiedHrisPayrollrunOutputFieldMappingsTypedDict", "UnifiedHrisPayrollrunOutputRemoteData", "UnifiedHrisPayrollrunOutputRemoteDataTypedDict", "UnifiedHrisPayrollrunOutputTypedDict", "UnifiedHrisTimeoffInput", "UnifiedHrisTimeoffInputFieldMappings", "UnifiedHrisTimeoffInputFieldMappingsTypedDict", "UnifiedHrisTimeoffInputTypedDict", "UnifiedHrisTimeoffOutput", "UnifiedHrisTimeoffOutputFieldMappings", "UnifiedHrisTimeoffOutputFieldMappingsTypedDict", "UnifiedHrisTimeoffOutputRemoteData", "UnifiedHrisTimeoffOutputRemoteDataTypedDict", "UnifiedHrisTimeoffOutputTypedDict", "UnifiedHrisTimeoffbalanceOutput", "UnifiedHrisTimeoffbalanceOutputFieldMappings", "UnifiedHrisTimeoffbalanceOutputFieldMappingsTypedDict", "UnifiedHrisTimeoffbalanceOutputRemoteData", "UnifiedHrisTimeoffbalanceOutputRemoteDataTypedDict", "UnifiedHrisTimeoffbalanceOutputTypedDict", "UnifiedHrisTimesheetEntryInput", "UnifiedHrisTimesheetEntryInputFieldMappings", "UnifiedHrisTimesheetEntryInputFieldMappingsTypedDict", "UnifiedHrisTimesheetEntryInputTypedDict", "UnifiedHrisTimesheetEntryOutput", "UnifiedHrisTimesheetEntryOutputFieldMappings", "UnifiedHrisTimesheetEntryOutputFieldMappingsTypedDict", "UnifiedHrisTimesheetEntryOutputRemoteData", "UnifiedHrisTimesheetEntryOutputRemoteDataTypedDict", "UnifiedHrisTimesheetEntryOutputTypedDict", "UnifiedMarketingautomationActionInput", "UnifiedMarketingautomationActionInputTypedDict", "UnifiedMarketingautomationActionOutput", "UnifiedMarketingautomationActionOutputTypedDict", "UnifiedMarketingautomationAutomationInput", "UnifiedMarketingautomationAutomationInputTypedDict", "UnifiedMarketingautomationAutomationOutput", "UnifiedMarketingautomationAutomationOutputTypedDict", "UnifiedMarketingautomationCampaignInput", "UnifiedMarketingautomationCampaignInputTypedDict", "UnifiedMarketingautomationCampaignOutput", "UnifiedMarketingautomationCampaignOutputTypedDict", "UnifiedMarketingautomationContactInput", "UnifiedMarketingautomationContactInputTypedDict", "UnifiedMarketingautomationContactOutput", "UnifiedMarketingautomationContactOutputTypedDict", "UnifiedMarketingautomationEmailOutput", "UnifiedMarketingautomationEmailOutputTypedDict", "UnifiedMarketingautomationEventOutput", "UnifiedMarketingautomationEventOutputTypedDict", "UnifiedMarketingautomationListInput", "UnifiedMarketingautomationListInputTypedDict", "UnifiedMarketingautomationListOutput", "UnifiedMarketingautomationListOutputTypedDict", "UnifiedMarketingautomationMessageOutput", "UnifiedMarketingautomationMessageOutputTypedDict", "UnifiedMarketingautomationTemplateInput", "UnifiedMarketingautomationTemplateInputTypedDict", "UnifiedMarketingautomationTemplateOutput", "UnifiedMarketingautomationTemplateOutputTypedDict", "UnifiedMarketingautomationUserOutput", "UnifiedMarketingautomationUserOutputTypedDict", "UnifiedTicketingAccountOutput", "UnifiedTicketingAccountOutputTypedDict", "UnifiedTicketingAttachmentInput", "UnifiedTicketingAttachmentInputTypedDict", "UnifiedTicketingAttachmentOutput", "UnifiedTicketingAttachmentOutputTypedDict", "UnifiedTicketingCollectionOutput", "UnifiedTicketingCollectionOutputTypedDict", "UnifiedTicketingCommentInput", "UnifiedTicketingCommentInputAttachments", "UnifiedTicketingCommentInputAttachmentsTypedDict", "UnifiedTicketingCommentInputTypedDict", "UnifiedTicketingCommentOutput", "UnifiedTicketingCommentOutputAttachments", "UnifiedTicketingCommentOutputAttachmentsTypedDict", "UnifiedTicketingCommentOutputTypedDict", "UnifiedTicketingContactOutput", "UnifiedTicketingContactOutputTypedDict", "UnifiedTicketingTagOutput", "UnifiedTicketingTagOutputTypedDict", "UnifiedTicketingTeamOutput", "UnifiedTicketingTeamOutputTypedDict", "UnifiedTicketingTicketInput", "UnifiedTicketingTicketInputAttachments", "UnifiedTicketingTicketInputAttachmentsTypedDict", "UnifiedTicketingTicketInputCollections", "UnifiedTicketingTicketInputCollectionsTypedDict", "UnifiedTicketingTicketInputComment", "UnifiedTicketingTicketInputCommentAttachments", "UnifiedTicketingTicketInputCommentAttachmentsTypedDict", "UnifiedTicketingTicketInputCommentTypedDict", "UnifiedTicketingTicketInputTags", "UnifiedTicketingTicketInputTagsTypedDict", "UnifiedTicketingTicketInputTypedDict", "UnifiedTicketingTicketOutput", "UnifiedTicketingTicketOutputAttachments", "UnifiedTicketingTicketOutputAttachmentsTypedDict", "UnifiedTicketingTicketOutputTypedDict", "UnifiedTicketingUserOutput", "UnifiedTicketingUserOutputTypedDict", "UpdatePullFrequencyDto", "UpdatePullFrequencyDtoTypedDict", "UpdatePullFrequencyResponseBody", "UpdatePullFrequencyResponseBodyTypedDict", "UpdateStatusRequest", "UpdateStatusRequestTypedDict", "UsersModel", "UsersModelTypedDict", "Variant", "VariantTypedDict", "Vertical", "WebhookDto", "WebhookDtoTypedDict", "WebhookResponse", "WebhookResponseTypedDict"] diff --git a/src/panora_sdk/models/address.py b/src/panora_sdk/models/address.py index 7b5a858..eb2aaec 100644 --- a/src/panora_sdk/models/address.py +++ b/src/panora_sdk/models/address.py @@ -23,46 +23,30 @@ class AddressTypedDict(TypedDict): r"""The address type. Authorized values are either PERSONAL or WORK.""" owner_type: Nullable[str] r"""The owner type of the address""" - + class Address(BaseModel): street_1: Nullable[str] r"""The street""" - street_2: Nullable[str] r"""More information about the street""" - city: Nullable[str] r"""The city""" - state: Nullable[str] r"""The state""" - postal_code: Nullable[str] r"""The postal code""" - country: Nullable[str] r"""The country""" - address_type: Nullable[str] r"""The address type. Authorized values are either PERSONAL or WORK.""" - owner_type: Nullable[str] r"""The owner type of the address""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] - nullable_fields = [ - "street_1", - "street_2", - "city", - "state", - "postal_code", - "country", - "address_type", - "owner_type", - ] + nullable_fields = ["street_1", "street_2", "city", "state", "postal_code", "country", "address_type", "owner_type"] null_default_fields = [] serialized = handler(self) @@ -72,19 +56,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/connection.py b/src/panora_sdk/models/connection.py index e35014b..806999d 100644 --- a/src/panora_sdk/models/connection.py +++ b/src/panora_sdk/models/connection.py @@ -9,12 +9,10 @@ class TokenType(str, Enum): r"""Strategy type""" - OAUTH2 = "oauth2" APIKEY = "apikey" BASIC = "basic" - class ConnectionTypedDict(TypedDict): id_connection: str r"""Unique identifier for the connection""" @@ -42,44 +40,33 @@ class ConnectionTypedDict(TypedDict): r"""Project ID associated with the connection""" id_linked_user: str r"""Linked user ID associated with the connection""" - + class Connection(BaseModel): id_connection: str r"""Unique identifier for the connection""" - status: str r"""Status of the connection""" - provider_slug: str r"""Slug for the provider""" - vertical: str r"""Vertical category of the connection""" - account_url: str r"""URL of the account""" - token_type: TokenType r"""Strategy type""" - access_token: str r"""Access token for the connection""" - refresh_token: str r"""Refresh token for the connection""" - expiration_timestamp: datetime r"""Expiration timestamp of the access token""" - created_at: datetime r"""Timestamp when the connection was created""" - connection_token: str r"""UUID Token for the connection""" - id_project: str r"""Project ID associated with the connection""" - id_linked_user: str r"""Linked user ID associated with the connection""" + diff --git a/src/panora_sdk/models/createaccountingaccountop.py b/src/panora_sdk/models/createaccountingaccountop.py index a899f06..dc7a5e2 100644 --- a/src/panora_sdk/models/createaccountingaccountop.py +++ b/src/panora_sdk/models/createaccountingaccountop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingaccountinput import ( - UnifiedAccountingAccountInput, - UnifiedAccountingAccountInputTypedDict, -) +from .unifiedaccountingaccountinput import UnifiedAccountingAccountInput, UnifiedAccountingAccountInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAccountingAccountRequestTypedDict(TypedDict): unified_accounting_account_input: UnifiedAccountingAccountInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class CreateAccountingAccountRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_accounting_account_input: Annotated[ - UnifiedAccountingAccountInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_accounting_account_input: Annotated[UnifiedAccountingAccountInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/createaccountingattachmentop.py b/src/panora_sdk/models/createaccountingattachmentop.py index 3b252e1..c214139 100644 --- a/src/panora_sdk/models/createaccountingattachmentop.py +++ b/src/panora_sdk/models/createaccountingattachmentop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingattachmentinput import ( - UnifiedAccountingAttachmentInput, - UnifiedAccountingAttachmentInputTypedDict, -) +from .unifiedaccountingattachmentinput import UnifiedAccountingAttachmentInput, UnifiedAccountingAttachmentInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAccountingAttachmentRequestTypedDict(TypedDict): unified_accounting_attachment_input: UnifiedAccountingAttachmentInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class CreateAccountingAttachmentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_accounting_attachment_input: Annotated[ - UnifiedAccountingAttachmentInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_accounting_attachment_input: Annotated[UnifiedAccountingAttachmentInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/createaccountingcontactop.py b/src/panora_sdk/models/createaccountingcontactop.py index 6d08d58..394cc5d 100644 --- a/src/panora_sdk/models/createaccountingcontactop.py +++ b/src/panora_sdk/models/createaccountingcontactop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingcontactinput import ( - UnifiedAccountingContactInput, - UnifiedAccountingContactInputTypedDict, -) +from .unifiedaccountingcontactinput import UnifiedAccountingContactInput, UnifiedAccountingContactInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAccountingContactRequestTypedDict(TypedDict): unified_accounting_contact_input: UnifiedAccountingContactInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class CreateAccountingContactRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_accounting_contact_input: Annotated[ - UnifiedAccountingContactInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_accounting_contact_input: Annotated[UnifiedAccountingContactInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/createaccountingexpenseop.py b/src/panora_sdk/models/createaccountingexpenseop.py index c3b0946..f607acf 100644 --- a/src/panora_sdk/models/createaccountingexpenseop.py +++ b/src/panora_sdk/models/createaccountingexpenseop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingexpenseinput import ( - UnifiedAccountingExpenseInput, - UnifiedAccountingExpenseInputTypedDict, -) +from .unifiedaccountingexpenseinput import UnifiedAccountingExpenseInput, UnifiedAccountingExpenseInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAccountingExpenseRequestTypedDict(TypedDict): unified_accounting_expense_input: UnifiedAccountingExpenseInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class CreateAccountingExpenseRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_accounting_expense_input: Annotated[ - UnifiedAccountingExpenseInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_accounting_expense_input: Annotated[UnifiedAccountingExpenseInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/createaccountinginvoiceop.py b/src/panora_sdk/models/createaccountinginvoiceop.py index 30135a3..c24c42f 100644 --- a/src/panora_sdk/models/createaccountinginvoiceop.py +++ b/src/panora_sdk/models/createaccountinginvoiceop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountinginvoiceinput import ( - UnifiedAccountingInvoiceInput, - UnifiedAccountingInvoiceInputTypedDict, -) +from .unifiedaccountinginvoiceinput import UnifiedAccountingInvoiceInput, UnifiedAccountingInvoiceInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAccountingInvoiceRequestTypedDict(TypedDict): unified_accounting_invoice_input: UnifiedAccountingInvoiceInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class CreateAccountingInvoiceRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_accounting_invoice_input: Annotated[ - UnifiedAccountingInvoiceInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_accounting_invoice_input: Annotated[UnifiedAccountingInvoiceInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/createaccountingjournalentryop.py b/src/panora_sdk/models/createaccountingjournalentryop.py index a9519ef..88d6a7f 100644 --- a/src/panora_sdk/models/createaccountingjournalentryop.py +++ b/src/panora_sdk/models/createaccountingjournalentryop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingjournalentryinput import ( - UnifiedAccountingJournalentryInput, - UnifiedAccountingJournalentryInputTypedDict, -) +from .unifiedaccountingjournalentryinput import UnifiedAccountingJournalentryInput, UnifiedAccountingJournalentryInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAccountingJournalEntryRequestTypedDict(TypedDict): unified_accounting_journalentry_input: UnifiedAccountingJournalentryInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class CreateAccountingJournalEntryRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_accounting_journalentry_input: Annotated[ - UnifiedAccountingJournalentryInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_accounting_journalentry_input: Annotated[UnifiedAccountingJournalentryInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/createaccountingpaymentop.py b/src/panora_sdk/models/createaccountingpaymentop.py index 3b1936d..687a918 100644 --- a/src/panora_sdk/models/createaccountingpaymentop.py +++ b/src/panora_sdk/models/createaccountingpaymentop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingpaymentinput import ( - UnifiedAccountingPaymentInput, - UnifiedAccountingPaymentInputTypedDict, -) +from .unifiedaccountingpaymentinput import UnifiedAccountingPaymentInput, UnifiedAccountingPaymentInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAccountingPaymentRequestTypedDict(TypedDict): unified_accounting_payment_input: UnifiedAccountingPaymentInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class CreateAccountingPaymentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_accounting_payment_input: Annotated[ - UnifiedAccountingPaymentInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_accounting_payment_input: Annotated[UnifiedAccountingPaymentInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/createaccountingpurchaseorderop.py b/src/panora_sdk/models/createaccountingpurchaseorderop.py index bc39c90..c3fdad4 100644 --- a/src/panora_sdk/models/createaccountingpurchaseorderop.py +++ b/src/panora_sdk/models/createaccountingpurchaseorderop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingpurchaseorderinput import ( - UnifiedAccountingPurchaseorderInput, - UnifiedAccountingPurchaseorderInputTypedDict, -) +from .unifiedaccountingpurchaseorderinput import UnifiedAccountingPurchaseorderInput, UnifiedAccountingPurchaseorderInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAccountingPurchaseOrderRequestTypedDict(TypedDict): unified_accounting_purchaseorder_input: UnifiedAccountingPurchaseorderInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class CreateAccountingPurchaseOrderRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_accounting_purchaseorder_input: Annotated[ - UnifiedAccountingPurchaseorderInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_accounting_purchaseorder_input: Annotated[UnifiedAccountingPurchaseorderInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/createatsactivityop.py b/src/panora_sdk/models/createatsactivityop.py index 9cce69b..65cbba6 100644 --- a/src/panora_sdk/models/createatsactivityop.py +++ b/src/panora_sdk/models/createatsactivityop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsactivityinput import ( - UnifiedAtsActivityInput, - UnifiedAtsActivityInputTypedDict, -) +from .unifiedatsactivityinput import UnifiedAtsActivityInput, UnifiedAtsActivityInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAtsActivityRequestTypedDict(TypedDict): unified_ats_activity_input: UnifiedAtsActivityInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class CreateAtsActivityRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_ats_activity_input: Annotated[ - UnifiedAtsActivityInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_ats_activity_input: Annotated[UnifiedAtsActivityInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/createatsapplicationop.py b/src/panora_sdk/models/createatsapplicationop.py index c583377..f73a2fa 100644 --- a/src/panora_sdk/models/createatsapplicationop.py +++ b/src/panora_sdk/models/createatsapplicationop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsapplicationinput import ( - UnifiedAtsApplicationInput, - UnifiedAtsApplicationInputTypedDict, -) +from .unifiedatsapplicationinput import UnifiedAtsApplicationInput, UnifiedAtsApplicationInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAtsApplicationRequestTypedDict(TypedDict): unified_ats_application_input: UnifiedAtsApplicationInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class CreateAtsApplicationRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_ats_application_input: Annotated[ - UnifiedAtsApplicationInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_ats_application_input: Annotated[UnifiedAtsApplicationInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/createatsattachmentop.py b/src/panora_sdk/models/createatsattachmentop.py index f8b458a..b1c3027 100644 --- a/src/panora_sdk/models/createatsattachmentop.py +++ b/src/panora_sdk/models/createatsattachmentop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsattachmentinput import ( - UnifiedAtsAttachmentInput, - UnifiedAtsAttachmentInputTypedDict, -) +from .unifiedatsattachmentinput import UnifiedAtsAttachmentInput, UnifiedAtsAttachmentInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAtsAttachmentRequestTypedDict(TypedDict): unified_ats_attachment_input: UnifiedAtsAttachmentInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class CreateAtsAttachmentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_ats_attachment_input: Annotated[ - UnifiedAtsAttachmentInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_ats_attachment_input: Annotated[UnifiedAtsAttachmentInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/createatscandidateop.py b/src/panora_sdk/models/createatscandidateop.py index 6424165..bbee952 100644 --- a/src/panora_sdk/models/createatscandidateop.py +++ b/src/panora_sdk/models/createatscandidateop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatscandidateinput import ( - UnifiedAtsCandidateInput, - UnifiedAtsCandidateInputTypedDict, -) +from .unifiedatscandidateinput import UnifiedAtsCandidateInput, UnifiedAtsCandidateInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAtsCandidateRequestTypedDict(TypedDict): unified_ats_candidate_input: UnifiedAtsCandidateInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class CreateAtsCandidateRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_ats_candidate_input: Annotated[ - UnifiedAtsCandidateInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_ats_candidate_input: Annotated[UnifiedAtsCandidateInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/createatsinterviewop.py b/src/panora_sdk/models/createatsinterviewop.py index af5671b..5330e31 100644 --- a/src/panora_sdk/models/createatsinterviewop.py +++ b/src/panora_sdk/models/createatsinterviewop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsinterviewinput import ( - UnifiedAtsInterviewInput, - UnifiedAtsInterviewInputTypedDict, -) +from .unifiedatsinterviewinput import UnifiedAtsInterviewInput, UnifiedAtsInterviewInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateAtsInterviewRequestTypedDict(TypedDict): unified_ats_interview_input: UnifiedAtsInterviewInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class CreateAtsInterviewRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_ats_interview_input: Annotated[ - UnifiedAtsInterviewInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_ats_interview_input: Annotated[UnifiedAtsInterviewInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/createbatchlinkeduserdto.py b/src/panora_sdk/models/createbatchlinkeduserdto.py index 85bd311..03842b5 100644 --- a/src/panora_sdk/models/createbatchlinkeduserdto.py +++ b/src/panora_sdk/models/createbatchlinkeduserdto.py @@ -11,15 +11,14 @@ class CreateBatchLinkedUserDtoTypedDict(TypedDict): r"""The ids of the users in the context of your own software""" alias: Nullable[str] r"""Your company alias""" - + class CreateBatchLinkedUserDto(BaseModel): linked_user_origin_ids: Nullable[List[str]] r"""The ids of the users in the context of your own software""" - alias: Nullable[str] r"""Your company alias""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -33,19 +32,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/createcrmcompanyop.py b/src/panora_sdk/models/createcrmcompanyop.py index 5f4da62..9c52a53 100644 --- a/src/panora_sdk/models/createcrmcompanyop.py +++ b/src/panora_sdk/models/createcrmcompanyop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedcrmcompanyinput import ( - UnifiedCrmCompanyInput, - UnifiedCrmCompanyInputTypedDict, -) +from .unifiedcrmcompanyinput import UnifiedCrmCompanyInput, UnifiedCrmCompanyInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateCrmCompanyRequestTypedDict(TypedDict): unified_crm_company_input: UnifiedCrmCompanyInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original CRM software.""" - + class CreateCrmCompanyRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_crm_company_input: Annotated[ - UnifiedCrmCompanyInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_crm_company_input: Annotated[UnifiedCrmCompanyInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original CRM software.""" + diff --git a/src/panora_sdk/models/createcrmcontactop.py b/src/panora_sdk/models/createcrmcontactop.py index 5053eb6..8000f8d 100644 --- a/src/panora_sdk/models/createcrmcontactop.py +++ b/src/panora_sdk/models/createcrmcontactop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedcrmcontactinput import ( - UnifiedCrmContactInput, - UnifiedCrmContactInputTypedDict, -) +from .unifiedcrmcontactinput import UnifiedCrmContactInput, UnifiedCrmContactInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateCrmContactRequestTypedDict(TypedDict): unified_crm_contact_input: UnifiedCrmContactInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original CRM software.""" - + class CreateCrmContactRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_crm_contact_input: Annotated[ - UnifiedCrmContactInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_crm_contact_input: Annotated[UnifiedCrmContactInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original CRM software.""" + diff --git a/src/panora_sdk/models/createcrmdealop.py b/src/panora_sdk/models/createcrmdealop.py index c36b050..f92dd92 100644 --- a/src/panora_sdk/models/createcrmdealop.py +++ b/src/panora_sdk/models/createcrmdealop.py @@ -3,12 +3,7 @@ from __future__ import annotations from .unifiedcrmdealinput import UnifiedCrmDealInput, UnifiedCrmDealInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,12 @@ class CreateCrmDealRequestTypedDict(TypedDict): unified_crm_deal_input: UnifiedCrmDealInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Crm software.""" - + class CreateCrmDealRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_crm_deal_input: Annotated[ - UnifiedCrmDealInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_crm_deal_input: Annotated[UnifiedCrmDealInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Crm software.""" + diff --git a/src/panora_sdk/models/createcrmengagementop.py b/src/panora_sdk/models/createcrmengagementop.py index 4a4a267..8a828d6 100644 --- a/src/panora_sdk/models/createcrmengagementop.py +++ b/src/panora_sdk/models/createcrmengagementop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedcrmengagementinput import ( - UnifiedCrmEngagementInput, - UnifiedCrmEngagementInputTypedDict, -) +from .unifiedcrmengagementinput import UnifiedCrmEngagementInput, UnifiedCrmEngagementInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateCrmEngagementRequestTypedDict(TypedDict): unified_crm_engagement_input: UnifiedCrmEngagementInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Crm software.""" - + class CreateCrmEngagementRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_crm_engagement_input: Annotated[ - UnifiedCrmEngagementInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_crm_engagement_input: Annotated[UnifiedCrmEngagementInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Crm software.""" + diff --git a/src/panora_sdk/models/createcrmnoteop.py b/src/panora_sdk/models/createcrmnoteop.py index 454ecbe..255c06b 100644 --- a/src/panora_sdk/models/createcrmnoteop.py +++ b/src/panora_sdk/models/createcrmnoteop.py @@ -3,12 +3,7 @@ from __future__ import annotations from .unifiedcrmnoteinput import UnifiedCrmNoteInput, UnifiedCrmNoteInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,12 @@ class CreateCrmNoteRequestTypedDict(TypedDict): unified_crm_note_input: UnifiedCrmNoteInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Crm software.""" - + class CreateCrmNoteRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_crm_note_input: Annotated[ - UnifiedCrmNoteInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_crm_note_input: Annotated[UnifiedCrmNoteInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Crm software.""" + diff --git a/src/panora_sdk/models/createcrmtaskop.py b/src/panora_sdk/models/createcrmtaskop.py index 30318eb..8635e4c 100644 --- a/src/panora_sdk/models/createcrmtaskop.py +++ b/src/panora_sdk/models/createcrmtaskop.py @@ -3,12 +3,7 @@ from __future__ import annotations from .unifiedcrmtaskinput import UnifiedCrmTaskInput, UnifiedCrmTaskInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,12 @@ class CreateCrmTaskRequestTypedDict(TypedDict): unified_crm_task_input: UnifiedCrmTaskInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Crm software.""" - + class CreateCrmTaskRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_crm_task_input: Annotated[ - UnifiedCrmTaskInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_crm_task_input: Annotated[UnifiedCrmTaskInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Crm software.""" + diff --git a/src/panora_sdk/models/createecommerceorderop.py b/src/panora_sdk/models/createecommerceorderop.py index f5e2d1d..28a5ad1 100644 --- a/src/panora_sdk/models/createecommerceorderop.py +++ b/src/panora_sdk/models/createecommerceorderop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedecommerceorderinput import ( - UnifiedEcommerceOrderInput, - UnifiedEcommerceOrderInputTypedDict, -) +from .unifiedecommerceorderinput import UnifiedEcommerceOrderInput, UnifiedEcommerceOrderInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateEcommerceOrderRequestTypedDict(TypedDict): unified_ecommerce_order_input: UnifiedEcommerceOrderInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class CreateEcommerceOrderRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_ecommerce_order_input: Annotated[ - UnifiedEcommerceOrderInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_ecommerce_order_input: Annotated[UnifiedEcommerceOrderInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/createecommerceproductop.py b/src/panora_sdk/models/createecommerceproductop.py index 4b8fb9f..f729bfd 100644 --- a/src/panora_sdk/models/createecommerceproductop.py +++ b/src/panora_sdk/models/createecommerceproductop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedecommerceproductinput import ( - UnifiedEcommerceProductInput, - UnifiedEcommerceProductInputTypedDict, -) +from .unifiedecommerceproductinput import UnifiedEcommerceProductInput, UnifiedEcommerceProductInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateEcommerceProductRequestTypedDict(TypedDict): unified_ecommerce_product_input: UnifiedEcommerceProductInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class CreateEcommerceProductRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_ecommerce_product_input: Annotated[ - UnifiedEcommerceProductInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_ecommerce_product_input: Annotated[UnifiedEcommerceProductInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/createfilestoragefileop.py b/src/panora_sdk/models/createfilestoragefileop.py index 8157d8e..80fa3ac 100644 --- a/src/panora_sdk/models/createfilestoragefileop.py +++ b/src/panora_sdk/models/createfilestoragefileop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedfilestoragefileinput import ( - UnifiedFilestorageFileInput, - UnifiedFilestorageFileInputTypedDict, -) +from .unifiedfilestoragefileinput import UnifiedFilestorageFileInput, UnifiedFilestorageFileInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateFilestorageFileRequestTypedDict(TypedDict): unified_filestorage_file_input: UnifiedFilestorageFileInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class CreateFilestorageFileRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_filestorage_file_input: Annotated[ - UnifiedFilestorageFileInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_filestorage_file_input: Annotated[UnifiedFilestorageFileInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/createfilestoragefolderop.py b/src/panora_sdk/models/createfilestoragefolderop.py index 22c90ce..354d6ef 100644 --- a/src/panora_sdk/models/createfilestoragefolderop.py +++ b/src/panora_sdk/models/createfilestoragefolderop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedfilestoragefolderinput import ( - UnifiedFilestorageFolderInput, - UnifiedFilestorageFolderInputTypedDict, -) +from .unifiedfilestoragefolderinput import UnifiedFilestorageFolderInput, UnifiedFilestorageFolderInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateFilestorageFolderRequestTypedDict(TypedDict): unified_filestorage_folder_input: UnifiedFilestorageFolderInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class CreateFilestorageFolderRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_filestorage_folder_input: Annotated[ - UnifiedFilestorageFolderInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_filestorage_folder_input: Annotated[UnifiedFilestorageFolderInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/createhrisemployeeop.py b/src/panora_sdk/models/createhrisemployeeop.py index 29498e3..22f2507 100644 --- a/src/panora_sdk/models/createhrisemployeeop.py +++ b/src/panora_sdk/models/createhrisemployeeop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhrisemployeeinput import ( - UnifiedHrisEmployeeInput, - UnifiedHrisEmployeeInputTypedDict, -) +from .unifiedhrisemployeeinput import UnifiedHrisEmployeeInput, UnifiedHrisEmployeeInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateHrisEmployeeRequestTypedDict(TypedDict): unified_hris_employee_input: UnifiedHrisEmployeeInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class CreateHrisEmployeeRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_hris_employee_input: Annotated[ - UnifiedHrisEmployeeInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_hris_employee_input: Annotated[UnifiedHrisEmployeeInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/createhristimeoffop.py b/src/panora_sdk/models/createhristimeoffop.py index d8dac5f..6b96497 100644 --- a/src/panora_sdk/models/createhristimeoffop.py +++ b/src/panora_sdk/models/createhristimeoffop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhristimeoffinput import ( - UnifiedHrisTimeoffInput, - UnifiedHrisTimeoffInputTypedDict, -) +from .unifiedhristimeoffinput import UnifiedHrisTimeoffInput, UnifiedHrisTimeoffInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateHrisTimeoffRequestTypedDict(TypedDict): unified_hris_timeoff_input: UnifiedHrisTimeoffInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class CreateHrisTimeoffRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_hris_timeoff_input: Annotated[ - UnifiedHrisTimeoffInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_hris_timeoff_input: Annotated[UnifiedHrisTimeoffInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/createhristimesheetentryop.py b/src/panora_sdk/models/createhristimesheetentryop.py index 2862214..3f4ae60 100644 --- a/src/panora_sdk/models/createhristimesheetentryop.py +++ b/src/panora_sdk/models/createhristimesheetentryop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhristimesheetentryinput import ( - UnifiedHrisTimesheetEntryInput, - UnifiedHrisTimesheetEntryInputTypedDict, -) +from .unifiedhristimesheetentryinput import UnifiedHrisTimesheetEntryInput, UnifiedHrisTimesheetEntryInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateHrisTimesheetentryRequestTypedDict(TypedDict): unified_hris_timesheet_entry_input: UnifiedHrisTimesheetEntryInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class CreateHrisTimesheetentryRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_hris_timesheet_entry_input: Annotated[ - UnifiedHrisTimesheetEntryInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_hris_timesheet_entry_input: Annotated[UnifiedHrisTimesheetEntryInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/createlinkeduserdto.py b/src/panora_sdk/models/createlinkeduserdto.py index 4490592..723def4 100644 --- a/src/panora_sdk/models/createlinkeduserdto.py +++ b/src/panora_sdk/models/createlinkeduserdto.py @@ -11,15 +11,14 @@ class CreateLinkedUserDtoTypedDict(TypedDict): r"""The id of the user in the context of your own software""" alias: Nullable[str] r"""Your company alias""" - + class CreateLinkedUserDto(BaseModel): linked_user_origin_id: str r"""The id of the user in the context of your own software""" - alias: Nullable[str] r"""Your company alias""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -33,19 +32,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/createmarketingautomationactionop.py b/src/panora_sdk/models/createmarketingautomationactionop.py index 7faa544..44bd4d1 100644 --- a/src/panora_sdk/models/createmarketingautomationactionop.py +++ b/src/panora_sdk/models/createmarketingautomationactionop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationactioninput import ( - UnifiedMarketingautomationActionInput, - UnifiedMarketingautomationActionInputTypedDict, -) +from .unifiedmarketingautomationactioninput import UnifiedMarketingautomationActionInput, UnifiedMarketingautomationActionInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,28 +12,15 @@ class CreateMarketingautomationActionRequestTypedDict(TypedDict): x_connection_token: str r"""The connection token""" - unified_marketingautomation_action_input: ( - UnifiedMarketingautomationActionInputTypedDict - ) + unified_marketingautomation_action_input: UnifiedMarketingautomationActionInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class CreateMarketingautomationActionRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_marketingautomation_action_input: Annotated[ - UnifiedMarketingautomationActionInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_marketingautomation_action_input: Annotated[UnifiedMarketingautomationActionInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/createmarketingautomationautomationop.py b/src/panora_sdk/models/createmarketingautomationautomationop.py index 41c4585..3a0c61f 100644 --- a/src/panora_sdk/models/createmarketingautomationautomationop.py +++ b/src/panora_sdk/models/createmarketingautomationautomationop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationautomationinput import ( - UnifiedMarketingautomationAutomationInput, - UnifiedMarketingautomationAutomationInputTypedDict, -) +from .unifiedmarketingautomationautomationinput import UnifiedMarketingautomationAutomationInput, UnifiedMarketingautomationAutomationInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,28 +12,15 @@ class CreateMarketingautomationAutomationRequestTypedDict(TypedDict): x_connection_token: str r"""The connection token""" - unified_marketingautomation_automation_input: ( - UnifiedMarketingautomationAutomationInputTypedDict - ) + unified_marketingautomation_automation_input: UnifiedMarketingautomationAutomationInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class CreateMarketingautomationAutomationRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_marketingautomation_automation_input: Annotated[ - UnifiedMarketingautomationAutomationInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_marketingautomation_automation_input: Annotated[UnifiedMarketingautomationAutomationInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/createmarketingautomationcampaignop.py b/src/panora_sdk/models/createmarketingautomationcampaignop.py index 72b7388..477d570 100644 --- a/src/panora_sdk/models/createmarketingautomationcampaignop.py +++ b/src/panora_sdk/models/createmarketingautomationcampaignop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationcampaigninput import ( - UnifiedMarketingautomationCampaignInput, - UnifiedMarketingautomationCampaignInputTypedDict, -) +from .unifiedmarketingautomationcampaigninput import UnifiedMarketingautomationCampaignInput, UnifiedMarketingautomationCampaignInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,28 +12,15 @@ class CreateMarketingautomationCampaignRequestTypedDict(TypedDict): x_connection_token: str r"""The connection token""" - unified_marketingautomation_campaign_input: ( - UnifiedMarketingautomationCampaignInputTypedDict - ) + unified_marketingautomation_campaign_input: UnifiedMarketingautomationCampaignInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class CreateMarketingautomationCampaignRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_marketingautomation_campaign_input: Annotated[ - UnifiedMarketingautomationCampaignInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_marketingautomation_campaign_input: Annotated[UnifiedMarketingautomationCampaignInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/createmarketingautomationcontactop.py b/src/panora_sdk/models/createmarketingautomationcontactop.py index 16d416f..1018fc4 100644 --- a/src/panora_sdk/models/createmarketingautomationcontactop.py +++ b/src/panora_sdk/models/createmarketingautomationcontactop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationcontactinput import ( - UnifiedMarketingautomationContactInput, - UnifiedMarketingautomationContactInputTypedDict, -) +from .unifiedmarketingautomationcontactinput import UnifiedMarketingautomationContactInput, UnifiedMarketingautomationContactInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,28 +12,15 @@ class CreateMarketingAutomationContactRequestTypedDict(TypedDict): x_connection_token: str r"""The connection token""" - unified_marketingautomation_contact_input: ( - UnifiedMarketingautomationContactInputTypedDict - ) + unified_marketingautomation_contact_input: UnifiedMarketingautomationContactInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class CreateMarketingAutomationContactRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_marketingautomation_contact_input: Annotated[ - UnifiedMarketingautomationContactInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_marketingautomation_contact_input: Annotated[UnifiedMarketingautomationContactInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/createmarketingautomationlistop.py b/src/panora_sdk/models/createmarketingautomationlistop.py index 6285b2a..596c330 100644 --- a/src/panora_sdk/models/createmarketingautomationlistop.py +++ b/src/panora_sdk/models/createmarketingautomationlistop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationlistinput import ( - UnifiedMarketingautomationListInput, - UnifiedMarketingautomationListInputTypedDict, -) +from .unifiedmarketingautomationlistinput import UnifiedMarketingautomationListInput, UnifiedMarketingautomationListInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateMarketingautomationListRequestTypedDict(TypedDict): unified_marketingautomation_list_input: UnifiedMarketingautomationListInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class CreateMarketingautomationListRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_marketingautomation_list_input: Annotated[ - UnifiedMarketingautomationListInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_marketingautomation_list_input: Annotated[UnifiedMarketingautomationListInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/createmarketingautomationtemplateop.py b/src/panora_sdk/models/createmarketingautomationtemplateop.py index 973a92a..f87cbe2 100644 --- a/src/panora_sdk/models/createmarketingautomationtemplateop.py +++ b/src/panora_sdk/models/createmarketingautomationtemplateop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationtemplateinput import ( - UnifiedMarketingautomationTemplateInput, - UnifiedMarketingautomationTemplateInputTypedDict, -) +from .unifiedmarketingautomationtemplateinput import UnifiedMarketingautomationTemplateInput, UnifiedMarketingautomationTemplateInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,28 +12,15 @@ class CreateMarketingautomationTemplateRequestTypedDict(TypedDict): x_connection_token: str r"""The connection token""" - unified_marketingautomation_template_input: ( - UnifiedMarketingautomationTemplateInputTypedDict - ) + unified_marketingautomation_template_input: UnifiedMarketingautomationTemplateInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class CreateMarketingautomationTemplateRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_marketingautomation_template_input: Annotated[ - UnifiedMarketingautomationTemplateInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_marketingautomation_template_input: Annotated[UnifiedMarketingautomationTemplateInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/createprojectdto.py b/src/panora_sdk/models/createprojectdto.py index 10c4ba3..2b0ffcf 100644 --- a/src/panora_sdk/models/createprojectdto.py +++ b/src/panora_sdk/models/createprojectdto.py @@ -13,14 +13,13 @@ class CreateProjectDtoTypedDict(TypedDict): r"""The user ID""" id_organization: NotRequired[str] r"""The organization ID""" - + class CreateProjectDto(BaseModel): name: str r"""The name of the project""" - id_user: str r"""The user ID""" - id_organization: Optional[str] = None r"""The organization ID""" + diff --git a/src/panora_sdk/models/createticketingattachmentop.py b/src/panora_sdk/models/createticketingattachmentop.py index b31c768..77dcf7d 100644 --- a/src/panora_sdk/models/createticketingattachmentop.py +++ b/src/panora_sdk/models/createticketingattachmentop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingattachmentinput import ( - UnifiedTicketingAttachmentInput, - UnifiedTicketingAttachmentInputTypedDict, -) +from .unifiedticketingattachmentinput import UnifiedTicketingAttachmentInput, UnifiedTicketingAttachmentInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateTicketingAttachmentRequestTypedDict(TypedDict): unified_ticketing_attachment_input: UnifiedTicketingAttachmentInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Ticketing software.""" - + class CreateTicketingAttachmentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_ticketing_attachment_input: Annotated[ - UnifiedTicketingAttachmentInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_ticketing_attachment_input: Annotated[UnifiedTicketingAttachmentInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ticketing software.""" + diff --git a/src/panora_sdk/models/createticketingcommentop.py b/src/panora_sdk/models/createticketingcommentop.py index 8b64941..ebc1fe4 100644 --- a/src/panora_sdk/models/createticketingcommentop.py +++ b/src/panora_sdk/models/createticketingcommentop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingcommentinput import ( - UnifiedTicketingCommentInput, - UnifiedTicketingCommentInputTypedDict, -) +from .unifiedticketingcommentinput import UnifiedTicketingCommentInput, UnifiedTicketingCommentInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateTicketingCommentRequestTypedDict(TypedDict): unified_ticketing_comment_input: UnifiedTicketingCommentInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Ticketing software.""" - + class CreateTicketingCommentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_ticketing_comment_input: Annotated[ - UnifiedTicketingCommentInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_ticketing_comment_input: Annotated[UnifiedTicketingCommentInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ticketing software.""" + diff --git a/src/panora_sdk/models/createticketingticketop.py b/src/panora_sdk/models/createticketingticketop.py index d8e5a63..69e7c26 100644 --- a/src/panora_sdk/models/createticketingticketop.py +++ b/src/panora_sdk/models/createticketingticketop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingticketinput import ( - UnifiedTicketingTicketInput, - UnifiedTicketingTicketInputTypedDict, -) +from .unifiedticketingticketinput import UnifiedTicketingTicketInput, UnifiedTicketingTicketInputTypedDict from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - QueryParamMetadata, - RequestMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -23,23 +15,12 @@ class CreateTicketingTicketRequestTypedDict(TypedDict): unified_ticketing_ticket_input: UnifiedTicketingTicketInputTypedDict remote_data: NotRequired[bool] r"""Set to true to include data from the original Ticketing software.""" - + class CreateTicketingTicketRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - unified_ticketing_ticket_input: Annotated[ - UnifiedTicketingTicketInput, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + unified_ticketing_ticket_input: Annotated[UnifiedTicketingTicketInput, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ticketing software.""" + diff --git a/src/panora_sdk/models/customfieldcreatedto.py b/src/panora_sdk/models/customfieldcreatedto.py index 8cb82e7..800128c 100644 --- a/src/panora_sdk/models/customfieldcreatedto.py +++ b/src/panora_sdk/models/customfieldcreatedto.py @@ -18,14 +18,11 @@ class CustomFieldCreateDtoObjectTypeOwner(str, Enum): STAGE = "stage" USER = "user" - class CustomFieldCreateDtoDataType(str, Enum): r"""The data type of the custom field""" - STRING = "string" NUMBER = "number" - class CustomFieldCreateDtoTypedDict(TypedDict): object_type_owner: Nullable[CustomFieldCreateDtoObjectTypeOwner] name: Nullable[str] @@ -40,41 +37,27 @@ class CustomFieldCreateDtoTypedDict(TypedDict): r"""The name of the source software/provider""" linked_user_id: Nullable[str] r"""The linked user ID""" - + class CustomFieldCreateDto(BaseModel): object_type_owner: Nullable[CustomFieldCreateDtoObjectTypeOwner] - name: Nullable[str] r"""The name of the custom field""" - description: Nullable[str] r"""The description of the custom field""" - data_type: Nullable[CustomFieldCreateDtoDataType] r"""The data type of the custom field""" - source_custom_field_id: Nullable[str] r"""The source custom field ID""" - source_provider: Nullable[str] r"""The name of the source software/provider""" - linked_user_id: Nullable[str] r"""The linked user ID""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] - nullable_fields = [ - "object_type_owner", - "name", - "description", - "data_type", - "source_custom_field_id", - "source_provider", - "linked_user_id", - ] + nullable_fields = ["object_type_owner", "name", "description", "data_type", "source_custom_field_id", "source_provider", "linked_user_id"] null_default_fields = [] serialized = handler(self) @@ -84,19 +67,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/customfieldresponse.py b/src/panora_sdk/models/customfieldresponse.py index b437c9d..d026bd9 100644 --- a/src/panora_sdk/models/customfieldresponse.py +++ b/src/panora_sdk/models/customfieldresponse.py @@ -10,11 +10,9 @@ class CustomFieldResponseDataType(str, Enum): r"""Attribute Data Type""" - STRING = "string" NUMBER = "number" - class CustomFieldResponseTypedDict(TypedDict): id_attribute: Nullable[str] r"""Attribute Id""" @@ -44,70 +42,42 @@ class CustomFieldResponseTypedDict(TypedDict): r"""Attribute Created Date""" modified_at: Nullable[datetime] r"""Attribute Modified Date""" - + class CustomFieldResponse(BaseModel): id_attribute: Nullable[str] r"""Attribute Id""" - status: Nullable[str] r"""Attribute Status""" - ressource_owner_type: Nullable[str] r"""Attribute Ressource Owner Type""" - slug: Nullable[str] r"""Attribute Slug""" - description: Nullable[str] r"""Attribute Description""" - data_type: Nullable[CustomFieldResponseDataType] r"""Attribute Data Type""" - remote_id: Nullable[str] r"""Attribute Remote Id""" - source: Nullable[str] r"""Attribute Source""" - id_entity: Nullable[str] r"""Attribute Entity Id""" - id_project: Nullable[str] r"""Attribute Project Id""" - scope: Nullable[str] r"""Attribute Scope""" - id_consumer: Nullable[str] r"""Attribute Consumer Id""" - created_at: Nullable[datetime] r"""Attribute Created Date""" - modified_at: Nullable[datetime] r"""Attribute Modified Date""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] - nullable_fields = [ - "id_attribute", - "status", - "ressource_owner_type", - "slug", - "description", - "data_type", - "remote_id", - "source", - "id_entity", - "id_project", - "scope", - "id_consumer", - "created_at", - "modified_at", - ] + nullable_fields = ["id_attribute", "status", "ressource_owner_type", "slug", "description", "data_type", "remote_id", "source", "id_entity", "id_project", "scope", "id_consumer", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -117,19 +87,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/deductionitem.py b/src/panora_sdk/models/deductionitem.py index d1f5e62..a4c0a47 100644 --- a/src/panora_sdk/models/deductionitem.py +++ b/src/panora_sdk/models/deductionitem.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -20,18 +14,16 @@ class DeductionItemTypedDict(TypedDict): r"""The amount of employee deduction""" company_deduction: NotRequired[Nullable[float]] r"""The amount of company deduction""" - + class DeductionItem(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the deduction""" - employee_deduction: OptionalNullable[float] = UNSET r"""The amount of employee deduction""" - company_deduction: OptionalNullable[float] = UNSET r"""The amount of company deduction""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["name", "employee_deduction", "company_deduction"] @@ -45,19 +37,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/definetargetfielddto.py b/src/panora_sdk/models/definetargetfielddto.py index 3af959c..9b3f669 100644 --- a/src/panora_sdk/models/definetargetfielddto.py +++ b/src/panora_sdk/models/definetargetfielddto.py @@ -18,14 +18,11 @@ class ObjectTypeOwner(str, Enum): STAGE = "stage" USER = "user" - class DataType(str, Enum): r"""The data type of the target field""" - STRING = "string" NUMBER = "number" - class DefineTargetFieldDtoTypedDict(TypedDict): object_type_owner: Nullable[ObjectTypeOwner] name: Nullable[str] @@ -34,20 +31,17 @@ class DefineTargetFieldDtoTypedDict(TypedDict): r"""The description of the target field""" data_type: Nullable[DataType] r"""The data type of the target field""" - + class DefineTargetFieldDto(BaseModel): object_type_owner: Nullable[ObjectTypeOwner] - name: Nullable[str] r"""The name of the target field""" - description: Nullable[str] r"""The description of the target field""" - data_type: Nullable[DataType] r"""The data type of the target field""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -61,19 +55,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/deleteop.py b/src/panora_sdk/models/deleteop.py index 2bbf657..323f96c 100644 --- a/src/panora_sdk/models/deleteop.py +++ b/src/panora_sdk/models/deleteop.py @@ -10,10 +10,9 @@ class DeleteRequestTypedDict(TypedDict): id: str r"""id of the webhook to delete.""" - + class DeleteRequest(BaseModel): - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the webhook to delete.""" + diff --git a/src/panora_sdk/models/earningitem.py b/src/panora_sdk/models/earningitem.py index 678a1e0..ef9a694 100644 --- a/src/panora_sdk/models/earningitem.py +++ b/src/panora_sdk/models/earningitem.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -18,15 +12,14 @@ class EarningItemTypedDict(TypedDict): r"""The amount of the earning""" type: NotRequired[Nullable[str]] r"""The type of the earning""" - + class EarningItem(BaseModel): amount: OptionalNullable[float] = UNSET r"""The amount of the earning""" - type: OptionalNullable[str] = UNSET r"""The type of the earning""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["amount", "type"] @@ -40,19 +33,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/email.py b/src/panora_sdk/models/email.py index 71ca767..fa745a1 100644 --- a/src/panora_sdk/models/email.py +++ b/src/panora_sdk/models/email.py @@ -2,13 +2,7 @@ from __future__ import annotations from enum import Enum -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,11 +10,9 @@ class OwnerType(str, Enum): r"""The owner type of an email""" - COMPANY = "COMPANY" CONTACT = "CONTACT" - class EmailTypedDict(TypedDict): email_address: Nullable[str] r"""The email address""" @@ -28,18 +20,16 @@ class EmailTypedDict(TypedDict): r"""The email address type. Authorized values are either PERSONAL or WORK.""" owner_type: NotRequired[Nullable[OwnerType]] r"""The owner type of an email""" - + class Email(BaseModel): email_address: Nullable[str] r"""The email address""" - email_address_type: Nullable[str] r"""The email address type. Authorized values are either PERSONAL or WORK.""" - owner_type: OptionalNullable[OwnerType] = UNSET r"""The owner type of an email""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["owner_type"] @@ -53,19 +43,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/eventresponse.py b/src/panora_sdk/models/eventresponse.py index 35f2a04..562071b 100644 --- a/src/panora_sdk/models/eventresponse.py +++ b/src/panora_sdk/models/eventresponse.py @@ -9,7 +9,6 @@ class Type(str, Enum): r"""Scope of the event""" - CRM_CONTACT_CREATED = "crm.contact.created" CRM_CONTACT_PULLED = "crm.contact.pulled" CRM_COMPANY_CREATED = "crm.company.created" @@ -67,23 +66,18 @@ class Type(str, Enum): FILESTORAGE_SHAREDLINK_PULLED = "filestorage.sharedlink.pulled" CONNECTION_CREATED = "connection.created" - class EventResponseStatus(str, Enum): r"""Status of the event""" - SUCCESS = "success" FAIL = "fail" - class Method(str, Enum): r"""HTTP method used for the event""" - GET = "GET" POST = "POST" PUT = "PUT" DELETE = "DELETE" - class EventResponseTypedDict(TypedDict): id_event: str r"""Unique identifier for the event""" @@ -107,38 +101,29 @@ class EventResponseTypedDict(TypedDict): r"""Timestamp of the event""" id_linked_user: str r"""Linked user ID associated with the event""" - + class EventResponse(BaseModel): id_event: str r"""Unique identifier for the event""" - id_connection: str r"""Connection ID associated with the event""" - id_project: str r"""Project ID associated with the event""" - type: Type r"""Scope of the event""" - status: EventResponseStatus r"""Status of the event""" - direction: str r"""Direction of the event""" - method: Method r"""HTTP method used for the event""" - url: str r"""URL associated with the event""" - provider: str r"""Provider associated with the event""" - timestamp: datetime r"""Timestamp of the event""" - id_linked_user: str r"""Linked user ID associated with the event""" + diff --git a/src/panora_sdk/models/getpanoracoreeventsop.py b/src/panora_sdk/models/getpanoracoreeventsop.py index 106c8f4..022c819 100644 --- a/src/panora_sdk/models/getpanoracoreeventsop.py +++ b/src/panora_sdk/models/getpanoracoreeventsop.py @@ -10,15 +10,9 @@ class GetPanoraCoreEventsRequestTypedDict(TypedDict): page: NotRequired[float] limit: NotRequired[float] - + class GetPanoraCoreEventsRequest(BaseModel): - page: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 1 - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 10 + page: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 1 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 10 + diff --git a/src/panora_sdk/models/getretriedrequestresponseop.py b/src/panora_sdk/models/getretriedrequestresponseop.py index b301d17..db731d0 100644 --- a/src/panora_sdk/models/getretriedrequestresponseop.py +++ b/src/panora_sdk/models/getretriedrequestresponseop.py @@ -11,12 +11,9 @@ class GetRetriedRequestResponseRequestTypedDict(TypedDict): retry_id: str r"""id of the retryJob returned when you initiated a passthrough request.""" - + class GetRetriedRequestResponseRequest(BaseModel): - retry_id: Annotated[ - str, - pydantic.Field(alias="retryId"), - FieldMetadata(path=PathParamMetadata(style="simple", explode=False)), - ] + retry_id: Annotated[str, pydantic.Field(alias="retryId"), FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the retryJob returned when you initiated a passthrough request.""" + diff --git a/src/panora_sdk/models/lineitem.py b/src/panora_sdk/models/lineitem.py index e3480e2..3b81738 100644 --- a/src/panora_sdk/models/lineitem.py +++ b/src/panora_sdk/models/lineitem.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Optional, TypedDict from typing_extensions import NotRequired @@ -33,58 +27,32 @@ class LineItemTypedDict(TypedDict): r"""The created date of the report item""" modified_at: NotRequired[datetime] r"""The last modified date of the report item""" - + class LineItem(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the report item""" - value: OptionalNullable[float] = UNSET r"""The value of the report item""" - type: OptionalNullable[str] = UNSET r"""The type of the report item""" - parent_item: OptionalNullable[str] = UNSET r"""The UUID of the parent item""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the report item""" - remote_generated_at: OptionalNullable[datetime] = UNSET r"""The date when the report item was generated in the remote system""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info object""" - created_at: Optional[datetime] = None r"""The created date of the report item""" - modified_at: Optional[datetime] = None r"""The last modified date of the report item""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "value", - "type", - "parent_item", - "remote_id", - "remote_generated_at", - "company_info_id", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "value", - "type", - "parent_item", - "remote_id", - "remote_generated_at", - "company_info_id", - ] + optional_fields = ["name", "value", "type", "parent_item", "remote_id", "remote_generated_at", "company_info_id", "created_at", "modified_at"] + nullable_fields = ["name", "value", "type", "parent_item", "remote_id", "remote_generated_at", "company_info_id"] null_default_fields = [] serialized = handler(self) @@ -94,19 +62,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/linkeduserresponse.py b/src/panora_sdk/models/linkeduserresponse.py index ea73b62..af0b514 100644 --- a/src/panora_sdk/models/linkeduserresponse.py +++ b/src/panora_sdk/models/linkeduserresponse.py @@ -11,26 +11,18 @@ class LinkedUserResponseTypedDict(TypedDict): linked_user_origin_id: Nullable[str] alias: Nullable[str] id_project: Nullable[str] - + class LinkedUserResponse(BaseModel): id_linked_user: Nullable[str] - linked_user_origin_id: Nullable[str] - alias: Nullable[str] - id_project: Nullable[str] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] - nullable_fields = [ - "id_linked_user", - "linked_user_origin_id", - "alias", - "id_project", - ] + nullable_fields = ["id_linked_user", "linked_user_origin_id", "alias", "id_project"] null_default_fields = [] serialized = handler(self) @@ -40,19 +32,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/listaccountingaccountsop.py b/src/panora_sdk/models/listaccountingaccountsop.py index 95284b3..8de4a50 100644 --- a/src/panora_sdk/models/listaccountingaccountsop.py +++ b/src/panora_sdk/models/listaccountingaccountsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingaccountoutput import ( - UnifiedAccountingAccountOutput, - UnifiedAccountingAccountOutputTypedDict, -) +from .unifiedaccountingaccountoutput import UnifiedAccountingAccountOutput, UnifiedAccountingAccountOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingAccountsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingAccountsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingAccountsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingAccountOutputTypedDict] - + class ListAccountingAccountsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingAccountOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingAccountsResponseTypedDict(TypedDict): result: ListAccountingAccountsResponseBodyTypedDict - + class ListAccountingAccountsResponse(BaseModel): next: Callable[[], Optional[ListAccountingAccountsResponse]] - + result: ListAccountingAccountsResponseBody + diff --git a/src/panora_sdk/models/listaccountingaddressop.py b/src/panora_sdk/models/listaccountingaddressop.py index 133cce1..c7f4a2d 100644 --- a/src/panora_sdk/models/listaccountingaddressop.py +++ b/src/panora_sdk/models/listaccountingaddressop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingaddressoutput import ( - UnifiedAccountingAddressOutput, - UnifiedAccountingAddressOutputTypedDict, -) +from .unifiedaccountingaddressoutput import UnifiedAccountingAddressOutput, UnifiedAccountingAddressOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingAddressRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingAddressRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingAddressResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingAddressOutputTypedDict] - + class ListAccountingAddressResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingAddressOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingAddressResponseTypedDict(TypedDict): result: ListAccountingAddressResponseBodyTypedDict - + class ListAccountingAddressResponse(BaseModel): next: Callable[[], Optional[ListAccountingAddressResponse]] - + result: ListAccountingAddressResponseBody + diff --git a/src/panora_sdk/models/listaccountingattachmentsop.py b/src/panora_sdk/models/listaccountingattachmentsop.py index b7ce2a5..e889839 100644 --- a/src/panora_sdk/models/listaccountingattachmentsop.py +++ b/src/panora_sdk/models/listaccountingattachmentsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingattachmentoutput import ( - UnifiedAccountingAttachmentOutput, - UnifiedAccountingAttachmentOutputTypedDict, -) +from .unifiedaccountingattachmentoutput import UnifiedAccountingAttachmentOutput, UnifiedAccountingAttachmentOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingAttachmentsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingAttachmentsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingAttachmentsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingAttachmentOutputTypedDict] - + class ListAccountingAttachmentsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingAttachmentOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingAttachmentsResponseTypedDict(TypedDict): result: ListAccountingAttachmentsResponseBodyTypedDict - + class ListAccountingAttachmentsResponse(BaseModel): next: Callable[[], Optional[ListAccountingAttachmentsResponse]] - + result: ListAccountingAttachmentsResponseBody + diff --git a/src/panora_sdk/models/listaccountingbalancesheetsop.py b/src/panora_sdk/models/listaccountingbalancesheetsop.py index 6934056..d3445df 100644 --- a/src/panora_sdk/models/listaccountingbalancesheetsop.py +++ b/src/panora_sdk/models/listaccountingbalancesheetsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingbalancesheetoutput import ( - UnifiedAccountingBalancesheetOutput, - UnifiedAccountingBalancesheetOutputTypedDict, -) +from .unifiedaccountingbalancesheetoutput import UnifiedAccountingBalancesheetOutput, UnifiedAccountingBalancesheetOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingBalanceSheetsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingBalanceSheetsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingBalanceSheetsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingBalancesheetOutputTypedDict] - + class ListAccountingBalanceSheetsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingBalancesheetOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingBalanceSheetsResponseTypedDict(TypedDict): result: ListAccountingBalanceSheetsResponseBodyTypedDict - + class ListAccountingBalanceSheetsResponse(BaseModel): next: Callable[[], Optional[ListAccountingBalanceSheetsResponse]] - + result: ListAccountingBalanceSheetsResponseBody + diff --git a/src/panora_sdk/models/listaccountingcashflowstatementop.py b/src/panora_sdk/models/listaccountingcashflowstatementop.py index a2ec56a..d762fc4 100644 --- a/src/panora_sdk/models/listaccountingcashflowstatementop.py +++ b/src/panora_sdk/models/listaccountingcashflowstatementop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingcashflowstatementoutput import ( - UnifiedAccountingCashflowstatementOutput, - UnifiedAccountingCashflowstatementOutputTypedDict, -) +from .unifiedaccountingcashflowstatementoutput import UnifiedAccountingCashflowstatementOutput, UnifiedAccountingCashflowstatementOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingCashflowStatementRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingCashflowStatementRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingCashflowStatementResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingCashflowstatementOutputTypedDict] - + class ListAccountingCashflowStatementResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingCashflowstatementOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingCashflowStatementResponseTypedDict(TypedDict): result: ListAccountingCashflowStatementResponseBodyTypedDict - + class ListAccountingCashflowStatementResponse(BaseModel): next: Callable[[], Optional[ListAccountingCashflowStatementResponse]] - + result: ListAccountingCashflowStatementResponseBody + diff --git a/src/panora_sdk/models/listaccountingcompanyinfosop.py b/src/panora_sdk/models/listaccountingcompanyinfosop.py index 95591f7..f1973a0 100644 --- a/src/panora_sdk/models/listaccountingcompanyinfosop.py +++ b/src/panora_sdk/models/listaccountingcompanyinfosop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingcompanyinfooutput import ( - UnifiedAccountingCompanyinfoOutput, - UnifiedAccountingCompanyinfoOutputTypedDict, -) +from .unifiedaccountingcompanyinfooutput import UnifiedAccountingCompanyinfoOutput, UnifiedAccountingCompanyinfoOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingCompanyInfosRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingCompanyInfosRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingCompanyInfosResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingCompanyinfoOutputTypedDict] - + class ListAccountingCompanyInfosResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingCompanyinfoOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingCompanyInfosResponseTypedDict(TypedDict): result: ListAccountingCompanyInfosResponseBodyTypedDict - + class ListAccountingCompanyInfosResponse(BaseModel): next: Callable[[], Optional[ListAccountingCompanyInfosResponse]] - + result: ListAccountingCompanyInfosResponseBody + diff --git a/src/panora_sdk/models/listaccountingcontactsop.py b/src/panora_sdk/models/listaccountingcontactsop.py index 40ee928..c2e3988 100644 --- a/src/panora_sdk/models/listaccountingcontactsop.py +++ b/src/panora_sdk/models/listaccountingcontactsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingcontactoutput import ( - UnifiedAccountingContactOutput, - UnifiedAccountingContactOutputTypedDict, -) +from .unifiedaccountingcontactoutput import UnifiedAccountingContactOutput, UnifiedAccountingContactOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingContactsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingContactsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingContactsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingContactOutputTypedDict] - + class ListAccountingContactsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingContactOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingContactsResponseTypedDict(TypedDict): result: ListAccountingContactsResponseBodyTypedDict - + class ListAccountingContactsResponse(BaseModel): next: Callable[[], Optional[ListAccountingContactsResponse]] - + result: ListAccountingContactsResponseBody + diff --git a/src/panora_sdk/models/listaccountingcreditnoteop.py b/src/panora_sdk/models/listaccountingcreditnoteop.py index 6a67028..a110553 100644 --- a/src/panora_sdk/models/listaccountingcreditnoteop.py +++ b/src/panora_sdk/models/listaccountingcreditnoteop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingcreditnoteoutput import ( - UnifiedAccountingCreditnoteOutput, - UnifiedAccountingCreditnoteOutputTypedDict, -) +from .unifiedaccountingcreditnoteoutput import UnifiedAccountingCreditnoteOutput, UnifiedAccountingCreditnoteOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingCreditNoteRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingCreditNoteRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingCreditNoteResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingCreditnoteOutputTypedDict] - + class ListAccountingCreditNoteResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingCreditnoteOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingCreditNoteResponseTypedDict(TypedDict): result: ListAccountingCreditNoteResponseBodyTypedDict - + class ListAccountingCreditNoteResponse(BaseModel): next: Callable[[], Optional[ListAccountingCreditNoteResponse]] - + result: ListAccountingCreditNoteResponseBody + diff --git a/src/panora_sdk/models/listaccountingexpenseop.py b/src/panora_sdk/models/listaccountingexpenseop.py index ee61494..1caca86 100644 --- a/src/panora_sdk/models/listaccountingexpenseop.py +++ b/src/panora_sdk/models/listaccountingexpenseop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingexpenseoutput import ( - UnifiedAccountingExpenseOutput, - UnifiedAccountingExpenseOutputTypedDict, -) +from .unifiedaccountingexpenseoutput import UnifiedAccountingExpenseOutput, UnifiedAccountingExpenseOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingExpenseRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingExpenseRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingExpenseResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingExpenseOutputTypedDict] - + class ListAccountingExpenseResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingExpenseOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingExpenseResponseTypedDict(TypedDict): result: ListAccountingExpenseResponseBodyTypedDict - + class ListAccountingExpenseResponse(BaseModel): next: Callable[[], Optional[ListAccountingExpenseResponse]] - + result: ListAccountingExpenseResponseBody + diff --git a/src/panora_sdk/models/listaccountingincomestatementop.py b/src/panora_sdk/models/listaccountingincomestatementop.py index 20cb4e7..68b0c8a 100644 --- a/src/panora_sdk/models/listaccountingincomestatementop.py +++ b/src/panora_sdk/models/listaccountingincomestatementop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingincomestatementoutput import ( - UnifiedAccountingIncomestatementOutput, - UnifiedAccountingIncomestatementOutputTypedDict, -) +from .unifiedaccountingincomestatementoutput import UnifiedAccountingIncomestatementOutput, UnifiedAccountingIncomestatementOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingIncomeStatementRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingIncomeStatementRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingIncomeStatementResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingIncomestatementOutputTypedDict] - + class ListAccountingIncomeStatementResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingIncomestatementOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingIncomeStatementResponseTypedDict(TypedDict): result: ListAccountingIncomeStatementResponseBodyTypedDict - + class ListAccountingIncomeStatementResponse(BaseModel): next: Callable[[], Optional[ListAccountingIncomeStatementResponse]] - + result: ListAccountingIncomeStatementResponseBody + diff --git a/src/panora_sdk/models/listaccountinginvoiceop.py b/src/panora_sdk/models/listaccountinginvoiceop.py index d043939..067f4b7 100644 --- a/src/panora_sdk/models/listaccountinginvoiceop.py +++ b/src/panora_sdk/models/listaccountinginvoiceop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountinginvoiceoutput import ( - UnifiedAccountingInvoiceOutput, - UnifiedAccountingInvoiceOutputTypedDict, -) +from .unifiedaccountinginvoiceoutput import UnifiedAccountingInvoiceOutput, UnifiedAccountingInvoiceOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingInvoiceRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingInvoiceRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingInvoiceResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingInvoiceOutputTypedDict] - + class ListAccountingInvoiceResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingInvoiceOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingInvoiceResponseTypedDict(TypedDict): result: ListAccountingInvoiceResponseBodyTypedDict - + class ListAccountingInvoiceResponse(BaseModel): next: Callable[[], Optional[ListAccountingInvoiceResponse]] - + result: ListAccountingInvoiceResponseBody + diff --git a/src/panora_sdk/models/listaccountingitemop.py b/src/panora_sdk/models/listaccountingitemop.py index 74f4b10..8450156 100644 --- a/src/panora_sdk/models/listaccountingitemop.py +++ b/src/panora_sdk/models/listaccountingitemop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingitemoutput import ( - UnifiedAccountingItemOutput, - UnifiedAccountingItemOutputTypedDict, -) +from .unifiedaccountingitemoutput import UnifiedAccountingItemOutput, UnifiedAccountingItemOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingItemRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingItemRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingItemResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingItemOutputTypedDict] - + class ListAccountingItemResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingItemOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingItemResponseTypedDict(TypedDict): result: ListAccountingItemResponseBodyTypedDict - + class ListAccountingItemResponse(BaseModel): next: Callable[[], Optional[ListAccountingItemResponse]] - + result: ListAccountingItemResponseBody + diff --git a/src/panora_sdk/models/listaccountingjournalentryop.py b/src/panora_sdk/models/listaccountingjournalentryop.py index 79b832a..8488d2f 100644 --- a/src/panora_sdk/models/listaccountingjournalentryop.py +++ b/src/panora_sdk/models/listaccountingjournalentryop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingjournalentryoutput import ( - UnifiedAccountingJournalentryOutput, - UnifiedAccountingJournalentryOutputTypedDict, -) +from .unifiedaccountingjournalentryoutput import UnifiedAccountingJournalentryOutput, UnifiedAccountingJournalentryOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingJournalEntryRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingJournalEntryRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingJournalEntryResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingJournalentryOutputTypedDict] - + class ListAccountingJournalEntryResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingJournalentryOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingJournalEntryResponseTypedDict(TypedDict): result: ListAccountingJournalEntryResponseBodyTypedDict - + class ListAccountingJournalEntryResponse(BaseModel): next: Callable[[], Optional[ListAccountingJournalEntryResponse]] - + result: ListAccountingJournalEntryResponseBody + diff --git a/src/panora_sdk/models/listaccountingpaymentop.py b/src/panora_sdk/models/listaccountingpaymentop.py index 238e2f6..8148525 100644 --- a/src/panora_sdk/models/listaccountingpaymentop.py +++ b/src/panora_sdk/models/listaccountingpaymentop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingpaymentoutput import ( - UnifiedAccountingPaymentOutput, - UnifiedAccountingPaymentOutputTypedDict, -) +from .unifiedaccountingpaymentoutput import UnifiedAccountingPaymentOutput, UnifiedAccountingPaymentOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingPaymentRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingPaymentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingPaymentResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingPaymentOutputTypedDict] - + class ListAccountingPaymentResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingPaymentOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingPaymentResponseTypedDict(TypedDict): result: ListAccountingPaymentResponseBodyTypedDict - + class ListAccountingPaymentResponse(BaseModel): next: Callable[[], Optional[ListAccountingPaymentResponse]] - + result: ListAccountingPaymentResponseBody + diff --git a/src/panora_sdk/models/listaccountingphonenumberop.py b/src/panora_sdk/models/listaccountingphonenumberop.py index 54df165..8b00e2a 100644 --- a/src/panora_sdk/models/listaccountingphonenumberop.py +++ b/src/panora_sdk/models/listaccountingphonenumberop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingphonenumberoutput import ( - UnifiedAccountingPhonenumberOutput, - UnifiedAccountingPhonenumberOutputTypedDict, -) +from .unifiedaccountingphonenumberoutput import UnifiedAccountingPhonenumberOutput, UnifiedAccountingPhonenumberOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingPhonenumberRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingPhonenumberRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingPhonenumberResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingPhonenumberOutputTypedDict] - + class ListAccountingPhonenumberResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingPhonenumberOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingPhonenumberResponseTypedDict(TypedDict): result: ListAccountingPhonenumberResponseBodyTypedDict - + class ListAccountingPhonenumberResponse(BaseModel): next: Callable[[], Optional[ListAccountingPhonenumberResponse]] - + result: ListAccountingPhonenumberResponseBody + diff --git a/src/panora_sdk/models/listaccountingpurchaseorderop.py b/src/panora_sdk/models/listaccountingpurchaseorderop.py index b280e41..ebc0ea1 100644 --- a/src/panora_sdk/models/listaccountingpurchaseorderop.py +++ b/src/panora_sdk/models/listaccountingpurchaseorderop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingpurchaseorderoutput import ( - UnifiedAccountingPurchaseorderOutput, - UnifiedAccountingPurchaseorderOutputTypedDict, -) +from .unifiedaccountingpurchaseorderoutput import UnifiedAccountingPurchaseorderOutput, UnifiedAccountingPurchaseorderOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingPurchaseOrderRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingPurchaseOrderRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingPurchaseOrderResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingPurchaseorderOutputTypedDict] - + class ListAccountingPurchaseOrderResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingPurchaseorderOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingPurchaseOrderResponseTypedDict(TypedDict): result: ListAccountingPurchaseOrderResponseBodyTypedDict - + class ListAccountingPurchaseOrderResponse(BaseModel): next: Callable[[], Optional[ListAccountingPurchaseOrderResponse]] - + result: ListAccountingPurchaseOrderResponseBody + diff --git a/src/panora_sdk/models/listaccountingtaxrateop.py b/src/panora_sdk/models/listaccountingtaxrateop.py index bdb1a97..c7a3bce 100644 --- a/src/panora_sdk/models/listaccountingtaxrateop.py +++ b/src/panora_sdk/models/listaccountingtaxrateop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingtaxrateoutput import ( - UnifiedAccountingTaxrateOutput, - UnifiedAccountingTaxrateOutputTypedDict, -) +from .unifiedaccountingtaxrateoutput import UnifiedAccountingTaxrateOutput, UnifiedAccountingTaxrateOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingTaxRateRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingTaxRateRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingTaxRateResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingTaxrateOutputTypedDict] - + class ListAccountingTaxRateResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingTaxrateOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingTaxRateResponseTypedDict(TypedDict): result: ListAccountingTaxRateResponseBodyTypedDict - + class ListAccountingTaxRateResponse(BaseModel): next: Callable[[], Optional[ListAccountingTaxRateResponse]] - + result: ListAccountingTaxRateResponseBody + diff --git a/src/panora_sdk/models/listaccountingtrackingcategorysop.py b/src/panora_sdk/models/listaccountingtrackingcategorysop.py index 4d8b9ff..4990c23 100644 --- a/src/panora_sdk/models/listaccountingtrackingcategorysop.py +++ b/src/panora_sdk/models/listaccountingtrackingcategorysop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingtrackingcategoryoutput import ( - UnifiedAccountingTrackingcategoryOutput, - UnifiedAccountingTrackingcategoryOutputTypedDict, -) +from .unifiedaccountingtrackingcategoryoutput import UnifiedAccountingTrackingcategoryOutput, UnifiedAccountingTrackingcategoryOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingTrackingCategorysRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingTrackingCategorysRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingTrackingCategorysResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingTrackingcategoryOutputTypedDict] - + class ListAccountingTrackingCategorysResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingTrackingcategoryOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingTrackingCategorysResponseTypedDict(TypedDict): result: ListAccountingTrackingCategorysResponseBodyTypedDict - + class ListAccountingTrackingCategorysResponse(BaseModel): next: Callable[[], Optional[ListAccountingTrackingCategorysResponse]] - + result: ListAccountingTrackingCategorysResponseBody + diff --git a/src/panora_sdk/models/listaccountingtransactionop.py b/src/panora_sdk/models/listaccountingtransactionop.py index 246439c..ac9182e 100644 --- a/src/panora_sdk/models/listaccountingtransactionop.py +++ b/src/panora_sdk/models/listaccountingtransactionop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingtransactionoutput import ( - UnifiedAccountingTransactionOutput, - UnifiedAccountingTransactionOutputTypedDict, -) +from .unifiedaccountingtransactionoutput import UnifiedAccountingTransactionOutput, UnifiedAccountingTransactionOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingTransactionRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingTransactionRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingTransactionResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingTransactionOutputTypedDict] - + class ListAccountingTransactionResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingTransactionOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingTransactionResponseTypedDict(TypedDict): result: ListAccountingTransactionResponseBodyTypedDict - + class ListAccountingTransactionResponse(BaseModel): next: Callable[[], Optional[ListAccountingTransactionResponse]] - + result: ListAccountingTransactionResponseBody + diff --git a/src/panora_sdk/models/listaccountingvendorcreditop.py b/src/panora_sdk/models/listaccountingvendorcreditop.py index 9e79c63..8e91950 100644 --- a/src/panora_sdk/models/listaccountingvendorcreditop.py +++ b/src/panora_sdk/models/listaccountingvendorcreditop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedaccountingvendorcreditoutput import ( - UnifiedAccountingVendorcreditOutput, - UnifiedAccountingVendorcreditOutputTypedDict, -) +from .unifiedaccountingvendorcreditoutput import UnifiedAccountingVendorcreditOutput, UnifiedAccountingVendorcreditOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAccountingVendorCreditRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAccountingVendorCreditRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAccountingVendorCreditResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAccountingVendorcreditOutputTypedDict] - + class ListAccountingVendorCreditResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAccountingVendorcreditOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAccountingVendorCreditResponseTypedDict(TypedDict): result: ListAccountingVendorCreditResponseBodyTypedDict - + class ListAccountingVendorCreditResponse(BaseModel): next: Callable[[], Optional[ListAccountingVendorCreditResponse]] - + result: ListAccountingVendorCreditResponseBody + diff --git a/src/panora_sdk/models/listatsactivityop.py b/src/panora_sdk/models/listatsactivityop.py index fbb9ce1..0f25a9f 100644 --- a/src/panora_sdk/models/listatsactivityop.py +++ b/src/panora_sdk/models/listatsactivityop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsactivityoutput import ( - UnifiedAtsActivityOutput, - UnifiedAtsActivityOutputTypedDict, -) +from .unifiedatsactivityoutput import UnifiedAtsActivityOutput, UnifiedAtsActivityOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAtsActivityRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsActivityRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsActivityResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsActivityOutputTypedDict] - + class ListAtsActivityResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsActivityOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsActivityResponseTypedDict(TypedDict): result: ListAtsActivityResponseBodyTypedDict - + class ListAtsActivityResponse(BaseModel): next: Callable[[], Optional[ListAtsActivityResponse]] - + result: ListAtsActivityResponseBody + diff --git a/src/panora_sdk/models/listatsapplicationop.py b/src/panora_sdk/models/listatsapplicationop.py index 1f99888..f1dc100 100644 --- a/src/panora_sdk/models/listatsapplicationop.py +++ b/src/panora_sdk/models/listatsapplicationop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsapplicationoutput import ( - UnifiedAtsApplicationOutput, - UnifiedAtsApplicationOutputTypedDict, -) +from .unifiedatsapplicationoutput import UnifiedAtsApplicationOutput, UnifiedAtsApplicationOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAtsApplicationRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsApplicationRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsApplicationResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsApplicationOutputTypedDict] - + class ListAtsApplicationResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsApplicationOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsApplicationResponseTypedDict(TypedDict): result: ListAtsApplicationResponseBodyTypedDict - + class ListAtsApplicationResponse(BaseModel): next: Callable[[], Optional[ListAtsApplicationResponse]] - + result: ListAtsApplicationResponseBody + diff --git a/src/panora_sdk/models/listatsattachmentop.py b/src/panora_sdk/models/listatsattachmentop.py index 2303fc6..f2642d0 100644 --- a/src/panora_sdk/models/listatsattachmentop.py +++ b/src/panora_sdk/models/listatsattachmentop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsattachmentoutput import ( - UnifiedAtsAttachmentOutput, - UnifiedAtsAttachmentOutputTypedDict, -) +from .unifiedatsattachmentoutput import UnifiedAtsAttachmentOutput, UnifiedAtsAttachmentOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAtsAttachmentRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsAttachmentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsAttachmentResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsAttachmentOutputTypedDict] - + class ListAtsAttachmentResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsAttachmentOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsAttachmentResponseTypedDict(TypedDict): result: ListAtsAttachmentResponseBodyTypedDict - + class ListAtsAttachmentResponse(BaseModel): next: Callable[[], Optional[ListAtsAttachmentResponse]] - + result: ListAtsAttachmentResponseBody + diff --git a/src/panora_sdk/models/listatscandidateop.py b/src/panora_sdk/models/listatscandidateop.py index b15db59..32ff9bf 100644 --- a/src/panora_sdk/models/listatscandidateop.py +++ b/src/panora_sdk/models/listatscandidateop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatscandidateoutput import ( - UnifiedAtsCandidateOutput, - UnifiedAtsCandidateOutputTypedDict, -) +from .unifiedatscandidateoutput import UnifiedAtsCandidateOutput, UnifiedAtsCandidateOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAtsCandidateRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsCandidateRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsCandidateResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsCandidateOutputTypedDict] - + class ListAtsCandidateResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsCandidateOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsCandidateResponseTypedDict(TypedDict): result: ListAtsCandidateResponseBodyTypedDict - + class ListAtsCandidateResponse(BaseModel): next: Callable[[], Optional[ListAtsCandidateResponse]] - + result: ListAtsCandidateResponseBody + diff --git a/src/panora_sdk/models/listatsdepartmentsop.py b/src/panora_sdk/models/listatsdepartmentsop.py index b9ff02e..0b7b2a9 100644 --- a/src/panora_sdk/models/listatsdepartmentsop.py +++ b/src/panora_sdk/models/listatsdepartmentsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsdepartmentoutput import ( - UnifiedAtsDepartmentOutput, - UnifiedAtsDepartmentOutputTypedDict, -) +from .unifiedatsdepartmentoutput import UnifiedAtsDepartmentOutput, UnifiedAtsDepartmentOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAtsDepartmentsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsDepartmentsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsDepartmentsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsDepartmentOutputTypedDict] - + class ListAtsDepartmentsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsDepartmentOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsDepartmentsResponseTypedDict(TypedDict): result: ListAtsDepartmentsResponseBodyTypedDict - + class ListAtsDepartmentsResponse(BaseModel): next: Callable[[], Optional[ListAtsDepartmentsResponse]] - + result: ListAtsDepartmentsResponseBody + diff --git a/src/panora_sdk/models/listatseeocsop.py b/src/panora_sdk/models/listatseeocsop.py index 70d9d4a..900e1ae 100644 --- a/src/panora_sdk/models/listatseeocsop.py +++ b/src/panora_sdk/models/listatseeocsop.py @@ -19,48 +19,30 @@ class ListAtsEeocsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsEeocsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsEeocsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsEeocsOutputTypedDict] - + class ListAtsEeocsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsEeocsOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -74,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsEeocsResponseTypedDict(TypedDict): result: ListAtsEeocsResponseBodyTypedDict - + class ListAtsEeocsResponse(BaseModel): next: Callable[[], Optional[ListAtsEeocsResponse]] - + result: ListAtsEeocsResponseBody + diff --git a/src/panora_sdk/models/listatsinterviewop.py b/src/panora_sdk/models/listatsinterviewop.py index d348103..d79907d 100644 --- a/src/panora_sdk/models/listatsinterviewop.py +++ b/src/panora_sdk/models/listatsinterviewop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsinterviewoutput import ( - UnifiedAtsInterviewOutput, - UnifiedAtsInterviewOutputTypedDict, -) +from .unifiedatsinterviewoutput import UnifiedAtsInterviewOutput, UnifiedAtsInterviewOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAtsInterviewRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsInterviewRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsInterviewResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsInterviewOutputTypedDict] - + class ListAtsInterviewResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsInterviewOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsInterviewResponseTypedDict(TypedDict): result: ListAtsInterviewResponseBodyTypedDict - + class ListAtsInterviewResponse(BaseModel): next: Callable[[], Optional[ListAtsInterviewResponse]] - + result: ListAtsInterviewResponseBody + diff --git a/src/panora_sdk/models/listatsjobinterviewstageop.py b/src/panora_sdk/models/listatsjobinterviewstageop.py index 6cda75d..088995c 100644 --- a/src/panora_sdk/models/listatsjobinterviewstageop.py +++ b/src/panora_sdk/models/listatsjobinterviewstageop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsjobinterviewstageoutput import ( - UnifiedAtsJobinterviewstageOutput, - UnifiedAtsJobinterviewstageOutputTypedDict, -) +from .unifiedatsjobinterviewstageoutput import UnifiedAtsJobinterviewstageOutput, UnifiedAtsJobinterviewstageOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAtsJobInterviewStageRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsJobInterviewStageRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsJobInterviewStageResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsJobinterviewstageOutputTypedDict] - + class ListAtsJobInterviewStageResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsJobinterviewstageOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsJobInterviewStageResponseTypedDict(TypedDict): result: ListAtsJobInterviewStageResponseBodyTypedDict - + class ListAtsJobInterviewStageResponse(BaseModel): next: Callable[[], Optional[ListAtsJobInterviewStageResponse]] - + result: ListAtsJobInterviewStageResponseBody + diff --git a/src/panora_sdk/models/listatsjobop.py b/src/panora_sdk/models/listatsjobop.py index edac4fd..8d8cace 100644 --- a/src/panora_sdk/models/listatsjobop.py +++ b/src/panora_sdk/models/listatsjobop.py @@ -19,48 +19,30 @@ class ListAtsJobRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsJobRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsJobResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsJobOutputTypedDict] - + class ListAtsJobResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsJobOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -74,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsJobResponseTypedDict(TypedDict): result: ListAtsJobResponseBodyTypedDict - + class ListAtsJobResponse(BaseModel): next: Callable[[], Optional[ListAtsJobResponse]] - + result: ListAtsJobResponseBody + diff --git a/src/panora_sdk/models/listatsofferop.py b/src/panora_sdk/models/listatsofferop.py index 74343b5..fc03c2f 100644 --- a/src/panora_sdk/models/listatsofferop.py +++ b/src/panora_sdk/models/listatsofferop.py @@ -19,48 +19,30 @@ class ListAtsOfferRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsOfferRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsOfferResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsOfferOutputTypedDict] - + class ListAtsOfferResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsOfferOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -74,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsOfferResponseTypedDict(TypedDict): result: ListAtsOfferResponseBodyTypedDict - + class ListAtsOfferResponse(BaseModel): next: Callable[[], Optional[ListAtsOfferResponse]] - + result: ListAtsOfferResponseBody + diff --git a/src/panora_sdk/models/listatsofficeop.py b/src/panora_sdk/models/listatsofficeop.py index 579943c..985dc8c 100644 --- a/src/panora_sdk/models/listatsofficeop.py +++ b/src/panora_sdk/models/listatsofficeop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsofficeoutput import ( - UnifiedAtsOfficeOutput, - UnifiedAtsOfficeOutputTypedDict, -) +from .unifiedatsofficeoutput import UnifiedAtsOfficeOutput, UnifiedAtsOfficeOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAtsOfficeRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsOfficeRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsOfficeResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsOfficeOutputTypedDict] - + class ListAtsOfficeResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsOfficeOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsOfficeResponseTypedDict(TypedDict): result: ListAtsOfficeResponseBodyTypedDict - + class ListAtsOfficeResponse(BaseModel): next: Callable[[], Optional[ListAtsOfficeResponse]] - + result: ListAtsOfficeResponseBody + diff --git a/src/panora_sdk/models/listatsrejectreasonsop.py b/src/panora_sdk/models/listatsrejectreasonsop.py index 0763de4..fba8beb 100644 --- a/src/panora_sdk/models/listatsrejectreasonsop.py +++ b/src/panora_sdk/models/listatsrejectreasonsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsrejectreasonoutput import ( - UnifiedAtsRejectreasonOutput, - UnifiedAtsRejectreasonOutputTypedDict, -) +from .unifiedatsrejectreasonoutput import UnifiedAtsRejectreasonOutput, UnifiedAtsRejectreasonOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAtsRejectReasonsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsRejectReasonsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsRejectReasonsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsRejectreasonOutputTypedDict] - + class ListAtsRejectReasonsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsRejectreasonOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsRejectReasonsResponseTypedDict(TypedDict): result: ListAtsRejectReasonsResponseBodyTypedDict - + class ListAtsRejectReasonsResponse(BaseModel): next: Callable[[], Optional[ListAtsRejectReasonsResponse]] - + result: ListAtsRejectReasonsResponseBody + diff --git a/src/panora_sdk/models/listatsscorecardop.py b/src/panora_sdk/models/listatsscorecardop.py index eea6ba0..924f432 100644 --- a/src/panora_sdk/models/listatsscorecardop.py +++ b/src/panora_sdk/models/listatsscorecardop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedatsscorecardoutput import ( - UnifiedAtsScorecardOutput, - UnifiedAtsScorecardOutputTypedDict, -) +from .unifiedatsscorecardoutput import UnifiedAtsScorecardOutput, UnifiedAtsScorecardOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListAtsScorecardRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsScorecardRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsScorecardResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsScorecardOutputTypedDict] - + class ListAtsScorecardResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsScorecardOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsScorecardResponseTypedDict(TypedDict): result: ListAtsScorecardResponseBodyTypedDict - + class ListAtsScorecardResponse(BaseModel): next: Callable[[], Optional[ListAtsScorecardResponse]] - + result: ListAtsScorecardResponseBody + diff --git a/src/panora_sdk/models/listatstagsop.py b/src/panora_sdk/models/listatstagsop.py index 754d418..9a78c52 100644 --- a/src/panora_sdk/models/listatstagsop.py +++ b/src/panora_sdk/models/listatstagsop.py @@ -19,48 +19,30 @@ class ListAtsTagsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsTagsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsTagsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsTagOutputTypedDict] - + class ListAtsTagsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsTagOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -74,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsTagsResponseTypedDict(TypedDict): result: ListAtsTagsResponseBodyTypedDict - + class ListAtsTagsResponse(BaseModel): next: Callable[[], Optional[ListAtsTagsResponse]] - + result: ListAtsTagsResponseBody + diff --git a/src/panora_sdk/models/listatsusersop.py b/src/panora_sdk/models/listatsusersop.py index 8d9fc59..b685b0d 100644 --- a/src/panora_sdk/models/listatsusersop.py +++ b/src/panora_sdk/models/listatsusersop.py @@ -19,48 +19,30 @@ class ListAtsUsersRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListAtsUsersRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListAtsUsersResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedAtsUserOutputTypedDict] - + class ListAtsUsersResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedAtsUserOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -74,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListAtsUsersResponseTypedDict(TypedDict): result: ListAtsUsersResponseBodyTypedDict - + class ListAtsUsersResponse(BaseModel): next: Callable[[], Optional[ListAtsUsersResponse]] - + result: ListAtsUsersResponseBody + diff --git a/src/panora_sdk/models/listcrmcompanyop.py b/src/panora_sdk/models/listcrmcompanyop.py index a33dbe7..0e57ea2 100644 --- a/src/panora_sdk/models/listcrmcompanyop.py +++ b/src/panora_sdk/models/listcrmcompanyop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedcrmcompanyoutput import ( - UnifiedCrmCompanyOutput, - UnifiedCrmCompanyOutputTypedDict, -) +from .unifiedcrmcompanyoutput import UnifiedCrmCompanyOutput, UnifiedCrmCompanyOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListCrmCompanyRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListCrmCompanyRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListCrmCompanyResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedCrmCompanyOutputTypedDict] - + class ListCrmCompanyResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedCrmCompanyOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListCrmCompanyResponseTypedDict(TypedDict): result: ListCrmCompanyResponseBodyTypedDict - + class ListCrmCompanyResponse(BaseModel): next: Callable[[], Optional[ListCrmCompanyResponse]] - + result: ListCrmCompanyResponseBody + diff --git a/src/panora_sdk/models/listcrmcontactsop.py b/src/panora_sdk/models/listcrmcontactsop.py index 1000f84..866b94c 100644 --- a/src/panora_sdk/models/listcrmcontactsop.py +++ b/src/panora_sdk/models/listcrmcontactsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedcrmcontactoutput import ( - UnifiedCrmContactOutput, - UnifiedCrmContactOutputTypedDict, -) +from .unifiedcrmcontactoutput import UnifiedCrmContactOutput, UnifiedCrmContactOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListCrmContactsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListCrmContactsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListCrmContactsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedCrmContactOutputTypedDict] - + class ListCrmContactsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedCrmContactOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListCrmContactsResponseTypedDict(TypedDict): result: ListCrmContactsResponseBodyTypedDict - + class ListCrmContactsResponse(BaseModel): next: Callable[[], Optional[ListCrmContactsResponse]] - + result: ListCrmContactsResponseBody + diff --git a/src/panora_sdk/models/listcrmdealsop.py b/src/panora_sdk/models/listcrmdealsop.py index e0d932a..91c2d93 100644 --- a/src/panora_sdk/models/listcrmdealsop.py +++ b/src/panora_sdk/models/listcrmdealsop.py @@ -19,48 +19,30 @@ class ListCrmDealsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListCrmDealsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListCrmDealsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedCrmDealOutputTypedDict] - + class ListCrmDealsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedCrmDealOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -74,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListCrmDealsResponseTypedDict(TypedDict): result: ListCrmDealsResponseBodyTypedDict - + class ListCrmDealsResponse(BaseModel): next: Callable[[], Optional[ListCrmDealsResponse]] - + result: ListCrmDealsResponseBody + diff --git a/src/panora_sdk/models/listcrmengagementsop.py b/src/panora_sdk/models/listcrmengagementsop.py index a08e0a3..fd1e4ec 100644 --- a/src/panora_sdk/models/listcrmengagementsop.py +++ b/src/panora_sdk/models/listcrmengagementsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedcrmengagementoutput import ( - UnifiedCrmEngagementOutput, - UnifiedCrmEngagementOutputTypedDict, -) +from .unifiedcrmengagementoutput import UnifiedCrmEngagementOutput, UnifiedCrmEngagementOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListCrmEngagementsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListCrmEngagementsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListCrmEngagementsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedCrmEngagementOutputTypedDict] - + class ListCrmEngagementsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedCrmEngagementOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListCrmEngagementsResponseTypedDict(TypedDict): result: ListCrmEngagementsResponseBodyTypedDict - + class ListCrmEngagementsResponse(BaseModel): next: Callable[[], Optional[ListCrmEngagementsResponse]] - + result: ListCrmEngagementsResponseBody + diff --git a/src/panora_sdk/models/listcrmnoteop.py b/src/panora_sdk/models/listcrmnoteop.py index 10530ca..ba95734 100644 --- a/src/panora_sdk/models/listcrmnoteop.py +++ b/src/panora_sdk/models/listcrmnoteop.py @@ -19,48 +19,30 @@ class ListCrmNoteRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListCrmNoteRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListCrmNoteResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedCrmNoteOutputTypedDict] - + class ListCrmNoteResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedCrmNoteOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -74,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListCrmNoteResponseTypedDict(TypedDict): result: ListCrmNoteResponseBodyTypedDict - + class ListCrmNoteResponse(BaseModel): next: Callable[[], Optional[ListCrmNoteResponse]] - + result: ListCrmNoteResponseBody + diff --git a/src/panora_sdk/models/listcrmstagesop.py b/src/panora_sdk/models/listcrmstagesop.py index 6a25d8a..2f8c2b5 100644 --- a/src/panora_sdk/models/listcrmstagesop.py +++ b/src/panora_sdk/models/listcrmstagesop.py @@ -19,48 +19,30 @@ class ListCrmStagesRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListCrmStagesRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListCrmStagesResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedCrmStageOutputTypedDict] - + class ListCrmStagesResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedCrmStageOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -74,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListCrmStagesResponseTypedDict(TypedDict): result: ListCrmStagesResponseBodyTypedDict - + class ListCrmStagesResponse(BaseModel): next: Callable[[], Optional[ListCrmStagesResponse]] - + result: ListCrmStagesResponseBody + diff --git a/src/panora_sdk/models/listcrmtaskop.py b/src/panora_sdk/models/listcrmtaskop.py index a23ad9c..6accfbd 100644 --- a/src/panora_sdk/models/listcrmtaskop.py +++ b/src/panora_sdk/models/listcrmtaskop.py @@ -19,48 +19,30 @@ class ListCrmTaskRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListCrmTaskRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListCrmTaskResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedCrmTaskOutputTypedDict] - + class ListCrmTaskResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedCrmTaskOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -74,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListCrmTaskResponseTypedDict(TypedDict): result: ListCrmTaskResponseBodyTypedDict - + class ListCrmTaskResponse(BaseModel): next: Callable[[], Optional[ListCrmTaskResponse]] - + result: ListCrmTaskResponseBody + diff --git a/src/panora_sdk/models/listcrmusersop.py b/src/panora_sdk/models/listcrmusersop.py index 0edecd3..17501bf 100644 --- a/src/panora_sdk/models/listcrmusersop.py +++ b/src/panora_sdk/models/listcrmusersop.py @@ -19,48 +19,30 @@ class ListCrmUsersRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListCrmUsersRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListCrmUsersResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedCrmUserOutputTypedDict] - + class ListCrmUsersResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedCrmUserOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -74,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListCrmUsersResponseTypedDict(TypedDict): result: ListCrmUsersResponseBodyTypedDict - + class ListCrmUsersResponse(BaseModel): next: Callable[[], Optional[ListCrmUsersResponse]] - + result: ListCrmUsersResponseBody + diff --git a/src/panora_sdk/models/listecommercecustomersop.py b/src/panora_sdk/models/listecommercecustomersop.py index 5cc4a02..b9724cc 100644 --- a/src/panora_sdk/models/listecommercecustomersop.py +++ b/src/panora_sdk/models/listecommercecustomersop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedecommercecustomeroutput import ( - UnifiedEcommerceCustomerOutput, - UnifiedEcommerceCustomerOutputTypedDict, -) +from .unifiedecommercecustomeroutput import UnifiedEcommerceCustomerOutput, UnifiedEcommerceCustomerOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListEcommerceCustomersRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListEcommerceCustomersRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListEcommerceCustomersResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedEcommerceCustomerOutputTypedDict] - + class ListEcommerceCustomersResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedEcommerceCustomerOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListEcommerceCustomersResponseTypedDict(TypedDict): result: ListEcommerceCustomersResponseBodyTypedDict - + class ListEcommerceCustomersResponse(BaseModel): next: Callable[[], Optional[ListEcommerceCustomersResponse]] - + result: ListEcommerceCustomersResponseBody + diff --git a/src/panora_sdk/models/listecommercefulfillmentsop.py b/src/panora_sdk/models/listecommercefulfillmentsop.py index 885b581..ee4fb1a 100644 --- a/src/panora_sdk/models/listecommercefulfillmentsop.py +++ b/src/panora_sdk/models/listecommercefulfillmentsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedecommercefulfillmentoutput import ( - UnifiedEcommerceFulfillmentOutput, - UnifiedEcommerceFulfillmentOutputTypedDict, -) +from .unifiedecommercefulfillmentoutput import UnifiedEcommerceFulfillmentOutput, UnifiedEcommerceFulfillmentOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListEcommerceFulfillmentsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListEcommerceFulfillmentsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListEcommerceFulfillmentsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedEcommerceFulfillmentOutputTypedDict] - + class ListEcommerceFulfillmentsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedEcommerceFulfillmentOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListEcommerceFulfillmentsResponseTypedDict(TypedDict): result: ListEcommerceFulfillmentsResponseBodyTypedDict - + class ListEcommerceFulfillmentsResponse(BaseModel): next: Callable[[], Optional[ListEcommerceFulfillmentsResponse]] - + result: ListEcommerceFulfillmentsResponseBody + diff --git a/src/panora_sdk/models/listecommerceordersop.py b/src/panora_sdk/models/listecommerceordersop.py index 2b093c3..3b2b7f8 100644 --- a/src/panora_sdk/models/listecommerceordersop.py +++ b/src/panora_sdk/models/listecommerceordersop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedecommerceorderoutput import ( - UnifiedEcommerceOrderOutput, - UnifiedEcommerceOrderOutputTypedDict, -) +from .unifiedecommerceorderoutput import UnifiedEcommerceOrderOutput, UnifiedEcommerceOrderOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListEcommerceOrdersRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListEcommerceOrdersRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListEcommerceOrdersResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedEcommerceOrderOutputTypedDict] - + class ListEcommerceOrdersResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedEcommerceOrderOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListEcommerceOrdersResponseTypedDict(TypedDict): result: ListEcommerceOrdersResponseBodyTypedDict - + class ListEcommerceOrdersResponse(BaseModel): next: Callable[[], Optional[ListEcommerceOrdersResponse]] - + result: ListEcommerceOrdersResponseBody + diff --git a/src/panora_sdk/models/listecommerceproductsop.py b/src/panora_sdk/models/listecommerceproductsop.py index 06f14aa..2fd9fbe 100644 --- a/src/panora_sdk/models/listecommerceproductsop.py +++ b/src/panora_sdk/models/listecommerceproductsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedecommerceproductoutput import ( - UnifiedEcommerceProductOutput, - UnifiedEcommerceProductOutputTypedDict, -) +from .unifiedecommerceproductoutput import UnifiedEcommerceProductOutput, UnifiedEcommerceProductOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListEcommerceProductsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListEcommerceProductsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListEcommerceProductsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedEcommerceProductOutputTypedDict] - + class ListEcommerceProductsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedEcommerceProductOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListEcommerceProductsResponseTypedDict(TypedDict): result: ListEcommerceProductsResponseBodyTypedDict - + class ListEcommerceProductsResponse(BaseModel): next: Callable[[], Optional[ListEcommerceProductsResponse]] - + result: ListEcommerceProductsResponseBody + diff --git a/src/panora_sdk/models/listfilestoragefileop.py b/src/panora_sdk/models/listfilestoragefileop.py index e0de2a8..8e343af 100644 --- a/src/panora_sdk/models/listfilestoragefileop.py +++ b/src/panora_sdk/models/listfilestoragefileop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedfilestoragefileoutput import ( - UnifiedFilestorageFileOutput, - UnifiedFilestorageFileOutputTypedDict, -) +from .unifiedfilestoragefileoutput import UnifiedFilestorageFileOutput, UnifiedFilestorageFileOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListFilestorageFileRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListFilestorageFileRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListFilestorageFileResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedFilestorageFileOutputTypedDict] - + class ListFilestorageFileResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedFilestorageFileOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListFilestorageFileResponseTypedDict(TypedDict): result: ListFilestorageFileResponseBodyTypedDict - + class ListFilestorageFileResponse(BaseModel): next: Callable[[], Optional[ListFilestorageFileResponse]] - + result: ListFilestorageFileResponseBody + diff --git a/src/panora_sdk/models/listfilestoragefolderop.py b/src/panora_sdk/models/listfilestoragefolderop.py index 0eabf70..aec5416 100644 --- a/src/panora_sdk/models/listfilestoragefolderop.py +++ b/src/panora_sdk/models/listfilestoragefolderop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedfilestoragefolderoutput import ( - UnifiedFilestorageFolderOutput, - UnifiedFilestorageFolderOutputTypedDict, -) +from .unifiedfilestoragefolderoutput import UnifiedFilestorageFolderOutput, UnifiedFilestorageFolderOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListFilestorageFolderRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListFilestorageFolderRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListFilestorageFolderResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedFilestorageFolderOutputTypedDict] - + class ListFilestorageFolderResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedFilestorageFolderOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListFilestorageFolderResponseTypedDict(TypedDict): result: ListFilestorageFolderResponseBodyTypedDict - + class ListFilestorageFolderResponse(BaseModel): next: Callable[[], Optional[ListFilestorageFolderResponse]] - + result: ListFilestorageFolderResponseBody + diff --git a/src/panora_sdk/models/listfilestoragegroupop.py b/src/panora_sdk/models/listfilestoragegroupop.py index 6eabe4e..dab225d 100644 --- a/src/panora_sdk/models/listfilestoragegroupop.py +++ b/src/panora_sdk/models/listfilestoragegroupop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedfilestoragegroupoutput import ( - UnifiedFilestorageGroupOutput, - UnifiedFilestorageGroupOutputTypedDict, -) +from .unifiedfilestoragegroupoutput import UnifiedFilestorageGroupOutput, UnifiedFilestorageGroupOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListFilestorageGroupRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListFilestorageGroupRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListFilestorageGroupResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedFilestorageGroupOutputTypedDict] - + class ListFilestorageGroupResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedFilestorageGroupOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListFilestorageGroupResponseTypedDict(TypedDict): result: ListFilestorageGroupResponseBodyTypedDict - + class ListFilestorageGroupResponse(BaseModel): next: Callable[[], Optional[ListFilestorageGroupResponse]] - + result: ListFilestorageGroupResponseBody + diff --git a/src/panora_sdk/models/listfilestorageusersop.py b/src/panora_sdk/models/listfilestorageusersop.py index 2854366..8cd2066 100644 --- a/src/panora_sdk/models/listfilestorageusersop.py +++ b/src/panora_sdk/models/listfilestorageusersop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedfilestorageuseroutput import ( - UnifiedFilestorageUserOutput, - UnifiedFilestorageUserOutputTypedDict, -) +from .unifiedfilestorageuseroutput import UnifiedFilestorageUserOutput, UnifiedFilestorageUserOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListFilestorageUsersRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListFilestorageUsersRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListFilestorageUsersResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedFilestorageUserOutputTypedDict] - + class ListFilestorageUsersResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedFilestorageUserOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListFilestorageUsersResponseTypedDict(TypedDict): result: ListFilestorageUsersResponseBodyTypedDict - + class ListFilestorageUsersResponse(BaseModel): next: Callable[[], Optional[ListFilestorageUsersResponse]] - + result: ListFilestorageUsersResponseBody + diff --git a/src/panora_sdk/models/listhrisbankinfoop.py b/src/panora_sdk/models/listhrisbankinfoop.py index b7f47d4..5dbb5ff 100644 --- a/src/panora_sdk/models/listhrisbankinfoop.py +++ b/src/panora_sdk/models/listhrisbankinfoop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhrisbankinfooutput import ( - UnifiedHrisBankinfoOutput, - UnifiedHrisBankinfoOutputTypedDict, -) +from .unifiedhrisbankinfooutput import UnifiedHrisBankinfoOutput, UnifiedHrisBankinfoOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisBankInfoRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisBankInfoRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisBankInfoResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisBankinfoOutputTypedDict] - + class ListHrisBankInfoResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisBankinfoOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisBankInfoResponseTypedDict(TypedDict): result: ListHrisBankInfoResponseBodyTypedDict - + class ListHrisBankInfoResponse(BaseModel): next: Callable[[], Optional[ListHrisBankInfoResponse]] - + result: ListHrisBankInfoResponseBody + diff --git a/src/panora_sdk/models/listhrisbenefitsop.py b/src/panora_sdk/models/listhrisbenefitsop.py index 356eb21..f7e0dab 100644 --- a/src/panora_sdk/models/listhrisbenefitsop.py +++ b/src/panora_sdk/models/listhrisbenefitsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhrisbenefitoutput import ( - UnifiedHrisBenefitOutput, - UnifiedHrisBenefitOutputTypedDict, -) +from .unifiedhrisbenefitoutput import UnifiedHrisBenefitOutput, UnifiedHrisBenefitOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisBenefitsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisBenefitsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisBenefitsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisBenefitOutputTypedDict] - + class ListHrisBenefitsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisBenefitOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisBenefitsResponseTypedDict(TypedDict): result: ListHrisBenefitsResponseBodyTypedDict - + class ListHrisBenefitsResponse(BaseModel): next: Callable[[], Optional[ListHrisBenefitsResponse]] - + result: ListHrisBenefitsResponseBody + diff --git a/src/panora_sdk/models/listhriscompaniesop.py b/src/panora_sdk/models/listhriscompaniesop.py index dfc9bb0..0c724e4 100644 --- a/src/panora_sdk/models/listhriscompaniesop.py +++ b/src/panora_sdk/models/listhriscompaniesop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhriscompanyoutput import ( - UnifiedHrisCompanyOutput, - UnifiedHrisCompanyOutputTypedDict, -) +from .unifiedhriscompanyoutput import UnifiedHrisCompanyOutput, UnifiedHrisCompanyOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisCompaniesRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisCompaniesRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisCompaniesResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisCompanyOutputTypedDict] - + class ListHrisCompaniesResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisCompanyOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisCompaniesResponseTypedDict(TypedDict): result: ListHrisCompaniesResponseBodyTypedDict - + class ListHrisCompaniesResponse(BaseModel): next: Callable[[], Optional[ListHrisCompaniesResponse]] - + result: ListHrisCompaniesResponseBody + diff --git a/src/panora_sdk/models/listhrisdependentsop.py b/src/panora_sdk/models/listhrisdependentsop.py index 4fc2bb3..53111cf 100644 --- a/src/panora_sdk/models/listhrisdependentsop.py +++ b/src/panora_sdk/models/listhrisdependentsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhrisdependentoutput import ( - UnifiedHrisDependentOutput, - UnifiedHrisDependentOutputTypedDict, -) +from .unifiedhrisdependentoutput import UnifiedHrisDependentOutput, UnifiedHrisDependentOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisDependentsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisDependentsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisDependentsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisDependentOutputTypedDict] - + class ListHrisDependentsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisDependentOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisDependentsResponseTypedDict(TypedDict): result: ListHrisDependentsResponseBodyTypedDict - + class ListHrisDependentsResponse(BaseModel): next: Callable[[], Optional[ListHrisDependentsResponse]] - + result: ListHrisDependentsResponseBody + diff --git a/src/panora_sdk/models/listhrisemployeepayrollrunop.py b/src/panora_sdk/models/listhrisemployeepayrollrunop.py index e6c654c..cf37427 100644 --- a/src/panora_sdk/models/listhrisemployeepayrollrunop.py +++ b/src/panora_sdk/models/listhrisemployeepayrollrunop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhrisemployeepayrollrunoutput import ( - UnifiedHrisEmployeepayrollrunOutput, - UnifiedHrisEmployeepayrollrunOutputTypedDict, -) +from .unifiedhrisemployeepayrollrunoutput import UnifiedHrisEmployeepayrollrunOutput, UnifiedHrisEmployeepayrollrunOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisEmployeePayrollRunRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisEmployeePayrollRunRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisEmployeePayrollRunResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisEmployeepayrollrunOutputTypedDict] - + class ListHrisEmployeePayrollRunResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisEmployeepayrollrunOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisEmployeePayrollRunResponseTypedDict(TypedDict): result: ListHrisEmployeePayrollRunResponseBodyTypedDict - + class ListHrisEmployeePayrollRunResponse(BaseModel): next: Callable[[], Optional[ListHrisEmployeePayrollRunResponse]] - + result: ListHrisEmployeePayrollRunResponseBody + diff --git a/src/panora_sdk/models/listhrisemployeesop.py b/src/panora_sdk/models/listhrisemployeesop.py index 533e4bb..c38adf8 100644 --- a/src/panora_sdk/models/listhrisemployeesop.py +++ b/src/panora_sdk/models/listhrisemployeesop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhrisemployeeoutput import ( - UnifiedHrisEmployeeOutput, - UnifiedHrisEmployeeOutputTypedDict, -) +from .unifiedhrisemployeeoutput import UnifiedHrisEmployeeOutput, UnifiedHrisEmployeeOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisEmployeesRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisEmployeesRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisEmployeesResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisEmployeeOutputTypedDict] - + class ListHrisEmployeesResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisEmployeeOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisEmployeesResponseTypedDict(TypedDict): result: ListHrisEmployeesResponseBodyTypedDict - + class ListHrisEmployeesResponse(BaseModel): next: Callable[[], Optional[ListHrisEmployeesResponse]] - + result: ListHrisEmployeesResponseBody + diff --git a/src/panora_sdk/models/listhrisemployerbenefitsop.py b/src/panora_sdk/models/listhrisemployerbenefitsop.py index 4823917..a21748c 100644 --- a/src/panora_sdk/models/listhrisemployerbenefitsop.py +++ b/src/panora_sdk/models/listhrisemployerbenefitsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhrisemployerbenefitoutput import ( - UnifiedHrisEmployerbenefitOutput, - UnifiedHrisEmployerbenefitOutputTypedDict, -) +from .unifiedhrisemployerbenefitoutput import UnifiedHrisEmployerbenefitOutput, UnifiedHrisEmployerbenefitOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisEmployerBenefitsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisEmployerBenefitsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisEmployerBenefitsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisEmployerbenefitOutputTypedDict] - + class ListHrisEmployerBenefitsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisEmployerbenefitOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisEmployerBenefitsResponseTypedDict(TypedDict): result: ListHrisEmployerBenefitsResponseBodyTypedDict - + class ListHrisEmployerBenefitsResponse(BaseModel): next: Callable[[], Optional[ListHrisEmployerBenefitsResponse]] - + result: ListHrisEmployerBenefitsResponseBody + diff --git a/src/panora_sdk/models/listhrisemploymentsop.py b/src/panora_sdk/models/listhrisemploymentsop.py index 4dfdd05..ed2bb89 100644 --- a/src/panora_sdk/models/listhrisemploymentsop.py +++ b/src/panora_sdk/models/listhrisemploymentsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhrisemploymentoutput import ( - UnifiedHrisEmploymentOutput, - UnifiedHrisEmploymentOutputTypedDict, -) +from .unifiedhrisemploymentoutput import UnifiedHrisEmploymentOutput, UnifiedHrisEmploymentOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisEmploymentsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisEmploymentsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisEmploymentsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisEmploymentOutputTypedDict] - + class ListHrisEmploymentsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisEmploymentOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisEmploymentsResponseTypedDict(TypedDict): result: ListHrisEmploymentsResponseBodyTypedDict - + class ListHrisEmploymentsResponse(BaseModel): next: Callable[[], Optional[ListHrisEmploymentsResponse]] - + result: ListHrisEmploymentsResponseBody + diff --git a/src/panora_sdk/models/listhrisgroupsop.py b/src/panora_sdk/models/listhrisgroupsop.py index 54ebd9d..4b2bd75 100644 --- a/src/panora_sdk/models/listhrisgroupsop.py +++ b/src/panora_sdk/models/listhrisgroupsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhrisgroupoutput import ( - UnifiedHrisGroupOutput, - UnifiedHrisGroupOutputTypedDict, -) +from .unifiedhrisgroupoutput import UnifiedHrisGroupOutput, UnifiedHrisGroupOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisGroupsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisGroupsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisGroupsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisGroupOutputTypedDict] - + class ListHrisGroupsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisGroupOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisGroupsResponseTypedDict(TypedDict): result: ListHrisGroupsResponseBodyTypedDict - + class ListHrisGroupsResponse(BaseModel): next: Callable[[], Optional[ListHrisGroupsResponse]] - + result: ListHrisGroupsResponseBody + diff --git a/src/panora_sdk/models/listhrislocationsop.py b/src/panora_sdk/models/listhrislocationsop.py index d97b390..011eedd 100644 --- a/src/panora_sdk/models/listhrislocationsop.py +++ b/src/panora_sdk/models/listhrislocationsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhrislocationoutput import ( - UnifiedHrisLocationOutput, - UnifiedHrisLocationOutputTypedDict, -) +from .unifiedhrislocationoutput import UnifiedHrisLocationOutput, UnifiedHrisLocationOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisLocationsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisLocationsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisLocationsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisLocationOutputTypedDict] - + class ListHrisLocationsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisLocationOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisLocationsResponseTypedDict(TypedDict): result: ListHrisLocationsResponseBodyTypedDict - + class ListHrisLocationsResponse(BaseModel): next: Callable[[], Optional[ListHrisLocationsResponse]] - + result: ListHrisLocationsResponseBody + diff --git a/src/panora_sdk/models/listhrispaygroupsop.py b/src/panora_sdk/models/listhrispaygroupsop.py index fbdd2a6..7c85862 100644 --- a/src/panora_sdk/models/listhrispaygroupsop.py +++ b/src/panora_sdk/models/listhrispaygroupsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhrispaygroupoutput import ( - UnifiedHrisPaygroupOutput, - UnifiedHrisPaygroupOutputTypedDict, -) +from .unifiedhrispaygroupoutput import UnifiedHrisPaygroupOutput, UnifiedHrisPaygroupOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisPaygroupsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisPaygroupsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisPaygroupsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisPaygroupOutputTypedDict] - + class ListHrisPaygroupsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisPaygroupOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisPaygroupsResponseTypedDict(TypedDict): result: ListHrisPaygroupsResponseBodyTypedDict - + class ListHrisPaygroupsResponse(BaseModel): next: Callable[[], Optional[ListHrisPaygroupsResponse]] - + result: ListHrisPaygroupsResponseBody + diff --git a/src/panora_sdk/models/listhrispayrollrunsop.py b/src/panora_sdk/models/listhrispayrollrunsop.py index 00c5ecf..7c5ab0b 100644 --- a/src/panora_sdk/models/listhrispayrollrunsop.py +++ b/src/panora_sdk/models/listhrispayrollrunsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhrispayrollrunoutput import ( - UnifiedHrisPayrollrunOutput, - UnifiedHrisPayrollrunOutputTypedDict, -) +from .unifiedhrispayrollrunoutput import UnifiedHrisPayrollrunOutput, UnifiedHrisPayrollrunOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisPayrollRunsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisPayrollRunsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisPayrollRunsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisPayrollrunOutputTypedDict] - + class ListHrisPayrollRunsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisPayrollrunOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisPayrollRunsResponseTypedDict(TypedDict): result: ListHrisPayrollRunsResponseBodyTypedDict - + class ListHrisPayrollRunsResponse(BaseModel): next: Callable[[], Optional[ListHrisPayrollRunsResponse]] - + result: ListHrisPayrollRunsResponseBody + diff --git a/src/panora_sdk/models/listhristimeoffbalancesop.py b/src/panora_sdk/models/listhristimeoffbalancesop.py index 087b938..4d8d74d 100644 --- a/src/panora_sdk/models/listhristimeoffbalancesop.py +++ b/src/panora_sdk/models/listhristimeoffbalancesop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhristimeoffbalanceoutput import ( - UnifiedHrisTimeoffbalanceOutput, - UnifiedHrisTimeoffbalanceOutputTypedDict, -) +from .unifiedhristimeoffbalanceoutput import UnifiedHrisTimeoffbalanceOutput, UnifiedHrisTimeoffbalanceOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisTimeoffbalancesRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisTimeoffbalancesRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisTimeoffbalancesResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisTimeoffbalanceOutputTypedDict] - + class ListHrisTimeoffbalancesResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisTimeoffbalanceOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisTimeoffbalancesResponseTypedDict(TypedDict): result: ListHrisTimeoffbalancesResponseBodyTypedDict - + class ListHrisTimeoffbalancesResponse(BaseModel): next: Callable[[], Optional[ListHrisTimeoffbalancesResponse]] - + result: ListHrisTimeoffbalancesResponseBody + diff --git a/src/panora_sdk/models/listhristimeoffsop.py b/src/panora_sdk/models/listhristimeoffsop.py index 578b0f0..f83a60a 100644 --- a/src/panora_sdk/models/listhristimeoffsop.py +++ b/src/panora_sdk/models/listhristimeoffsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhristimeoffoutput import ( - UnifiedHrisTimeoffOutput, - UnifiedHrisTimeoffOutputTypedDict, -) +from .unifiedhristimeoffoutput import UnifiedHrisTimeoffOutput, UnifiedHrisTimeoffOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisTimeoffsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisTimeoffsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisTimeoffsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisTimeoffOutputTypedDict] - + class ListHrisTimeoffsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisTimeoffOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisTimeoffsResponseTypedDict(TypedDict): result: ListHrisTimeoffsResponseBodyTypedDict - + class ListHrisTimeoffsResponse(BaseModel): next: Callable[[], Optional[ListHrisTimeoffsResponse]] - + result: ListHrisTimeoffsResponseBody + diff --git a/src/panora_sdk/models/listhristimesheetentriesop.py b/src/panora_sdk/models/listhristimesheetentriesop.py index 8330933..fdbd43c 100644 --- a/src/panora_sdk/models/listhristimesheetentriesop.py +++ b/src/panora_sdk/models/listhristimesheetentriesop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedhristimesheetentryoutput import ( - UnifiedHrisTimesheetEntryOutput, - UnifiedHrisTimesheetEntryOutputTypedDict, -) +from .unifiedhristimesheetentryoutput import UnifiedHrisTimesheetEntryOutput, UnifiedHrisTimesheetEntryOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListHrisTimesheetentriesRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListHrisTimesheetentriesRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListHrisTimesheetentriesResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedHrisTimesheetEntryOutputTypedDict] - + class ListHrisTimesheetentriesResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedHrisTimesheetEntryOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListHrisTimesheetentriesResponseTypedDict(TypedDict): result: ListHrisTimesheetentriesResponseBodyTypedDict - + class ListHrisTimesheetentriesResponse(BaseModel): next: Callable[[], Optional[ListHrisTimesheetentriesResponse]] - + result: ListHrisTimesheetentriesResponseBody + diff --git a/src/panora_sdk/models/listmarketingautomationactionop.py b/src/panora_sdk/models/listmarketingautomationactionop.py index 95fec32..8ac987c 100644 --- a/src/panora_sdk/models/listmarketingautomationactionop.py +++ b/src/panora_sdk/models/listmarketingautomationactionop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationactionoutput import ( - UnifiedMarketingautomationActionOutput, - UnifiedMarketingautomationActionOutputTypedDict, -) +from .unifiedmarketingautomationactionoutput import UnifiedMarketingautomationActionOutput, UnifiedMarketingautomationActionOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListMarketingautomationActionRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationActionRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationActionResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedMarketingautomationActionOutputTypedDict] - + class ListMarketingautomationActionResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedMarketingautomationActionOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListMarketingautomationActionResponseTypedDict(TypedDict): result: ListMarketingautomationActionResponseBodyTypedDict - + class ListMarketingautomationActionResponse(BaseModel): next: Callable[[], Optional[ListMarketingautomationActionResponse]] - + result: ListMarketingautomationActionResponseBody + diff --git a/src/panora_sdk/models/listmarketingautomationautomationsop.py b/src/panora_sdk/models/listmarketingautomationautomationsop.py index e246c86..7dc6b74 100644 --- a/src/panora_sdk/models/listmarketingautomationautomationsop.py +++ b/src/panora_sdk/models/listmarketingautomationautomationsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationautomationoutput import ( - UnifiedMarketingautomationAutomationOutput, - UnifiedMarketingautomationAutomationOutputTypedDict, -) +from .unifiedmarketingautomationautomationoutput import UnifiedMarketingautomationAutomationOutput, UnifiedMarketingautomationAutomationOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListMarketingautomationAutomationsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationAutomationsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationAutomationsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedMarketingautomationAutomationOutputTypedDict] - + class ListMarketingautomationAutomationsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedMarketingautomationAutomationOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListMarketingautomationAutomationsResponseTypedDict(TypedDict): result: ListMarketingautomationAutomationsResponseBodyTypedDict - + class ListMarketingautomationAutomationsResponse(BaseModel): next: Callable[[], Optional[ListMarketingautomationAutomationsResponse]] - + result: ListMarketingautomationAutomationsResponseBody + diff --git a/src/panora_sdk/models/listmarketingautomationcampaignsop.py b/src/panora_sdk/models/listmarketingautomationcampaignsop.py index 766f212..bba2bb4 100644 --- a/src/panora_sdk/models/listmarketingautomationcampaignsop.py +++ b/src/panora_sdk/models/listmarketingautomationcampaignsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationcampaignoutput import ( - UnifiedMarketingautomationCampaignOutput, - UnifiedMarketingautomationCampaignOutputTypedDict, -) +from .unifiedmarketingautomationcampaignoutput import UnifiedMarketingautomationCampaignOutput, UnifiedMarketingautomationCampaignOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListMarketingautomationCampaignsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationCampaignsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationCampaignsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedMarketingautomationCampaignOutputTypedDict] - + class ListMarketingautomationCampaignsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedMarketingautomationCampaignOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListMarketingautomationCampaignsResponseTypedDict(TypedDict): result: ListMarketingautomationCampaignsResponseBodyTypedDict - + class ListMarketingautomationCampaignsResponse(BaseModel): next: Callable[[], Optional[ListMarketingautomationCampaignsResponse]] - + result: ListMarketingautomationCampaignsResponseBody + diff --git a/src/panora_sdk/models/listmarketingautomationcontactsop.py b/src/panora_sdk/models/listmarketingautomationcontactsop.py index cb9c29e..78c7537 100644 --- a/src/panora_sdk/models/listmarketingautomationcontactsop.py +++ b/src/panora_sdk/models/listmarketingautomationcontactsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationcontactoutput import ( - UnifiedMarketingautomationContactOutput, - UnifiedMarketingautomationContactOutputTypedDict, -) +from .unifiedmarketingautomationcontactoutput import UnifiedMarketingautomationContactOutput, UnifiedMarketingautomationContactOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListMarketingAutomationContactsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListMarketingAutomationContactsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListMarketingAutomationContactsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedMarketingautomationContactOutputTypedDict] - + class ListMarketingAutomationContactsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedMarketingautomationContactOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListMarketingAutomationContactsResponseTypedDict(TypedDict): result: ListMarketingAutomationContactsResponseBodyTypedDict - + class ListMarketingAutomationContactsResponse(BaseModel): next: Callable[[], Optional[ListMarketingAutomationContactsResponse]] - + result: ListMarketingAutomationContactsResponseBody + diff --git a/src/panora_sdk/models/listmarketingautomationemailsop.py b/src/panora_sdk/models/listmarketingautomationemailsop.py index 8973f2d..e550728 100644 --- a/src/panora_sdk/models/listmarketingautomationemailsop.py +++ b/src/panora_sdk/models/listmarketingautomationemailsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationemailoutput import ( - UnifiedMarketingautomationEmailOutput, - UnifiedMarketingautomationEmailOutputTypedDict, -) +from .unifiedmarketingautomationemailoutput import UnifiedMarketingautomationEmailOutput, UnifiedMarketingautomationEmailOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListMarketingautomationEmailsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationEmailsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationEmailsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedMarketingautomationEmailOutputTypedDict] - + class ListMarketingautomationEmailsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedMarketingautomationEmailOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListMarketingautomationEmailsResponseTypedDict(TypedDict): result: ListMarketingautomationEmailsResponseBodyTypedDict - + class ListMarketingautomationEmailsResponse(BaseModel): next: Callable[[], Optional[ListMarketingautomationEmailsResponse]] - + result: ListMarketingautomationEmailsResponseBody + diff --git a/src/panora_sdk/models/listmarketingautomationeventsop.py b/src/panora_sdk/models/listmarketingautomationeventsop.py index d769692..55b1b51 100644 --- a/src/panora_sdk/models/listmarketingautomationeventsop.py +++ b/src/panora_sdk/models/listmarketingautomationeventsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationeventoutput import ( - UnifiedMarketingautomationEventOutput, - UnifiedMarketingautomationEventOutputTypedDict, -) +from .unifiedmarketingautomationeventoutput import UnifiedMarketingautomationEventOutput, UnifiedMarketingautomationEventOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListMarketingAutomationEventsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListMarketingAutomationEventsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListMarketingAutomationEventsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedMarketingautomationEventOutputTypedDict] - + class ListMarketingAutomationEventsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedMarketingautomationEventOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListMarketingAutomationEventsResponseTypedDict(TypedDict): result: ListMarketingAutomationEventsResponseBodyTypedDict - + class ListMarketingAutomationEventsResponse(BaseModel): next: Callable[[], Optional[ListMarketingAutomationEventsResponse]] - + result: ListMarketingAutomationEventsResponseBody + diff --git a/src/panora_sdk/models/listmarketingautomationlistsop.py b/src/panora_sdk/models/listmarketingautomationlistsop.py index 1bfda66..bda6ecb 100644 --- a/src/panora_sdk/models/listmarketingautomationlistsop.py +++ b/src/panora_sdk/models/listmarketingautomationlistsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationlistoutput import ( - UnifiedMarketingautomationListOutput, - UnifiedMarketingautomationListOutputTypedDict, -) +from .unifiedmarketingautomationlistoutput import UnifiedMarketingautomationListOutput, UnifiedMarketingautomationListOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListMarketingautomationListsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationListsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationListsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedMarketingautomationListOutputTypedDict] - + class ListMarketingautomationListsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedMarketingautomationListOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListMarketingautomationListsResponseTypedDict(TypedDict): result: ListMarketingautomationListsResponseBodyTypedDict - + class ListMarketingautomationListsResponse(BaseModel): next: Callable[[], Optional[ListMarketingautomationListsResponse]] - + result: ListMarketingautomationListsResponseBody + diff --git a/src/panora_sdk/models/listmarketingautomationmessagesop.py b/src/panora_sdk/models/listmarketingautomationmessagesop.py index b6f6658..d5f479f 100644 --- a/src/panora_sdk/models/listmarketingautomationmessagesop.py +++ b/src/panora_sdk/models/listmarketingautomationmessagesop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationmessageoutput import ( - UnifiedMarketingautomationMessageOutput, - UnifiedMarketingautomationMessageOutputTypedDict, -) +from .unifiedmarketingautomationmessageoutput import UnifiedMarketingautomationMessageOutput, UnifiedMarketingautomationMessageOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListMarketingautomationMessagesRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationMessagesRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationMessagesResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedMarketingautomationMessageOutputTypedDict] - + class ListMarketingautomationMessagesResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedMarketingautomationMessageOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListMarketingautomationMessagesResponseTypedDict(TypedDict): result: ListMarketingautomationMessagesResponseBodyTypedDict - + class ListMarketingautomationMessagesResponse(BaseModel): next: Callable[[], Optional[ListMarketingautomationMessagesResponse]] - + result: ListMarketingautomationMessagesResponseBody + diff --git a/src/panora_sdk/models/listmarketingautomationtemplatesop.py b/src/panora_sdk/models/listmarketingautomationtemplatesop.py index c1c6703..c6b91a1 100644 --- a/src/panora_sdk/models/listmarketingautomationtemplatesop.py +++ b/src/panora_sdk/models/listmarketingautomationtemplatesop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationtemplateoutput import ( - UnifiedMarketingautomationTemplateOutput, - UnifiedMarketingautomationTemplateOutputTypedDict, -) +from .unifiedmarketingautomationtemplateoutput import UnifiedMarketingautomationTemplateOutput, UnifiedMarketingautomationTemplateOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListMarketingautomationTemplatesRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationTemplatesRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListMarketingautomationTemplatesResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedMarketingautomationTemplateOutputTypedDict] - + class ListMarketingautomationTemplatesResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedMarketingautomationTemplateOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListMarketingautomationTemplatesResponseTypedDict(TypedDict): result: ListMarketingautomationTemplatesResponseBodyTypedDict - + class ListMarketingautomationTemplatesResponse(BaseModel): next: Callable[[], Optional[ListMarketingautomationTemplatesResponse]] - + result: ListMarketingautomationTemplatesResponseBody + diff --git a/src/panora_sdk/models/listmarketingautomationusersop.py b/src/panora_sdk/models/listmarketingautomationusersop.py index da1aba9..96f2ea9 100644 --- a/src/panora_sdk/models/listmarketingautomationusersop.py +++ b/src/panora_sdk/models/listmarketingautomationusersop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedmarketingautomationuseroutput import ( - UnifiedMarketingautomationUserOutput, - UnifiedMarketingautomationUserOutputTypedDict, -) +from .unifiedmarketingautomationuseroutput import UnifiedMarketingautomationUserOutput, UnifiedMarketingautomationUserOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListMarketingAutomationUsersRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListMarketingAutomationUsersRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListMarketingAutomationUsersResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedMarketingautomationUserOutputTypedDict] - + class ListMarketingAutomationUsersResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedMarketingautomationUserOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListMarketingAutomationUsersResponseTypedDict(TypedDict): result: ListMarketingAutomationUsersResponseBodyTypedDict - + class ListMarketingAutomationUsersResponse(BaseModel): next: Callable[[], Optional[ListMarketingAutomationUsersResponse]] - + result: ListMarketingAutomationUsersResponseBody + diff --git a/src/panora_sdk/models/listticketingaccountop.py b/src/panora_sdk/models/listticketingaccountop.py index 5a9d454..ae04805 100644 --- a/src/panora_sdk/models/listticketingaccountop.py +++ b/src/panora_sdk/models/listticketingaccountop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingaccountoutput import ( - UnifiedTicketingAccountOutput, - UnifiedTicketingAccountOutputTypedDict, -) +from .unifiedticketingaccountoutput import UnifiedTicketingAccountOutput, UnifiedTicketingAccountOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListTicketingAccountRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListTicketingAccountRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListTicketingAccountResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedTicketingAccountOutputTypedDict] - + class ListTicketingAccountResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedTicketingAccountOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListTicketingAccountResponseTypedDict(TypedDict): result: ListTicketingAccountResponseBodyTypedDict - + class ListTicketingAccountResponse(BaseModel): next: Callable[[], Optional[ListTicketingAccountResponse]] - + result: ListTicketingAccountResponseBody + diff --git a/src/panora_sdk/models/listticketingattachmentsop.py b/src/panora_sdk/models/listticketingattachmentsop.py index bc49b99..f310562 100644 --- a/src/panora_sdk/models/listticketingattachmentsop.py +++ b/src/panora_sdk/models/listticketingattachmentsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingattachmentoutput import ( - UnifiedTicketingAttachmentOutput, - UnifiedTicketingAttachmentOutputTypedDict, -) +from .unifiedticketingattachmentoutput import UnifiedTicketingAttachmentOutput, UnifiedTicketingAttachmentOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListTicketingAttachmentsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListTicketingAttachmentsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListTicketingAttachmentsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedTicketingAttachmentOutputTypedDict] - + class ListTicketingAttachmentsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedTicketingAttachmentOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListTicketingAttachmentsResponseTypedDict(TypedDict): result: ListTicketingAttachmentsResponseBodyTypedDict - + class ListTicketingAttachmentsResponse(BaseModel): next: Callable[[], Optional[ListTicketingAttachmentsResponse]] - + result: ListTicketingAttachmentsResponseBody + diff --git a/src/panora_sdk/models/listticketingcollectionsop.py b/src/panora_sdk/models/listticketingcollectionsop.py index f0d71f4..0e2614e 100644 --- a/src/panora_sdk/models/listticketingcollectionsop.py +++ b/src/panora_sdk/models/listticketingcollectionsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingcollectionoutput import ( - UnifiedTicketingCollectionOutput, - UnifiedTicketingCollectionOutputTypedDict, -) +from .unifiedticketingcollectionoutput import UnifiedTicketingCollectionOutput, UnifiedTicketingCollectionOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListTicketingCollectionsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListTicketingCollectionsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListTicketingCollectionsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedTicketingCollectionOutputTypedDict] - + class ListTicketingCollectionsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedTicketingCollectionOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListTicketingCollectionsResponseTypedDict(TypedDict): result: ListTicketingCollectionsResponseBodyTypedDict - + class ListTicketingCollectionsResponse(BaseModel): next: Callable[[], Optional[ListTicketingCollectionsResponse]] - + result: ListTicketingCollectionsResponseBody + diff --git a/src/panora_sdk/models/listticketingcommentsop.py b/src/panora_sdk/models/listticketingcommentsop.py index 78e8cc0..f180af3 100644 --- a/src/panora_sdk/models/listticketingcommentsop.py +++ b/src/panora_sdk/models/listticketingcommentsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingcommentoutput import ( - UnifiedTicketingCommentOutput, - UnifiedTicketingCommentOutputTypedDict, -) +from .unifiedticketingcommentoutput import UnifiedTicketingCommentOutput, UnifiedTicketingCommentOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListTicketingCommentsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListTicketingCommentsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListTicketingCommentsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedTicketingCommentOutputTypedDict] - + class ListTicketingCommentsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedTicketingCommentOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListTicketingCommentsResponseTypedDict(TypedDict): result: ListTicketingCommentsResponseBodyTypedDict - + class ListTicketingCommentsResponse(BaseModel): next: Callable[[], Optional[ListTicketingCommentsResponse]] - + result: ListTicketingCommentsResponseBody + diff --git a/src/panora_sdk/models/listticketingcontactsop.py b/src/panora_sdk/models/listticketingcontactsop.py index 8baf4d9..fa5afd3 100644 --- a/src/panora_sdk/models/listticketingcontactsop.py +++ b/src/panora_sdk/models/listticketingcontactsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingcontactoutput import ( - UnifiedTicketingContactOutput, - UnifiedTicketingContactOutputTypedDict, -) +from .unifiedticketingcontactoutput import UnifiedTicketingContactOutput, UnifiedTicketingContactOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListTicketingContactsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListTicketingContactsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListTicketingContactsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedTicketingContactOutputTypedDict] - + class ListTicketingContactsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedTicketingContactOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListTicketingContactsResponseTypedDict(TypedDict): result: ListTicketingContactsResponseBodyTypedDict - + class ListTicketingContactsResponse(BaseModel): next: Callable[[], Optional[ListTicketingContactsResponse]] - + result: ListTicketingContactsResponseBody + diff --git a/src/panora_sdk/models/listticketingtagsop.py b/src/panora_sdk/models/listticketingtagsop.py index 121bfe6..43b7f01 100644 --- a/src/panora_sdk/models/listticketingtagsop.py +++ b/src/panora_sdk/models/listticketingtagsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingtagoutput import ( - UnifiedTicketingTagOutput, - UnifiedTicketingTagOutputTypedDict, -) +from .unifiedticketingtagoutput import UnifiedTicketingTagOutput, UnifiedTicketingTagOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListTicketingTagsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListTicketingTagsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListTicketingTagsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedTicketingTagOutputTypedDict] - + class ListTicketingTagsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedTicketingTagOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListTicketingTagsResponseTypedDict(TypedDict): result: ListTicketingTagsResponseBodyTypedDict - + class ListTicketingTagsResponse(BaseModel): next: Callable[[], Optional[ListTicketingTagsResponse]] - + result: ListTicketingTagsResponseBody + diff --git a/src/panora_sdk/models/listticketingteamsop.py b/src/panora_sdk/models/listticketingteamsop.py index 3824e08..ffc3051 100644 --- a/src/panora_sdk/models/listticketingteamsop.py +++ b/src/panora_sdk/models/listticketingteamsop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingteamoutput import ( - UnifiedTicketingTeamOutput, - UnifiedTicketingTeamOutputTypedDict, -) +from .unifiedticketingteamoutput import UnifiedTicketingTeamOutput, UnifiedTicketingTeamOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListTicketingTeamsRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListTicketingTeamsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListTicketingTeamsResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedTicketingTeamOutputTypedDict] - + class ListTicketingTeamsResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedTicketingTeamOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListTicketingTeamsResponseTypedDict(TypedDict): result: ListTicketingTeamsResponseBodyTypedDict - + class ListTicketingTeamsResponse(BaseModel): next: Callable[[], Optional[ListTicketingTeamsResponse]] - + result: ListTicketingTeamsResponseBody + diff --git a/src/panora_sdk/models/listticketingticketop.py b/src/panora_sdk/models/listticketingticketop.py index 72e8086..353f9e4 100644 --- a/src/panora_sdk/models/listticketingticketop.py +++ b/src/panora_sdk/models/listticketingticketop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingticketoutput import ( - UnifiedTicketingTicketOutput, - UnifiedTicketingTicketOutputTypedDict, -) +from .unifiedticketingticketoutput import UnifiedTicketingTicketOutput, UnifiedTicketingTicketOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListTicketingTicketRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListTicketingTicketRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListTicketingTicketResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedTicketingTicketOutputTypedDict] - + class ListTicketingTicketResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedTicketingTicketOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListTicketingTicketResponseTypedDict(TypedDict): result: ListTicketingTicketResponseBodyTypedDict - + class ListTicketingTicketResponse(BaseModel): next: Callable[[], Optional[ListTicketingTicketResponse]] - + result: ListTicketingTicketResponseBody + diff --git a/src/panora_sdk/models/listticketingusersop.py b/src/panora_sdk/models/listticketingusersop.py index 96f487c..77d8eb2 100644 --- a/src/panora_sdk/models/listticketingusersop.py +++ b/src/panora_sdk/models/listticketingusersop.py @@ -1,10 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketinguseroutput import ( - UnifiedTicketingUserOutput, - UnifiedTicketingUserOutputTypedDict, -) +from .unifiedticketinguseroutput import UnifiedTicketingUserOutput, UnifiedTicketingUserOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL from panora_sdk.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic @@ -22,48 +19,30 @@ class ListTicketingUsersRequestTypedDict(TypedDict): r"""Set to get the number of records.""" cursor: NotRequired[str] r"""Set to get the number of records after this cursor.""" - + class ListTicketingUsersRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original software.""" - - limit: Annotated[ - Optional[float], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 50 + limit: Annotated[Optional[float], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = 50 r"""Set to get the number of records.""" - - cursor: Annotated[ - Optional[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + cursor: Annotated[Optional[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to get the number of records after this cursor.""" - + class ListTicketingUsersResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedTicketingUserOutputTypedDict] - + class ListTicketingUsersResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedTicketingUserOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -77,29 +56,31 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - + class ListTicketingUsersResponseTypedDict(TypedDict): result: ListTicketingUsersResponseBodyTypedDict - + class ListTicketingUsersResponse(BaseModel): next: Callable[[], Optional[ListTicketingUsersResponse]] - + result: ListTicketingUsersResponseBody + diff --git a/src/panora_sdk/models/logindto.py b/src/panora_sdk/models/logindto.py index 22874f5..9ce2740 100644 --- a/src/panora_sdk/models/logindto.py +++ b/src/panora_sdk/models/logindto.py @@ -10,11 +10,10 @@ class LoginDtoTypedDict(TypedDict): email: str password_hash: str id_user: NotRequired[str] - + class LoginDto(BaseModel): email: str - password_hash: str - id_user: Optional[str] = None + diff --git a/src/panora_sdk/models/mapfieldtoproviderdto.py b/src/panora_sdk/models/mapfieldtoproviderdto.py index 3cf027a..08023a0 100644 --- a/src/panora_sdk/models/mapfieldtoproviderdto.py +++ b/src/panora_sdk/models/mapfieldtoproviderdto.py @@ -17,30 +17,22 @@ class MapFieldToProviderDtoTypedDict(TypedDict): r"""The source provider""" linked_user_id: Nullable[str] r"""The linked user ID""" - + class MapFieldToProviderDto(BaseModel): attribute_id: Annotated[Nullable[str], pydantic.Field(alias="attributeId")] r"""The attribute ID""" - source_custom_field_id: Nullable[str] r"""The source custom field ID""" - source_provider: Nullable[str] r"""The source provider""" - linked_user_id: Nullable[str] r"""The linked user ID""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] - nullable_fields = [ - "attributeId", - "source_custom_field_id", - "source_provider", - "linked_user_id", - ] + nullable_fields = ["attributeId", "source_custom_field_id", "source_provider", "linked_user_id"] null_default_fields = [] serialized = handler(self) @@ -50,19 +42,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/passthroughrequestdto.py b/src/panora_sdk/models/passthroughrequestdto.py index c610819..7b54ca1 100644 --- a/src/panora_sdk/models/passthroughrequestdto.py +++ b/src/panora_sdk/models/passthroughrequestdto.py @@ -2,13 +2,7 @@ from __future__ import annotations from enum import Enum -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL import pydantic from pydantic import model_serializer from typing import Any, Dict, List, Optional, TypedDict, Union @@ -19,28 +13,21 @@ class PassThroughRequestDtoMethod(str, Enum): GET = "GET" POST = "POST" - class DataTypedDict(TypedDict): pass - + class Data(BaseModel): pass - - -RequestFormatTypedDict = Union[Dict[str, Any], List[Dict[str, Any]]] - - -RequestFormat = Union[Dict[str, Any], List[Dict[str, Any]]] - + class HeadersTypedDict(TypedDict): pass - + class Headers(BaseModel): pass - + class PassThroughRequestDtoTypedDict(TypedDict): method: PassThroughRequestDtoMethod @@ -49,23 +36,16 @@ class PassThroughRequestDtoTypedDict(TypedDict): request_format: NotRequired[Nullable[RequestFormatTypedDict]] override_base_url: NotRequired[Nullable[Dict[str, Any]]] headers: NotRequired[HeadersTypedDict] - + class PassThroughRequestDto(BaseModel): method: PassThroughRequestDtoMethod - path: Nullable[str] - data: Optional[Data] = None - request_format: OptionalNullable[RequestFormat] = UNSET - - override_base_url: Annotated[ - OptionalNullable[Dict[str, Any]], pydantic.Field(alias="overrideBaseUrl") - ] = UNSET - + override_base_url: Annotated[OptionalNullable[Dict[str, Any]], pydantic.Field(alias="overrideBaseUrl")] = UNSET headers: Optional[Headers] = None - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["data", "request_format", "overrideBaseUrl", "headers"] @@ -79,19 +59,27 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + + +RequestFormatTypedDict = Union[Dict[str, Any], List[Dict[str, Any]]] + + +RequestFormat = Union[Dict[str, Any], List[Dict[str, Any]]] + diff --git a/src/panora_sdk/models/phone.py b/src/panora_sdk/models/phone.py index 0207ce5..2b94d4c 100644 --- a/src/panora_sdk/models/phone.py +++ b/src/panora_sdk/models/phone.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -20,18 +14,16 @@ class PhoneTypedDict(TypedDict): r"""The phone type. Authorized values are either MOBILE or WORK""" owner_type: NotRequired[Nullable[str]] r"""The owner type of a phone number""" - + class Phone(BaseModel): phone_number: Nullable[str] r"""The phone number starting with a plus (+) followed by the country code (e.g +336676778890 for France)""" - phone_type: Nullable[str] r"""The phone type. Authorized values are either MOBILE or WORK""" - owner_type: OptionalNullable[str] = UNSET r"""The owner type of a phone number""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["owner_type"] @@ -45,19 +37,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/projectresponse.py b/src/panora_sdk/models/projectresponse.py index a6bbd84..6abdae3 100644 --- a/src/panora_sdk/models/projectresponse.py +++ b/src/panora_sdk/models/projectresponse.py @@ -21,26 +21,21 @@ class ProjectResponseTypedDict(TypedDict): r"""Frequency of pulling data in seconds""" redirect_url: NotRequired[str] r"""Redirect URL for the project""" - + class ProjectResponse(BaseModel): id_project: str r"""Unique identifier for the project""" - name: str r"""Name of the project""" - sync_mode: str r"""Synchronization mode of the project""" - id_user: str r"""User ID associated with the project""" - id_connector_set: str r"""Connector set ID associated with the project""" - pull_frequency: Optional[float] = None r"""Frequency of pulling data in seconds""" - redirect_url: Optional[str] = None r"""Redirect URL for the project""" + diff --git a/src/panora_sdk/models/querybody.py b/src/panora_sdk/models/querybody.py new file mode 100644 index 0000000..ca22e15 --- /dev/null +++ b/src/panora_sdk/models/querybody.py @@ -0,0 +1,54 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +import pydantic +from pydantic import model_serializer +from typing import TypedDict +from typing_extensions import Annotated, NotRequired + + +class QueryBodyTypedDict(TypedDict): + query: str + r"""The query you want to received embeddings adn chunks for""" + top_k: NotRequired[Nullable[float]] + r"""The number of most appropriate documents for your query.""" + + +class QueryBody(BaseModel): + query: str + r"""The query you want to received embeddings adn chunks for""" + top_k: Annotated[OptionalNullable[float], pydantic.Field(alias="topK")] = UNSET + r"""The number of most appropriate documents for your query.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["topK"] + nullable_fields = ["topK"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in self.model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) + ): + m[k] = val + + return m + diff --git a/src/panora_sdk/models/queryop.py b/src/panora_sdk/models/queryop.py new file mode 100644 index 0000000..3e1dea0 --- /dev/null +++ b/src/panora_sdk/models/queryop.py @@ -0,0 +1,30 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .querybody import QueryBody, QueryBodyTypedDict +from panora_sdk.types import BaseModel +from panora_sdk.utils import FieldMetadata, HeaderMetadata, RequestMetadata +import pydantic +from typing import TypedDict +from typing_extensions import Annotated + + +class QueryRequestTypedDict(TypedDict): + x_connection_token: str + r"""The connection token""" + query_body: QueryBodyTypedDict + + +class QueryRequest(BaseModel): + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] + r"""The connection token""" + query_body: Annotated[QueryBody, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + + +class QueryResponseBodyTypedDict(TypedDict): + pass + + +class QueryResponseBody(BaseModel): + pass + diff --git a/src/panora_sdk/models/ragcontroller_queryembeddingsop.py b/src/panora_sdk/models/ragcontroller_queryembeddingsop.py deleted file mode 100644 index adb6a90..0000000 --- a/src/panora_sdk/models/ragcontroller_queryembeddingsop.py +++ /dev/null @@ -1,13 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from panora_sdk.types import BaseModel -from typing import TypedDict - - -class RagControllerQueryEmbeddingsResponseBodyTypedDict(TypedDict): - pass - - -class RagControllerQueryEmbeddingsResponseBody(BaseModel): - pass diff --git a/src/panora_sdk/models/remoteidop.py b/src/panora_sdk/models/remoteidop.py index d897110..7fd27df 100644 --- a/src/panora_sdk/models/remoteidop.py +++ b/src/panora_sdk/models/remoteidop.py @@ -10,11 +10,8 @@ class RemoteIDRequestTypedDict(TypedDict): remote_id: str - + class RemoteIDRequest(BaseModel): - remote_id: Annotated[ - str, - pydantic.Field(alias="remoteId"), - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] + remote_id: Annotated[str, pydantic.Field(alias="remoteId"), FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] + diff --git a/src/panora_sdk/models/requestop.py b/src/panora_sdk/models/requestop.py index e22f217..6d3a7e9 100644 --- a/src/panora_sdk/models/requestop.py +++ b/src/panora_sdk/models/requestop.py @@ -12,40 +12,31 @@ class RequestRequestTypedDict(TypedDict): x_connection_token: str pass_through_request_dto: PassThroughRequestDtoTypedDict - + class RequestRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] - - pass_through_request_dto: Annotated[ - PassThroughRequestDto, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] + pass_through_request_dto: Annotated[PassThroughRequestDto, FieldMetadata(request=RequestMetadata(media_type="application/json"))] + class RequestPassthroughResponseBodyTypedDict(TypedDict): pass - + class RequestPassthroughResponseBody(BaseModel): pass - + class RequestResponseBodyTypedDict(TypedDict): pass - + class RequestResponseBody(BaseModel): pass + - -RequestResponseTypedDict = Union[ - RequestResponseBodyTypedDict, RequestPassthroughResponseBodyTypedDict -] +RequestResponseTypedDict = Union[RequestResponseBodyTypedDict, RequestPassthroughResponseBodyTypedDict] RequestResponse = Union[RequestResponseBody, RequestPassthroughResponseBody] + diff --git a/src/panora_sdk/models/resyncstatusdto.py b/src/panora_sdk/models/resyncstatusdto.py index aa3c238..36be6c2 100644 --- a/src/panora_sdk/models/resyncstatusdto.py +++ b/src/panora_sdk/models/resyncstatusdto.py @@ -18,28 +18,23 @@ class Vertical(str, Enum): ECOMMERCE = "ecommerce" MARKETINGAUTOMATION = "marketingautomation" - class Status(str, Enum): SUCCESS = "success" FAIL = "fail" - class ResyncStatusDtoTypedDict(TypedDict): timestamp: Nullable[datetime] vertical: Nullable[Vertical] provider: Nullable[str] status: Nullable[Status] - + class ResyncStatusDto(BaseModel): timestamp: Nullable[datetime] - vertical: Nullable[Vertical] - provider: Nullable[str] - status: Nullable[Status] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -53,19 +48,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/retrieveaccountingaccountop.py b/src/panora_sdk/models/retrieveaccountingaccountop.py index ee90943..5a00aa4 100644 --- a/src/panora_sdk/models/retrieveaccountingaccountop.py +++ b/src/panora_sdk/models/retrieveaccountingaccountop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingAccountRequestTypedDict(TypedDict): r"""id of the account you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingAccountRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the account you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingaddressop.py b/src/panora_sdk/models/retrieveaccountingaddressop.py index 5b65d72..3d688b2 100644 --- a/src/panora_sdk/models/retrieveaccountingaddressop.py +++ b/src/panora_sdk/models/retrieveaccountingaddressop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingAddressRequestTypedDict(TypedDict): r"""id of the address you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingAddressRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the address you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingattachmentop.py b/src/panora_sdk/models/retrieveaccountingattachmentop.py index ec7fcb4..e132c4d 100644 --- a/src/panora_sdk/models/retrieveaccountingattachmentop.py +++ b/src/panora_sdk/models/retrieveaccountingattachmentop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingAttachmentRequestTypedDict(TypedDict): r"""id of the attachment you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingAttachmentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the attachment you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingbalancesheetop.py b/src/panora_sdk/models/retrieveaccountingbalancesheetop.py index 1856ac7..8619a9c 100644 --- a/src/panora_sdk/models/retrieveaccountingbalancesheetop.py +++ b/src/panora_sdk/models/retrieveaccountingbalancesheetop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingBalanceSheetRequestTypedDict(TypedDict): r"""id of the balancesheet you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingBalanceSheetRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the balancesheet you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingcashflowstatementop.py b/src/panora_sdk/models/retrieveaccountingcashflowstatementop.py index d68f1cb..fc02bb3 100644 --- a/src/panora_sdk/models/retrieveaccountingcashflowstatementop.py +++ b/src/panora_sdk/models/retrieveaccountingcashflowstatementop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingCashflowStatementRequestTypedDict(TypedDict): r"""id of the cashflowstatement you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingCashflowStatementRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the cashflowstatement you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingcompanyinfoop.py b/src/panora_sdk/models/retrieveaccountingcompanyinfoop.py index 1ac44c3..47defcd 100644 --- a/src/panora_sdk/models/retrieveaccountingcompanyinfoop.py +++ b/src/panora_sdk/models/retrieveaccountingcompanyinfoop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingCompanyInfoRequestTypedDict(TypedDict): r"""id of the companyinfo you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingCompanyInfoRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the companyinfo you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingcontactop.py b/src/panora_sdk/models/retrieveaccountingcontactop.py index 6e73939..ecb1bc2 100644 --- a/src/panora_sdk/models/retrieveaccountingcontactop.py +++ b/src/panora_sdk/models/retrieveaccountingcontactop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingContactRequestTypedDict(TypedDict): r"""id of the contact you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingContactRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the contact you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingcreditnoteop.py b/src/panora_sdk/models/retrieveaccountingcreditnoteop.py index 1cc7e4b..3d53e18 100644 --- a/src/panora_sdk/models/retrieveaccountingcreditnoteop.py +++ b/src/panora_sdk/models/retrieveaccountingcreditnoteop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingCreditNoteRequestTypedDict(TypedDict): r"""id of the creditnote you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingCreditNoteRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the creditnote you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingexpenseop.py b/src/panora_sdk/models/retrieveaccountingexpenseop.py index 64a787b..db5f282 100644 --- a/src/panora_sdk/models/retrieveaccountingexpenseop.py +++ b/src/panora_sdk/models/retrieveaccountingexpenseop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingExpenseRequestTypedDict(TypedDict): r"""id of the expense you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingExpenseRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the expense you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingincomestatementop.py b/src/panora_sdk/models/retrieveaccountingincomestatementop.py index 160826c..1edca93 100644 --- a/src/panora_sdk/models/retrieveaccountingincomestatementop.py +++ b/src/panora_sdk/models/retrieveaccountingincomestatementop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingIncomeStatementRequestTypedDict(TypedDict): r"""id of the incomestatement you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingIncomeStatementRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the incomestatement you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountinginvoiceop.py b/src/panora_sdk/models/retrieveaccountinginvoiceop.py index 44e19eb..71a9439 100644 --- a/src/panora_sdk/models/retrieveaccountinginvoiceop.py +++ b/src/panora_sdk/models/retrieveaccountinginvoiceop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingInvoiceRequestTypedDict(TypedDict): r"""id of the invoice you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingInvoiceRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the invoice you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingitemop.py b/src/panora_sdk/models/retrieveaccountingitemop.py index bdc8af5..b58aacb 100644 --- a/src/panora_sdk/models/retrieveaccountingitemop.py +++ b/src/panora_sdk/models/retrieveaccountingitemop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingItemRequestTypedDict(TypedDict): r"""id of the item you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingItemRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the item you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingjournalentryop.py b/src/panora_sdk/models/retrieveaccountingjournalentryop.py index d0b0085..104af33 100644 --- a/src/panora_sdk/models/retrieveaccountingjournalentryop.py +++ b/src/panora_sdk/models/retrieveaccountingjournalentryop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingJournalEntryRequestTypedDict(TypedDict): r"""id of the journalentry you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingJournalEntryRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the journalentry you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingpaymentop.py b/src/panora_sdk/models/retrieveaccountingpaymentop.py index 73e0ca0..9a996e5 100644 --- a/src/panora_sdk/models/retrieveaccountingpaymentop.py +++ b/src/panora_sdk/models/retrieveaccountingpaymentop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingPaymentRequestTypedDict(TypedDict): r"""id of the payment you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingPaymentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the payment you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingphonenumberop.py b/src/panora_sdk/models/retrieveaccountingphonenumberop.py index 6727d98..a2617e8 100644 --- a/src/panora_sdk/models/retrieveaccountingphonenumberop.py +++ b/src/panora_sdk/models/retrieveaccountingphonenumberop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingPhonenumberRequestTypedDict(TypedDict): r"""id of the phonenumber you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingPhonenumberRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the phonenumber you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingpurchaseorderop.py b/src/panora_sdk/models/retrieveaccountingpurchaseorderop.py index ac6144f..ef354f1 100644 --- a/src/panora_sdk/models/retrieveaccountingpurchaseorderop.py +++ b/src/panora_sdk/models/retrieveaccountingpurchaseorderop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingPurchaseOrderRequestTypedDict(TypedDict): r"""id of the purchaseorder you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingPurchaseOrderRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the purchaseorder you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingtaxrateop.py b/src/panora_sdk/models/retrieveaccountingtaxrateop.py index 3b21f38..1166754 100644 --- a/src/panora_sdk/models/retrieveaccountingtaxrateop.py +++ b/src/panora_sdk/models/retrieveaccountingtaxrateop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingTaxRateRequestTypedDict(TypedDict): r"""id of the taxrate you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingTaxRateRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the taxrate you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingtrackingcategoryop.py b/src/panora_sdk/models/retrieveaccountingtrackingcategoryop.py index c936ece..ed04409 100644 --- a/src/panora_sdk/models/retrieveaccountingtrackingcategoryop.py +++ b/src/panora_sdk/models/retrieveaccountingtrackingcategoryop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingTrackingCategoryRequestTypedDict(TypedDict): r"""id of the trackingcategory you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingTrackingCategoryRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the trackingcategory you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingtransactionop.py b/src/panora_sdk/models/retrieveaccountingtransactionop.py index 635e747..4de884e 100644 --- a/src/panora_sdk/models/retrieveaccountingtransactionop.py +++ b/src/panora_sdk/models/retrieveaccountingtransactionop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingTransactionRequestTypedDict(TypedDict): r"""id of the transaction you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingTransactionRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the transaction you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveaccountingvendorcreditop.py b/src/panora_sdk/models/retrieveaccountingvendorcreditop.py index 182bd31..8b6df62 100644 --- a/src/panora_sdk/models/retrieveaccountingvendorcreditop.py +++ b/src/panora_sdk/models/retrieveaccountingvendorcreditop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAccountingVendorCreditRequestTypedDict(TypedDict): r"""id of the vendorcredit you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Accounting software.""" - + class RetrieveAccountingVendorCreditRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the vendorcredit you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Accounting software.""" + diff --git a/src/panora_sdk/models/retrieveatsactivityop.py b/src/panora_sdk/models/retrieveatsactivityop.py index cb29d57..c0ed68f 100644 --- a/src/panora_sdk/models/retrieveatsactivityop.py +++ b/src/panora_sdk/models/retrieveatsactivityop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsActivityRequestTypedDict(TypedDict): r"""id of the activity you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsActivityRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the activity you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatsapplicationop.py b/src/panora_sdk/models/retrieveatsapplicationop.py index f1c2f83..73e264a 100644 --- a/src/panora_sdk/models/retrieveatsapplicationop.py +++ b/src/panora_sdk/models/retrieveatsapplicationop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsApplicationRequestTypedDict(TypedDict): r"""id of the application you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsApplicationRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the application you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatsattachmentop.py b/src/panora_sdk/models/retrieveatsattachmentop.py index 01d6cf0..15436ac 100644 --- a/src/panora_sdk/models/retrieveatsattachmentop.py +++ b/src/panora_sdk/models/retrieveatsattachmentop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsAttachmentRequestTypedDict(TypedDict): r"""id of the attachment you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsAttachmentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the attachment you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatscandidateop.py b/src/panora_sdk/models/retrieveatscandidateop.py index f3dbbe1..682b1cd 100644 --- a/src/panora_sdk/models/retrieveatscandidateop.py +++ b/src/panora_sdk/models/retrieveatscandidateop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsCandidateRequestTypedDict(TypedDict): r"""id of the candidate you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsCandidateRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the candidate you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatsdepartmentop.py b/src/panora_sdk/models/retrieveatsdepartmentop.py index eba3d7b..4e1b9c5 100644 --- a/src/panora_sdk/models/retrieveatsdepartmentop.py +++ b/src/panora_sdk/models/retrieveatsdepartmentop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsDepartmentRequestTypedDict(TypedDict): r"""id of the department you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsDepartmentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the department you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatseeocsop.py b/src/panora_sdk/models/retrieveatseeocsop.py index db472a6..ecf3366 100644 --- a/src/panora_sdk/models/retrieveatseeocsop.py +++ b/src/panora_sdk/models/retrieveatseeocsop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsEeocsRequestTypedDict(TypedDict): r"""id of the eeocs you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsEeocsRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the eeocs you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatsinterviewop.py b/src/panora_sdk/models/retrieveatsinterviewop.py index 542aef5..3e7619a 100644 --- a/src/panora_sdk/models/retrieveatsinterviewop.py +++ b/src/panora_sdk/models/retrieveatsinterviewop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsInterviewRequestTypedDict(TypedDict): r"""id of the interview you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsInterviewRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the interview you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatsjobinterviewstageop.py b/src/panora_sdk/models/retrieveatsjobinterviewstageop.py index 5fcd933..79cfaf1 100644 --- a/src/panora_sdk/models/retrieveatsjobinterviewstageop.py +++ b/src/panora_sdk/models/retrieveatsjobinterviewstageop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsJobInterviewStageRequestTypedDict(TypedDict): r"""id of the jobinterviewstage you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsJobInterviewStageRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the jobinterviewstage you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatsjobop.py b/src/panora_sdk/models/retrieveatsjobop.py index 92c076f..63c4e76 100644 --- a/src/panora_sdk/models/retrieveatsjobop.py +++ b/src/panora_sdk/models/retrieveatsjobop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsJobRequestTypedDict(TypedDict): r"""id of the job you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsJobRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the job you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatsofferop.py b/src/panora_sdk/models/retrieveatsofferop.py index 8fee36e..6c91d65 100644 --- a/src/panora_sdk/models/retrieveatsofferop.py +++ b/src/panora_sdk/models/retrieveatsofferop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsOfferRequestTypedDict(TypedDict): r"""id of the offer you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsOfferRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the offer you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatsofficeop.py b/src/panora_sdk/models/retrieveatsofficeop.py index 80d5066..073fcf0 100644 --- a/src/panora_sdk/models/retrieveatsofficeop.py +++ b/src/panora_sdk/models/retrieveatsofficeop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsOfficeRequestTypedDict(TypedDict): r"""id of the office you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsOfficeRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the office you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatsrejectreasonop.py b/src/panora_sdk/models/retrieveatsrejectreasonop.py index 3e3dfb4..b8877f1 100644 --- a/src/panora_sdk/models/retrieveatsrejectreasonop.py +++ b/src/panora_sdk/models/retrieveatsrejectreasonop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsRejectReasonRequestTypedDict(TypedDict): r"""id of the rejectreason you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsRejectReasonRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the rejectreason you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatsscorecardop.py b/src/panora_sdk/models/retrieveatsscorecardop.py index 22cbb19..d8fba1e 100644 --- a/src/panora_sdk/models/retrieveatsscorecardop.py +++ b/src/panora_sdk/models/retrieveatsscorecardop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsScorecardRequestTypedDict(TypedDict): r"""id of the scorecard you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsScorecardRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the scorecard you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatstagop.py b/src/panora_sdk/models/retrieveatstagop.py index 59955af..bef0faf 100644 --- a/src/panora_sdk/models/retrieveatstagop.py +++ b/src/panora_sdk/models/retrieveatstagop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsTagRequestTypedDict(TypedDict): r"""id of the tag you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsTagRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the tag you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveatsuserop.py b/src/panora_sdk/models/retrieveatsuserop.py index 3bc1fc1..3edd354 100644 --- a/src/panora_sdk/models/retrieveatsuserop.py +++ b/src/panora_sdk/models/retrieveatsuserop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveAtsUserRequestTypedDict(TypedDict): r"""id of the user you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveAtsUserRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the user you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrievecollectionop.py b/src/panora_sdk/models/retrievecollectionop.py index 0fdff27..0aced63 100644 --- a/src/panora_sdk/models/retrievecollectionop.py +++ b/src/panora_sdk/models/retrievecollectionop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveCollectionRequestTypedDict(TypedDict): r"""id of the collection you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ticketing software.""" - + class RetrieveCollectionRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the collection you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ticketing software.""" + diff --git a/src/panora_sdk/models/retrievecrmcompanyop.py b/src/panora_sdk/models/retrievecrmcompanyop.py index 467e979..006939c 100644 --- a/src/panora_sdk/models/retrievecrmcompanyop.py +++ b/src/panora_sdk/models/retrievecrmcompanyop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveCrmCompanyRequestTypedDict(TypedDict): r"""id of the company you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Crm software.""" - + class RetrieveCrmCompanyRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the company you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Crm software.""" + diff --git a/src/panora_sdk/models/retrievecrmcontactop.py b/src/panora_sdk/models/retrievecrmcontactop.py index afa4830..c68245b 100644 --- a/src/panora_sdk/models/retrievecrmcontactop.py +++ b/src/panora_sdk/models/retrievecrmcontactop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveCrmContactRequestTypedDict(TypedDict): r"""id of the `contact` you want to retrive.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original CRM software.""" - + class RetrieveCrmContactRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the `contact` you want to retrive.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original CRM software.""" + diff --git a/src/panora_sdk/models/retrievecrmdealop.py b/src/panora_sdk/models/retrievecrmdealop.py index 9fd807b..a4c3a46 100644 --- a/src/panora_sdk/models/retrievecrmdealop.py +++ b/src/panora_sdk/models/retrievecrmdealop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveCrmDealRequestTypedDict(TypedDict): r"""id of the deal you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Crm software.""" - + class RetrieveCrmDealRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the deal you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Crm software.""" + diff --git a/src/panora_sdk/models/retrievecrmengagementop.py b/src/panora_sdk/models/retrievecrmengagementop.py index 86e34a4..5c29329 100644 --- a/src/panora_sdk/models/retrievecrmengagementop.py +++ b/src/panora_sdk/models/retrievecrmengagementop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveCrmEngagementRequestTypedDict(TypedDict): r"""id of the engagement you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Crm software.""" - + class RetrieveCrmEngagementRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the engagement you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Crm software.""" + diff --git a/src/panora_sdk/models/retrievecrmnoteop.py b/src/panora_sdk/models/retrievecrmnoteop.py index 1ba24f2..3a66990 100644 --- a/src/panora_sdk/models/retrievecrmnoteop.py +++ b/src/panora_sdk/models/retrievecrmnoteop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveCrmNoteRequestTypedDict(TypedDict): r"""id of the note you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Crm software.""" - + class RetrieveCrmNoteRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the note you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Crm software.""" + diff --git a/src/panora_sdk/models/retrievecrmstageop.py b/src/panora_sdk/models/retrievecrmstageop.py index b32a48b..be1b3f1 100644 --- a/src/panora_sdk/models/retrievecrmstageop.py +++ b/src/panora_sdk/models/retrievecrmstageop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveCrmStageRequestTypedDict(TypedDict): r"""id of the stage you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Crm software.""" - + class RetrieveCrmStageRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the stage you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Crm software.""" + diff --git a/src/panora_sdk/models/retrievecrmtaskop.py b/src/panora_sdk/models/retrievecrmtaskop.py index 068aa49..6dac37a 100644 --- a/src/panora_sdk/models/retrievecrmtaskop.py +++ b/src/panora_sdk/models/retrievecrmtaskop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveCrmTaskRequestTypedDict(TypedDict): r"""id of the task you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Crm software.""" - + class RetrieveCrmTaskRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the task you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Crm software.""" + diff --git a/src/panora_sdk/models/retrievecrmuserop.py b/src/panora_sdk/models/retrievecrmuserop.py index a780b22..77c4f25 100644 --- a/src/panora_sdk/models/retrievecrmuserop.py +++ b/src/panora_sdk/models/retrievecrmuserop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveCrmUserRequestTypedDict(TypedDict): r"""id of the user you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Crm software.""" - + class RetrieveCrmUserRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the user you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Crm software.""" + diff --git a/src/panora_sdk/models/retrieveecommercecustomerop.py b/src/panora_sdk/models/retrieveecommercecustomerop.py index d411e19..1400b18 100644 --- a/src/panora_sdk/models/retrieveecommercecustomerop.py +++ b/src/panora_sdk/models/retrieveecommercecustomerop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveEcommerceCustomerRequestTypedDict(TypedDict): r"""id of the customer you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveEcommerceCustomerRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the customer you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveecommercefulfillmentop.py b/src/panora_sdk/models/retrieveecommercefulfillmentop.py index 362fd54..2fe9ec2 100644 --- a/src/panora_sdk/models/retrieveecommercefulfillmentop.py +++ b/src/panora_sdk/models/retrieveecommercefulfillmentop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveEcommerceFulfillmentRequestTypedDict(TypedDict): r"""id of the fulfillment you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveEcommerceFulfillmentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the fulfillment you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveecommerceorderop.py b/src/panora_sdk/models/retrieveecommerceorderop.py index c5f8ab7..9d210e8 100644 --- a/src/panora_sdk/models/retrieveecommerceorderop.py +++ b/src/panora_sdk/models/retrieveecommerceorderop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveEcommerceOrderRequestTypedDict(TypedDict): r"""id of the order you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveEcommerceOrderRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the order you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrieveecommerceproductop.py b/src/panora_sdk/models/retrieveecommerceproductop.py index 361c314..f7f7136 100644 --- a/src/panora_sdk/models/retrieveecommerceproductop.py +++ b/src/panora_sdk/models/retrieveecommerceproductop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveEcommerceProductRequestTypedDict(TypedDict): r"""id of the product you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ats software.""" - + class RetrieveEcommerceProductRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the product you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ats software.""" + diff --git a/src/panora_sdk/models/retrievefilestoragefileop.py b/src/panora_sdk/models/retrievefilestoragefileop.py index 21e8518..14d9917 100644 --- a/src/panora_sdk/models/retrievefilestoragefileop.py +++ b/src/panora_sdk/models/retrievefilestoragefileop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveFilestorageFileRequestTypedDict(TypedDict): r"""id of the file you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original File Storage software.""" - + class RetrieveFilestorageFileRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the file you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original File Storage software.""" + diff --git a/src/panora_sdk/models/retrievefilestoragefolderop.py b/src/panora_sdk/models/retrievefilestoragefolderop.py index 58d4bd2..77db987 100644 --- a/src/panora_sdk/models/retrievefilestoragefolderop.py +++ b/src/panora_sdk/models/retrievefilestoragefolderop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveFilestorageFolderRequestTypedDict(TypedDict): r"""id of the folder you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original File Storage software.""" - + class RetrieveFilestorageFolderRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the folder you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original File Storage software.""" + diff --git a/src/panora_sdk/models/retrievefilestoragegroupop.py b/src/panora_sdk/models/retrievefilestoragegroupop.py index a6eaa81..f08652e 100644 --- a/src/panora_sdk/models/retrievefilestoragegroupop.py +++ b/src/panora_sdk/models/retrievefilestoragegroupop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveFilestorageGroupRequestTypedDict(TypedDict): r"""id of the permission you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original File Storage software.""" - + class RetrieveFilestorageGroupRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the permission you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original File Storage software.""" + diff --git a/src/panora_sdk/models/retrievefilestorageuserop.py b/src/panora_sdk/models/retrievefilestorageuserop.py index 711df7a..95436bd 100644 --- a/src/panora_sdk/models/retrievefilestorageuserop.py +++ b/src/panora_sdk/models/retrievefilestorageuserop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveFilestorageUserRequestTypedDict(TypedDict): r"""id of the permission you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original File Storage software.""" - + class RetrieveFilestorageUserRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the permission you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original File Storage software.""" + diff --git a/src/panora_sdk/models/retrievehrisbankinfoop.py b/src/panora_sdk/models/retrievehrisbankinfoop.py index 3900123..3bbdd0e 100644 --- a/src/panora_sdk/models/retrievehrisbankinfoop.py +++ b/src/panora_sdk/models/retrievehrisbankinfoop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisBankInfoRequestTypedDict(TypedDict): r"""id of the bank info you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisBankInfoRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the bank info you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehrisbenefitop.py b/src/panora_sdk/models/retrievehrisbenefitop.py index 81c0216..cf7c45f 100644 --- a/src/panora_sdk/models/retrievehrisbenefitop.py +++ b/src/panora_sdk/models/retrievehrisbenefitop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisBenefitRequestTypedDict(TypedDict): r"""id of the benefit you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisBenefitRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the benefit you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehriscompanyop.py b/src/panora_sdk/models/retrievehriscompanyop.py index ca2fc4b..4074c70 100644 --- a/src/panora_sdk/models/retrievehriscompanyop.py +++ b/src/panora_sdk/models/retrievehriscompanyop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisCompanyRequestTypedDict(TypedDict): r"""id of the company you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisCompanyRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the company you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehrisdependentop.py b/src/panora_sdk/models/retrievehrisdependentop.py index 02a8275..34e3629 100644 --- a/src/panora_sdk/models/retrievehrisdependentop.py +++ b/src/panora_sdk/models/retrievehrisdependentop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisDependentRequestTypedDict(TypedDict): r"""id of the dependent you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisDependentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the dependent you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehrisemployeeop.py b/src/panora_sdk/models/retrievehrisemployeeop.py index 0784ce4..6cef96e 100644 --- a/src/panora_sdk/models/retrievehrisemployeeop.py +++ b/src/panora_sdk/models/retrievehrisemployeeop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisEmployeeRequestTypedDict(TypedDict): r"""id of the employee you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisEmployeeRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the employee you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehrisemployeepayrollrunop.py b/src/panora_sdk/models/retrievehrisemployeepayrollrunop.py index 084f0fd..e79f6de 100644 --- a/src/panora_sdk/models/retrievehrisemployeepayrollrunop.py +++ b/src/panora_sdk/models/retrievehrisemployeepayrollrunop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisEmployeePayrollRunRequestTypedDict(TypedDict): r"""id of the employeepayrollrun you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisEmployeePayrollRunRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the employeepayrollrun you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehrisemployerbenefitop.py b/src/panora_sdk/models/retrievehrisemployerbenefitop.py index c092398..082a95c 100644 --- a/src/panora_sdk/models/retrievehrisemployerbenefitop.py +++ b/src/panora_sdk/models/retrievehrisemployerbenefitop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisEmployerBenefitRequestTypedDict(TypedDict): r"""id of the employer benefit you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisEmployerBenefitRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the employer benefit you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehrisemploymentop.py b/src/panora_sdk/models/retrievehrisemploymentop.py index daf043e..7c13b23 100644 --- a/src/panora_sdk/models/retrievehrisemploymentop.py +++ b/src/panora_sdk/models/retrievehrisemploymentop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisEmploymentRequestTypedDict(TypedDict): r"""id of the employment you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisEmploymentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the employment you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehrisgroupop.py b/src/panora_sdk/models/retrievehrisgroupop.py index 17b7333..4a24a71 100644 --- a/src/panora_sdk/models/retrievehrisgroupop.py +++ b/src/panora_sdk/models/retrievehrisgroupop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisGroupRequestTypedDict(TypedDict): r"""id of the group you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisGroupRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the group you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehrislocationop.py b/src/panora_sdk/models/retrievehrislocationop.py index 2ea7724..0900e54 100644 --- a/src/panora_sdk/models/retrievehrislocationop.py +++ b/src/panora_sdk/models/retrievehrislocationop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisLocationRequestTypedDict(TypedDict): r"""id of the location you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisLocationRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the location you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehrispaygroupop.py b/src/panora_sdk/models/retrievehrispaygroupop.py index 0b00211..b59b5b5 100644 --- a/src/panora_sdk/models/retrievehrispaygroupop.py +++ b/src/panora_sdk/models/retrievehrispaygroupop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisPaygroupRequestTypedDict(TypedDict): r"""id of the paygroup you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisPaygroupRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the paygroup you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehrispayrollrunop.py b/src/panora_sdk/models/retrievehrispayrollrunop.py index 93c55f0..338feee 100644 --- a/src/panora_sdk/models/retrievehrispayrollrunop.py +++ b/src/panora_sdk/models/retrievehrispayrollrunop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisPayrollRunRequestTypedDict(TypedDict): r"""id of the payroll run you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisPayrollRunRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the payroll run you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehristimeoffbalanceop.py b/src/panora_sdk/models/retrievehristimeoffbalanceop.py index e55213a..64cd1ea 100644 --- a/src/panora_sdk/models/retrievehristimeoffbalanceop.py +++ b/src/panora_sdk/models/retrievehristimeoffbalanceop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisTimeoffbalanceRequestTypedDict(TypedDict): r"""id of the timeoffbalance you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisTimeoffbalanceRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the timeoffbalance you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehristimeoffop.py b/src/panora_sdk/models/retrievehristimeoffop.py index aab1ef9..2d4400e 100644 --- a/src/panora_sdk/models/retrievehristimeoffop.py +++ b/src/panora_sdk/models/retrievehristimeoffop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisTimeoffRequestTypedDict(TypedDict): r"""id of the time off you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisTimeoffRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the time off you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievehristimesheetentryop.py b/src/panora_sdk/models/retrievehristimesheetentryop.py index bd1c06d..d4bb1d7 100644 --- a/src/panora_sdk/models/retrievehristimesheetentryop.py +++ b/src/panora_sdk/models/retrievehristimesheetentryop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveHrisTimesheetentryRequestTypedDict(TypedDict): r"""id of the timesheetentry you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Hris software.""" - + class RetrieveHrisTimesheetentryRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the timesheetentry you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Hris software.""" + diff --git a/src/panora_sdk/models/retrievelinkeduserop.py b/src/panora_sdk/models/retrievelinkeduserop.py index 2e8c078..b330129 100644 --- a/src/panora_sdk/models/retrievelinkeduserop.py +++ b/src/panora_sdk/models/retrievelinkeduserop.py @@ -9,9 +9,8 @@ class RetrieveLinkedUserRequestTypedDict(TypedDict): id: str - + class RetrieveLinkedUserRequest(BaseModel): - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] + diff --git a/src/panora_sdk/models/retrievemarketingautomationactionop.py b/src/panora_sdk/models/retrievemarketingautomationactionop.py index 56f97ca..a538ff3 100644 --- a/src/panora_sdk/models/retrievemarketingautomationactionop.py +++ b/src/panora_sdk/models/retrievemarketingautomationactionop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveMarketingautomationActionRequestTypedDict(TypedDict): r"""id of the action you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class RetrieveMarketingautomationActionRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the action you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/retrievemarketingautomationautomationop.py b/src/panora_sdk/models/retrievemarketingautomationautomationop.py index b85dd24..22be321 100644 --- a/src/panora_sdk/models/retrievemarketingautomationautomationop.py +++ b/src/panora_sdk/models/retrievemarketingautomationautomationop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveMarketingautomationAutomationRequestTypedDict(TypedDict): r"""id of the automation you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class RetrieveMarketingautomationAutomationRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the automation you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/retrievemarketingautomationcampaignop.py b/src/panora_sdk/models/retrievemarketingautomationcampaignop.py index 92b3fbc..1d9387e 100644 --- a/src/panora_sdk/models/retrievemarketingautomationcampaignop.py +++ b/src/panora_sdk/models/retrievemarketingautomationcampaignop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveMarketingautomationCampaignRequestTypedDict(TypedDict): r"""id of the campaign you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class RetrieveMarketingautomationCampaignRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the campaign you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/retrievemarketingautomationcontactop.py b/src/panora_sdk/models/retrievemarketingautomationcontactop.py index 0c046d6..4b160a2 100644 --- a/src/panora_sdk/models/retrievemarketingautomationcontactop.py +++ b/src/panora_sdk/models/retrievemarketingautomationcontactop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveMarketingAutomationContactRequestTypedDict(TypedDict): r"""id of the contact you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class RetrieveMarketingAutomationContactRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the contact you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/retrievemarketingautomationemailop.py b/src/panora_sdk/models/retrievemarketingautomationemailop.py index f7d4f2d..af7df01 100644 --- a/src/panora_sdk/models/retrievemarketingautomationemailop.py +++ b/src/panora_sdk/models/retrievemarketingautomationemailop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveMarketingautomationEmailRequestTypedDict(TypedDict): r"""id of the email you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class RetrieveMarketingautomationEmailRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the email you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/retrievemarketingautomationeventop.py b/src/panora_sdk/models/retrievemarketingautomationeventop.py index e8c71de..0591cf0 100644 --- a/src/panora_sdk/models/retrievemarketingautomationeventop.py +++ b/src/panora_sdk/models/retrievemarketingautomationeventop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveMarketingautomationEventRequestTypedDict(TypedDict): r"""id of the event you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class RetrieveMarketingautomationEventRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the event you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/retrievemarketingautomationlistop.py b/src/panora_sdk/models/retrievemarketingautomationlistop.py index 1f5fb9f..3887929 100644 --- a/src/panora_sdk/models/retrievemarketingautomationlistop.py +++ b/src/panora_sdk/models/retrievemarketingautomationlistop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveMarketingautomationListRequestTypedDict(TypedDict): r"""id of the list you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class RetrieveMarketingautomationListRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the list you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/retrievemarketingautomationmessageop.py b/src/panora_sdk/models/retrievemarketingautomationmessageop.py index 9112092..4c42f4c 100644 --- a/src/panora_sdk/models/retrievemarketingautomationmessageop.py +++ b/src/panora_sdk/models/retrievemarketingautomationmessageop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveMarketingautomationMessageRequestTypedDict(TypedDict): r"""id of the message you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class RetrieveMarketingautomationMessageRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the message you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/retrievemarketingautomationtemplateop.py b/src/panora_sdk/models/retrievemarketingautomationtemplateop.py index 8d62997..7bfa9be 100644 --- a/src/panora_sdk/models/retrievemarketingautomationtemplateop.py +++ b/src/panora_sdk/models/retrievemarketingautomationtemplateop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveMarketingautomationTemplateRequestTypedDict(TypedDict): r"""id of the template you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class RetrieveMarketingautomationTemplateRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the template you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/retrievemarketingautomationuserop.py b/src/panora_sdk/models/retrievemarketingautomationuserop.py index 3d3255d..27700b6 100644 --- a/src/panora_sdk/models/retrievemarketingautomationuserop.py +++ b/src/panora_sdk/models/retrievemarketingautomationuserop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveMarketingAutomationUserRequestTypedDict(TypedDict): r"""id of the user you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Marketingautomation software.""" - + class RetrieveMarketingAutomationUserRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the user you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Marketingautomation software.""" + diff --git a/src/panora_sdk/models/retrieveticketingaccountop.py b/src/panora_sdk/models/retrieveticketingaccountop.py index 8cd7651..f9e6b6e 100644 --- a/src/panora_sdk/models/retrieveticketingaccountop.py +++ b/src/panora_sdk/models/retrieveticketingaccountop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveTicketingAccountRequestTypedDict(TypedDict): r"""id of the account you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ticketing software.""" - + class RetrieveTicketingAccountRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the account you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ticketing software.""" + diff --git a/src/panora_sdk/models/retrieveticketingattachmentop.py b/src/panora_sdk/models/retrieveticketingattachmentop.py index 7aea304..ba2a304 100644 --- a/src/panora_sdk/models/retrieveticketingattachmentop.py +++ b/src/panora_sdk/models/retrieveticketingattachmentop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveTicketingAttachmentRequestTypedDict(TypedDict): r"""id of the attachment you want to retrive.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ticketing software.""" - + class RetrieveTicketingAttachmentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the attachment you want to retrive.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ticketing software.""" + diff --git a/src/panora_sdk/models/retrieveticketingcommentop.py b/src/panora_sdk/models/retrieveticketingcommentop.py index 6f0d240..d569db4 100644 --- a/src/panora_sdk/models/retrieveticketingcommentop.py +++ b/src/panora_sdk/models/retrieveticketingcommentop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingcommentoutput import ( - UnifiedTicketingCommentOutput, - UnifiedTicketingCommentOutputTypedDict, -) +from .unifiedticketingcommentoutput import UnifiedTicketingCommentOutput, UnifiedTicketingCommentOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer from typing import List, Optional, TypedDict @@ -25,41 +17,28 @@ class RetrieveTicketingCommentRequestTypedDict(TypedDict): r"""id of the `comment` you want to retrive.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ticketing software.""" - + class RetrieveTicketingCommentRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the `comment` you want to retrive.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ticketing software.""" - + class RetrieveTicketingCommentResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedTicketingCommentOutputTypedDict] - + class RetrieveTicketingCommentResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedTicketingCommentOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -73,19 +52,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/retrieveticketingcontactop.py b/src/panora_sdk/models/retrieveticketingcontactop.py index 22f9d9d..eda0c40 100644 --- a/src/panora_sdk/models/retrieveticketingcontactop.py +++ b/src/panora_sdk/models/retrieveticketingcontactop.py @@ -1,17 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingcontactoutput import ( - UnifiedTicketingContactOutput, - UnifiedTicketingContactOutputTypedDict, -) +from .unifiedticketingcontactoutput import UnifiedTicketingContactOutput, UnifiedTicketingContactOutputTypedDict from panora_sdk.types import BaseModel, Nullable, UNSET_SENTINEL -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer from typing import List, Optional, TypedDict @@ -25,41 +17,28 @@ class RetrieveTicketingContactRequestTypedDict(TypedDict): r"""id of the contact you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ticketing software.""" - + class RetrieveTicketingContactRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the contact you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ticketing software.""" - + class RetrieveTicketingContactResponseBodyTypedDict(TypedDict): prev_cursor: Nullable[str] next_cursor: Nullable[str] data: List[UnifiedTicketingContactOutputTypedDict] - + class RetrieveTicketingContactResponseBody(BaseModel): prev_cursor: Nullable[str] - next_cursor: Nullable[str] - data: List[UnifiedTicketingContactOutput] - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -73,19 +52,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/retrieveticketingtagop.py b/src/panora_sdk/models/retrieveticketingtagop.py index 85e4888..451e2a9 100644 --- a/src/panora_sdk/models/retrieveticketingtagop.py +++ b/src/panora_sdk/models/retrieveticketingtagop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveTicketingTagRequestTypedDict(TypedDict): r"""id of the tag you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ticketing software.""" - + class RetrieveTicketingTagRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the tag you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ticketing software.""" + diff --git a/src/panora_sdk/models/retrieveticketingteamop.py b/src/panora_sdk/models/retrieveticketingteamop.py index eaa2033..9aff23f 100644 --- a/src/panora_sdk/models/retrieveticketingteamop.py +++ b/src/panora_sdk/models/retrieveticketingteamop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveTicketingTeamRequestTypedDict(TypedDict): r"""id of the team you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ticketing software.""" - + class RetrieveTicketingTeamRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the team you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ticketing software.""" + diff --git a/src/panora_sdk/models/retrieveticketingticketop.py b/src/panora_sdk/models/retrieveticketingticketop.py index c281011..fc550a4 100644 --- a/src/panora_sdk/models/retrieveticketingticketop.py +++ b/src/panora_sdk/models/retrieveticketingticketop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveTicketingTicketRequestTypedDict(TypedDict): r"""id of the `ticket` you want to retrive.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ticketing software.""" - + class RetrieveTicketingTicketRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the `ticket` you want to retrive.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ticketing software.""" + diff --git a/src/panora_sdk/models/retrieveticketinguserop.py b/src/panora_sdk/models/retrieveticketinguserop.py index 5f0c42d..f48b71a 100644 --- a/src/panora_sdk/models/retrieveticketinguserop.py +++ b/src/panora_sdk/models/retrieveticketinguserop.py @@ -2,12 +2,7 @@ from __future__ import annotations from panora_sdk.types import BaseModel -from panora_sdk.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from panora_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional, TypedDict from typing_extensions import Annotated, NotRequired @@ -20,23 +15,13 @@ class RetrieveTicketingUserRequestTypedDict(TypedDict): r"""id of the user you want to retrieve.""" remote_data: NotRequired[bool] r"""Set to true to include data from the original Ticketing software.""" - + class RetrieveTicketingUserRequest(BaseModel): - x_connection_token: Annotated[ - str, - pydantic.Field(alias="x-connection-token"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] + x_connection_token: Annotated[str, pydantic.Field(alias="x-connection-token"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] r"""The connection token""" - - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the user you want to retrieve.""" - - remote_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None + remote_data: Annotated[Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))] = None r"""Set to true to include data from the original Ticketing software.""" + diff --git a/src/panora_sdk/models/security.py b/src/panora_sdk/models/security.py index f3e03a3..b5e20d6 100644 --- a/src/panora_sdk/models/security.py +++ b/src/panora_sdk/models/security.py @@ -9,17 +9,8 @@ class SecurityTypedDict(TypedDict): api_key: str - + class Security(BaseModel): - api_key: Annotated[ - str, - FieldMetadata( - security=SecurityMetadata( - scheme=True, - scheme_type="apiKey", - sub_type="header", - field_name="x-api-key", - ) - ), - ] + api_key: Annotated[str, FieldMetadata(security=SecurityMetadata(scheme=True, scheme_type="apiKey", sub_type="header", field_name="x-api-key"))] + diff --git a/src/panora_sdk/models/signatureverificationdto.py b/src/panora_sdk/models/signatureverificationdto.py index b947c8b..0449b9e 100644 --- a/src/panora_sdk/models/signatureverificationdto.py +++ b/src/panora_sdk/models/signatureverificationdto.py @@ -13,18 +13,16 @@ class SignatureVerificationDtoTypedDict(TypedDict): r"""The signature of the webhook.""" secret: Nullable[str] r"""The secret of the webhook.""" - + class SignatureVerificationDto(BaseModel): payload: Nullable[Dict[str, Any]] r"""The payload event of the webhook.""" - signature: Nullable[str] r"""The signature of the webhook.""" - secret: Nullable[str] r"""The secret of the webhook.""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -38,19 +36,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/statusop.py b/src/panora_sdk/models/statusop.py index 65e1536..44c7c44 100644 --- a/src/panora_sdk/models/statusop.py +++ b/src/panora_sdk/models/statusop.py @@ -18,13 +18,10 @@ class PathParamVertical(str, Enum): ACCOUNTING = "accounting" ECOMMERCE = "ecommerce" - class StatusRequestTypedDict(TypedDict): vertical: PathParamVertical - + class StatusRequest(BaseModel): - vertical: Annotated[ - PathParamVertical, - FieldMetadata(path=PathParamMetadata(style="simple", explode=False)), - ] + vertical: Annotated[PathParamVertical, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] + diff --git a/src/panora_sdk/models/taxitem.py b/src/panora_sdk/models/taxitem.py index cff3203..86a9c03 100644 --- a/src/panora_sdk/models/taxitem.py +++ b/src/panora_sdk/models/taxitem.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -20,18 +14,16 @@ class TaxItemTypedDict(TypedDict): r"""The amount of the tax""" employer_tax: NotRequired[Nullable[bool]] r"""Indicates if this is an employer tax""" - + class TaxItem(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the tax""" - amount: OptionalNullable[float] = UNSET r"""The amount of the tax""" - employer_tax: OptionalNullable[bool] = UNSET r"""Indicates if this is an employer tax""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["name", "amount", "employer_tax"] @@ -45,19 +37,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingaccountinput.py b/src/panora_sdk/models/unifiedaccountingaccountinput.py index af8ef9f..0258a81 100644 --- a/src/panora_sdk/models/unifiedaccountingaccountinput.py +++ b/src/panora_sdk/models/unifiedaccountingaccountinput.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -15,11 +9,13 @@ class UnifiedAccountingAccountInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingAccountInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingAccountInputTypedDict(TypedDict): name: NotRequired[Nullable[str]] @@ -42,74 +38,38 @@ class UnifiedAccountingAccountInputTypedDict(TypedDict): r"""The UUID of the parent account""" company_info_id: NotRequired[Nullable[str]] r"""The UUID of the associated company info""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingAccountInputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingAccountInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAccountingAccountInput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the account""" - description: OptionalNullable[str] = UNSET r"""A description of the account""" - classification: OptionalNullable[str] = UNSET r"""The classification of the account""" - type: OptionalNullable[str] = UNSET r"""The type of the account""" - status: OptionalNullable[str] = UNSET r"""The status of the account""" - current_balance: OptionalNullable[float] = UNSET r"""The current balance of the account""" - currency: OptionalNullable[str] = UNSET r"""The currency of the account""" - account_number: OptionalNullable[str] = UNSET r"""The account number""" - parent_account: OptionalNullable[str] = UNSET r"""The UUID of the parent account""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - field_mappings: OptionalNullable[UnifiedAccountingAccountInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "description", - "classification", - "type", - "status", - "current_balance", - "currency", - "account_number", - "parent_account", - "company_info_id", - "field_mappings", - ] - nullable_fields = [ - "name", - "description", - "classification", - "type", - "status", - "current_balance", - "currency", - "account_number", - "parent_account", - "company_info_id", - "field_mappings", - ] + optional_fields = ["name", "description", "classification", "type", "status", "current_balance", "currency", "account_number", "parent_account", "company_info_id", "field_mappings"] + nullable_fields = ["name", "description", "classification", "type", "status", "current_balance", "currency", "account_number", "parent_account", "company_info_id", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -119,19 +79,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingaccountoutput.py b/src/panora_sdk/models/unifiedaccountingaccountoutput.py index d6ee40e..6357c0f 100644 --- a/src/panora_sdk/models/unifiedaccountingaccountoutput.py +++ b/src/panora_sdk/models/unifiedaccountingaccountoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedAccountingAccountOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingAccountOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingAccountOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the account in the context of the 3rd Party""" - + + class UnifiedAccountingAccountOutputRemoteData(BaseModel): r"""The remote data of the account in the context of the 3rd Party""" - + + class UnifiedAccountingAccountOutputTypedDict(TypedDict): name: NotRequired[Nullable[str]] @@ -51,113 +49,58 @@ class UnifiedAccountingAccountOutputTypedDict(TypedDict): r"""The UUID of the parent account""" company_info_id: NotRequired[Nullable[str]] r"""The UUID of the associated company info""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingAccountOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingAccountOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the account record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the account in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingAccountOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingAccountOutputRemoteDataTypedDict]] r"""The remote data of the account in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the account record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the account record""" - + class UnifiedAccountingAccountOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the account""" - description: OptionalNullable[str] = UNSET r"""A description of the account""" - classification: OptionalNullable[str] = UNSET r"""The classification of the account""" - type: OptionalNullable[str] = UNSET r"""The type of the account""" - status: OptionalNullable[str] = UNSET r"""The status of the account""" - current_balance: OptionalNullable[float] = UNSET r"""The current balance of the account""" - currency: OptionalNullable[str] = UNSET r"""The currency of the account""" - account_number: OptionalNullable[str] = UNSET r"""The account number""" - parent_account: OptionalNullable[str] = UNSET r"""The UUID of the parent account""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - - field_mappings: OptionalNullable[UnifiedAccountingAccountOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedAccountingAccountOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the account record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the account in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedAccountingAccountOutputRemoteData] = UNSET r"""The remote data of the account in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the account record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the account record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "description", - "classification", - "type", - "status", - "current_balance", - "currency", - "account_number", - "parent_account", - "company_info_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "description", - "classification", - "type", - "status", - "current_balance", - "currency", - "account_number", - "parent_account", - "company_info_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "description", "classification", "type", "status", "current_balance", "currency", "account_number", "parent_account", "company_info_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "description", "classification", "type", "status", "current_balance", "currency", "account_number", "parent_account", "company_info_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -167,19 +110,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingaddressoutput.py b/src/panora_sdk/models/unifiedaccountingaddressoutput.py index 5d85f41..bd44f76 100644 --- a/src/panora_sdk/models/unifiedaccountingaddressoutput.py +++ b/src/panora_sdk/models/unifiedaccountingaddressoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedAccountingAddressOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingAddressOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingAddressOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the address in the context of the 3rd Party""" - + + class UnifiedAccountingAddressOutputRemoteData(BaseModel): r"""The remote data of the address in the context of the 3rd Party""" - + + class UnifiedAccountingAddressOutputTypedDict(TypedDict): type: NotRequired[Nullable[str]] @@ -51,113 +49,58 @@ class UnifiedAccountingAddressOutputTypedDict(TypedDict): r"""The UUID of the associated contact""" company_info_id: NotRequired[Nullable[str]] r"""The UUID of the associated company info""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingAddressOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingAddressOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the address record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the address in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingAddressOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingAddressOutputRemoteDataTypedDict]] r"""The remote data of the address in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the address record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the address record""" - + class UnifiedAccountingAddressOutput(BaseModel): type: OptionalNullable[str] = UNSET r"""The type of the address""" - street_1: OptionalNullable[str] = UNSET r"""The first line of the street address""" - street_2: OptionalNullable[str] = UNSET r"""The second line of the street address""" - city: OptionalNullable[str] = UNSET r"""The city of the address""" - state: OptionalNullable[str] = UNSET r"""The state of the address""" - country_subdivision: OptionalNullable[str] = UNSET r"""The country subdivision (e.g., province or state) of the address""" - country: OptionalNullable[str] = UNSET r"""The country of the address""" - zip: OptionalNullable[str] = UNSET r"""The zip or postal code of the address""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the associated contact""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - - field_mappings: OptionalNullable[UnifiedAccountingAddressOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedAccountingAddressOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the address record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the address in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedAccountingAddressOutputRemoteData] = UNSET r"""The remote data of the address in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the address record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the address record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "type", - "street_1", - "street_2", - "city", - "state", - "country_subdivision", - "country", - "zip", - "contact_id", - "company_info_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "type", - "street_1", - "street_2", - "city", - "state", - "country_subdivision", - "country", - "zip", - "contact_id", - "company_info_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["type", "street_1", "street_2", "city", "state", "country_subdivision", "country", "zip", "contact_id", "company_info_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["type", "street_1", "street_2", "city", "state", "country_subdivision", "country", "zip", "contact_id", "company_info_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -167,19 +110,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingattachmentinput.py b/src/panora_sdk/models/unifiedaccountingattachmentinput.py index 5d62165..28672a1 100644 --- a/src/panora_sdk/models/unifiedaccountingattachmentinput.py +++ b/src/panora_sdk/models/unifiedaccountingattachmentinput.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -15,11 +9,13 @@ class UnifiedAccountingAttachmentInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingAttachmentInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingAttachmentInputTypedDict(TypedDict): file_name: NotRequired[Nullable[str]] @@ -28,27 +24,20 @@ class UnifiedAccountingAttachmentInputTypedDict(TypedDict): r"""The URL where the file can be accessed""" account_id: NotRequired[Nullable[str]] r"""The UUID of the associated account""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingAttachmentInputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingAttachmentInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAccountingAttachmentInput(BaseModel): file_name: OptionalNullable[str] = UNSET r"""The name of the attached file""" - file_url: OptionalNullable[str] = UNSET r"""The URL where the file can be accessed""" - account_id: OptionalNullable[str] = UNSET r"""The UUID of the associated account""" - - field_mappings: OptionalNullable[UnifiedAccountingAttachmentInputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedAccountingAttachmentInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["file_name", "file_url", "account_id", "field_mappings"] @@ -62,19 +51,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingattachmentoutput.py b/src/panora_sdk/models/unifiedaccountingattachmentoutput.py index af72de3..0d6ed09 100644 --- a/src/panora_sdk/models/unifiedaccountingattachmentoutput.py +++ b/src/panora_sdk/models/unifiedaccountingattachmentoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedAccountingAttachmentOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingAttachmentOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingAttachmentOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the attachment in the context of the 3rd Party""" - + + class UnifiedAccountingAttachmentOutputRemoteData(BaseModel): r"""The remote data of the attachment in the context of the 3rd Party""" - + + class UnifiedAccountingAttachmentOutputTypedDict(TypedDict): file_name: NotRequired[Nullable[str]] @@ -37,78 +35,44 @@ class UnifiedAccountingAttachmentOutputTypedDict(TypedDict): r"""The URL where the file can be accessed""" account_id: NotRequired[Nullable[str]] r"""The UUID of the associated account""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingAttachmentOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingAttachmentOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the attachment record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the attachment in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingAttachmentOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingAttachmentOutputRemoteDataTypedDict]] r"""The remote data of the attachment in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the attachment record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the attachment record""" - + class UnifiedAccountingAttachmentOutput(BaseModel): file_name: OptionalNullable[str] = UNSET r"""The name of the attached file""" - file_url: OptionalNullable[str] = UNSET r"""The URL where the file can be accessed""" - account_id: OptionalNullable[str] = UNSET r"""The UUID of the associated account""" - - field_mappings: OptionalNullable[UnifiedAccountingAttachmentOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedAccountingAttachmentOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the attachment record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the attachment in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedAccountingAttachmentOutputRemoteData] = UNSET r"""The remote data of the attachment in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the attachment record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the attachment record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "file_name", - "file_url", - "account_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "file_name", - "file_url", - "account_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["file_name", "file_url", "account_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["file_name", "file_url", "account_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -118,19 +82,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingbalancesheetoutput.py b/src/panora_sdk/models/unifiedaccountingbalancesheetoutput.py index 7734ea4..53e199c 100644 --- a/src/panora_sdk/models/unifiedaccountingbalancesheetoutput.py +++ b/src/panora_sdk/models/unifiedaccountingbalancesheetoutput.py @@ -3,34 +3,31 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) -import pydantic +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict -from typing_extensions import Annotated, NotRequired +from typing_extensions import NotRequired class UnifiedAccountingBalancesheetOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingBalancesheetOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingBalancesheetOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the balance sheet in the context of the 3rd Party""" - + + class UnifiedAccountingBalancesheetOutputRemoteData(BaseModel): r"""The remote data of the balance sheet in the context of the 3rd Party""" - + + class UnifiedAccountingBalancesheetOutputTypedDict(TypedDict): name: NotRequired[Nullable[str]] @@ -39,7 +36,7 @@ class UnifiedAccountingBalancesheetOutputTypedDict(TypedDict): r"""The currency used in the balance sheet""" company_info_id: NotRequired[Nullable[str]] r"""The UUID of the associated company info""" - date_: NotRequired[Nullable[datetime]] + date: NotRequired[Nullable[datetime]] r"""The date of the balance sheet""" net_assets: NotRequired[Nullable[float]] r"""The net assets value""" @@ -53,112 +50,58 @@ class UnifiedAccountingBalancesheetOutputTypedDict(TypedDict): r"""The date when the balance sheet was generated in the remote system""" line_items: NotRequired[List[LineItemTypedDict]] r"""The report items associated with this balance sheet""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingBalancesheetOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingBalancesheetOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the balance sheet record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the balance sheet in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingBalancesheetOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingBalancesheetOutputRemoteDataTypedDict]] r"""The remote data of the balance sheet in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the balance sheet record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the balance sheet record""" - + class UnifiedAccountingBalancesheetOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the balance sheet""" - currency: OptionalNullable[str] = UNSET r"""The currency used in the balance sheet""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - - date_: Annotated[OptionalNullable[datetime], pydantic.Field(alias="date")] = UNSET + date: OptionalNullable[datetime] = UNSET r"""The date of the balance sheet""" - net_assets: OptionalNullable[float] = UNSET r"""The net assets value""" - assets: OptionalNullable[List[str]] = UNSET r"""The list of assets""" - liabilities: OptionalNullable[List[str]] = UNSET r"""The list of liabilities""" - equity: OptionalNullable[List[str]] = UNSET r"""The list of equity items""" - remote_generated_at: OptionalNullable[datetime] = UNSET r"""The date when the balance sheet was generated in the remote system""" - line_items: Optional[List[LineItem]] = None r"""The report items associated with this balance sheet""" - - field_mappings: OptionalNullable[ - UnifiedAccountingBalancesheetOutputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedAccountingBalancesheetOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the balance sheet record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the balance sheet in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedAccountingBalancesheetOutputRemoteData] = UNSET r"""The remote data of the balance sheet in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the balance sheet record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the balance sheet record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "currency", - "company_info_id", - "date", - "net_assets", - "assets", - "liabilities", - "equity", - "remote_generated_at", - "line_items", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "currency", - "company_info_id", - "date", - "net_assets", - "assets", - "liabilities", - "equity", - "remote_generated_at", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "currency", "company_info_id", "date", "net_assets", "assets", "liabilities", "equity", "remote_generated_at", "line_items", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "currency", "company_info_id", "date", "net_assets", "assets", "liabilities", "equity", "remote_generated_at", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -168,19 +111,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingcashflowstatementoutput.py b/src/panora_sdk/models/unifiedaccountingcashflowstatementoutput.py index 741efda..21e3840 100644 --- a/src/panora_sdk/models/unifiedaccountingcashflowstatementoutput.py +++ b/src/panora_sdk/models/unifiedaccountingcashflowstatementoutput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,19 +11,23 @@ class UnifiedAccountingCashflowstatementOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingCashflowstatementOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingCashflowstatementOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the cash flow statement in the context of the 3rd Party""" - + + class UnifiedAccountingCashflowstatementOutputRemoteData(BaseModel): r"""The remote data of the cash flow statement in the context of the 3rd Party""" - + + class UnifiedAccountingCashflowstatementOutputTypedDict(TypedDict): name: NotRequired[Nullable[str]] @@ -50,109 +48,56 @@ class UnifiedAccountingCashflowstatementOutputTypedDict(TypedDict): r"""The date when the cash flow statement was generated in the remote system""" line_items: NotRequired[List[LineItemTypedDict]] r"""The report items associated with this cash flow statement""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingCashflowstatementOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingCashflowstatementOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the cash flow statement record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the cash flow statement in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingCashflowstatementOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingCashflowstatementOutputRemoteDataTypedDict]] r"""The remote data of the cash flow statement in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the cash flow statement record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the cash flow statement record""" - + class UnifiedAccountingCashflowstatementOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the cash flow statement""" - currency: OptionalNullable[str] = UNSET r"""The currency used in the cash flow statement""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company""" - start_period: OptionalNullable[datetime] = UNSET r"""The start date of the period covered by the cash flow statement""" - end_period: OptionalNullable[datetime] = UNSET r"""The end date of the period covered by the cash flow statement""" - cash_at_beginning_of_period: OptionalNullable[float] = UNSET r"""The cash balance at the beginning of the period""" - cash_at_end_of_period: OptionalNullable[float] = UNSET r"""The cash balance at the end of the period""" - remote_generated_at: OptionalNullable[datetime] = UNSET r"""The date when the cash flow statement was generated in the remote system""" - line_items: Optional[List[LineItem]] = None r"""The report items associated with this cash flow statement""" - - field_mappings: OptionalNullable[ - UnifiedAccountingCashflowstatementOutputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedAccountingCashflowstatementOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the cash flow statement record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the cash flow statement in the context of the 3rd Party""" - - remote_data: OptionalNullable[ - UnifiedAccountingCashflowstatementOutputRemoteData - ] = UNSET + remote_data: OptionalNullable[UnifiedAccountingCashflowstatementOutputRemoteData] = UNSET r"""The remote data of the cash flow statement in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the cash flow statement record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the cash flow statement record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "currency", - "company_id", - "start_period", - "end_period", - "cash_at_beginning_of_period", - "cash_at_end_of_period", - "remote_generated_at", - "line_items", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "currency", - "company_id", - "start_period", - "end_period", - "cash_at_beginning_of_period", - "cash_at_end_of_period", - "remote_generated_at", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "currency", "company_id", "start_period", "end_period", "cash_at_beginning_of_period", "cash_at_end_of_period", "remote_generated_at", "line_items", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "currency", "company_id", "start_period", "end_period", "cash_at_beginning_of_period", "cash_at_end_of_period", "remote_generated_at", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -162,19 +107,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingcompanyinfooutput.py b/src/panora_sdk/models/unifiedaccountingcompanyinfooutput.py index c2e65f5..74d2c7b 100644 --- a/src/panora_sdk/models/unifiedaccountingcompanyinfooutput.py +++ b/src/panora_sdk/models/unifiedaccountingcompanyinfooutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedAccountingCompanyinfoOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingCompanyinfoOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingCompanyinfoOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the company info in the context of the 3rd Party""" - + + class UnifiedAccountingCompanyinfoOutputRemoteData(BaseModel): r"""The remote data of the company info in the context of the 3rd Party""" - + + class UnifiedAccountingCompanyinfoOutputTypedDict(TypedDict): name: NotRequired[Nullable[str]] @@ -47,17 +45,13 @@ class UnifiedAccountingCompanyinfoOutputTypedDict(TypedDict): r"""The URLs associated with the company""" tracking_categories: NotRequired[Nullable[List[str]]] r"""The UUIDs of the tracking categories used by the company""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingCompanyinfoOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingCompanyinfoOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the company info record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the company info in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingCompanyinfoOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingCompanyinfoOutputRemoteDataTypedDict]] r"""The remote data of the company info in the context of the 3rd Party""" remote_created_at: NotRequired[Nullable[datetime]] r"""The date when the company info was created in the remote system""" @@ -65,92 +59,44 @@ class UnifiedAccountingCompanyinfoOutputTypedDict(TypedDict): r"""The created date of the company info record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the company info record""" - + class UnifiedAccountingCompanyinfoOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the company""" - legal_name: OptionalNullable[str] = UNSET r"""The legal name of the company""" - tax_number: OptionalNullable[str] = UNSET r"""The tax number of the company""" - fiscal_year_end_month: OptionalNullable[float] = UNSET r"""The month of the fiscal year end (1-12)""" - fiscal_year_end_day: OptionalNullable[float] = UNSET r"""The day of the fiscal year end (1-31)""" - currency: OptionalNullable[str] = UNSET r"""The currency used by the company""" - urls: OptionalNullable[List[str]] = UNSET r"""The URLs associated with the company""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories used by the company""" - - field_mappings: OptionalNullable[ - UnifiedAccountingCompanyinfoOutputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedAccountingCompanyinfoOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the company info record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the company info in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedAccountingCompanyinfoOutputRemoteData] = UNSET r"""The remote data of the company info in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the company info was created in the remote system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the company info record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the company info record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "legal_name", - "tax_number", - "fiscal_year_end_month", - "fiscal_year_end_day", - "currency", - "urls", - "tracking_categories", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "legal_name", - "tax_number", - "fiscal_year_end_month", - "fiscal_year_end_day", - "currency", - "urls", - "tracking_categories", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - ] + optional_fields = ["name", "legal_name", "tax_number", "fiscal_year_end_month", "fiscal_year_end_day", "currency", "urls", "tracking_categories", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at"] + nullable_fields = ["name", "legal_name", "tax_number", "fiscal_year_end_month", "fiscal_year_end_day", "currency", "urls", "tracking_categories", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -160,19 +106,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingcontactinput.py b/src/panora_sdk/models/unifiedaccountingcontactinput.py index 5eb6fa7..9612545 100644 --- a/src/panora_sdk/models/unifiedaccountingcontactinput.py +++ b/src/panora_sdk/models/unifiedaccountingcontactinput.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -15,11 +9,13 @@ class UnifiedAccountingContactInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingContactInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingContactInputTypedDict(TypedDict): name: NotRequired[Nullable[str]] @@ -40,69 +36,36 @@ class UnifiedAccountingContactInputTypedDict(TypedDict): r"""The date when the contact was last updated in the remote system""" company_info_id: NotRequired[Nullable[str]] r"""The UUID of the associated company info""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingContactInputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingContactInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAccountingContactInput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the contact""" - is_supplier: OptionalNullable[bool] = UNSET r"""Indicates if the contact is a supplier""" - is_customer: OptionalNullable[bool] = UNSET r"""Indicates if the contact is a customer""" - email_address: OptionalNullable[str] = UNSET r"""The email address of the contact""" - tax_number: OptionalNullable[str] = UNSET r"""The tax number of the contact""" - status: OptionalNullable[str] = UNSET r"""The status of the contact""" - currency: OptionalNullable[str] = UNSET r"""The currency associated with the contact""" - remote_updated_at: OptionalNullable[str] = UNSET r"""The date when the contact was last updated in the remote system""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - field_mappings: OptionalNullable[UnifiedAccountingContactInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "is_supplier", - "is_customer", - "email_address", - "tax_number", - "status", - "currency", - "remote_updated_at", - "company_info_id", - "field_mappings", - ] - nullable_fields = [ - "name", - "is_supplier", - "is_customer", - "email_address", - "tax_number", - "status", - "currency", - "remote_updated_at", - "company_info_id", - "field_mappings", - ] + optional_fields = ["name", "is_supplier", "is_customer", "email_address", "tax_number", "status", "currency", "remote_updated_at", "company_info_id", "field_mappings"] + nullable_fields = ["name", "is_supplier", "is_customer", "email_address", "tax_number", "status", "currency", "remote_updated_at", "company_info_id", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -112,19 +75,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingcontactoutput.py b/src/panora_sdk/models/unifiedaccountingcontactoutput.py index 2e86f76..0b51a08 100644 --- a/src/panora_sdk/models/unifiedaccountingcontactoutput.py +++ b/src/panora_sdk/models/unifiedaccountingcontactoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedAccountingContactOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingContactOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingContactOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the contact in the context of the 3rd Party""" - + + class UnifiedAccountingContactOutputRemoteData(BaseModel): r"""The remote data of the contact in the context of the 3rd Party""" - + + class UnifiedAccountingContactOutputTypedDict(TypedDict): name: NotRequired[Nullable[str]] @@ -49,108 +47,56 @@ class UnifiedAccountingContactOutputTypedDict(TypedDict): r"""The date when the contact was last updated in the remote system""" company_info_id: NotRequired[Nullable[str]] r"""The UUID of the associated company info""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingContactOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingContactOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the contact record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the contact in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingContactOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingContactOutputRemoteDataTypedDict]] r"""The remote data of the contact in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the contact record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the contact record""" - + class UnifiedAccountingContactOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the contact""" - is_supplier: OptionalNullable[bool] = UNSET r"""Indicates if the contact is a supplier""" - is_customer: OptionalNullable[bool] = UNSET r"""Indicates if the contact is a customer""" - email_address: OptionalNullable[str] = UNSET r"""The email address of the contact""" - tax_number: OptionalNullable[str] = UNSET r"""The tax number of the contact""" - status: OptionalNullable[str] = UNSET r"""The status of the contact""" - currency: OptionalNullable[str] = UNSET r"""The currency associated with the contact""" - remote_updated_at: OptionalNullable[str] = UNSET r"""The date when the contact was last updated in the remote system""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - - field_mappings: OptionalNullable[UnifiedAccountingContactOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedAccountingContactOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the contact record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the contact in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedAccountingContactOutputRemoteData] = UNSET r"""The remote data of the contact in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the contact record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the contact record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "is_supplier", - "is_customer", - "email_address", - "tax_number", - "status", - "currency", - "remote_updated_at", - "company_info_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "is_supplier", - "is_customer", - "email_address", - "tax_number", - "status", - "currency", - "remote_updated_at", - "company_info_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "is_supplier", "is_customer", "email_address", "tax_number", "status", "currency", "remote_updated_at", "company_info_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "is_supplier", "is_customer", "email_address", "tax_number", "status", "currency", "remote_updated_at", "company_info_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -160,19 +106,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingcreditnoteoutput.py b/src/panora_sdk/models/unifiedaccountingcreditnoteoutput.py index 6b175f8..784f4f5 100644 --- a/src/panora_sdk/models/unifiedaccountingcreditnoteoutput.py +++ b/src/panora_sdk/models/unifiedaccountingcreditnoteoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedAccountingCreditnoteOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingCreditnoteOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingCreditnoteOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the credit note in the context of the 3rd Party""" - + + class UnifiedAccountingCreditnoteOutputRemoteData(BaseModel): r"""The remote data of the credit note in the context of the 3rd Party""" - + + class UnifiedAccountingCreditnoteOutputTypedDict(TypedDict): transaction_date: NotRequired[Nullable[datetime]] @@ -57,17 +55,13 @@ class UnifiedAccountingCreditnoteOutputTypedDict(TypedDict): r"""The applied payments associated with the credit note""" accounting_period_id: NotRequired[Nullable[str]] r"""The UUID of the associated accounting period""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingCreditnoteOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingCreditnoteOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the credit note record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the credit note in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingCreditnoteOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingCreditnoteOutputRemoteDataTypedDict]] r"""The remote data of the credit note in the context of the 3rd Party""" remote_created_at: NotRequired[Nullable[datetime]] r"""The date when the credit note was created in the remote system""" @@ -77,122 +71,56 @@ class UnifiedAccountingCreditnoteOutputTypedDict(TypedDict): r"""The created date of the credit note record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the credit note record""" - + class UnifiedAccountingCreditnoteOutput(BaseModel): transaction_date: OptionalNullable[datetime] = UNSET r"""The date of the credit note transaction""" - status: OptionalNullable[str] = UNSET r"""The status of the credit note""" - number: OptionalNullable[str] = UNSET r"""The number of the credit note""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the associated contact""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the credit note""" - total_amount: OptionalNullable[float] = UNSET r"""The total amount of the credit note""" - remaining_credit: OptionalNullable[float] = UNSET r"""The remaining credit on the credit note""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories associated with the credit note""" - currency: OptionalNullable[str] = UNSET r"""The currency of the credit note""" - payments: OptionalNullable[List[str]] = UNSET r"""The payments associated with the credit note""" - applied_payments: OptionalNullable[List[str]] = UNSET r"""The applied payments associated with the credit note""" - accounting_period_id: OptionalNullable[str] = UNSET r"""The UUID of the associated accounting period""" - - field_mappings: OptionalNullable[UnifiedAccountingCreditnoteOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedAccountingCreditnoteOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the credit note record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the credit note in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedAccountingCreditnoteOutputRemoteData] = UNSET r"""The remote data of the credit note in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the credit note was created in the remote system""" - remote_updated_at: OptionalNullable[datetime] = UNSET r"""The date when the credit note was last updated in the remote system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the credit note record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the credit note record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "transaction_date", - "status", - "number", - "contact_id", - "company_id", - "exchange_rate", - "total_amount", - "remaining_credit", - "tracking_categories", - "currency", - "payments", - "applied_payments", - "accounting_period_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "remote_updated_at", - "created_at", - "modified_at", - ] - nullable_fields = [ - "transaction_date", - "status", - "number", - "contact_id", - "company_id", - "exchange_rate", - "total_amount", - "remaining_credit", - "tracking_categories", - "currency", - "payments", - "applied_payments", - "accounting_period_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "remote_updated_at", - "created_at", - "modified_at", - ] + optional_fields = ["transaction_date", "status", "number", "contact_id", "company_id", "exchange_rate", "total_amount", "remaining_credit", "tracking_categories", "currency", "payments", "applied_payments", "accounting_period_id", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "remote_updated_at", "created_at", "modified_at"] + nullable_fields = ["transaction_date", "status", "number", "contact_id", "company_id", "exchange_rate", "total_amount", "remaining_credit", "tracking_categories", "currency", "payments", "applied_payments", "accounting_period_id", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "remote_updated_at", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -202,19 +130,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingexpenseinput.py b/src/panora_sdk/models/unifiedaccountingexpenseinput.py index 5a1475a..4974f3c 100644 --- a/src/panora_sdk/models/unifiedaccountingexpenseinput.py +++ b/src/panora_sdk/models/unifiedaccountingexpenseinput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,11 +11,13 @@ class UnifiedAccountingExpenseInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingExpenseInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingExpenseInputTypedDict(TypedDict): transaction_date: NotRequired[Nullable[datetime]] @@ -48,83 +44,42 @@ class UnifiedAccountingExpenseInputTypedDict(TypedDict): r"""The UUIDs of the tracking categories associated with the expense""" line_items: NotRequired[List[LineItemTypedDict]] r"""The line items associated with this expense""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingExpenseInputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingExpenseInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAccountingExpenseInput(BaseModel): transaction_date: OptionalNullable[datetime] = UNSET r"""The date of the expense transaction""" - total_amount: OptionalNullable[float] = UNSET r"""The total amount of the expense""" - sub_total: OptionalNullable[float] = UNSET r"""The sub-total amount of the expense (before tax)""" - total_tax_amount: OptionalNullable[float] = UNSET r"""The total tax amount of the expense""" - currency: OptionalNullable[str] = UNSET r"""The currency of the expense""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the expense""" - memo: OptionalNullable[str] = UNSET r"""A memo or description for the expense""" - account_id: OptionalNullable[str] = UNSET r"""The UUID of the associated account""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the associated contact""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories associated with the expense""" - line_items: Optional[List[LineItem]] = None r"""The line items associated with this expense""" - field_mappings: OptionalNullable[UnifiedAccountingExpenseInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "transaction_date", - "total_amount", - "sub_total", - "total_tax_amount", - "currency", - "exchange_rate", - "memo", - "account_id", - "contact_id", - "company_info_id", - "tracking_categories", - "line_items", - "field_mappings", - ] - nullable_fields = [ - "transaction_date", - "total_amount", - "sub_total", - "total_tax_amount", - "currency", - "exchange_rate", - "memo", - "account_id", - "contact_id", - "company_info_id", - "tracking_categories", - "field_mappings", - ] + optional_fields = ["transaction_date", "total_amount", "sub_total", "total_tax_amount", "currency", "exchange_rate", "memo", "account_id", "contact_id", "company_info_id", "tracking_categories", "line_items", "field_mappings"] + nullable_fields = ["transaction_date", "total_amount", "sub_total", "total_tax_amount", "currency", "exchange_rate", "memo", "account_id", "contact_id", "company_info_id", "tracking_categories", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -134,19 +89,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingexpenseoutput.py b/src/panora_sdk/models/unifiedaccountingexpenseoutput.py index 30b8bdb..83cff7c 100644 --- a/src/panora_sdk/models/unifiedaccountingexpenseoutput.py +++ b/src/panora_sdk/models/unifiedaccountingexpenseoutput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,19 +11,23 @@ class UnifiedAccountingExpenseOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingExpenseOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingExpenseOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the expense in the context of the 3rd Party""" - + + class UnifiedAccountingExpenseOutputRemoteData(BaseModel): r"""The remote data of the expense in the context of the 3rd Party""" - + + class UnifiedAccountingExpenseOutputTypedDict(TypedDict): transaction_date: NotRequired[Nullable[datetime]] @@ -56,17 +54,13 @@ class UnifiedAccountingExpenseOutputTypedDict(TypedDict): r"""The UUIDs of the tracking categories associated with the expense""" line_items: NotRequired[List[LineItemTypedDict]] r"""The line items associated with this expense""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingExpenseOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingExpenseOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the expense record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the expense in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingExpenseOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingExpenseOutputRemoteDataTypedDict]] r"""The remote data of the expense in the context of the 3rd Party""" remote_created_at: NotRequired[Nullable[datetime]] r"""The date when the expense was created in the remote system""" @@ -74,111 +68,52 @@ class UnifiedAccountingExpenseOutputTypedDict(TypedDict): r"""The created date of the expense record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the expense record""" - + class UnifiedAccountingExpenseOutput(BaseModel): transaction_date: OptionalNullable[datetime] = UNSET r"""The date of the expense transaction""" - total_amount: OptionalNullable[float] = UNSET r"""The total amount of the expense""" - sub_total: OptionalNullable[float] = UNSET r"""The sub-total amount of the expense (before tax)""" - total_tax_amount: OptionalNullable[float] = UNSET r"""The total tax amount of the expense""" - currency: OptionalNullable[str] = UNSET r"""The currency of the expense""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the expense""" - memo: OptionalNullable[str] = UNSET r"""A memo or description for the expense""" - account_id: OptionalNullable[str] = UNSET r"""The UUID of the associated account""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the associated contact""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories associated with the expense""" - line_items: Optional[List[LineItem]] = None r"""The line items associated with this expense""" - - field_mappings: OptionalNullable[UnifiedAccountingExpenseOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedAccountingExpenseOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the expense record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the expense in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedAccountingExpenseOutputRemoteData] = UNSET r"""The remote data of the expense in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the expense was created in the remote system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the expense record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the expense record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "transaction_date", - "total_amount", - "sub_total", - "total_tax_amount", - "currency", - "exchange_rate", - "memo", - "account_id", - "contact_id", - "company_info_id", - "tracking_categories", - "line_items", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - ] - nullable_fields = [ - "transaction_date", - "total_amount", - "sub_total", - "total_tax_amount", - "currency", - "exchange_rate", - "memo", - "account_id", - "contact_id", - "company_info_id", - "tracking_categories", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - ] + optional_fields = ["transaction_date", "total_amount", "sub_total", "total_tax_amount", "currency", "exchange_rate", "memo", "account_id", "contact_id", "company_info_id", "tracking_categories", "line_items", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at"] + nullable_fields = ["transaction_date", "total_amount", "sub_total", "total_tax_amount", "currency", "exchange_rate", "memo", "account_id", "contact_id", "company_info_id", "tracking_categories", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -188,19 +123,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingincomestatementoutput.py b/src/panora_sdk/models/unifiedaccountingincomestatementoutput.py index 653b932..2e8970f 100644 --- a/src/panora_sdk/models/unifiedaccountingincomestatementoutput.py +++ b/src/panora_sdk/models/unifiedaccountingincomestatementoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedAccountingIncomestatementOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingIncomestatementOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingIncomestatementOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the income statement in the context of the 3rd Party""" - + + class UnifiedAccountingIncomestatementOutputRemoteData(BaseModel): r"""The remote data of the income statement in the context of the 3rd Party""" - + + class UnifiedAccountingIncomestatementOutputTypedDict(TypedDict): name: NotRequired[Nullable[str]] @@ -45,100 +43,52 @@ class UnifiedAccountingIncomestatementOutputTypedDict(TypedDict): r"""The net operating income for the period""" net_income: NotRequired[Nullable[float]] r"""The net income for the period""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingIncomestatementOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingIncomestatementOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the income statement record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the income statement in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingIncomestatementOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingIncomestatementOutputRemoteDataTypedDict]] r"""The remote data of the income statement in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the income statement record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the income statement record""" - + class UnifiedAccountingIncomestatementOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the income statement""" - currency: OptionalNullable[str] = UNSET r"""The currency used in the income statement""" - start_period: OptionalNullable[datetime] = UNSET r"""The start date of the period covered by the income statement""" - end_period: OptionalNullable[datetime] = UNSET r"""The end date of the period covered by the income statement""" - gross_profit: OptionalNullable[float] = UNSET r"""The gross profit for the period""" - net_operating_income: OptionalNullable[float] = UNSET r"""The net operating income for the period""" - net_income: OptionalNullable[float] = UNSET r"""The net income for the period""" - - field_mappings: OptionalNullable[ - UnifiedAccountingIncomestatementOutputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedAccountingIncomestatementOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the income statement record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the income statement in the context of the 3rd Party""" - - remote_data: OptionalNullable[UnifiedAccountingIncomestatementOutputRemoteData] = ( - UNSET - ) + remote_data: OptionalNullable[UnifiedAccountingIncomestatementOutputRemoteData] = UNSET r"""The remote data of the income statement in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the income statement record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the income statement record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "currency", - "start_period", - "end_period", - "gross_profit", - "net_operating_income", - "net_income", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "currency", - "start_period", - "end_period", - "gross_profit", - "net_operating_income", - "net_income", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "currency", "start_period", "end_period", "gross_profit", "net_operating_income", "net_income", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "currency", "start_period", "end_period", "gross_profit", "net_operating_income", "net_income", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -148,19 +98,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountinginvoiceinput.py b/src/panora_sdk/models/unifiedaccountinginvoiceinput.py index 9e4774e..51debc8 100644 --- a/src/panora_sdk/models/unifiedaccountinginvoiceinput.py +++ b/src/panora_sdk/models/unifiedaccountinginvoiceinput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,11 +11,13 @@ class UnifiedAccountingInvoiceInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingInvoiceInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingInvoiceInputTypedDict(TypedDict): type: NotRequired[Nullable[str]] @@ -60,113 +56,54 @@ class UnifiedAccountingInvoiceInputTypedDict(TypedDict): r"""The UUIDs of the tracking categories associated with the invoice""" line_items: NotRequired[List[LineItemTypedDict]] r"""The line items associated with this invoice""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingInvoiceInputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingInvoiceInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAccountingInvoiceInput(BaseModel): type: OptionalNullable[str] = UNSET r"""The type of the invoice""" - number: OptionalNullable[str] = UNSET r"""The invoice number""" - issue_date: OptionalNullable[datetime] = UNSET r"""The date the invoice was issued""" - due_date: OptionalNullable[datetime] = UNSET r"""The due date of the invoice""" - paid_on_date: OptionalNullable[datetime] = UNSET r"""The date the invoice was paid""" - memo: OptionalNullable[str] = UNSET r"""A memo or note on the invoice""" - currency: OptionalNullable[str] = UNSET r"""The currency of the invoice""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the invoice""" - total_discount: OptionalNullable[float] = UNSET r"""The total discount applied to the invoice""" - sub_total: OptionalNullable[float] = UNSET r"""The subtotal of the invoice""" - status: OptionalNullable[str] = UNSET r"""The status of the invoice""" - total_tax_amount: OptionalNullable[float] = UNSET r"""The total tax amount on the invoice""" - total_amount: OptionalNullable[float] = UNSET r"""The total amount of the invoice""" - balance: OptionalNullable[float] = UNSET r"""The remaining balance on the invoice""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the associated contact""" - accounting_period_id: OptionalNullable[str] = UNSET r"""The UUID of the associated accounting period""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories associated with the invoice""" - line_items: Optional[List[LineItem]] = None r"""The line items associated with this invoice""" - field_mappings: OptionalNullable[UnifiedAccountingInvoiceInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "type", - "number", - "issue_date", - "due_date", - "paid_on_date", - "memo", - "currency", - "exchange_rate", - "total_discount", - "sub_total", - "status", - "total_tax_amount", - "total_amount", - "balance", - "contact_id", - "accounting_period_id", - "tracking_categories", - "line_items", - "field_mappings", - ] - nullable_fields = [ - "type", - "number", - "issue_date", - "due_date", - "paid_on_date", - "memo", - "currency", - "exchange_rate", - "total_discount", - "sub_total", - "status", - "total_tax_amount", - "total_amount", - "balance", - "contact_id", - "accounting_period_id", - "tracking_categories", - "field_mappings", - ] + optional_fields = ["type", "number", "issue_date", "due_date", "paid_on_date", "memo", "currency", "exchange_rate", "total_discount", "sub_total", "status", "total_tax_amount", "total_amount", "balance", "contact_id", "accounting_period_id", "tracking_categories", "line_items", "field_mappings"] + nullable_fields = ["type", "number", "issue_date", "due_date", "paid_on_date", "memo", "currency", "exchange_rate", "total_discount", "sub_total", "status", "total_tax_amount", "total_amount", "balance", "contact_id", "accounting_period_id", "tracking_categories", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -176,19 +113,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountinginvoiceoutput.py b/src/panora_sdk/models/unifiedaccountinginvoiceoutput.py index 0752562..4783ac9 100644 --- a/src/panora_sdk/models/unifiedaccountinginvoiceoutput.py +++ b/src/panora_sdk/models/unifiedaccountinginvoiceoutput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,19 +11,23 @@ class UnifiedAccountingInvoiceOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingInvoiceOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingInvoiceOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the invoice in the context of the 3rd Party""" - + + class UnifiedAccountingInvoiceOutputRemoteData(BaseModel): r"""The remote data of the invoice in the context of the 3rd Party""" - + + class UnifiedAccountingInvoiceOutputTypedDict(TypedDict): type: NotRequired[Nullable[str]] @@ -68,17 +66,13 @@ class UnifiedAccountingInvoiceOutputTypedDict(TypedDict): r"""The UUIDs of the tracking categories associated with the invoice""" line_items: NotRequired[List[LineItemTypedDict]] r"""The line items associated with this invoice""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingInvoiceOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingInvoiceOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the invoice record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the invoice in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingInvoiceOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingInvoiceOutputRemoteDataTypedDict]] r"""The remote data of the invoice in the context of the 3rd Party""" remote_updated_at: NotRequired[Nullable[datetime]] r"""The date when the invoice was last updated in the remote system""" @@ -86,141 +80,64 @@ class UnifiedAccountingInvoiceOutputTypedDict(TypedDict): r"""The created date of the invoice record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the invoice record""" - + class UnifiedAccountingInvoiceOutput(BaseModel): type: OptionalNullable[str] = UNSET r"""The type of the invoice""" - number: OptionalNullable[str] = UNSET r"""The invoice number""" - issue_date: OptionalNullable[datetime] = UNSET r"""The date the invoice was issued""" - due_date: OptionalNullable[datetime] = UNSET r"""The due date of the invoice""" - paid_on_date: OptionalNullable[datetime] = UNSET r"""The date the invoice was paid""" - memo: OptionalNullable[str] = UNSET r"""A memo or note on the invoice""" - currency: OptionalNullable[str] = UNSET r"""The currency of the invoice""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the invoice""" - total_discount: OptionalNullable[float] = UNSET r"""The total discount applied to the invoice""" - sub_total: OptionalNullable[float] = UNSET r"""The subtotal of the invoice""" - status: OptionalNullable[str] = UNSET r"""The status of the invoice""" - total_tax_amount: OptionalNullable[float] = UNSET r"""The total tax amount on the invoice""" - total_amount: OptionalNullable[float] = UNSET r"""The total amount of the invoice""" - balance: OptionalNullable[float] = UNSET r"""The remaining balance on the invoice""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the associated contact""" - accounting_period_id: OptionalNullable[str] = UNSET r"""The UUID of the associated accounting period""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories associated with the invoice""" - line_items: Optional[List[LineItem]] = None r"""The line items associated with this invoice""" - - field_mappings: OptionalNullable[UnifiedAccountingInvoiceOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedAccountingInvoiceOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the invoice record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the invoice in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedAccountingInvoiceOutputRemoteData] = UNSET r"""The remote data of the invoice in the context of the 3rd Party""" - remote_updated_at: OptionalNullable[datetime] = UNSET r"""The date when the invoice was last updated in the remote system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the invoice record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the invoice record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "type", - "number", - "issue_date", - "due_date", - "paid_on_date", - "memo", - "currency", - "exchange_rate", - "total_discount", - "sub_total", - "status", - "total_tax_amount", - "total_amount", - "balance", - "contact_id", - "accounting_period_id", - "tracking_categories", - "line_items", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_updated_at", - "created_at", - "modified_at", - ] - nullable_fields = [ - "type", - "number", - "issue_date", - "due_date", - "paid_on_date", - "memo", - "currency", - "exchange_rate", - "total_discount", - "sub_total", - "status", - "total_tax_amount", - "total_amount", - "balance", - "contact_id", - "accounting_period_id", - "tracking_categories", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_updated_at", - "created_at", - "modified_at", - ] + optional_fields = ["type", "number", "issue_date", "due_date", "paid_on_date", "memo", "currency", "exchange_rate", "total_discount", "sub_total", "status", "total_tax_amount", "total_amount", "balance", "contact_id", "accounting_period_id", "tracking_categories", "line_items", "field_mappings", "id", "remote_id", "remote_data", "remote_updated_at", "created_at", "modified_at"] + nullable_fields = ["type", "number", "issue_date", "due_date", "paid_on_date", "memo", "currency", "exchange_rate", "total_discount", "sub_total", "status", "total_tax_amount", "total_amount", "balance", "contact_id", "accounting_period_id", "tracking_categories", "field_mappings", "id", "remote_id", "remote_data", "remote_updated_at", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -230,19 +147,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingitemoutput.py b/src/panora_sdk/models/unifiedaccountingitemoutput.py index de92fcd..aa3b9d2 100644 --- a/src/panora_sdk/models/unifiedaccountingitemoutput.py +++ b/src/panora_sdk/models/unifiedaccountingitemoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedAccountingItemOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingItemOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingItemOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the item in the context of the 3rd Party""" - + + class UnifiedAccountingItemOutputRemoteData(BaseModel): r"""The remote data of the item in the context of the 3rd Party""" - + + class UnifiedAccountingItemOutputTypedDict(TypedDict): name: NotRequired[Nullable[str]] @@ -45,9 +43,7 @@ class UnifiedAccountingItemOutputTypedDict(TypedDict): r"""The UUID of the associated purchase account""" company_info_id: NotRequired[Nullable[str]] r"""The UUID of the associated company info""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingItemOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingItemOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the accounting item record""" @@ -61,85 +57,42 @@ class UnifiedAccountingItemOutputTypedDict(TypedDict): r"""The created date of the accounting item record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the accounting item record""" - + class UnifiedAccountingItemOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the accounting item""" - status: OptionalNullable[str] = UNSET r"""The status of the accounting item""" - unit_price: OptionalNullable[float] = UNSET r"""The unit price of the item in cents""" - purchase_price: OptionalNullable[float] = UNSET r"""The purchase price of the item in cents""" - sales_account: OptionalNullable[str] = UNSET r"""The UUID of the associated sales account""" - purchase_account: OptionalNullable[str] = UNSET r"""The UUID of the associated purchase account""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - field_mappings: OptionalNullable[UnifiedAccountingItemOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the accounting item record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the item in the context of the 3rd Party""" - remote_updated_at: OptionalNullable[datetime] = UNSET r"""The date when the item was last updated in the remote system""" - remote_data: OptionalNullable[UnifiedAccountingItemOutputRemoteData] = UNSET r"""The remote data of the item in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the accounting item record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the accounting item record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "status", - "unit_price", - "purchase_price", - "sales_account", - "purchase_account", - "company_info_id", - "field_mappings", - "id", - "remote_id", - "remote_updated_at", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "status", - "unit_price", - "purchase_price", - "sales_account", - "purchase_account", - "company_info_id", - "field_mappings", - "id", - "remote_id", - "remote_updated_at", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "status", "unit_price", "purchase_price", "sales_account", "purchase_account", "company_info_id", "field_mappings", "id", "remote_id", "remote_updated_at", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "status", "unit_price", "purchase_price", "sales_account", "purchase_account", "company_info_id", "field_mappings", "id", "remote_id", "remote_updated_at", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -149,19 +102,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingjournalentryinput.py b/src/panora_sdk/models/unifiedaccountingjournalentryinput.py index 3c2d00a..5ab45a5 100644 --- a/src/panora_sdk/models/unifiedaccountingjournalentryinput.py +++ b/src/panora_sdk/models/unifiedaccountingjournalentryinput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,11 +11,13 @@ class UnifiedAccountingJournalentryInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingJournalentryInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingJournalentryInputTypedDict(TypedDict): transaction_date: NotRequired[Nullable[datetime]] @@ -48,84 +44,42 @@ class UnifiedAccountingJournalentryInputTypedDict(TypedDict): r"""The posting status of the journal entry""" line_items: NotRequired[List[LineItemTypedDict]] r"""The line items associated with this journal entry""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingJournalentryInputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingJournalentryInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAccountingJournalentryInput(BaseModel): transaction_date: OptionalNullable[datetime] = UNSET r"""The date of the transaction""" - payments: OptionalNullable[List[str]] = UNSET r"""The payments associated with the journal entry""" - applied_payments: OptionalNullable[List[str]] = UNSET r"""The applied payments for the journal entry""" - memo: OptionalNullable[str] = UNSET r"""A memo or note for the journal entry""" - currency: OptionalNullable[str] = UNSET r"""The currency of the journal entry""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the journal entry""" - id_acc_company_info: Optional[str] = None r"""The UUID of the associated company info""" - journal_number: OptionalNullable[str] = UNSET r"""The journal number""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories associated with the journal entry""" - id_acc_accounting_period: OptionalNullable[str] = UNSET r"""The UUID of the associated accounting period""" - posting_status: OptionalNullable[str] = UNSET r"""The posting status of the journal entry""" - line_items: Optional[List[LineItem]] = None r"""The line items associated with this journal entry""" - - field_mappings: OptionalNullable[ - UnifiedAccountingJournalentryInputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedAccountingJournalentryInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "transaction_date", - "payments", - "applied_payments", - "memo", - "currency", - "exchange_rate", - "id_acc_company_info", - "journal_number", - "tracking_categories", - "id_acc_accounting_period", - "posting_status", - "line_items", - "field_mappings", - ] - nullable_fields = [ - "transaction_date", - "payments", - "applied_payments", - "memo", - "currency", - "exchange_rate", - "journal_number", - "tracking_categories", - "id_acc_accounting_period", - "posting_status", - "field_mappings", - ] + optional_fields = ["transaction_date", "payments", "applied_payments", "memo", "currency", "exchange_rate", "id_acc_company_info", "journal_number", "tracking_categories", "id_acc_accounting_period", "posting_status", "line_items", "field_mappings"] + nullable_fields = ["transaction_date", "payments", "applied_payments", "memo", "currency", "exchange_rate", "journal_number", "tracking_categories", "id_acc_accounting_period", "posting_status", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -135,19 +89,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingjournalentryoutput.py b/src/panora_sdk/models/unifiedaccountingjournalentryoutput.py index d9b4d20..5334d90 100644 --- a/src/panora_sdk/models/unifiedaccountingjournalentryoutput.py +++ b/src/panora_sdk/models/unifiedaccountingjournalentryoutput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,19 +11,23 @@ class UnifiedAccountingJournalentryOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingJournalentryOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingJournalentryOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the journal entry in the context of the 3rd Party""" - + + class UnifiedAccountingJournalentryOutputRemoteData(BaseModel): r"""The remote data of the journal entry in the context of the 3rd Party""" - + + class UnifiedAccountingJournalentryOutputTypedDict(TypedDict): transaction_date: NotRequired[Nullable[datetime]] @@ -56,9 +54,7 @@ class UnifiedAccountingJournalentryOutputTypedDict(TypedDict): r"""The posting status of the journal entry""" line_items: NotRequired[List[LineItemTypedDict]] r"""The line items associated with this journal entry""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingJournalentryOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingJournalentryOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the journal entry record""" @@ -68,122 +64,60 @@ class UnifiedAccountingJournalentryOutputTypedDict(TypedDict): r"""The date when the journal entry was created in the remote system""" remote_modiified_at: NotRequired[Nullable[datetime]] r"""The date when the journal entry was last modified in the remote system""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingJournalentryOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingJournalentryOutputRemoteDataTypedDict]] r"""The remote data of the journal entry in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the journal entry record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the journal entry record""" - + class UnifiedAccountingJournalentryOutput(BaseModel): transaction_date: OptionalNullable[datetime] = UNSET r"""The date of the transaction""" - payments: OptionalNullable[List[str]] = UNSET r"""The payments associated with the journal entry""" - applied_payments: OptionalNullable[List[str]] = UNSET r"""The applied payments for the journal entry""" - memo: OptionalNullable[str] = UNSET r"""A memo or note for the journal entry""" - currency: OptionalNullable[str] = UNSET r"""The currency of the journal entry""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the journal entry""" - id_acc_company_info: Optional[str] = None r"""The UUID of the associated company info""" - journal_number: OptionalNullable[str] = UNSET r"""The journal number""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories associated with the journal entry""" - id_acc_accounting_period: OptionalNullable[str] = UNSET r"""The UUID of the associated accounting period""" - posting_status: OptionalNullable[str] = UNSET r"""The posting status of the journal entry""" - line_items: Optional[List[LineItem]] = None r"""The line items associated with this journal entry""" - - field_mappings: OptionalNullable[ - UnifiedAccountingJournalentryOutputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedAccountingJournalentryOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the journal entry record""" - remote_id: Optional[str] = None r"""The remote ID of the journal entry in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the journal entry was created in the remote system""" - remote_modiified_at: OptionalNullable[datetime] = UNSET r"""The date when the journal entry was last modified in the remote system""" - remote_data: OptionalNullable[UnifiedAccountingJournalentryOutputRemoteData] = UNSET r"""The remote data of the journal entry in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the journal entry record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the journal entry record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "transaction_date", - "payments", - "applied_payments", - "memo", - "currency", - "exchange_rate", - "id_acc_company_info", - "journal_number", - "tracking_categories", - "id_acc_accounting_period", - "posting_status", - "line_items", - "field_mappings", - "id", - "remote_id", - "remote_created_at", - "remote_modiified_at", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "transaction_date", - "payments", - "applied_payments", - "memo", - "currency", - "exchange_rate", - "journal_number", - "tracking_categories", - "id_acc_accounting_period", - "posting_status", - "field_mappings", - "id", - "remote_created_at", - "remote_modiified_at", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["transaction_date", "payments", "applied_payments", "memo", "currency", "exchange_rate", "id_acc_company_info", "journal_number", "tracking_categories", "id_acc_accounting_period", "posting_status", "line_items", "field_mappings", "id", "remote_id", "remote_created_at", "remote_modiified_at", "remote_data", "created_at", "modified_at"] + nullable_fields = ["transaction_date", "payments", "applied_payments", "memo", "currency", "exchange_rate", "journal_number", "tracking_categories", "id_acc_accounting_period", "posting_status", "field_mappings", "id", "remote_created_at", "remote_modiified_at", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -193,19 +127,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingpaymentinput.py b/src/panora_sdk/models/unifiedaccountingpaymentinput.py index fed5858..8001aab 100644 --- a/src/panora_sdk/models/unifiedaccountingpaymentinput.py +++ b/src/panora_sdk/models/unifiedaccountingpaymentinput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,11 +11,13 @@ class UnifiedAccountingPaymentInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingPaymentInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingPaymentInputTypedDict(TypedDict): invoice_id: NotRequired[Nullable[str]] @@ -48,83 +44,42 @@ class UnifiedAccountingPaymentInputTypedDict(TypedDict): r"""The UUIDs of the tracking categories associated with the payment""" line_items: NotRequired[List[LineItemTypedDict]] r"""The line items associated with this payment""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingPaymentInputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingPaymentInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAccountingPaymentInput(BaseModel): invoice_id: OptionalNullable[str] = UNSET r"""The UUID of the associated invoice""" - transaction_date: OptionalNullable[datetime] = UNSET r"""The date of the transaction""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the associated contact""" - account_id: OptionalNullable[str] = UNSET r"""The UUID of the associated account""" - currency: OptionalNullable[str] = UNSET r"""The currency of the payment""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the payment""" - total_amount: OptionalNullable[float] = UNSET r"""The total amount of the payment in cents""" - type: OptionalNullable[str] = UNSET r"""The type of payment""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - accounting_period_id: OptionalNullable[str] = UNSET r"""The UUID of the associated accounting period""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories associated with the payment""" - line_items: Optional[List[LineItem]] = None r"""The line items associated with this payment""" - field_mappings: OptionalNullable[UnifiedAccountingPaymentInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "invoice_id", - "transaction_date", - "contact_id", - "account_id", - "currency", - "exchange_rate", - "total_amount", - "type", - "company_info_id", - "accounting_period_id", - "tracking_categories", - "line_items", - "field_mappings", - ] - nullable_fields = [ - "invoice_id", - "transaction_date", - "contact_id", - "account_id", - "currency", - "exchange_rate", - "total_amount", - "type", - "company_info_id", - "accounting_period_id", - "tracking_categories", - "field_mappings", - ] + optional_fields = ["invoice_id", "transaction_date", "contact_id", "account_id", "currency", "exchange_rate", "total_amount", "type", "company_info_id", "accounting_period_id", "tracking_categories", "line_items", "field_mappings"] + nullable_fields = ["invoice_id", "transaction_date", "contact_id", "account_id", "currency", "exchange_rate", "total_amount", "type", "company_info_id", "accounting_period_id", "tracking_categories", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -134,19 +89,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingpaymentoutput.py b/src/panora_sdk/models/unifiedaccountingpaymentoutput.py index 21df483..0021725 100644 --- a/src/panora_sdk/models/unifiedaccountingpaymentoutput.py +++ b/src/panora_sdk/models/unifiedaccountingpaymentoutput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,19 +11,23 @@ class UnifiedAccountingPaymentOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingPaymentOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingPaymentOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the payment in the context of the 3rd Party""" - + + class UnifiedAccountingPaymentOutputRemoteData(BaseModel): r"""The remote data of the payment in the context of the 3rd Party""" - + + class UnifiedAccountingPaymentOutputTypedDict(TypedDict): invoice_id: NotRequired[Nullable[str]] @@ -56,9 +54,7 @@ class UnifiedAccountingPaymentOutputTypedDict(TypedDict): r"""The UUIDs of the tracking categories associated with the payment""" line_items: NotRequired[List[LineItemTypedDict]] r"""The line items associated with this payment""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingPaymentOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingPaymentOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the payment record""" @@ -66,119 +62,58 @@ class UnifiedAccountingPaymentOutputTypedDict(TypedDict): r"""The remote ID of the payment in the context of the 3rd Party""" remote_updated_at: NotRequired[Nullable[datetime]] r"""The date when the payment was last updated in the remote system""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingPaymentOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingPaymentOutputRemoteDataTypedDict]] r"""The remote data of the payment in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the payment record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the payment record""" - + class UnifiedAccountingPaymentOutput(BaseModel): invoice_id: OptionalNullable[str] = UNSET r"""The UUID of the associated invoice""" - transaction_date: OptionalNullable[datetime] = UNSET r"""The date of the transaction""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the associated contact""" - account_id: OptionalNullable[str] = UNSET r"""The UUID of the associated account""" - currency: OptionalNullable[str] = UNSET r"""The currency of the payment""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the payment""" - total_amount: OptionalNullable[float] = UNSET r"""The total amount of the payment in cents""" - type: OptionalNullable[str] = UNSET r"""The type of payment""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - accounting_period_id: OptionalNullable[str] = UNSET r"""The UUID of the associated accounting period""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories associated with the payment""" - line_items: Optional[List[LineItem]] = None r"""The line items associated with this payment""" - - field_mappings: OptionalNullable[UnifiedAccountingPaymentOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedAccountingPaymentOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the payment record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the payment in the context of the 3rd Party""" - remote_updated_at: OptionalNullable[datetime] = UNSET r"""The date when the payment was last updated in the remote system""" - remote_data: OptionalNullable[UnifiedAccountingPaymentOutputRemoteData] = UNSET r"""The remote data of the payment in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the payment record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the payment record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "invoice_id", - "transaction_date", - "contact_id", - "account_id", - "currency", - "exchange_rate", - "total_amount", - "type", - "company_info_id", - "accounting_period_id", - "tracking_categories", - "line_items", - "field_mappings", - "id", - "remote_id", - "remote_updated_at", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "invoice_id", - "transaction_date", - "contact_id", - "account_id", - "currency", - "exchange_rate", - "total_amount", - "type", - "company_info_id", - "accounting_period_id", - "tracking_categories", - "field_mappings", - "id", - "remote_id", - "remote_updated_at", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["invoice_id", "transaction_date", "contact_id", "account_id", "currency", "exchange_rate", "total_amount", "type", "company_info_id", "accounting_period_id", "tracking_categories", "line_items", "field_mappings", "id", "remote_id", "remote_updated_at", "remote_data", "created_at", "modified_at"] + nullable_fields = ["invoice_id", "transaction_date", "contact_id", "account_id", "currency", "exchange_rate", "total_amount", "type", "company_info_id", "accounting_period_id", "tracking_categories", "field_mappings", "id", "remote_id", "remote_updated_at", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -188,19 +123,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingphonenumberoutput.py b/src/panora_sdk/models/unifiedaccountingphonenumberoutput.py index 361bc01..429a4d5 100644 --- a/src/panora_sdk/models/unifiedaccountingphonenumberoutput.py +++ b/src/panora_sdk/models/unifiedaccountingphonenumberoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Optional, TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedAccountingPhonenumberOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingPhonenumberOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingPhonenumberOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the phone number in the context of the 3rd Party""" - + + class UnifiedAccountingPhonenumberOutputRemoteData(BaseModel): r"""The remote data of the phone number in the context of the 3rd Party""" - + + class UnifiedAccountingPhonenumberOutputTypedDict(TypedDict): number: NotRequired[Nullable[str]] @@ -39,82 +37,46 @@ class UnifiedAccountingPhonenumberOutputTypedDict(TypedDict): r"""The UUID of the associated company info""" contact_id: NotRequired[str] r"""The UUID of the associated contact""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingPhonenumberOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingPhonenumberOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the phone number record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the phone number in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingPhonenumberOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingPhonenumberOutputRemoteDataTypedDict]] r"""The remote data of the phone number in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the phone number record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the phone number record""" - + class UnifiedAccountingPhonenumberOutput(BaseModel): number: OptionalNullable[str] = UNSET r"""The phone number""" - type: OptionalNullable[str] = UNSET r"""The type of phone number""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - contact_id: Optional[str] = None r"""The UUID of the associated contact""" - - field_mappings: OptionalNullable[ - UnifiedAccountingPhonenumberOutputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedAccountingPhonenumberOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the phone number record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the phone number in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedAccountingPhonenumberOutputRemoteData] = UNSET r"""The remote data of the phone number in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the phone number record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the phone number record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "number", - "type", - "company_info_id", - "contact_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "number", - "type", - "company_info_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["number", "type", "company_info_id", "contact_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["number", "type", "company_info_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -124,19 +86,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingpurchaseorderinput.py b/src/panora_sdk/models/unifiedaccountingpurchaseorderinput.py index d69a01c..3579680 100644 --- a/src/panora_sdk/models/unifiedaccountingpurchaseorderinput.py +++ b/src/panora_sdk/models/unifiedaccountingpurchaseorderinput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,11 +11,13 @@ class UnifiedAccountingPurchaseorderInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingPurchaseorderInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingPurchaseorderInputTypedDict(TypedDict): status: NotRequired[Nullable[str]] @@ -54,100 +50,48 @@ class UnifiedAccountingPurchaseorderInputTypedDict(TypedDict): r"""The UUID of the associated accounting period""" line_items: NotRequired[List[LineItemTypedDict]] r"""The line items associated with this purchase order""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingPurchaseorderInputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingPurchaseorderInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAccountingPurchaseorderInput(BaseModel): status: OptionalNullable[str] = UNSET r"""The status of the purchase order""" - issue_date: OptionalNullable[datetime] = UNSET r"""The issue date of the purchase order""" - purchase_order_number: OptionalNullable[str] = UNSET r"""The purchase order number""" - delivery_date: OptionalNullable[datetime] = UNSET r"""The delivery date for the purchase order""" - delivery_address: OptionalNullable[str] = UNSET r"""The UUID of the delivery address""" - customer: OptionalNullable[str] = UNSET r"""The UUID of the customer""" - vendor: OptionalNullable[str] = UNSET r"""The UUID of the vendor""" - memo: OptionalNullable[str] = UNSET r"""A memo or note for the purchase order""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the company""" - total_amount: OptionalNullable[float] = UNSET r"""The total amount of the purchase order in cents""" - currency: OptionalNullable[str] = UNSET r"""The currency of the purchase order""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the purchase order""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories associated with the purchase order""" - accounting_period_id: OptionalNullable[str] = UNSET r"""The UUID of the associated accounting period""" - line_items: Optional[List[LineItem]] = None r"""The line items associated with this purchase order""" - - field_mappings: OptionalNullable[ - UnifiedAccountingPurchaseorderInputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedAccountingPurchaseorderInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "status", - "issue_date", - "purchase_order_number", - "delivery_date", - "delivery_address", - "customer", - "vendor", - "memo", - "company_id", - "total_amount", - "currency", - "exchange_rate", - "tracking_categories", - "accounting_period_id", - "line_items", - "field_mappings", - ] - nullable_fields = [ - "status", - "issue_date", - "purchase_order_number", - "delivery_date", - "delivery_address", - "customer", - "vendor", - "memo", - "company_id", - "total_amount", - "currency", - "exchange_rate", - "tracking_categories", - "accounting_period_id", - "field_mappings", - ] + optional_fields = ["status", "issue_date", "purchase_order_number", "delivery_date", "delivery_address", "customer", "vendor", "memo", "company_id", "total_amount", "currency", "exchange_rate", "tracking_categories", "accounting_period_id", "line_items", "field_mappings"] + nullable_fields = ["status", "issue_date", "purchase_order_number", "delivery_date", "delivery_address", "customer", "vendor", "memo", "company_id", "total_amount", "currency", "exchange_rate", "tracking_categories", "accounting_period_id", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -157,19 +101,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingpurchaseorderoutput.py b/src/panora_sdk/models/unifiedaccountingpurchaseorderoutput.py index ffbf461..50ec60c 100644 --- a/src/panora_sdk/models/unifiedaccountingpurchaseorderoutput.py +++ b/src/panora_sdk/models/unifiedaccountingpurchaseorderoutput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,19 +11,23 @@ class UnifiedAccountingPurchaseorderOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingPurchaseorderOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingPurchaseorderOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the purchase order in the context of the 3rd Party""" - + + class UnifiedAccountingPurchaseorderOutputRemoteData(BaseModel): r"""The remote data of the purchase order in the context of the 3rd Party""" - + + class UnifiedAccountingPurchaseorderOutputTypedDict(TypedDict): status: NotRequired[Nullable[str]] @@ -62,9 +60,7 @@ class UnifiedAccountingPurchaseorderOutputTypedDict(TypedDict): r"""The UUID of the associated accounting period""" line_items: NotRequired[List[LineItemTypedDict]] r"""The line items associated with this purchase order""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingPurchaseorderOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingPurchaseorderOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the purchase order record""" @@ -74,141 +70,66 @@ class UnifiedAccountingPurchaseorderOutputTypedDict(TypedDict): r"""The date when the purchase order was created in the remote system""" remote_updated_at: NotRequired[Nullable[datetime]] r"""The date when the purchase order was last updated in the remote system""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingPurchaseorderOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingPurchaseorderOutputRemoteDataTypedDict]] r"""The remote data of the purchase order in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the purchase order record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the purchase order record""" - + class UnifiedAccountingPurchaseorderOutput(BaseModel): status: OptionalNullable[str] = UNSET r"""The status of the purchase order""" - issue_date: OptionalNullable[datetime] = UNSET r"""The issue date of the purchase order""" - purchase_order_number: OptionalNullable[str] = UNSET r"""The purchase order number""" - delivery_date: OptionalNullable[datetime] = UNSET r"""The delivery date for the purchase order""" - delivery_address: OptionalNullable[str] = UNSET r"""The UUID of the delivery address""" - customer: OptionalNullable[str] = UNSET r"""The UUID of the customer""" - vendor: OptionalNullable[str] = UNSET r"""The UUID of the vendor""" - memo: OptionalNullable[str] = UNSET r"""A memo or note for the purchase order""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the company""" - total_amount: OptionalNullable[float] = UNSET r"""The total amount of the purchase order in cents""" - currency: OptionalNullable[str] = UNSET r"""The currency of the purchase order""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the purchase order""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories associated with the purchase order""" - accounting_period_id: OptionalNullable[str] = UNSET r"""The UUID of the associated accounting period""" - line_items: Optional[List[LineItem]] = None r"""The line items associated with this purchase order""" - - field_mappings: OptionalNullable[ - UnifiedAccountingPurchaseorderOutputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedAccountingPurchaseorderOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the purchase order record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the purchase order in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the purchase order was created in the remote system""" - remote_updated_at: OptionalNullable[datetime] = UNSET r"""The date when the purchase order was last updated in the remote system""" - - remote_data: OptionalNullable[UnifiedAccountingPurchaseorderOutputRemoteData] = ( - UNSET - ) + remote_data: OptionalNullable[UnifiedAccountingPurchaseorderOutputRemoteData] = UNSET r"""The remote data of the purchase order in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the purchase order record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the purchase order record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "status", - "issue_date", - "purchase_order_number", - "delivery_date", - "delivery_address", - "customer", - "vendor", - "memo", - "company_id", - "total_amount", - "currency", - "exchange_rate", - "tracking_categories", - "accounting_period_id", - "line_items", - "field_mappings", - "id", - "remote_id", - "remote_created_at", - "remote_updated_at", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "status", - "issue_date", - "purchase_order_number", - "delivery_date", - "delivery_address", - "customer", - "vendor", - "memo", - "company_id", - "total_amount", - "currency", - "exchange_rate", - "tracking_categories", - "accounting_period_id", - "field_mappings", - "id", - "remote_id", - "remote_created_at", - "remote_updated_at", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["status", "issue_date", "purchase_order_number", "delivery_date", "delivery_address", "customer", "vendor", "memo", "company_id", "total_amount", "currency", "exchange_rate", "tracking_categories", "accounting_period_id", "line_items", "field_mappings", "id", "remote_id", "remote_created_at", "remote_updated_at", "remote_data", "created_at", "modified_at"] + nullable_fields = ["status", "issue_date", "purchase_order_number", "delivery_date", "delivery_address", "customer", "vendor", "memo", "company_id", "total_amount", "currency", "exchange_rate", "tracking_categories", "accounting_period_id", "field_mappings", "id", "remote_id", "remote_created_at", "remote_updated_at", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -218,19 +139,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingtaxrateoutput.py b/src/panora_sdk/models/unifiedaccountingtaxrateoutput.py index af225ae..77b9e18 100644 --- a/src/panora_sdk/models/unifiedaccountingtaxrateoutput.py +++ b/src/panora_sdk/models/unifiedaccountingtaxrateoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedAccountingTaxrateOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingTaxrateOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingTaxrateOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the tax rate in the context of the 3rd Party""" - + + class UnifiedAccountingTaxrateOutputRemoteData(BaseModel): r"""The remote data of the tax rate in the context of the 3rd Party""" - + + class UnifiedAccountingTaxrateOutputTypedDict(TypedDict): description: NotRequired[Nullable[str]] @@ -39,83 +37,46 @@ class UnifiedAccountingTaxrateOutputTypedDict(TypedDict): r"""The effective tax rate in basis points (e.g., 1900 for 19%)""" company_id: NotRequired[Nullable[str]] r"""The UUID of the associated company""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingTaxrateOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingTaxrateOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the tax rate record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the tax rate in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingTaxrateOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingTaxrateOutputRemoteDataTypedDict]] r"""The remote data of the tax rate in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the tax rate record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the tax rate record""" - + class UnifiedAccountingTaxrateOutput(BaseModel): description: OptionalNullable[str] = UNSET r"""The description of the tax rate""" - total_tax_ratge: OptionalNullable[float] = UNSET r"""The total tax rate in basis points (e.g., 2000 for 20%)""" - effective_tax_rate: OptionalNullable[float] = UNSET r"""The effective tax rate in basis points (e.g., 1900 for 19%)""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company""" - - field_mappings: OptionalNullable[UnifiedAccountingTaxrateOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedAccountingTaxrateOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the tax rate record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the tax rate in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedAccountingTaxrateOutputRemoteData] = UNSET r"""The remote data of the tax rate in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the tax rate record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the tax rate record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "description", - "total_tax_ratge", - "effective_tax_rate", - "company_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "description", - "total_tax_ratge", - "effective_tax_rate", - "company_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["description", "total_tax_ratge", "effective_tax_rate", "company_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["description", "total_tax_ratge", "effective_tax_rate", "company_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -125,19 +86,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingtrackingcategoryoutput.py b/src/panora_sdk/models/unifiedaccountingtrackingcategoryoutput.py index f215d98..596a964 100644 --- a/src/panora_sdk/models/unifiedaccountingtrackingcategoryoutput.py +++ b/src/panora_sdk/models/unifiedaccountingtrackingcategoryoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedAccountingTrackingcategoryOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingTrackingcategoryOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingTrackingcategoryOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the tracking category in the context of the 3rd Party""" - + + class UnifiedAccountingTrackingcategoryOutputRemoteData(BaseModel): r"""The remote data of the tracking category in the context of the 3rd Party""" - + + class UnifiedAccountingTrackingcategoryOutputTypedDict(TypedDict): name: NotRequired[Nullable[str]] @@ -39,85 +37,46 @@ class UnifiedAccountingTrackingcategoryOutputTypedDict(TypedDict): r"""The type of the tracking category""" parent_category: NotRequired[Nullable[str]] r"""The UUID of the parent category, if applicable""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingTrackingcategoryOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingTrackingcategoryOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the tracking category record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the tracking category in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingTrackingcategoryOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingTrackingcategoryOutputRemoteDataTypedDict]] r"""The remote data of the tracking category in the context of the 3rd Party""" created_at: NotRequired[Nullable[datetime]] r"""The created date of the tracking category record""" modified_at: NotRequired[Nullable[datetime]] r"""The last modified date of the tracking category record""" - + class UnifiedAccountingTrackingcategoryOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the tracking category""" - status: OptionalNullable[str] = UNSET r"""The status of the tracking category""" - category_type: OptionalNullable[str] = UNSET r"""The type of the tracking category""" - parent_category: OptionalNullable[str] = UNSET r"""The UUID of the parent category, if applicable""" - - field_mappings: OptionalNullable[ - UnifiedAccountingTrackingcategoryOutputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedAccountingTrackingcategoryOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the tracking category record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the tracking category in the context of the 3rd Party""" - - remote_data: OptionalNullable[UnifiedAccountingTrackingcategoryOutputRemoteData] = ( - UNSET - ) + remote_data: OptionalNullable[UnifiedAccountingTrackingcategoryOutputRemoteData] = UNSET r"""The remote data of the tracking category in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the tracking category record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the tracking category record""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "status", - "category_type", - "parent_category", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "status", - "category_type", - "parent_category", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "status", "category_type", "parent_category", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "status", "category_type", "parent_category", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -127,19 +86,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingtransactionoutput.py b/src/panora_sdk/models/unifiedaccountingtransactionoutput.py index de5e592..0c503bd 100644 --- a/src/panora_sdk/models/unifiedaccountingtransactionoutput.py +++ b/src/panora_sdk/models/unifiedaccountingtransactionoutput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,19 +11,23 @@ class UnifiedAccountingTransactionOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingTransactionOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingTransactionOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the tracking category in the context of the 3rd Party""" - + + class UnifiedAccountingTransactionOutputRemoteData(BaseModel): r"""The remote data of the tracking category in the context of the 3rd Party""" - + + class UnifiedAccountingTransactionOutputTypedDict(TypedDict): transaction_type: NotRequired[Nullable[str]] @@ -56,9 +54,7 @@ class UnifiedAccountingTransactionOutputTypedDict(TypedDict): r"""The UUID of the associated accounting period""" line_items: NotRequired[List[LineItemTypedDict]] r"""The line items associated with this transaction""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingTransactionOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingTransactionOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the transaction record""" @@ -66,116 +62,58 @@ class UnifiedAccountingTransactionOutputTypedDict(TypedDict): r"""The remote ID of the transaction""" created_at: NotRequired[datetime] r"""The created date of the transaction""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingTransactionOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingTransactionOutputRemoteDataTypedDict]] r"""The remote data of the tracking category in the context of the 3rd Party""" modified_at: NotRequired[datetime] r"""The last modified date of the transaction""" remote_updated_at: NotRequired[Nullable[datetime]] r"""The date when the transaction was last updated in the remote system""" - + class UnifiedAccountingTransactionOutput(BaseModel): transaction_type: OptionalNullable[str] = UNSET r"""The type of the transaction""" - number: OptionalNullable[str] = UNSET r"""The transaction number""" - transaction_date: OptionalNullable[datetime] = UNSET r"""The date of the transaction""" - total_amount: OptionalNullable[str] = UNSET r"""The total amount of the transaction""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the transaction""" - currency: OptionalNullable[str] = UNSET r"""The currency of the transaction""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the tracking categories associated with the transaction""" - account_id: OptionalNullable[str] = UNSET r"""The UUID of the associated account""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the associated contact""" - company_info_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company info""" - accounting_period_id: OptionalNullable[str] = UNSET r"""The UUID of the associated accounting period""" - line_items: Optional[List[LineItem]] = None r"""The line items associated with this transaction""" - - field_mappings: OptionalNullable[ - UnifiedAccountingTransactionOutputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedAccountingTransactionOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the transaction record""" - remote_id: Optional[str] = None r"""The remote ID of the transaction""" - created_at: Optional[datetime] = None r"""The created date of the transaction""" - remote_data: OptionalNullable[UnifiedAccountingTransactionOutputRemoteData] = UNSET r"""The remote data of the tracking category in the context of the 3rd Party""" - modified_at: Optional[datetime] = None r"""The last modified date of the transaction""" - remote_updated_at: OptionalNullable[datetime] = UNSET r"""The date when the transaction was last updated in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "transaction_type", - "number", - "transaction_date", - "total_amount", - "exchange_rate", - "currency", - "tracking_categories", - "account_id", - "contact_id", - "company_info_id", - "accounting_period_id", - "line_items", - "field_mappings", - "id", - "remote_id", - "created_at", - "remote_data", - "modified_at", - "remote_updated_at", - ] - nullable_fields = [ - "transaction_type", - "number", - "transaction_date", - "total_amount", - "exchange_rate", - "currency", - "tracking_categories", - "account_id", - "contact_id", - "company_info_id", - "accounting_period_id", - "field_mappings", - "id", - "remote_data", - "remote_updated_at", - ] + optional_fields = ["transaction_type", "number", "transaction_date", "total_amount", "exchange_rate", "currency", "tracking_categories", "account_id", "contact_id", "company_info_id", "accounting_period_id", "line_items", "field_mappings", "id", "remote_id", "created_at", "remote_data", "modified_at", "remote_updated_at"] + nullable_fields = ["transaction_type", "number", "transaction_date", "total_amount", "exchange_rate", "currency", "tracking_categories", "account_id", "contact_id", "company_info_id", "accounting_period_id", "field_mappings", "id", "remote_data", "remote_updated_at"] null_default_fields = [] serialized = handler(self) @@ -185,19 +123,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedaccountingvendorcreditoutput.py b/src/panora_sdk/models/unifiedaccountingvendorcreditoutput.py index 4aca4d2..ab39379 100644 --- a/src/panora_sdk/models/unifiedaccountingvendorcreditoutput.py +++ b/src/panora_sdk/models/unifiedaccountingvendorcreditoutput.py @@ -3,13 +3,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -17,19 +11,23 @@ class UnifiedAccountingVendorcreditOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingVendorcreditOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedAccountingVendorcreditOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the vendor credit in the context of the 3rd Party""" - + + class UnifiedAccountingVendorcreditOutputRemoteData(BaseModel): r"""The remote data of the vendor credit in the context of the 3rd Party""" - + + class UnifiedAccountingVendorcreditOutputTypedDict(TypedDict): number: NotRequired[Nullable[str]] @@ -52,9 +50,7 @@ class UnifiedAccountingVendorcreditOutputTypedDict(TypedDict): r"""The UUID of the associated accounting period""" line_items: NotRequired[List[LineItemTypedDict]] r"""The line items associated with this vendor credit""" - field_mappings: NotRequired[ - Nullable[UnifiedAccountingVendorcreditOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedAccountingVendorcreditOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the vendor credit record""" @@ -66,103 +62,50 @@ class UnifiedAccountingVendorcreditOutputTypedDict(TypedDict): r"""The last modified date of the vendor credit""" remote_updated_at: NotRequired[Nullable[datetime]] r"""The date when the vendor credit was last updated in the remote system""" - remote_data: NotRequired[ - Nullable[UnifiedAccountingVendorcreditOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedAccountingVendorcreditOutputRemoteDataTypedDict]] r"""The remote data of the vendor credit in the context of the 3rd Party""" - + class UnifiedAccountingVendorcreditOutput(BaseModel): number: OptionalNullable[str] = UNSET r"""The number of the vendor credit""" - transaction_date: OptionalNullable[datetime] = UNSET r"""The date of the transaction""" - vendor: OptionalNullable[str] = UNSET r"""The UUID of the vendor associated with the credit""" - total_amount: OptionalNullable[str] = UNSET r"""The total amount of the vendor credit""" - currency: OptionalNullable[str] = UNSET r"""The currency of the vendor credit""" - exchange_rate: OptionalNullable[str] = UNSET r"""The exchange rate applied to the vendor credit""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company""" - tracking_categories: OptionalNullable[List[str]] = UNSET r"""The UUID of the tracking categories associated with the vendor credit""" - accounting_period_id: OptionalNullable[str] = UNSET r"""The UUID of the associated accounting period""" - line_items: Optional[List[LineItem]] = None r"""The line items associated with this vendor credit""" - - field_mappings: OptionalNullable[ - UnifiedAccountingVendorcreditOutputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedAccountingVendorcreditOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the vendor credit record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the vendor credit""" - created_at: Optional[datetime] = None r"""The created date of the vendor credit""" - modified_at: Optional[datetime] = None r"""The last modified date of the vendor credit""" - remote_updated_at: OptionalNullable[datetime] = UNSET r"""The date when the vendor credit was last updated in the remote system""" - remote_data: OptionalNullable[UnifiedAccountingVendorcreditOutputRemoteData] = UNSET r"""The remote data of the vendor credit in the context of the 3rd Party""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "number", - "transaction_date", - "vendor", - "total_amount", - "currency", - "exchange_rate", - "company_id", - "tracking_categories", - "accounting_period_id", - "line_items", - "field_mappings", - "id", - "remote_id", - "created_at", - "modified_at", - "remote_updated_at", - "remote_data", - ] - nullable_fields = [ - "number", - "transaction_date", - "vendor", - "total_amount", - "currency", - "exchange_rate", - "company_id", - "tracking_categories", - "accounting_period_id", - "field_mappings", - "id", - "remote_id", - "remote_updated_at", - "remote_data", - ] + optional_fields = ["number", "transaction_date", "vendor", "total_amount", "currency", "exchange_rate", "company_id", "tracking_categories", "accounting_period_id", "line_items", "field_mappings", "id", "remote_id", "created_at", "modified_at", "remote_updated_at", "remote_data"] + nullable_fields = ["number", "transaction_date", "vendor", "total_amount", "currency", "exchange_rate", "company_id", "tracking_categories", "accounting_period_id", "field_mappings", "id", "remote_id", "remote_updated_at", "remote_data"] null_default_fields = [] serialized = handler(self) @@ -172,19 +115,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsactivityinput.py b/src/panora_sdk/models/unifiedatsactivityinput.py index 1c335e8..4344c9a 100644 --- a/src/panora_sdk/models/unifiedatsactivityinput.py +++ b/src/panora_sdk/models/unifiedatsactivityinput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -29,50 +23,28 @@ class UnifiedAtsActivityInputTypedDict(TypedDict): r"""The remote creation date of the activity""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAtsActivityInput(BaseModel): activity_type: OptionalNullable[str] = UNSET r"""The type of activity. NOTE, EMAIL or OTHER""" - subject: OptionalNullable[str] = UNSET r"""The subject of the activity""" - body: OptionalNullable[str] = UNSET r"""The body of the activity""" - visibility: OptionalNullable[str] = UNSET r"""The visibility of the activity. ADMIN_ONLY, PUBLIC or PRIVATE""" - candidate_id: OptionalNullable[str] = UNSET r"""The UUID of the candidate""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote creation date of the activity""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "activity_type", - "subject", - "body", - "visibility", - "candidate_id", - "remote_created_at", - "field_mappings", - ] - nullable_fields = [ - "activity_type", - "subject", - "body", - "visibility", - "candidate_id", - "remote_created_at", - "field_mappings", - ] + optional_fields = ["activity_type", "subject", "body", "visibility", "candidate_id", "remote_created_at", "field_mappings"] + nullable_fields = ["activity_type", "subject", "body", "visibility", "candidate_id", "remote_created_at", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -82,19 +54,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsactivityoutput.py b/src/panora_sdk/models/unifiedatsactivityoutput.py index a1ffef5..ccd4d36 100644 --- a/src/panora_sdk/models/unifiedatsactivityoutput.py +++ b/src/panora_sdk/models/unifiedatsactivityoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -39,75 +33,38 @@ class UnifiedAtsActivityOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedAtsActivityOutput(BaseModel): activity_type: OptionalNullable[str] = UNSET r"""The type of activity. NOTE, EMAIL or OTHER""" - subject: OptionalNullable[str] = UNSET r"""The subject of the activity""" - body: OptionalNullable[str] = UNSET r"""The body of the activity""" - visibility: OptionalNullable[str] = UNSET r"""The visibility of the activity. ADMIN_ONLY, PUBLIC or PRIVATE""" - candidate_id: OptionalNullable[str] = UNSET r"""The UUID of the candidate""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote creation date of the activity""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the activity""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the activity in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the activity in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "activity_type", - "subject", - "body", - "visibility", - "candidate_id", - "remote_created_at", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "activity_type", - "subject", - "body", - "visibility", - "candidate_id", - "remote_created_at", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["activity_type", "subject", "body", "visibility", "candidate_id", "remote_created_at", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["activity_type", "subject", "body", "visibility", "candidate_id", "remote_created_at", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -117,19 +74,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsapplicationinput.py b/src/panora_sdk/models/unifiedatsapplicationinput.py index 0b93e87..95c44f8 100644 --- a/src/panora_sdk/models/unifiedatsapplicationinput.py +++ b/src/panora_sdk/models/unifiedatsapplicationinput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, Optional, TypedDict from typing_extensions import NotRequired @@ -35,64 +29,34 @@ class UnifiedAtsApplicationInputTypedDict(TypedDict): r"""The UUID of the job""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAtsApplicationInput(BaseModel): applied_at: OptionalNullable[datetime] = UNSET r"""The application date""" - rejected_at: OptionalNullable[datetime] = UNSET r"""The rejection date""" - offers: OptionalNullable[List[str]] = UNSET r"""The offers UUIDs for the application""" - source: OptionalNullable[str] = UNSET r"""The source of the application""" - credited_to: OptionalNullable[str] = UNSET r"""The UUID of the person credited for the application""" - current_stage: OptionalNullable[str] = UNSET r"""The UUID of the current stage of the application""" - reject_reason: OptionalNullable[str] = UNSET r"""The rejection reason for the application""" - candidate_id: OptionalNullable[str] = UNSET r"""The UUID of the candidate""" - job_id: Optional[str] = None r"""The UUID of the job""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "applied_at", - "rejected_at", - "offers", - "source", - "credited_to", - "current_stage", - "reject_reason", - "candidate_id", - "job_id", - "field_mappings", - ] - nullable_fields = [ - "applied_at", - "rejected_at", - "offers", - "source", - "credited_to", - "current_stage", - "reject_reason", - "candidate_id", - "field_mappings", - ] + optional_fields = ["applied_at", "rejected_at", "offers", "source", "credited_to", "current_stage", "reject_reason", "candidate_id", "job_id", "field_mappings"] + nullable_fields = ["applied_at", "rejected_at", "offers", "source", "credited_to", "current_stage", "reject_reason", "candidate_id", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -102,19 +66,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsapplicationoutput.py b/src/panora_sdk/models/unifiedatsapplicationoutput.py index c68168c..54e4164 100644 --- a/src/panora_sdk/models/unifiedatsapplicationoutput.py +++ b/src/panora_sdk/models/unifiedatsapplicationoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, Optional, TypedDict from typing_extensions import NotRequired @@ -49,99 +43,48 @@ class UnifiedAtsApplicationOutputTypedDict(TypedDict): r"""The remote created date of the object""" remote_modified_at: NotRequired[Nullable[datetime]] r"""The remote modified date of the object""" - + class UnifiedAtsApplicationOutput(BaseModel): applied_at: OptionalNullable[datetime] = UNSET r"""The application date""" - rejected_at: OptionalNullable[datetime] = UNSET r"""The rejection date""" - offers: OptionalNullable[List[str]] = UNSET r"""The offers UUIDs for the application""" - source: OptionalNullable[str] = UNSET r"""The source of the application""" - credited_to: OptionalNullable[str] = UNSET r"""The UUID of the person credited for the application""" - current_stage: OptionalNullable[str] = UNSET r"""The UUID of the current stage of the application""" - reject_reason: OptionalNullable[str] = UNSET r"""The rejection reason for the application""" - candidate_id: OptionalNullable[str] = UNSET r"""The UUID of the candidate""" - job_id: Optional[str] = None r"""The UUID of the job""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the application""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the application in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the application in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote created date of the object""" - remote_modified_at: OptionalNullable[datetime] = UNSET r"""The remote modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "applied_at", - "rejected_at", - "offers", - "source", - "credited_to", - "current_stage", - "reject_reason", - "candidate_id", - "job_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - "remote_created_at", - "remote_modified_at", - ] - nullable_fields = [ - "applied_at", - "rejected_at", - "offers", - "source", - "credited_to", - "current_stage", - "reject_reason", - "candidate_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - "remote_created_at", - "remote_modified_at", - ] + optional_fields = ["applied_at", "rejected_at", "offers", "source", "credited_to", "current_stage", "reject_reason", "candidate_id", "job_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at", "remote_created_at", "remote_modified_at"] + nullable_fields = ["applied_at", "rejected_at", "offers", "source", "credited_to", "current_stage", "reject_reason", "candidate_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at", "remote_created_at", "remote_modified_at"] null_default_fields = [] serialized = handler(self) @@ -151,19 +94,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsattachmentinput.py b/src/panora_sdk/models/unifiedatsattachmentinput.py index 3824b52..2e02da1 100644 --- a/src/panora_sdk/models/unifiedatsattachmentinput.py +++ b/src/panora_sdk/models/unifiedatsattachmentinput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -29,50 +23,28 @@ class UnifiedAtsAttachmentInputTypedDict(TypedDict): r"""The UUID of the candidate""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAtsAttachmentInput(BaseModel): file_url: OptionalNullable[str] = UNSET r"""The URL of the file""" - file_name: OptionalNullable[str] = UNSET r"""The name of the file""" - attachment_type: OptionalNullable[str] = UNSET r"""The type of the file""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote creation date of the attachment""" - remote_modified_at: OptionalNullable[datetime] = UNSET r"""The remote modification date of the attachment""" - candidate_id: OptionalNullable[str] = UNSET r"""The UUID of the candidate""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "file_url", - "file_name", - "attachment_type", - "remote_created_at", - "remote_modified_at", - "candidate_id", - "field_mappings", - ] - nullable_fields = [ - "file_url", - "file_name", - "attachment_type", - "remote_created_at", - "remote_modified_at", - "candidate_id", - "field_mappings", - ] + optional_fields = ["file_url", "file_name", "attachment_type", "remote_created_at", "remote_modified_at", "candidate_id", "field_mappings"] + nullable_fields = ["file_url", "file_name", "attachment_type", "remote_created_at", "remote_modified_at", "candidate_id", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -82,19 +54,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsattachmentoutput.py b/src/panora_sdk/models/unifiedatsattachmentoutput.py index cfd510c..afec5ec 100644 --- a/src/panora_sdk/models/unifiedatsattachmentoutput.py +++ b/src/panora_sdk/models/unifiedatsattachmentoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -39,75 +33,38 @@ class UnifiedAtsAttachmentOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedAtsAttachmentOutput(BaseModel): file_url: OptionalNullable[str] = UNSET r"""The URL of the file""" - file_name: OptionalNullable[str] = UNSET r"""The name of the file""" - attachment_type: OptionalNullable[str] = UNSET r"""The type of the file""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote creation date of the attachment""" - remote_modified_at: OptionalNullable[datetime] = UNSET r"""The remote modification date of the attachment""" - candidate_id: OptionalNullable[str] = UNSET r"""The UUID of the candidate""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the attachment""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the attachment""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the attachment in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "file_url", - "file_name", - "attachment_type", - "remote_created_at", - "remote_modified_at", - "candidate_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "file_url", - "file_name", - "attachment_type", - "remote_created_at", - "remote_modified_at", - "candidate_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["file_url", "file_name", "attachment_type", "remote_created_at", "remote_modified_at", "candidate_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["file_url", "file_name", "attachment_type", "remote_created_at", "remote_modified_at", "candidate_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -117,19 +74,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatscandidateinput.py b/src/panora_sdk/models/unifiedatscandidateinput.py index 424699f..94cedcd 100644 --- a/src/panora_sdk/models/unifiedatscandidateinput.py +++ b/src/panora_sdk/models/unifiedatscandidateinput.py @@ -3,51 +3,17 @@ from __future__ import annotations from .email import Email, EmailTypedDict from .phone import Phone, PhoneTypedDict -from .unifiedatsapplicationoutput import ( - UnifiedAtsApplicationOutput, - UnifiedAtsApplicationOutputTypedDict, -) -from .unifiedatsattachmentoutput import ( - UnifiedAtsAttachmentOutput, - UnifiedAtsAttachmentOutputTypedDict, -) +from .unifiedatsapplicationoutput import UnifiedAtsApplicationOutput, UnifiedAtsApplicationOutputTypedDict +from .unifiedatsattachmentoutput import UnifiedAtsAttachmentOutput, UnifiedAtsAttachmentOutputTypedDict from .unifiedatstagoutput import UnifiedAtsTagOutput, UnifiedAtsTagOutputTypedDict from .url import URL, URLTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict, Union from typing_extensions import NotRequired -UnifiedAtsCandidateInputAttachmentsTypedDict = Union[ - UnifiedAtsAttachmentOutputTypedDict, str -] - - -UnifiedAtsCandidateInputAttachments = Union[UnifiedAtsAttachmentOutput, str] - - -UnifiedAtsCandidateInputApplicationsTypedDict = Union[ - UnifiedAtsApplicationOutputTypedDict, str -] - - -UnifiedAtsCandidateInputApplications = Union[UnifiedAtsApplicationOutput, str] - - -UnifiedAtsCandidateInputTagsTypedDict = Union[UnifiedAtsTagOutputTypedDict, str] - - -UnifiedAtsCandidateInputTags = Union[UnifiedAtsTagOutput, str] - - class UnifiedAtsCandidateInputTypedDict(TypedDict): first_name: NotRequired[Nullable[str]] r"""The first name of the candidate""" @@ -69,13 +35,9 @@ class UnifiedAtsCandidateInputTypedDict(TypedDict): r"""The remote modification date of the candidate""" last_interaction_at: NotRequired[Nullable[datetime]] r"""The last interaction date with the candidate""" - attachments: NotRequired[ - Nullable[List[UnifiedAtsCandidateInputAttachmentsTypedDict]] - ] + attachments: NotRequired[Nullable[List[UnifiedAtsCandidateInputAttachmentsTypedDict]]] r"""The attachments UUIDs of the candidate""" - applications: NotRequired[ - Nullable[List[UnifiedAtsCandidateInputApplicationsTypedDict]] - ] + applications: NotRequired[Nullable[List[UnifiedAtsCandidateInputApplicationsTypedDict]]] r"""The applications UUIDs of the candidate""" tags: NotRequired[Nullable[List[UnifiedAtsCandidateInputTagsTypedDict]]] r"""The tags of the candidate""" @@ -87,100 +49,48 @@ class UnifiedAtsCandidateInputTypedDict(TypedDict): r"""The email addresses of the candidate""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAtsCandidateInput(BaseModel): first_name: OptionalNullable[str] = UNSET r"""The first name of the candidate""" - last_name: OptionalNullable[str] = UNSET r"""The last name of the candidate""" - company: OptionalNullable[str] = UNSET r"""The company of the candidate""" - title: OptionalNullable[str] = UNSET r"""The title of the candidate""" - locations: OptionalNullable[str] = UNSET r"""The locations of the candidate""" - is_private: OptionalNullable[bool] = UNSET r"""Whether the candidate is private""" - email_reachable: OptionalNullable[bool] = UNSET r"""Whether the candidate is reachable by email""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote creation date of the candidate""" - remote_modified_at: OptionalNullable[datetime] = UNSET r"""The remote modification date of the candidate""" - last_interaction_at: OptionalNullable[datetime] = UNSET r"""The last interaction date with the candidate""" - attachments: OptionalNullable[List[UnifiedAtsCandidateInputAttachments]] = UNSET r"""The attachments UUIDs of the candidate""" - applications: OptionalNullable[List[UnifiedAtsCandidateInputApplications]] = UNSET r"""The applications UUIDs of the candidate""" - tags: OptionalNullable[List[UnifiedAtsCandidateInputTags]] = UNSET r"""The tags of the candidate""" - urls: OptionalNullable[List[URL]] = UNSET r"""The urls of the candidate, possible values for Url type are WEBSITE, BLOG, LINKEDIN, GITHUB, or OTHER""" - phone_numbers: OptionalNullable[List[Phone]] = UNSET r"""The phone numbers of the candidate""" - email_addresses: OptionalNullable[List[Email]] = UNSET r"""The email addresses of the candidate""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "first_name", - "last_name", - "company", - "title", - "locations", - "is_private", - "email_reachable", - "remote_created_at", - "remote_modified_at", - "last_interaction_at", - "attachments", - "applications", - "tags", - "urls", - "phone_numbers", - "email_addresses", - "field_mappings", - ] - nullable_fields = [ - "first_name", - "last_name", - "company", - "title", - "locations", - "is_private", - "email_reachable", - "remote_created_at", - "remote_modified_at", - "last_interaction_at", - "attachments", - "applications", - "tags", - "urls", - "phone_numbers", - "email_addresses", - "field_mappings", - ] + optional_fields = ["first_name", "last_name", "company", "title", "locations", "is_private", "email_reachable", "remote_created_at", "remote_modified_at", "last_interaction_at", "attachments", "applications", "tags", "urls", "phone_numbers", "email_addresses", "field_mappings"] + nullable_fields = ["first_name", "last_name", "company", "title", "locations", "is_private", "email_reachable", "remote_created_at", "remote_modified_at", "last_interaction_at", "attachments", "applications", "tags", "urls", "phone_numbers", "email_addresses", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -190,19 +100,39 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + + +UnifiedAtsCandidateInputAttachmentsTypedDict = Union[UnifiedAtsAttachmentOutputTypedDict, str] + + +UnifiedAtsCandidateInputAttachments = Union[UnifiedAtsAttachmentOutput, str] + + +UnifiedAtsCandidateInputApplicationsTypedDict = Union[UnifiedAtsApplicationOutputTypedDict, str] + + +UnifiedAtsCandidateInputApplications = Union[UnifiedAtsApplicationOutput, str] + + +UnifiedAtsCandidateInputTagsTypedDict = Union[UnifiedAtsTagOutputTypedDict, str] + + +UnifiedAtsCandidateInputTags = Union[UnifiedAtsTagOutput, str] + diff --git a/src/panora_sdk/models/unifiedatscandidateoutput.py b/src/panora_sdk/models/unifiedatscandidateoutput.py index 47ac88f..bf51368 100644 --- a/src/panora_sdk/models/unifiedatscandidateoutput.py +++ b/src/panora_sdk/models/unifiedatscandidateoutput.py @@ -3,49 +3,17 @@ from __future__ import annotations from .email import Email, EmailTypedDict from .phone import Phone, PhoneTypedDict -from .unifiedatsapplicationoutput import ( - UnifiedAtsApplicationOutput, - UnifiedAtsApplicationOutputTypedDict, -) -from .unifiedatsattachmentoutput import ( - UnifiedAtsAttachmentOutput, - UnifiedAtsAttachmentOutputTypedDict, -) +from .unifiedatsapplicationoutput import UnifiedAtsApplicationOutput, UnifiedAtsApplicationOutputTypedDict +from .unifiedatsattachmentoutput import UnifiedAtsAttachmentOutput, UnifiedAtsAttachmentOutputTypedDict from .unifiedatstagoutput import UnifiedAtsTagOutput, UnifiedAtsTagOutputTypedDict from .url import URL, URLTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict, Union from typing_extensions import NotRequired -UnifiedAtsCandidateOutputAttachmentsTypedDict = Union[ - UnifiedAtsAttachmentOutputTypedDict, str -] - - -UnifiedAtsCandidateOutputAttachments = Union[UnifiedAtsAttachmentOutput, str] - - -ApplicationsModelTypedDict = Union[UnifiedAtsApplicationOutputTypedDict, str] - - -ApplicationsModel = Union[UnifiedAtsApplicationOutput, str] - - -UnifiedAtsCandidateOutputTagsTypedDict = Union[UnifiedAtsTagOutputTypedDict, str] - - -UnifiedAtsCandidateOutputTags = Union[UnifiedAtsTagOutput, str] - - class UnifiedAtsCandidateOutputTypedDict(TypedDict): first_name: NotRequired[Nullable[str]] r"""The first name of the candidate""" @@ -67,9 +35,7 @@ class UnifiedAtsCandidateOutputTypedDict(TypedDict): r"""The remote modification date of the candidate""" last_interaction_at: NotRequired[Nullable[datetime]] r"""The last interaction date with the candidate""" - attachments: NotRequired[ - Nullable[List[UnifiedAtsCandidateOutputAttachmentsTypedDict]] - ] + attachments: NotRequired[Nullable[List[UnifiedAtsCandidateOutputAttachmentsTypedDict]]] r"""The attachments UUIDs of the candidate""" applications: NotRequired[Nullable[List[ApplicationsModelTypedDict]]] r"""The applications UUIDs of the candidate""" @@ -93,125 +59,58 @@ class UnifiedAtsCandidateOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedAtsCandidateOutput(BaseModel): first_name: OptionalNullable[str] = UNSET r"""The first name of the candidate""" - last_name: OptionalNullable[str] = UNSET r"""The last name of the candidate""" - company: OptionalNullable[str] = UNSET r"""The company of the candidate""" - title: OptionalNullable[str] = UNSET r"""The title of the candidate""" - locations: OptionalNullable[str] = UNSET r"""The locations of the candidate""" - is_private: OptionalNullable[bool] = UNSET r"""Whether the candidate is private""" - email_reachable: OptionalNullable[bool] = UNSET r"""Whether the candidate is reachable by email""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote creation date of the candidate""" - remote_modified_at: OptionalNullable[datetime] = UNSET r"""The remote modification date of the candidate""" - last_interaction_at: OptionalNullable[datetime] = UNSET r"""The last interaction date with the candidate""" - attachments: OptionalNullable[List[UnifiedAtsCandidateOutputAttachments]] = UNSET r"""The attachments UUIDs of the candidate""" - applications: OptionalNullable[List[ApplicationsModel]] = UNSET r"""The applications UUIDs of the candidate""" - tags: OptionalNullable[List[UnifiedAtsCandidateOutputTags]] = UNSET r"""The tags of the candidate""" - urls: OptionalNullable[List[URL]] = UNSET r"""The urls of the candidate, possible values for Url type are WEBSITE, BLOG, LINKEDIN, GITHUB, or OTHER""" - phone_numbers: OptionalNullable[List[Phone]] = UNSET r"""The phone numbers of the candidate""" - email_addresses: OptionalNullable[List[Email]] = UNSET r"""The email addresses of the candidate""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the candidate""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the candidate in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the candidate in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "first_name", - "last_name", - "company", - "title", - "locations", - "is_private", - "email_reachable", - "remote_created_at", - "remote_modified_at", - "last_interaction_at", - "attachments", - "applications", - "tags", - "urls", - "phone_numbers", - "email_addresses", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "first_name", - "last_name", - "company", - "title", - "locations", - "is_private", - "email_reachable", - "remote_created_at", - "remote_modified_at", - "last_interaction_at", - "attachments", - "applications", - "tags", - "urls", - "phone_numbers", - "email_addresses", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["first_name", "last_name", "company", "title", "locations", "is_private", "email_reachable", "remote_created_at", "remote_modified_at", "last_interaction_at", "attachments", "applications", "tags", "urls", "phone_numbers", "email_addresses", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["first_name", "last_name", "company", "title", "locations", "is_private", "email_reachable", "remote_created_at", "remote_modified_at", "last_interaction_at", "attachments", "applications", "tags", "urls", "phone_numbers", "email_addresses", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -221,19 +120,39 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + + +UnifiedAtsCandidateOutputAttachmentsTypedDict = Union[UnifiedAtsAttachmentOutputTypedDict, str] + + +UnifiedAtsCandidateOutputAttachments = Union[UnifiedAtsAttachmentOutput, str] + + +ApplicationsModelTypedDict = Union[UnifiedAtsApplicationOutputTypedDict, str] + + +ApplicationsModel = Union[UnifiedAtsApplicationOutput, str] + + +UnifiedAtsCandidateOutputTagsTypedDict = Union[UnifiedAtsTagOutputTypedDict, str] + + +UnifiedAtsCandidateOutputTags = Union[UnifiedAtsTagOutput, str] + diff --git a/src/panora_sdk/models/unifiedatsdepartmentoutput.py b/src/panora_sdk/models/unifiedatsdepartmentoutput.py index fc3839b..02a5cc9 100644 --- a/src/panora_sdk/models/unifiedatsdepartmentoutput.py +++ b/src/panora_sdk/models/unifiedatsdepartmentoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -29,50 +23,28 @@ class UnifiedAtsDepartmentOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedAtsDepartmentOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the department""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the department""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the department in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the department in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -82,19 +54,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatseeocsoutput.py b/src/panora_sdk/models/unifiedatseeocsoutput.py index 2b591cd..9725928 100644 --- a/src/panora_sdk/models/unifiedatseeocsoutput.py +++ b/src/panora_sdk/models/unifiedatseeocsoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -39,75 +33,38 @@ class UnifiedAtsEeocsOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedAtsEeocsOutput(BaseModel): candidate_id: OptionalNullable[str] = UNSET r"""The UUID of the candidate""" - submitted_at: OptionalNullable[datetime] = UNSET r"""The submission date of the EEOC""" - race: OptionalNullable[str] = UNSET r"""The race of the candidate""" - gender: OptionalNullable[str] = UNSET r"""The gender of the candidate""" - veteran_status: OptionalNullable[str] = UNSET r"""The veteran status of the candidate""" - disability_status: OptionalNullable[str] = UNSET r"""The disability status of the candidate""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the EEOC""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the EEOC in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the EEOC in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "candidate_id", - "submitted_at", - "race", - "gender", - "veteran_status", - "disability_status", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "candidate_id", - "submitted_at", - "race", - "gender", - "veteran_status", - "disability_status", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["candidate_id", "submitted_at", "race", "gender", "veteran_status", "disability_status", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["candidate_id", "submitted_at", "race", "gender", "veteran_status", "disability_status", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -117,19 +74,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsinterviewinput.py b/src/panora_sdk/models/unifiedatsinterviewinput.py index 9f74b0f..edd54c5 100644 --- a/src/panora_sdk/models/unifiedatsinterviewinput.py +++ b/src/panora_sdk/models/unifiedatsinterviewinput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict from typing_extensions import NotRequired @@ -37,70 +31,36 @@ class UnifiedAtsInterviewInputTypedDict(TypedDict): r"""The remote modification date of the interview""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedAtsInterviewInput(BaseModel): status: OptionalNullable[str] = UNSET r"""The status of the interview""" - application_id: OptionalNullable[str] = UNSET r"""The UUID of the application""" - job_interview_stage_id: OptionalNullable[str] = UNSET r"""The UUID of the job interview stage""" - organized_by: OptionalNullable[str] = UNSET r"""The UUID of the organizer""" - interviewers: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the interviewers""" - location: OptionalNullable[str] = UNSET r"""The location of the interview""" - start_at: OptionalNullable[datetime] = UNSET r"""The start date and time of the interview""" - end_at: OptionalNullable[datetime] = UNSET r"""The end date and time of the interview""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote creation date of the interview""" - remote_updated_at: OptionalNullable[datetime] = UNSET r"""The remote modification date of the interview""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "status", - "application_id", - "job_interview_stage_id", - "organized_by", - "interviewers", - "location", - "start_at", - "end_at", - "remote_created_at", - "remote_updated_at", - "field_mappings", - ] - nullable_fields = [ - "status", - "application_id", - "job_interview_stage_id", - "organized_by", - "interviewers", - "location", - "start_at", - "end_at", - "remote_created_at", - "remote_updated_at", - "field_mappings", - ] + optional_fields = ["status", "application_id", "job_interview_stage_id", "organized_by", "interviewers", "location", "start_at", "end_at", "remote_created_at", "remote_updated_at", "field_mappings"] + nullable_fields = ["status", "application_id", "job_interview_stage_id", "organized_by", "interviewers", "location", "start_at", "end_at", "remote_created_at", "remote_updated_at", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -110,19 +70,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsinterviewoutput.py b/src/panora_sdk/models/unifiedatsinterviewoutput.py index dba9517..e707ad0 100644 --- a/src/panora_sdk/models/unifiedatsinterviewoutput.py +++ b/src/panora_sdk/models/unifiedatsinterviewoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict from typing_extensions import NotRequired @@ -47,95 +41,46 @@ class UnifiedAtsInterviewOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedAtsInterviewOutput(BaseModel): status: OptionalNullable[str] = UNSET r"""The status of the interview""" - application_id: OptionalNullable[str] = UNSET r"""The UUID of the application""" - job_interview_stage_id: OptionalNullable[str] = UNSET r"""The UUID of the job interview stage""" - organized_by: OptionalNullable[str] = UNSET r"""The UUID of the organizer""" - interviewers: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the interviewers""" - location: OptionalNullable[str] = UNSET r"""The location of the interview""" - start_at: OptionalNullable[datetime] = UNSET r"""The start date and time of the interview""" - end_at: OptionalNullable[datetime] = UNSET r"""The end date and time of the interview""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote creation date of the interview""" - remote_updated_at: OptionalNullable[datetime] = UNSET r"""The remote modification date of the interview""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the interview""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the interview in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the interview in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "status", - "application_id", - "job_interview_stage_id", - "organized_by", - "interviewers", - "location", - "start_at", - "end_at", - "remote_created_at", - "remote_updated_at", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "status", - "application_id", - "job_interview_stage_id", - "organized_by", - "interviewers", - "location", - "start_at", - "end_at", - "remote_created_at", - "remote_updated_at", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["status", "application_id", "job_interview_stage_id", "organized_by", "interviewers", "location", "start_at", "end_at", "remote_created_at", "remote_updated_at", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["status", "application_id", "job_interview_stage_id", "organized_by", "interviewers", "location", "start_at", "end_at", "remote_created_at", "remote_updated_at", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -145,19 +90,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsjobinterviewstageoutput.py b/src/panora_sdk/models/unifiedatsjobinterviewstageoutput.py index 46b97a1..e508a53 100644 --- a/src/panora_sdk/models/unifiedatsjobinterviewstageoutput.py +++ b/src/panora_sdk/models/unifiedatsjobinterviewstageoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -33,60 +27,32 @@ class UnifiedAtsJobinterviewstageOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedAtsJobinterviewstageOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the job interview stage""" - stage_order: OptionalNullable[float] = UNSET r"""The order of the stage""" - job_id: OptionalNullable[str] = UNSET r"""The UUID of the job""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the job interview stage""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the job interview stage in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the job interview stage in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "stage_order", - "job_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "stage_order", - "job_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "stage_order", "job_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "stage_order", "job_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -96,19 +62,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsjoboutput.py b/src/panora_sdk/models/unifiedatsjoboutput.py index a4f1609..29e20f4 100644 --- a/src/panora_sdk/models/unifiedatsjoboutput.py +++ b/src/panora_sdk/models/unifiedatsjoboutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict from typing_extensions import NotRequired @@ -51,105 +45,50 @@ class UnifiedAtsJobOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedAtsJobOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the job""" - description: OptionalNullable[str] = UNSET r"""The description of the job""" - code: OptionalNullable[str] = UNSET r"""The code of the job""" - status: OptionalNullable[str] = UNSET r"""The status of the job""" - type: OptionalNullable[str] = UNSET r"""The type of the job""" - confidential: OptionalNullable[bool] = UNSET r"""Whether the job is confidential""" - departments: OptionalNullable[List[str]] = UNSET r"""The departments UUIDs associated with the job""" - offices: OptionalNullable[List[str]] = UNSET r"""The offices UUIDs associated with the job""" - managers: OptionalNullable[List[str]] = UNSET r"""The managers UUIDs associated with the job""" - recruiters: OptionalNullable[List[str]] = UNSET r"""The recruiters UUIDs associated with the job""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote creation date of the job""" - remote_updated_at: OptionalNullable[datetime] = UNSET r"""The remote modification date of the job""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the job""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the job in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the job in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "description", - "code", - "status", - "type", - "confidential", - "departments", - "offices", - "managers", - "recruiters", - "remote_created_at", - "remote_updated_at", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "description", - "code", - "status", - "type", - "confidential", - "departments", - "offices", - "managers", - "recruiters", - "remote_created_at", - "remote_updated_at", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "description", "code", "status", "type", "confidential", "departments", "offices", "managers", "recruiters", "remote_created_at", "remote_updated_at", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "description", "code", "status", "type", "confidential", "departments", "offices", "managers", "recruiters", "remote_created_at", "remote_updated_at", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -159,19 +98,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsofferoutput.py b/src/panora_sdk/models/unifiedatsofferoutput.py index f19ba96..57d9e12 100644 --- a/src/panora_sdk/models/unifiedatsofferoutput.py +++ b/src/panora_sdk/models/unifiedatsofferoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedAtsOfferOutputCreatedAtTypedDict(TypedDict): r"""The created date of the object""" - + + class UnifiedAtsOfferOutputCreatedAt(BaseModel): r"""The created date of the object""" - + + class UnifiedAtsOfferOutputModifiedAtTypedDict(TypedDict): r"""The modified date of the object""" - + + class UnifiedAtsOfferOutputModifiedAt(BaseModel): r"""The modified date of the object""" - + + class UnifiedAtsOfferOutputTypedDict(TypedDict): created_by: NotRequired[Nullable[str]] @@ -57,80 +55,40 @@ class UnifiedAtsOfferOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[UnifiedAtsOfferOutputModifiedAtTypedDict]] r"""The modified date of the object""" - + class UnifiedAtsOfferOutput(BaseModel): created_by: OptionalNullable[str] = UNSET r"""The UUID of the creator""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote creation date of the offer""" - closed_at: OptionalNullable[datetime] = UNSET r"""The closing date of the offer""" - sent_at: OptionalNullable[datetime] = UNSET r"""The sending date of the offer""" - start_date: OptionalNullable[datetime] = UNSET r"""The start date of the offer""" - status: OptionalNullable[str] = UNSET r"""The status of the offer""" - application_id: OptionalNullable[str] = UNSET r"""The UUID of the application""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the offer""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the offer in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the offer in the context of the 3rd Party""" - created_at: OptionalNullable[UnifiedAtsOfferOutputCreatedAt] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[UnifiedAtsOfferOutputModifiedAt] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "created_by", - "remote_created_at", - "closed_at", - "sent_at", - "start_date", - "status", - "application_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "created_by", - "remote_created_at", - "closed_at", - "sent_at", - "start_date", - "status", - "application_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["created_by", "remote_created_at", "closed_at", "sent_at", "start_date", "status", "application_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["created_by", "remote_created_at", "closed_at", "sent_at", "start_date", "status", "application_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -140,19 +98,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsofficeoutput.py b/src/panora_sdk/models/unifiedatsofficeoutput.py index 521191d..f556354 100644 --- a/src/panora_sdk/models/unifiedatsofficeoutput.py +++ b/src/panora_sdk/models/unifiedatsofficeoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, Optional, TypedDict from typing_extensions import NotRequired @@ -31,54 +25,30 @@ class UnifiedAtsOfficeOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedAtsOfficeOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the office""" - location: OptionalNullable[str] = UNSET r"""The location of the office""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: Optional[str] = None r"""The UUID of the office""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the office in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the office in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "location", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "location", - "field_mappings", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "location", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "location", "field_mappings", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -88,19 +58,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsrejectreasonoutput.py b/src/panora_sdk/models/unifiedatsrejectreasonoutput.py index c948fdd..c6ddbf2 100644 --- a/src/panora_sdk/models/unifiedatsrejectreasonoutput.py +++ b/src/panora_sdk/models/unifiedatsrejectreasonoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -29,50 +23,28 @@ class UnifiedAtsRejectreasonOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedAtsRejectreasonOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the reject reason""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the reject reason""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the reject reason in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the reject reason in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -82,19 +54,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsscorecardoutput.py b/src/panora_sdk/models/unifiedatsscorecardoutput.py index 7eaac0a..4ea2fbe 100644 --- a/src/panora_sdk/models/unifiedatsscorecardoutput.py +++ b/src/panora_sdk/models/unifiedatsscorecardoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, Optional, TypedDict from typing_extensions import NotRequired @@ -37,69 +31,36 @@ class UnifiedAtsScorecardOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedAtsScorecardOutput(BaseModel): overall_recommendation: OptionalNullable[str] = UNSET r"""The overall recommendation""" - application_id: OptionalNullable[str] = UNSET r"""The UUID of the application""" - interview_id: OptionalNullable[str] = UNSET r"""The UUID of the interview""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote creation date of the scorecard""" - submitted_at: OptionalNullable[datetime] = UNSET r"""The submission date of the scorecard""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: Optional[str] = None r"""The UUID of the scorecard""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the scorecard in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the scorecard in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "overall_recommendation", - "application_id", - "interview_id", - "remote_created_at", - "submitted_at", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "overall_recommendation", - "application_id", - "interview_id", - "remote_created_at", - "submitted_at", - "field_mappings", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["overall_recommendation", "application_id", "interview_id", "remote_created_at", "submitted_at", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["overall_recommendation", "application_id", "interview_id", "remote_created_at", "submitted_at", "field_mappings", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -109,19 +70,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatstagoutput.py b/src/panora_sdk/models/unifiedatstagoutput.py index 0b42f52..356f140 100644 --- a/src/panora_sdk/models/unifiedatstagoutput.py +++ b/src/panora_sdk/models/unifiedatstagoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -31,55 +25,30 @@ class UnifiedAtsTagOutputTypedDict(TypedDict): r"""The creation date of the tag""" modified_at: NotRequired[Nullable[datetime]] r"""The modification date of the tag""" - + class UnifiedAtsTagOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the tag""" - id_ats_candidate: OptionalNullable[str] = UNSET r"""The UUID of the candidate""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the tag""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the tag in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the tag in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The creation date of the tag""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modification date of the tag""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "id_ats_candidate", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "id_ats_candidate", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["name", "id_ats_candidate", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "id_ats_candidate", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -89,19 +58,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedatsuseroutput.py b/src/panora_sdk/models/unifiedatsuseroutput.py index 47fa18c..39b162a 100644 --- a/src/panora_sdk/models/unifiedatsuseroutput.py +++ b/src/panora_sdk/models/unifiedatsuseroutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -41,80 +35,40 @@ class UnifiedAtsUserOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedAtsUserOutput(BaseModel): first_name: OptionalNullable[str] = UNSET r"""The first name of the user""" - last_name: OptionalNullable[str] = UNSET r"""The last name of the user""" - email: OptionalNullable[str] = UNSET r"""The email of the user""" - disabled: OptionalNullable[bool] = UNSET r"""Whether the user is disabled""" - access_role: OptionalNullable[str] = UNSET r"""The access role of the user""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The remote creation date of the user""" - remote_modified_at: OptionalNullable[datetime] = UNSET r"""The remote modification date of the user""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the user""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the user in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the user in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "first_name", - "last_name", - "email", - "disabled", - "access_role", - "remote_created_at", - "remote_modified_at", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "first_name", - "last_name", - "email", - "disabled", - "access_role", - "remote_created_at", - "remote_modified_at", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["first_name", "last_name", "email", "disabled", "access_role", "remote_created_at", "remote_modified_at", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["first_name", "last_name", "email", "disabled", "access_role", "remote_created_at", "remote_modified_at", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -124,19 +78,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmcompanyinput.py b/src/panora_sdk/models/unifiedcrmcompanyinput.py index d7e9171..6eccad6 100644 --- a/src/panora_sdk/models/unifiedcrmcompanyinput.py +++ b/src/panora_sdk/models/unifiedcrmcompanyinput.py @@ -4,13 +4,7 @@ from .address import Address, AddressTypedDict from .email import Email, EmailTypedDict from .phone import Phone, PhoneTypedDict -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict from typing_extensions import NotRequired @@ -33,54 +27,30 @@ class UnifiedCrmCompanyInputTypedDict(TypedDict): r"""The phone numbers of the company""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the company between the remote 3rd party & Panora""" - + class UnifiedCrmCompanyInput(BaseModel): name: Nullable[str] r"""The name of the company""" - industry: OptionalNullable[str] = UNSET r"""The industry of the company. Authorized values can be found in the Industry enum.""" - number_of_employees: OptionalNullable[float] = UNSET r"""The number of employees of the company""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user who owns the company""" - email_addresses: OptionalNullable[List[Email]] = UNSET r"""The email addresses of the company""" - addresses: OptionalNullable[List[Address]] = UNSET r"""The addresses of the company""" - phone_numbers: OptionalNullable[List[Phone]] = UNSET r"""The phone numbers of the company""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the company between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "industry", - "number_of_employees", - "user_id", - "email_addresses", - "addresses", - "phone_numbers", - "field_mappings", - ] - nullable_fields = [ - "name", - "industry", - "number_of_employees", - "user_id", - "email_addresses", - "addresses", - "phone_numbers", - "field_mappings", - ] + optional_fields = ["industry", "number_of_employees", "user_id", "email_addresses", "addresses", "phone_numbers", "field_mappings"] + nullable_fields = ["name", "industry", "number_of_employees", "user_id", "email_addresses", "addresses", "phone_numbers", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -90,19 +60,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmcompanyoutput.py b/src/panora_sdk/models/unifiedcrmcompanyoutput.py index 97476b1..f212aa9 100644 --- a/src/panora_sdk/models/unifiedcrmcompanyoutput.py +++ b/src/panora_sdk/models/unifiedcrmcompanyoutput.py @@ -4,13 +4,7 @@ from .address import Address, AddressTypedDict from .email import Email, EmailTypedDict from .phone import Phone, PhoneTypedDict -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict from typing_extensions import NotRequired @@ -18,19 +12,23 @@ class CreatedAtTypedDict(TypedDict): r"""The created date of the object""" - + + class CreatedAt(BaseModel): r"""The created date of the object""" - + + class ModifiedAtTypedDict(TypedDict): r"""The modified date of the object""" - + + class ModifiedAt(BaseModel): r"""The modified date of the object""" - + + class UnifiedCrmCompanyOutputTypedDict(TypedDict): name: Nullable[str] @@ -59,79 +57,40 @@ class UnifiedCrmCompanyOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[ModifiedAtTypedDict]] r"""The modified date of the object""" - + class UnifiedCrmCompanyOutput(BaseModel): name: Nullable[str] r"""The name of the company""" - industry: OptionalNullable[str] = UNSET r"""The industry of the company. Authorized values can be found in the Industry enum.""" - number_of_employees: OptionalNullable[float] = UNSET r"""The number of employees of the company""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user who owns the company""" - email_addresses: OptionalNullable[List[Email]] = UNSET r"""The email addresses of the company""" - addresses: OptionalNullable[List[Address]] = UNSET r"""The addresses of the company""" - phone_numbers: OptionalNullable[List[Phone]] = UNSET r"""The phone numbers of the company""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the company between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the company""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the company in the context of the Crm 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the company in the context of the Crm 3rd Party""" - created_at: OptionalNullable[CreatedAt] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[ModifiedAt] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "industry", - "number_of_employees", - "user_id", - "email_addresses", - "addresses", - "phone_numbers", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "industry", - "number_of_employees", - "user_id", - "email_addresses", - "addresses", - "phone_numbers", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["industry", "number_of_employees", "user_id", "email_addresses", "addresses", "phone_numbers", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "industry", "number_of_employees", "user_id", "email_addresses", "addresses", "phone_numbers", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -141,19 +100,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmcontactinput.py b/src/panora_sdk/models/unifiedcrmcontactinput.py index e04f9d6..719a769 100644 --- a/src/panora_sdk/models/unifiedcrmcontactinput.py +++ b/src/panora_sdk/models/unifiedcrmcontactinput.py @@ -4,13 +4,7 @@ from .address import Address, AddressTypedDict from .email import Email, EmailTypedDict from .phone import Phone, PhoneTypedDict -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict from typing_extensions import NotRequired @@ -31,48 +25,28 @@ class UnifiedCrmContactInputTypedDict(TypedDict): r"""The UUID of the user who owns the contact""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the contact between the remote 3rd party & Panora""" - + class UnifiedCrmContactInput(BaseModel): first_name: Nullable[str] r"""The first name of the contact""" - last_name: Nullable[str] r"""The last name of the contact""" - email_addresses: OptionalNullable[List[Email]] = UNSET r"""The email addresses of the contact""" - phone_numbers: OptionalNullable[List[Phone]] = UNSET r"""The phone numbers of the contact""" - addresses: OptionalNullable[List[Address]] = UNSET r"""The addresses of the contact""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user who owns the contact""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the contact between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "email_addresses", - "phone_numbers", - "addresses", - "user_id", - "field_mappings", - ] - nullable_fields = [ - "first_name", - "last_name", - "email_addresses", - "phone_numbers", - "addresses", - "user_id", - "field_mappings", - ] + optional_fields = ["email_addresses", "phone_numbers", "addresses", "user_id", "field_mappings"] + nullable_fields = ["first_name", "last_name", "email_addresses", "phone_numbers", "addresses", "user_id", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -82,19 +56,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmcontactoutput.py b/src/panora_sdk/models/unifiedcrmcontactoutput.py index bc5f306..0f9095c 100644 --- a/src/panora_sdk/models/unifiedcrmcontactoutput.py +++ b/src/panora_sdk/models/unifiedcrmcontactoutput.py @@ -5,13 +5,7 @@ from .email import Email, EmailTypedDict from .phone import Phone, PhoneTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict from typing_extensions import NotRequired @@ -42,73 +36,38 @@ class UnifiedCrmContactOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedCrmContactOutput(BaseModel): first_name: Nullable[str] r"""The first name of the contact""" - last_name: Nullable[str] r"""The last name of the contact""" - email_addresses: OptionalNullable[List[Email]] = UNSET r"""The email addresses of the contact""" - phone_numbers: OptionalNullable[List[Phone]] = UNSET r"""The phone numbers of the contact""" - addresses: OptionalNullable[List[Address]] = UNSET r"""The addresses of the contact""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user who owns the contact""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the contact between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the contact""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the contact in the context of the Crm 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the contact in the context of the Crm 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "email_addresses", - "phone_numbers", - "addresses", - "user_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "first_name", - "last_name", - "email_addresses", - "phone_numbers", - "addresses", - "user_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["email_addresses", "phone_numbers", "addresses", "user_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["first_name", "last_name", "email_addresses", "phone_numbers", "addresses", "user_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -118,19 +77,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmdealinput.py b/src/panora_sdk/models/unifiedcrmdealinput.py index ae4eb71..47ad29c 100644 --- a/src/panora_sdk/models/unifiedcrmdealinput.py +++ b/src/panora_sdk/models/unifiedcrmdealinput.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -28,42 +22,28 @@ class UnifiedCrmDealInputTypedDict(TypedDict): r"""The UUID of the company tied to the deal""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the company between the remote 3rd party & Panora""" - + class UnifiedCrmDealInput(BaseModel): name: Nullable[str] r"""The name of the deal""" - description: Nullable[str] r"""The description of the deal""" - amount: Nullable[float] r"""The amount of the deal""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user who is on the deal""" - stage_id: OptionalNullable[str] = UNSET r"""The UUID of the stage of the deal""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the company tied to the deal""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the company between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["user_id", "stage_id", "company_id", "field_mappings"] - nullable_fields = [ - "name", - "description", - "amount", - "user_id", - "stage_id", - "company_id", - "field_mappings", - ] + nullable_fields = ["name", "description", "amount", "user_id", "stage_id", "company_id", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -73,19 +53,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmdealoutput.py b/src/panora_sdk/models/unifiedcrmdealoutput.py index 6f2ffd4..fd4d4fb 100644 --- a/src/panora_sdk/models/unifiedcrmdealoutput.py +++ b/src/panora_sdk/models/unifiedcrmdealoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -39,72 +33,38 @@ class UnifiedCrmDealOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedCrmDealOutput(BaseModel): name: Nullable[str] r"""The name of the deal""" - description: Nullable[str] r"""The description of the deal""" - amount: Nullable[float] r"""The amount of the deal""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user who is on the deal""" - stage_id: OptionalNullable[str] = UNSET r"""The UUID of the stage of the deal""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the company tied to the deal""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the company between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the deal""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the deal in the context of the Crm 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the deal in the context of the Crm 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "user_id", - "stage_id", - "company_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "description", - "amount", - "user_id", - "stage_id", - "company_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["user_id", "stage_id", "company_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "description", "amount", "user_id", "stage_id", "company_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -114,19 +74,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmengagementinput.py b/src/panora_sdk/models/unifiedcrmengagementinput.py index 2bf0260..3b2b701 100644 --- a/src/panora_sdk/models/unifiedcrmengagementinput.py +++ b/src/panora_sdk/models/unifiedcrmengagementinput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict from typing_extensions import NotRequired @@ -35,64 +29,34 @@ class UnifiedCrmEngagementInputTypedDict(TypedDict): r"""The UUIDs of contacts tied to the engagement object""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the engagement between the remote 3rd party & Panora""" - + class UnifiedCrmEngagementInput(BaseModel): type: Nullable[str] r"""The type of the engagement. Authorized values are EMAIL, CALL or MEETING""" - content: OptionalNullable[str] = UNSET r"""The content of the engagement""" - direction: OptionalNullable[str] = UNSET r"""The direction of the engagement. Authorized values are INBOUND or OUTBOUND""" - subject: OptionalNullable[str] = UNSET r"""The subject of the engagement""" - start_at: OptionalNullable[datetime] = UNSET r"""The start time of the engagement""" - end_time: OptionalNullable[datetime] = UNSET r"""The end time of the engagement""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user tied to the engagement""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the company tied to the engagement""" - contacts: OptionalNullable[List[str]] = UNSET r"""The UUIDs of contacts tied to the engagement object""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the engagement between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "content", - "direction", - "subject", - "start_at", - "end_time", - "user_id", - "company_id", - "contacts", - "field_mappings", - ] - nullable_fields = [ - "type", - "content", - "direction", - "subject", - "start_at", - "end_time", - "user_id", - "company_id", - "contacts", - "field_mappings", - ] + optional_fields = ["content", "direction", "subject", "start_at", "end_time", "user_id", "company_id", "contacts", "field_mappings"] + nullable_fields = ["type", "content", "direction", "subject", "start_at", "end_time", "user_id", "company_id", "contacts", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -102,19 +66,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmengagementoutput.py b/src/panora_sdk/models/unifiedcrmengagementoutput.py index e28f1e7..543ecb4 100644 --- a/src/panora_sdk/models/unifiedcrmengagementoutput.py +++ b/src/panora_sdk/models/unifiedcrmengagementoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict from typing_extensions import NotRequired @@ -45,89 +39,44 @@ class UnifiedCrmEngagementOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedCrmEngagementOutput(BaseModel): type: Nullable[str] r"""The type of the engagement. Authorized values are EMAIL, CALL or MEETING""" - content: OptionalNullable[str] = UNSET r"""The content of the engagement""" - direction: OptionalNullable[str] = UNSET r"""The direction of the engagement. Authorized values are INBOUND or OUTBOUND""" - subject: OptionalNullable[str] = UNSET r"""The subject of the engagement""" - start_at: OptionalNullable[datetime] = UNSET r"""The start time of the engagement""" - end_time: OptionalNullable[datetime] = UNSET r"""The end time of the engagement""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user tied to the engagement""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the company tied to the engagement""" - contacts: OptionalNullable[List[str]] = UNSET r"""The UUIDs of contacts tied to the engagement object""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the engagement between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the engagement""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the engagement in the context of the Crm 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the engagement in the context of the Crm 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "content", - "direction", - "subject", - "start_at", - "end_time", - "user_id", - "company_id", - "contacts", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "type", - "content", - "direction", - "subject", - "start_at", - "end_time", - "user_id", - "company_id", - "contacts", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["content", "direction", "subject", "start_at", "end_time", "user_id", "company_id", "contacts", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["type", "content", "direction", "subject", "start_at", "end_time", "user_id", "company_id", "contacts", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -137,19 +86,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmnoteinput.py b/src/panora_sdk/models/unifiedcrmnoteinput.py index 3c97fdf..5f5359c 100644 --- a/src/panora_sdk/models/unifiedcrmnoteinput.py +++ b/src/panora_sdk/models/unifiedcrmnoteinput.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -26,44 +20,26 @@ class UnifiedCrmNoteInputTypedDict(TypedDict): r"""The UUID of the deal tied to the note""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the note between the remote 3rd party & Panora""" - + class UnifiedCrmNoteInput(BaseModel): content: Nullable[str] r"""The content of the note""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user tied to the note""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the company tied to the note""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the contact tied to the note""" - deal_id: OptionalNullable[str] = UNSET r"""The UUID of the deal tied to the note""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the note between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "user_id", - "company_id", - "contact_id", - "deal_id", - "field_mappings", - ] - nullable_fields = [ - "content", - "user_id", - "company_id", - "contact_id", - "deal_id", - "field_mappings", - ] + optional_fields = ["user_id", "company_id", "contact_id", "deal_id", "field_mappings"] + nullable_fields = ["content", "user_id", "company_id", "contact_id", "deal_id", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -73,19 +49,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmnoteoutput.py b/src/panora_sdk/models/unifiedcrmnoteoutput.py index 8861309..8b73ff6 100644 --- a/src/panora_sdk/models/unifiedcrmnoteoutput.py +++ b/src/panora_sdk/models/unifiedcrmnoteoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -37,69 +31,36 @@ class UnifiedCrmNoteOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedCrmNoteOutput(BaseModel): content: Nullable[str] r"""The content of the note""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user tied to the note""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the company tied to the note""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the contact tied to the note""" - deal_id: OptionalNullable[str] = UNSET r"""The UUID of the deal tied to the note""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the note between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the note""" - remote_id: OptionalNullable[str] = UNSET r"""The ID of the note in the context of the Crm 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the note in the context of the Crm 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "user_id", - "company_id", - "contact_id", - "deal_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "content", - "user_id", - "company_id", - "contact_id", - "deal_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["user_id", "company_id", "contact_id", "deal_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["content", "user_id", "company_id", "contact_id", "deal_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -109,19 +70,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmstageoutput.py b/src/panora_sdk/models/unifiedcrmstageoutput.py index 282676d..490ee59 100644 --- a/src/panora_sdk/models/unifiedcrmstageoutput.py +++ b/src/panora_sdk/models/unifiedcrmstageoutput.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -15,19 +9,23 @@ class UnifiedCrmStageOutputCreatedAtTypedDict(TypedDict): r"""The created date of the object""" - + + class UnifiedCrmStageOutputCreatedAt(BaseModel): r"""The created date of the object""" - + + class UnifiedCrmStageOutputModifiedAtTypedDict(TypedDict): r"""The modified date of the object""" - + + class UnifiedCrmStageOutputModifiedAt(BaseModel): r"""The modified date of the object""" - + + class UnifiedCrmStageOutputTypedDict(TypedDict): stage_name: Nullable[str] @@ -44,49 +42,28 @@ class UnifiedCrmStageOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[UnifiedCrmStageOutputModifiedAtTypedDict]] r"""The modified date of the object""" - + class UnifiedCrmStageOutput(BaseModel): stage_name: Nullable[str] r"""The name of the stage""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the stage between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the stage""" - remote_id: OptionalNullable[str] = UNSET r"""The ID of the stage in the context of the Crm 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the stage in the context of the Crm 3rd Party""" - created_at: OptionalNullable[UnifiedCrmStageOutputCreatedAt] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[UnifiedCrmStageOutputModifiedAt] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "stage_name", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["stage_name", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -96,19 +73,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmtaskinput.py b/src/panora_sdk/models/unifiedcrmtaskinput.py index 6f3af57..700df7f 100644 --- a/src/panora_sdk/models/unifiedcrmtaskinput.py +++ b/src/panora_sdk/models/unifiedcrmtaskinput.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -32,57 +26,32 @@ class UnifiedCrmTaskInputTypedDict(TypedDict): r"""The UUID of the deal tied to the task""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the task between the remote 3rd party & Panora""" - + class UnifiedCrmTaskInput(BaseModel): subject: Nullable[str] r"""The subject of the task""" - content: Nullable[str] r"""The content of the task""" - status: Nullable[str] r"""The status of the task. Authorized values are PENDING, COMPLETED.""" - due_date: OptionalNullable[str] = UNSET r"""The due date of the task""" - finished_date: OptionalNullable[str] = UNSET r"""The finished date of the task""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user tied to the task""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the company tied to the task""" - deal_id: OptionalNullable[str] = UNSET r"""The UUID of the deal tied to the task""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the task between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "due_date", - "finished_date", - "user_id", - "company_id", - "deal_id", - "field_mappings", - ] - nullable_fields = [ - "subject", - "content", - "status", - "due_date", - "finished_date", - "user_id", - "company_id", - "deal_id", - "field_mappings", - ] + optional_fields = ["due_date", "finished_date", "user_id", "company_id", "deal_id", "field_mappings"] + nullable_fields = ["subject", "content", "status", "due_date", "finished_date", "user_id", "company_id", "deal_id", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -92,19 +61,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmtaskoutput.py b/src/panora_sdk/models/unifiedcrmtaskoutput.py index df86322..f190e0f 100644 --- a/src/panora_sdk/models/unifiedcrmtaskoutput.py +++ b/src/panora_sdk/models/unifiedcrmtaskoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -43,82 +37,42 @@ class UnifiedCrmTaskOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedCrmTaskOutput(BaseModel): subject: Nullable[str] r"""The subject of the task""" - content: Nullable[str] r"""The content of the task""" - status: Nullable[str] r"""The status of the task. Authorized values are PENDING, COMPLETED.""" - due_date: OptionalNullable[str] = UNSET r"""The due date of the task""" - finished_date: OptionalNullable[str] = UNSET r"""The finished date of the task""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user tied to the task""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the company tied to the task""" - deal_id: OptionalNullable[str] = UNSET r"""The UUID of the deal tied to the task""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the task between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the task""" - remote_id: OptionalNullable[str] = UNSET r"""The ID of the task in the context of the Crm 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the task in the context of the Crm 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "due_date", - "finished_date", - "user_id", - "company_id", - "deal_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "subject", - "content", - "status", - "due_date", - "finished_date", - "user_id", - "company_id", - "deal_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["due_date", "finished_date", "user_id", "company_id", "deal_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["subject", "content", "status", "due_date", "finished_date", "user_id", "company_id", "deal_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -128,19 +82,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedcrmuseroutput.py b/src/panora_sdk/models/unifiedcrmuseroutput.py index 06801da..0d993d9 100644 --- a/src/panora_sdk/models/unifiedcrmuseroutput.py +++ b/src/panora_sdk/models/unifiedcrmuseroutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -31,53 +25,30 @@ class UnifiedCrmUserOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedCrmUserOutput(BaseModel): name: Nullable[str] r"""The name of the user""" - email: Nullable[str] r"""The email of the user""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the user between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the user""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the user in the context of the Crm 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the user in the context of the Crm 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "email", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "email", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -87,19 +58,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedecommercecustomeroutput.py b/src/panora_sdk/models/unifiedecommercecustomeroutput.py index 600a312..5cbc963 100644 --- a/src/panora_sdk/models/unifiedecommercecustomeroutput.py +++ b/src/panora_sdk/models/unifiedecommercecustomeroutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from .address import Address, AddressTypedDict -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedEcommerceCustomerOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedEcommerceCustomerOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedEcommerceCustomerOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the customer in the context of the 3rd Party""" - + + class UnifiedEcommerceCustomerOutputRemoteData(BaseModel): r"""The remote data of the customer in the context of the 3rd Party""" - + + class UnifiedEcommerceCustomerOutputTypedDict(TypedDict): email: NotRequired[Nullable[str]] @@ -41,88 +39,48 @@ class UnifiedEcommerceCustomerOutputTypedDict(TypedDict): r"""The phone number of the customer""" addresses: NotRequired[Nullable[List[AddressTypedDict]]] r"""The addresses of the customer""" - field_mappings: NotRequired[ - Nullable[UnifiedEcommerceCustomerOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedEcommerceCustomerOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the customer""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the customer in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedEcommerceCustomerOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedEcommerceCustomerOutputRemoteDataTypedDict]] r"""The remote data of the customer in the context of the 3rd Party""" created_at: NotRequired[Nullable[str]] r"""The created date of the object""" modified_at: NotRequired[Nullable[str]] r"""The modified date of the object""" - + class UnifiedEcommerceCustomerOutput(BaseModel): email: OptionalNullable[str] = UNSET r"""The email of the customer""" - first_name: OptionalNullable[str] = UNSET r"""The first name of the customer""" - last_name: OptionalNullable[str] = UNSET r"""The last name of the customer""" - phone_number: OptionalNullable[str] = UNSET r"""The phone number of the customer""" - addresses: OptionalNullable[List[Address]] = UNSET r"""The addresses of the customer""" - - field_mappings: OptionalNullable[UnifiedEcommerceCustomerOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedEcommerceCustomerOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the customer""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the customer in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedEcommerceCustomerOutputRemoteData] = UNSET r"""The remote data of the customer in the context of the 3rd Party""" - created_at: OptionalNullable[str] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[str] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "email", - "first_name", - "last_name", - "phone_number", - "addresses", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "email", - "first_name", - "last_name", - "phone_number", - "addresses", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["email", "first_name", "last_name", "phone_number", "addresses", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["email", "first_name", "last_name", "phone_number", "addresses", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -132,19 +90,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedecommercefulfillmentoutput.py b/src/panora_sdk/models/unifiedecommercefulfillmentoutput.py index 9846d20..019d675 100644 --- a/src/panora_sdk/models/unifiedecommercefulfillmentoutput.py +++ b/src/panora_sdk/models/unifiedecommercefulfillmentoutput.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict from typing_extensions import NotRequired @@ -15,27 +9,33 @@ class ItemsModelTypedDict(TypedDict): r"""The items in the fulfilment""" - + + class ItemsModel(BaseModel): r"""The items in the fulfilment""" - + + class UnifiedEcommerceFulfillmentOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedEcommerceFulfillmentOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedEcommerceFulfillmentOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the customer in the context of the 3rd Party""" - + + class UnifiedEcommerceFulfillmentOutputRemoteData(BaseModel): r"""The remote data of the customer in the context of the 3rd Party""" - + + class UnifiedEcommerceFulfillmentOutputTypedDict(TypedDict): carrier: NotRequired[Nullable[str]] @@ -48,88 +48,48 @@ class UnifiedEcommerceFulfillmentOutputTypedDict(TypedDict): r"""The items in the fulfilment""" order_id: NotRequired[Nullable[str]] r"""The UUID of the order associated with the fulfilment""" - field_mappings: NotRequired[ - Nullable[UnifiedEcommerceFulfillmentOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedEcommerceFulfillmentOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the fulfilment""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the fulfilment in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedEcommerceFulfillmentOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedEcommerceFulfillmentOutputRemoteDataTypedDict]] r"""The remote data of the customer in the context of the 3rd Party""" created_at: NotRequired[Nullable[str]] r"""The created date of the object""" modified_at: NotRequired[Nullable[str]] r"""The modified date of the object""" - + class UnifiedEcommerceFulfillmentOutput(BaseModel): carrier: OptionalNullable[str] = UNSET r"""The carrier of the fulfilment""" - tracking_urls: OptionalNullable[List[str]] = UNSET r"""The tracking URLs of the fulfilment""" - tracking_numbers: OptionalNullable[List[str]] = UNSET r"""The tracking numbers of the fulfilment""" - items: OptionalNullable[ItemsModel] = UNSET r"""The items in the fulfilment""" - order_id: OptionalNullable[str] = UNSET r"""The UUID of the order associated with the fulfilment""" - - field_mappings: OptionalNullable[UnifiedEcommerceFulfillmentOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedEcommerceFulfillmentOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the fulfilment""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the fulfilment in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedEcommerceFulfillmentOutputRemoteData] = UNSET r"""The remote data of the customer in the context of the 3rd Party""" - created_at: OptionalNullable[str] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[str] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "carrier", - "tracking_urls", - "tracking_numbers", - "items", - "order_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "carrier", - "tracking_urls", - "tracking_numbers", - "items", - "order_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["carrier", "tracking_urls", "tracking_numbers", "items", "order_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["carrier", "tracking_urls", "tracking_numbers", "items", "order_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -139,19 +99,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedecommerceorderinput.py b/src/panora_sdk/models/unifiedecommerceorderinput.py index 5ae8299..b5d0ec4 100644 --- a/src/panora_sdk/models/unifiedecommerceorderinput.py +++ b/src/panora_sdk/models/unifiedecommerceorderinput.py @@ -2,13 +2,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict from typing_extensions import NotRequired @@ -16,11 +10,13 @@ class UnifiedEcommerceOrderInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedEcommerceOrderInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedEcommerceOrderInputTypedDict(TypedDict): order_status: NotRequired[Nullable[str]] @@ -45,79 +41,40 @@ class UnifiedEcommerceOrderInputTypedDict(TypedDict): r"""The UUID of the customer associated with the order""" items: NotRequired[Nullable[List[LineItemTypedDict]]] r"""The items in the order""" - field_mappings: NotRequired[ - Nullable[UnifiedEcommerceOrderInputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedEcommerceOrderInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedEcommerceOrderInput(BaseModel): order_status: OptionalNullable[str] = UNSET r"""The status of the order""" - order_number: OptionalNullable[str] = UNSET r"""The number of the order""" - payment_status: OptionalNullable[str] = UNSET r"""The payment status of the order""" - currency: OptionalNullable[str] = UNSET r"""The currency of the order. Authorized value must be of type CurrencyCode (ISO 4217)""" - total_price: OptionalNullable[float] = UNSET r"""The total price of the order""" - total_discount: OptionalNullable[float] = UNSET r"""The total discount on the order""" - total_shipping: OptionalNullable[float] = UNSET r"""The total shipping cost of the order""" - total_tax: OptionalNullable[float] = UNSET r"""The total tax on the order""" - fulfillment_status: OptionalNullable[str] = UNSET r"""The fulfillment status of the order""" - customer_id: OptionalNullable[str] = UNSET r"""The UUID of the customer associated with the order""" - items: OptionalNullable[List[LineItem]] = UNSET r"""The items in the order""" - field_mappings: OptionalNullable[UnifiedEcommerceOrderInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "order_status", - "order_number", - "payment_status", - "currency", - "total_price", - "total_discount", - "total_shipping", - "total_tax", - "fulfillment_status", - "customer_id", - "items", - "field_mappings", - ] - nullable_fields = [ - "order_status", - "order_number", - "payment_status", - "currency", - "total_price", - "total_discount", - "total_shipping", - "total_tax", - "fulfillment_status", - "customer_id", - "items", - "field_mappings", - ] + optional_fields = ["order_status", "order_number", "payment_status", "currency", "total_price", "total_discount", "total_shipping", "total_tax", "fulfillment_status", "customer_id", "items", "field_mappings"] + nullable_fields = ["order_status", "order_number", "payment_status", "currency", "total_price", "total_discount", "total_shipping", "total_tax", "fulfillment_status", "customer_id", "items", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -127,19 +84,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedecommerceorderoutput.py b/src/panora_sdk/models/unifiedecommerceorderoutput.py index 0c1ebc2..28d2da7 100644 --- a/src/panora_sdk/models/unifiedecommerceorderoutput.py +++ b/src/panora_sdk/models/unifiedecommerceorderoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from .lineitem import LineItem, LineItemTypedDict -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedEcommerceOrderOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedEcommerceOrderOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedEcommerceOrderOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the customer in the context of the 3rd Party""" - + + class UnifiedEcommerceOrderOutputRemoteData(BaseModel): r"""The remote data of the customer in the context of the 3rd Party""" - + + class UnifiedEcommerceOrderOutputTypedDict(TypedDict): order_status: NotRequired[Nullable[str]] @@ -53,9 +51,7 @@ class UnifiedEcommerceOrderOutputTypedDict(TypedDict): r"""The UUID of the customer associated with the order""" items: NotRequired[Nullable[List[LineItemTypedDict]]] r"""The items in the order""" - field_mappings: NotRequired[ - Nullable[UnifiedEcommerceOrderOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedEcommerceOrderOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the order""" @@ -67,100 +63,48 @@ class UnifiedEcommerceOrderOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[str]] r"""The modified date of the object""" - + class UnifiedEcommerceOrderOutput(BaseModel): order_status: OptionalNullable[str] = UNSET r"""The status of the order""" - order_number: OptionalNullable[str] = UNSET r"""The number of the order""" - payment_status: OptionalNullable[str] = UNSET r"""The payment status of the order""" - currency: OptionalNullable[str] = UNSET r"""The currency of the order. Authorized value must be of type CurrencyCode (ISO 4217)""" - total_price: OptionalNullable[float] = UNSET r"""The total price of the order""" - total_discount: OptionalNullable[float] = UNSET r"""The total discount on the order""" - total_shipping: OptionalNullable[float] = UNSET r"""The total shipping cost of the order""" - total_tax: OptionalNullable[float] = UNSET r"""The total tax on the order""" - fulfillment_status: OptionalNullable[str] = UNSET r"""The fulfillment status of the order""" - customer_id: OptionalNullable[str] = UNSET r"""The UUID of the customer associated with the order""" - items: OptionalNullable[List[LineItem]] = UNSET r"""The items in the order""" - field_mappings: OptionalNullable[UnifiedEcommerceOrderOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the order""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the order in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedEcommerceOrderOutputRemoteData] = UNSET r"""The remote data of the customer in the context of the 3rd Party""" - created_at: OptionalNullable[str] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[str] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "order_status", - "order_number", - "payment_status", - "currency", - "total_price", - "total_discount", - "total_shipping", - "total_tax", - "fulfillment_status", - "customer_id", - "items", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "order_status", - "order_number", - "payment_status", - "currency", - "total_price", - "total_discount", - "total_shipping", - "total_tax", - "fulfillment_status", - "customer_id", - "items", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["order_status", "order_number", "payment_status", "currency", "total_price", "total_discount", "total_shipping", "total_tax", "fulfillment_status", "customer_id", "items", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["order_status", "order_number", "payment_status", "currency", "total_price", "total_discount", "total_shipping", "total_tax", "fulfillment_status", "customer_id", "items", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -170,19 +114,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedecommerceproductinput.py b/src/panora_sdk/models/unifiedecommerceproductinput.py index a61289d..037d429 100644 --- a/src/panora_sdk/models/unifiedecommerceproductinput.py +++ b/src/panora_sdk/models/unifiedecommerceproductinput.py @@ -2,13 +2,7 @@ from __future__ import annotations from .variant import Variant, VariantTypedDict -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -16,11 +10,13 @@ class UnifiedEcommerceProductInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedEcommerceProductInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedEcommerceProductInputTypedDict(TypedDict): product_url: NotRequired[Nullable[str]] @@ -39,63 +35,34 @@ class UnifiedEcommerceProductInputTypedDict(TypedDict): r"""The variants of the product""" tags: NotRequired[Nullable[List[str]]] r"""The tags associated with the product""" - field_mappings: NotRequired[ - Nullable[UnifiedEcommerceProductInputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedEcommerceProductInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedEcommerceProductInput(BaseModel): product_url: OptionalNullable[str] = UNSET r"""The URL of the product""" - product_type: OptionalNullable[str] = UNSET r"""The type of the product""" - product_status: OptionalNullable[str] = UNSET r"""The status of the product. Either ACTIVE, DRAFT OR ARCHIVED.""" - images_urls: OptionalNullable[List[str]] = UNSET r"""The URLs of the product images""" - description: OptionalNullable[str] = UNSET r"""The description of the product""" - vendor: OptionalNullable[str] = UNSET r"""The vendor of the product""" - variants: Optional[List[Variant]] = None r"""The variants of the product""" - tags: OptionalNullable[List[str]] = UNSET r"""The tags associated with the product""" - field_mappings: OptionalNullable[UnifiedEcommerceProductInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "product_url", - "product_type", - "product_status", - "images_urls", - "description", - "vendor", - "variants", - "tags", - "field_mappings", - ] - nullable_fields = [ - "product_url", - "product_type", - "product_status", - "images_urls", - "description", - "vendor", - "tags", - "field_mappings", - ] + optional_fields = ["product_url", "product_type", "product_status", "images_urls", "description", "vendor", "variants", "tags", "field_mappings"] + nullable_fields = ["product_url", "product_type", "product_status", "images_urls", "description", "vendor", "tags", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -105,19 +72,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedecommerceproductoutput.py b/src/panora_sdk/models/unifiedecommerceproductoutput.py index 88a970e..2c81a0b 100644 --- a/src/panora_sdk/models/unifiedecommerceproductoutput.py +++ b/src/panora_sdk/models/unifiedecommerceproductoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from .variant import Variant, VariantTypedDict -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, Optional, TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedEcommerceProductOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedEcommerceProductOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedEcommerceProductOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the customer in the context of the 3rd Party""" - + + class UnifiedEcommerceProductOutputRemoteData(BaseModel): r"""The remote data of the customer in the context of the 3rd Party""" - + + class UnifiedEcommerceProductOutputTypedDict(TypedDict): product_url: NotRequired[Nullable[str]] @@ -47,9 +45,7 @@ class UnifiedEcommerceProductOutputTypedDict(TypedDict): r"""The variants of the product""" tags: NotRequired[Nullable[List[str]]] r"""The tags associated with the product""" - field_mappings: NotRequired[ - Nullable[UnifiedEcommerceProductOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedEcommerceProductOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the product""" @@ -61,84 +57,42 @@ class UnifiedEcommerceProductOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[str]] r"""The modified date of the object""" - + class UnifiedEcommerceProductOutput(BaseModel): product_url: OptionalNullable[str] = UNSET r"""The URL of the product""" - product_type: OptionalNullable[str] = UNSET r"""The type of the product""" - product_status: OptionalNullable[str] = UNSET r"""The status of the product. Either ACTIVE, DRAFT OR ARCHIVED.""" - images_urls: OptionalNullable[List[str]] = UNSET r"""The URLs of the product images""" - description: OptionalNullable[str] = UNSET r"""The description of the product""" - vendor: OptionalNullable[str] = UNSET r"""The vendor of the product""" - variants: Optional[List[Variant]] = None r"""The variants of the product""" - tags: OptionalNullable[List[str]] = UNSET r"""The tags associated with the product""" - field_mappings: OptionalNullable[UnifiedEcommerceProductOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the product""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the product in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedEcommerceProductOutputRemoteData] = UNSET r"""The remote data of the customer in the context of the 3rd Party""" - created_at: OptionalNullable[str] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[str] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "product_url", - "product_type", - "product_status", - "images_urls", - "description", - "vendor", - "variants", - "tags", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "product_url", - "product_type", - "product_status", - "images_urls", - "description", - "vendor", - "tags", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["product_url", "product_type", "product_status", "images_urls", "description", "vendor", "variants", "tags", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["product_url", "product_type", "product_status", "images_urls", "description", "vendor", "tags", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -148,19 +102,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedfilestoragefileinput.py b/src/panora_sdk/models/unifiedfilestoragefileinput.py index dfbc821..d2c73bb 100644 --- a/src/panora_sdk/models/unifiedfilestoragefileinput.py +++ b/src/panora_sdk/models/unifiedfilestoragefileinput.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -30,46 +24,30 @@ class UnifiedFilestorageFileInputTypedDict(TypedDict): r"""The UUID of the shared link tied to the file""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedFilestorageFileInput(BaseModel): name: Nullable[str] r"""The name of the file""" - file_url: Nullable[str] r"""The url of the file""" - mime_type: Nullable[str] r"""The mime type of the file""" - size: Nullable[str] r"""The size of the file""" - folder_id: Nullable[str] r"""The UUID of the folder tied to the file""" - permission: Nullable[str] r"""The UUID of the permission tied to the file""" - shared_link: Nullable[str] r"""The UUID of the shared link tied to the file""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["field_mappings"] - nullable_fields = [ - "name", - "file_url", - "mime_type", - "size", - "folder_id", - "permission", - "shared_link", - "field_mappings", - ] + nullable_fields = ["name", "file_url", "mime_type", "size", "folder_id", "permission", "shared_link", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -79,19 +57,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedfilestoragefileoutput.py b/src/panora_sdk/models/unifiedfilestoragefileoutput.py index 1d1f38e..37dfbbd 100644 --- a/src/panora_sdk/models/unifiedfilestoragefileoutput.py +++ b/src/panora_sdk/models/unifiedfilestoragefileoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -41,73 +35,40 @@ class UnifiedFilestorageFileOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedFilestorageFileOutput(BaseModel): name: Nullable[str] r"""The name of the file""" - file_url: Nullable[str] r"""The url of the file""" - mime_type: Nullable[str] r"""The mime type of the file""" - size: Nullable[str] r"""The size of the file""" - folder_id: Nullable[str] r"""The UUID of the folder tied to the file""" - permission: Nullable[str] r"""The UUID of the permission tied to the file""" - shared_link: Nullable[str] r"""The UUID of the shared link tied to the file""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the file""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the file in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the file in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "file_url", - "mime_type", - "size", - "folder_id", - "permission", - "shared_link", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "file_url", "mime_type", "size", "folder_id", "permission", "shared_link", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -117,19 +78,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedfilestoragefolderinput.py b/src/panora_sdk/models/unifiedfilestoragefolderinput.py index 7fdb231..3b1ebe0 100644 --- a/src/panora_sdk/models/unifiedfilestoragefolderinput.py +++ b/src/panora_sdk/models/unifiedfilestoragefolderinput.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -32,49 +26,32 @@ class UnifiedFilestorageFolderInputTypedDict(TypedDict): r"""The UUID of the permission tied to the folder""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedFilestorageFolderInput(BaseModel): name: Nullable[str] r"""The name of the folder""" - size: Nullable[str] r"""The size of the folder""" - folder_url: Nullable[str] r"""The url of the folder""" - description: str r"""The description of the folder""" - drive_id: Nullable[str] r"""The UUID of the drive tied to the folder""" - parent_folder_id: Nullable[str] r"""The UUID of the parent folder""" - shared_link: Nullable[str] r"""The UUID of the shared link tied to the folder""" - permission: Nullable[str] r"""The UUID of the permission tied to the folder""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["field_mappings"] - nullable_fields = [ - "name", - "size", - "folder_url", - "drive_id", - "parent_folder_id", - "shared_link", - "permission", - "field_mappings", - ] + nullable_fields = ["name", "size", "folder_url", "drive_id", "parent_folder_id", "shared_link", "permission", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -84,19 +61,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedfilestoragefolderoutput.py b/src/panora_sdk/models/unifiedfilestoragefolderoutput.py index 39675be..57eb3d4 100644 --- a/src/panora_sdk/models/unifiedfilestoragefolderoutput.py +++ b/src/panora_sdk/models/unifiedfilestoragefolderoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -43,76 +37,42 @@ class UnifiedFilestorageFolderOutputTypedDict(TypedDict): r"""The created date of the folder""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the folder""" - + class UnifiedFilestorageFolderOutput(BaseModel): name: Nullable[str] r"""The name of the folder""" - size: Nullable[str] r"""The size of the folder""" - folder_url: Nullable[str] r"""The url of the folder""" - description: str r"""The description of the folder""" - drive_id: Nullable[str] r"""The UUID of the drive tied to the folder""" - parent_folder_id: Nullable[str] r"""The UUID of the parent folder""" - shared_link: Nullable[str] r"""The UUID of the shared link tied to the folder""" - permission: Nullable[str] r"""The UUID of the permission tied to the folder""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the folder""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the folder in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the folder in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the folder""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the folder""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "size", - "folder_url", - "drive_id", - "parent_folder_id", - "shared_link", - "permission", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "size", "folder_url", "drive_id", "parent_folder_id", "shared_link", "permission", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -122,19 +82,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedfilestoragegroupoutput.py b/src/panora_sdk/models/unifiedfilestoragegroupoutput.py index a107ac5..2371224 100644 --- a/src/panora_sdk/models/unifiedfilestoragegroupoutput.py +++ b/src/panora_sdk/models/unifiedfilestoragegroupoutput.py @@ -1,29 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedfilestorageuseroutput import ( - UnifiedFilestorageUserOutput, - UnifiedFilestorageUserOutputTypedDict, -) +from .unifiedfilestorageuseroutput import UnifiedFilestorageUserOutput, UnifiedFilestorageUserOutputTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict, Union from typing_extensions import NotRequired -UsersModelTypedDict = Union[UnifiedFilestorageUserOutputTypedDict, str] - - -UsersModel = Union[UnifiedFilestorageUserOutput, str] - - class UnifiedFilestorageGroupOutputTypedDict(TypedDict): name: Nullable[str] r"""The name of the group""" @@ -43,56 +28,32 @@ class UnifiedFilestorageGroupOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedFilestorageGroupOutput(BaseModel): name: Nullable[str] r"""The name of the group""" - users: List[UsersModel] r"""Uuids of users of the group""" - remote_was_deleted: Nullable[bool] r"""Indicates whether or not this object has been deleted in the third party platform.""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the group""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the group in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the group in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "remote_was_deleted", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "remote_was_deleted", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -102,19 +63,27 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + + +UsersModelTypedDict = Union[UnifiedFilestorageUserOutputTypedDict, str] + + +UsersModel = Union[UnifiedFilestorageUserOutput, str] + diff --git a/src/panora_sdk/models/unifiedfilestorageuseroutput.py b/src/panora_sdk/models/unifiedfilestorageuseroutput.py index 57a8955..36db1f7 100644 --- a/src/panora_sdk/models/unifiedfilestorageuseroutput.py +++ b/src/panora_sdk/models/unifiedfilestorageuseroutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -33,57 +27,32 @@ class UnifiedFilestorageUserOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedFilestorageUserOutput(BaseModel): name: Nullable[str] r"""The name of the user""" - email: Nullable[str] r"""The email of the user""" - is_me: Nullable[bool] r"""Whether the user is the one who linked this account.""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the user""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the user in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the user in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "email", - "is_me", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "email", "is_me", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -93,19 +62,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhrisbankinfooutput.py b/src/panora_sdk/models/unifiedhrisbankinfooutput.py index 8487a93..86945bb 100644 --- a/src/panora_sdk/models/unifiedhrisbankinfooutput.py +++ b/src/panora_sdk/models/unifiedhrisbankinfooutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class FieldMappingsModelTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class FieldMappingsModel(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class RemoteDataTypedDict(TypedDict): r"""The remote data of the bank info in the context of the 3rd Party""" - + + class RemoteData(BaseModel): r"""The remote data of the bank info in the context of the 3rd Party""" - + + class UnifiedHrisBankinfoOutputTypedDict(TypedDict): id: Nullable[str] @@ -57,76 +55,40 @@ class UnifiedHrisBankinfoOutputTypedDict(TypedDict): r"""The remote data of the bank info in the context of the 3rd Party""" remote_created_at: NotRequired[Nullable[datetime]] r"""The date when the bank info was created in the 3rd party system""" - + class UnifiedHrisBankinfoOutput(BaseModel): id: Nullable[str] r"""The UUID of the bank info record""" - created_at: Nullable[datetime] r"""The created date of the bank info record""" - modified_at: Nullable[datetime] r"""The last modified date of the bank info record""" - remote_was_deleted: Nullable[bool] r"""Indicates if the bank info was deleted in the remote system""" - account_type: OptionalNullable[str] = UNSET r"""The type of the bank account""" - bank_name: OptionalNullable[str] = UNSET r"""The name of the bank""" - account_number: OptionalNullable[str] = UNSET r"""The account number""" - routing_number: OptionalNullable[str] = UNSET r"""The routing number of the bank""" - employee_id: OptionalNullable[str] = UNSET r"""The UUID of the associated employee""" - field_mappings: OptionalNullable[FieldMappingsModel] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the bank info in the context of the 3rd Party""" - remote_data: OptionalNullable[RemoteData] = UNSET r"""The remote data of the bank info in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the bank info was created in the 3rd party system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "account_type", - "bank_name", - "account_number", - "routing_number", - "employee_id", - "field_mappings", - "remote_id", - "remote_data", - "remote_created_at", - ] - nullable_fields = [ - "id", - "created_at", - "modified_at", - "remote_was_deleted", - "account_type", - "bank_name", - "account_number", - "routing_number", - "employee_id", - "field_mappings", - "remote_id", - "remote_data", - "remote_created_at", - ] + optional_fields = ["account_type", "bank_name", "account_number", "routing_number", "employee_id", "field_mappings", "remote_id", "remote_data", "remote_created_at"] + nullable_fields = ["id", "created_at", "modified_at", "remote_was_deleted", "account_type", "bank_name", "account_number", "routing_number", "employee_id", "field_mappings", "remote_id", "remote_data", "remote_created_at"] null_default_fields = [] serialized = handler(self) @@ -136,19 +98,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhrisbenefitoutput.py b/src/panora_sdk/models/unifiedhrisbenefitoutput.py index 7019657..188fdc0 100644 --- a/src/panora_sdk/models/unifiedhrisbenefitoutput.py +++ b/src/panora_sdk/models/unifiedhrisbenefitoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedHrisBenefitOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisBenefitOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisBenefitOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the benefit in the context of the 3rd Party""" - + + class UnifiedHrisBenefitOutputRemoteData(BaseModel): r"""The remote data of the benefit in the context of the 3rd Party""" - + + class UnifiedHrisBenefitOutputTypedDict(TypedDict): provider_name: NotRequired[Nullable[str]] @@ -45,9 +43,7 @@ class UnifiedHrisBenefitOutputTypedDict(TypedDict): r"""The end date of the benefit""" employer_benefit_id: NotRequired[Nullable[str]] r"""The UUID of the associated employer benefit""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisBenefitOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisBenefitOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the benefit record""" @@ -63,90 +59,44 @@ class UnifiedHrisBenefitOutputTypedDict(TypedDict): r"""The last modified date of the benefit record""" remote_was_deleted: NotRequired[Nullable[bool]] r"""Indicates if the benefit was deleted in the remote system""" - + class UnifiedHrisBenefitOutput(BaseModel): provider_name: OptionalNullable[str] = UNSET r"""The name of the benefit provider""" - employee_id: OptionalNullable[str] = UNSET r"""The UUID of the associated employee""" - employee_contribution: OptionalNullable[float] = UNSET r"""The employee contribution amount""" - company_contribution: OptionalNullable[float] = UNSET r"""The company contribution amount""" - start_date: OptionalNullable[datetime] = UNSET r"""The start date of the benefit""" - end_date: OptionalNullable[datetime] = UNSET r"""The end date of the benefit""" - employer_benefit_id: OptionalNullable[str] = UNSET r"""The UUID of the associated employer benefit""" - field_mappings: OptionalNullable[UnifiedHrisBenefitOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the benefit record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the benefit in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisBenefitOutputRemoteData] = UNSET r"""The remote data of the benefit in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the benefit was created in the 3rd party system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the benefit record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the benefit record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the benefit was deleted in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "provider_name", - "employee_id", - "employee_contribution", - "company_contribution", - "start_date", - "end_date", - "employer_benefit_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] - nullable_fields = [ - "provider_name", - "employee_id", - "employee_contribution", - "company_contribution", - "start_date", - "end_date", - "employer_benefit_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] + optional_fields = ["provider_name", "employee_id", "employee_contribution", "company_contribution", "start_date", "end_date", "employer_benefit_id", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] + nullable_fields = ["provider_name", "employee_id", "employee_contribution", "company_contribution", "start_date", "end_date", "employer_benefit_id", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] null_default_fields = [] serialized = handler(self) @@ -156,19 +106,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhriscompanyoutput.py b/src/panora_sdk/models/unifiedhriscompanyoutput.py index 93f0032..bc75e32 100644 --- a/src/panora_sdk/models/unifiedhriscompanyoutput.py +++ b/src/panora_sdk/models/unifiedhriscompanyoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedHrisCompanyOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisCompanyOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisCompanyOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the company in the context of the 3rd Party""" - + + class UnifiedHrisCompanyOutputRemoteData(BaseModel): r"""The remote data of the company in the context of the 3rd Party""" - + + class UnifiedHrisCompanyOutputTypedDict(TypedDict): legal_name: NotRequired[Nullable[str]] @@ -39,9 +37,7 @@ class UnifiedHrisCompanyOutputTypedDict(TypedDict): r"""The display name of the company""" eins: NotRequired[Nullable[List[str]]] r"""The Employer Identification Numbers (EINs) of the company""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisCompanyOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisCompanyOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the company record""" @@ -57,75 +53,38 @@ class UnifiedHrisCompanyOutputTypedDict(TypedDict): r"""The last modified date of the company record""" remote_was_deleted: NotRequired[Nullable[bool]] r"""Indicates if the company was deleted in the remote system""" - + class UnifiedHrisCompanyOutput(BaseModel): legal_name: OptionalNullable[str] = UNSET r"""The legal name of the company""" - locations: OptionalNullable[List[str]] = UNSET r"""UUIDs of the of the Location associated with the company""" - display_name: OptionalNullable[str] = UNSET r"""The display name of the company""" - eins: OptionalNullable[List[str]] = UNSET r"""The Employer Identification Numbers (EINs) of the company""" - field_mappings: OptionalNullable[UnifiedHrisCompanyOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the company record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the company in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisCompanyOutputRemoteData] = UNSET r"""The remote data of the company in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the company was created in the 3rd party system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the company record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the company record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the company was deleted in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "legal_name", - "locations", - "display_name", - "eins", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] - nullable_fields = [ - "legal_name", - "locations", - "display_name", - "eins", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] + optional_fields = ["legal_name", "locations", "display_name", "eins", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] + nullable_fields = ["legal_name", "locations", "display_name", "eins", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] null_default_fields = [] serialized = handler(self) @@ -135,19 +94,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhrisdependentoutput.py b/src/panora_sdk/models/unifiedhrisdependentoutput.py index 2b65d64..6d0c99b 100644 --- a/src/panora_sdk/models/unifiedhrisdependentoutput.py +++ b/src/panora_sdk/models/unifiedhrisdependentoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedHrisDependentOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisDependentOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisDependentOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the dependent in the context of the 3rd Party""" - + + class UnifiedHrisDependentOutputRemoteData(BaseModel): r"""The remote data of the dependent in the context of the 3rd Party""" - + + class UnifiedHrisDependentOutputTypedDict(TypedDict): first_name: NotRequired[Nullable[str]] @@ -53,9 +51,7 @@ class UnifiedHrisDependentOutputTypedDict(TypedDict): r"""The Social Security Number of the dependent""" employee_id: NotRequired[Nullable[str]] r"""The UUID of the associated employee""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisDependentOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisDependentOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the dependent record""" @@ -71,110 +67,52 @@ class UnifiedHrisDependentOutputTypedDict(TypedDict): r"""The last modified date of the dependent record""" remote_was_deleted: NotRequired[Nullable[bool]] r"""Indicates if the dependent was deleted in the remote system""" - + class UnifiedHrisDependentOutput(BaseModel): first_name: OptionalNullable[str] = UNSET r"""The first name of the dependent""" - last_name: OptionalNullable[str] = UNSET r"""The last name of the dependent""" - middle_name: OptionalNullable[str] = UNSET r"""The middle name of the dependent""" - relationship: OptionalNullable[str] = UNSET r"""The relationship of the dependent to the employee""" - date_of_birth: OptionalNullable[datetime] = UNSET r"""The date of birth of the dependent""" - gender: OptionalNullable[str] = UNSET r"""The gender of the dependent""" - phone_number: OptionalNullable[str] = UNSET r"""The phone number of the dependent""" - home_location: OptionalNullable[str] = UNSET r"""The UUID of the home location""" - is_student: OptionalNullable[bool] = UNSET r"""Indicates if the dependent is a student""" - ssn: OptionalNullable[str] = UNSET r"""The Social Security Number of the dependent""" - employee_id: OptionalNullable[str] = UNSET r"""The UUID of the associated employee""" - field_mappings: OptionalNullable[UnifiedHrisDependentOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the dependent record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the dependent in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisDependentOutputRemoteData] = UNSET r"""The remote data of the dependent in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the dependent was created in the 3rd party system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the dependent record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the dependent record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the dependent was deleted in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "first_name", - "last_name", - "middle_name", - "relationship", - "date_of_birth", - "gender", - "phone_number", - "home_location", - "is_student", - "ssn", - "employee_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] - nullable_fields = [ - "first_name", - "last_name", - "middle_name", - "relationship", - "date_of_birth", - "gender", - "phone_number", - "home_location", - "is_student", - "ssn", - "employee_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] + optional_fields = ["first_name", "last_name", "middle_name", "relationship", "date_of_birth", "gender", "phone_number", "home_location", "is_student", "ssn", "employee_id", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] + nullable_fields = ["first_name", "last_name", "middle_name", "relationship", "date_of_birth", "gender", "phone_number", "home_location", "is_student", "ssn", "employee_id", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] null_default_fields = [] serialized = handler(self) @@ -184,19 +122,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhrisemployeeinput.py b/src/panora_sdk/models/unifiedhrisemployeeinput.py index 7eb1d79..80d2dc5 100644 --- a/src/panora_sdk/models/unifiedhrisemployeeinput.py +++ b/src/panora_sdk/models/unifiedhrisemployeeinput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict from typing_extensions import NotRequired @@ -16,11 +10,13 @@ class UnifiedHrisEmployeeInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisEmployeeInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisEmployeeInputTypedDict(TypedDict): groups: NotRequired[Nullable[List[str]]] @@ -69,139 +65,64 @@ class UnifiedHrisEmployeeInputTypedDict(TypedDict): r"""The URL of the employee's avatar""" manager_id: NotRequired[Nullable[str]] r"""UUID of the manager (employee) of the employee""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisEmployeeInputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisEmployeeInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedHrisEmployeeInput(BaseModel): groups: OptionalNullable[List[str]] = UNSET r"""The groups the employee belongs to""" - locations: OptionalNullable[List[str]] = UNSET r"""UUIDs of the of the Location associated with the company""" - employee_number: OptionalNullable[str] = UNSET r"""The employee number""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company""" - first_name: OptionalNullable[str] = UNSET r"""The first name of the employee""" - last_name: OptionalNullable[str] = UNSET r"""The last name of the employee""" - preferred_name: OptionalNullable[str] = UNSET r"""The preferred name of the employee""" - display_full_name: OptionalNullable[str] = UNSET r"""The full display name of the employee""" - username: OptionalNullable[str] = UNSET r"""The username of the employee""" - work_email: OptionalNullable[str] = UNSET r"""The work email of the employee""" - personal_email: OptionalNullable[str] = UNSET r"""The personal email of the employee""" - mobile_phone_number: OptionalNullable[str] = UNSET r"""The mobile phone number of the employee""" - employments: OptionalNullable[List[str]] = UNSET r"""The employments of the employee""" - ssn: OptionalNullable[str] = UNSET r"""The Social Security Number of the employee""" - gender: OptionalNullable[str] = UNSET r"""The gender of the employee""" - ethnicity: OptionalNullable[str] = UNSET r"""The ethnicity of the employee""" - marital_status: OptionalNullable[str] = UNSET r"""The marital status of the employee""" - date_of_birth: OptionalNullable[datetime] = UNSET r"""The date of birth of the employee""" - start_date: OptionalNullable[datetime] = UNSET r"""The start date of the employee""" - employment_status: OptionalNullable[str] = UNSET r"""The employment status of the employee""" - termination_date: OptionalNullable[datetime] = UNSET r"""The termination date of the employee""" - avatar_url: OptionalNullable[str] = UNSET r"""The URL of the employee's avatar""" - manager_id: OptionalNullable[str] = UNSET r"""UUID of the manager (employee) of the employee""" - field_mappings: OptionalNullable[UnifiedHrisEmployeeInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "groups", - "locations", - "employee_number", - "company_id", - "first_name", - "last_name", - "preferred_name", - "display_full_name", - "username", - "work_email", - "personal_email", - "mobile_phone_number", - "employments", - "ssn", - "gender", - "ethnicity", - "marital_status", - "date_of_birth", - "start_date", - "employment_status", - "termination_date", - "avatar_url", - "manager_id", - "field_mappings", - ] - nullable_fields = [ - "groups", - "locations", - "employee_number", - "company_id", - "first_name", - "last_name", - "preferred_name", - "display_full_name", - "username", - "work_email", - "personal_email", - "mobile_phone_number", - "employments", - "ssn", - "gender", - "ethnicity", - "marital_status", - "date_of_birth", - "start_date", - "employment_status", - "termination_date", - "avatar_url", - "manager_id", - "field_mappings", - ] + optional_fields = ["groups", "locations", "employee_number", "company_id", "first_name", "last_name", "preferred_name", "display_full_name", "username", "work_email", "personal_email", "mobile_phone_number", "employments", "ssn", "gender", "ethnicity", "marital_status", "date_of_birth", "start_date", "employment_status", "termination_date", "avatar_url", "manager_id", "field_mappings"] + nullable_fields = ["groups", "locations", "employee_number", "company_id", "first_name", "last_name", "preferred_name", "display_full_name", "username", "work_email", "personal_email", "mobile_phone_number", "employments", "ssn", "gender", "ethnicity", "marital_status", "date_of_birth", "start_date", "employment_status", "termination_date", "avatar_url", "manager_id", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -211,19 +132,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhrisemployeeoutput.py b/src/panora_sdk/models/unifiedhrisemployeeoutput.py index 4ec85ea..3461813 100644 --- a/src/panora_sdk/models/unifiedhrisemployeeoutput.py +++ b/src/panora_sdk/models/unifiedhrisemployeeoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedHrisEmployeeOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisEmployeeOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisEmployeeOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the employee in the context of the 3rd Party""" - + + class UnifiedHrisEmployeeOutputRemoteData(BaseModel): r"""The remote data of the employee in the context of the 3rd Party""" - + + class UnifiedHrisEmployeeOutputTypedDict(TypedDict): groups: NotRequired[Nullable[List[str]]] @@ -77,9 +75,7 @@ class UnifiedHrisEmployeeOutputTypedDict(TypedDict): r"""The URL of the employee's avatar""" manager_id: NotRequired[Nullable[str]] r"""UUID of the manager (employee) of the employee""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisEmployeeOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisEmployeeOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the employee record""" @@ -95,170 +91,76 @@ class UnifiedHrisEmployeeOutputTypedDict(TypedDict): r"""The last modified date of the employee record""" remote_was_deleted: NotRequired[Nullable[bool]] r"""Indicates if the employee was deleted in the remote system""" - + class UnifiedHrisEmployeeOutput(BaseModel): groups: OptionalNullable[List[str]] = UNSET r"""The groups the employee belongs to""" - locations: OptionalNullable[List[str]] = UNSET r"""UUIDs of the of the Location associated with the company""" - employee_number: OptionalNullable[str] = UNSET r"""The employee number""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the associated company""" - first_name: OptionalNullable[str] = UNSET r"""The first name of the employee""" - last_name: OptionalNullable[str] = UNSET r"""The last name of the employee""" - preferred_name: OptionalNullable[str] = UNSET r"""The preferred name of the employee""" - display_full_name: OptionalNullable[str] = UNSET r"""The full display name of the employee""" - username: OptionalNullable[str] = UNSET r"""The username of the employee""" - work_email: OptionalNullable[str] = UNSET r"""The work email of the employee""" - personal_email: OptionalNullable[str] = UNSET r"""The personal email of the employee""" - mobile_phone_number: OptionalNullable[str] = UNSET r"""The mobile phone number of the employee""" - employments: OptionalNullable[List[str]] = UNSET r"""The employments of the employee""" - ssn: OptionalNullable[str] = UNSET r"""The Social Security Number of the employee""" - gender: OptionalNullable[str] = UNSET r"""The gender of the employee""" - ethnicity: OptionalNullable[str] = UNSET r"""The ethnicity of the employee""" - marital_status: OptionalNullable[str] = UNSET r"""The marital status of the employee""" - date_of_birth: OptionalNullable[datetime] = UNSET r"""The date of birth of the employee""" - start_date: OptionalNullable[datetime] = UNSET r"""The start date of the employee""" - employment_status: OptionalNullable[str] = UNSET r"""The employment status of the employee""" - termination_date: OptionalNullable[datetime] = UNSET r"""The termination date of the employee""" - avatar_url: OptionalNullable[str] = UNSET r"""The URL of the employee's avatar""" - manager_id: OptionalNullable[str] = UNSET r"""UUID of the manager (employee) of the employee""" - field_mappings: OptionalNullable[UnifiedHrisEmployeeOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the employee record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the employee in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisEmployeeOutputRemoteData] = UNSET r"""The remote data of the employee in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the employee was created in the 3rd party system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the employee record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the employee record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the employee was deleted in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "groups", - "locations", - "employee_number", - "company_id", - "first_name", - "last_name", - "preferred_name", - "display_full_name", - "username", - "work_email", - "personal_email", - "mobile_phone_number", - "employments", - "ssn", - "gender", - "ethnicity", - "marital_status", - "date_of_birth", - "start_date", - "employment_status", - "termination_date", - "avatar_url", - "manager_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] - nullable_fields = [ - "groups", - "locations", - "employee_number", - "company_id", - "first_name", - "last_name", - "preferred_name", - "display_full_name", - "username", - "work_email", - "personal_email", - "mobile_phone_number", - "employments", - "ssn", - "gender", - "ethnicity", - "marital_status", - "date_of_birth", - "start_date", - "employment_status", - "termination_date", - "avatar_url", - "manager_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] + optional_fields = ["groups", "locations", "employee_number", "company_id", "first_name", "last_name", "preferred_name", "display_full_name", "username", "work_email", "personal_email", "mobile_phone_number", "employments", "ssn", "gender", "ethnicity", "marital_status", "date_of_birth", "start_date", "employment_status", "termination_date", "avatar_url", "manager_id", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] + nullable_fields = ["groups", "locations", "employee_number", "company_id", "first_name", "last_name", "preferred_name", "display_full_name", "username", "work_email", "personal_email", "mobile_phone_number", "employments", "ssn", "gender", "ethnicity", "marital_status", "date_of_birth", "start_date", "employment_status", "termination_date", "avatar_url", "manager_id", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] null_default_fields = [] serialized = handler(self) @@ -268,19 +170,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhrisemployeepayrollrunoutput.py b/src/panora_sdk/models/unifiedhrisemployeepayrollrunoutput.py index 7d5f7e1..6b076b5 100644 --- a/src/panora_sdk/models/unifiedhrisemployeepayrollrunoutput.py +++ b/src/panora_sdk/models/unifiedhrisemployeepayrollrunoutput.py @@ -5,13 +5,7 @@ from .earningitem import EarningItem, EarningItemTypedDict from .taxitem import TaxItem, TaxItemTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict from typing_extensions import NotRequired @@ -19,19 +13,23 @@ class UnifiedHrisEmployeepayrollrunOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisEmployeepayrollrunOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisEmployeepayrollrunOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the employee payroll run in the context of the 3rd Party""" - + + class UnifiedHrisEmployeepayrollrunOutputRemoteData(BaseModel): r"""The remote data of the employee payroll run in the context of the 3rd Party""" - + + class UnifiedHrisEmployeepayrollrunOutputTypedDict(TypedDict): employee_id: NotRequired[Nullable[str]] @@ -54,17 +52,13 @@ class UnifiedHrisEmployeepayrollrunOutputTypedDict(TypedDict): r"""The list of earnings for this payroll run""" taxes: NotRequired[Nullable[List[TaxItemTypedDict]]] r"""The list of taxes for this payroll run""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisEmployeepayrollrunOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisEmployeepayrollrunOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the employee payroll run record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the employee payroll run in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedHrisEmployeepayrollrunOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedHrisEmployeepayrollrunOutputRemoteDataTypedDict]] r"""The remote data of the employee payroll run in the context of the 3rd Party""" remote_created_at: NotRequired[Nullable[datetime]] r"""The date when the employee payroll run was created in the 3rd party system""" @@ -74,107 +68,50 @@ class UnifiedHrisEmployeepayrollrunOutputTypedDict(TypedDict): r"""The last modified date of the employee payroll run record""" remote_was_deleted: NotRequired[Nullable[bool]] r"""Indicates if the employee payroll run was deleted in the remote system""" - + class UnifiedHrisEmployeepayrollrunOutput(BaseModel): employee_id: OptionalNullable[str] = UNSET r"""The UUID of the associated employee""" - payroll_run_id: OptionalNullable[str] = UNSET r"""The UUID of the associated payroll run""" - gross_pay: OptionalNullable[float] = UNSET r"""The gross pay amount""" - net_pay: OptionalNullable[float] = UNSET r"""The net pay amount""" - start_date: OptionalNullable[datetime] = UNSET r"""The start date of the pay period""" - end_date: OptionalNullable[datetime] = UNSET r"""The end date of the pay period""" - check_date: OptionalNullable[datetime] = UNSET r"""The date the check was issued""" - deductions: OptionalNullable[List[DeductionItem]] = UNSET r"""The list of deductions for this payroll run""" - earnings: OptionalNullable[List[EarningItem]] = UNSET r"""The list of earnings for this payroll run""" - taxes: OptionalNullable[List[TaxItem]] = UNSET r"""The list of taxes for this payroll run""" - - field_mappings: OptionalNullable[ - UnifiedHrisEmployeepayrollrunOutputFieldMappings - ] = UNSET + field_mappings: OptionalNullable[UnifiedHrisEmployeepayrollrunOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the employee payroll run record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the employee payroll run in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisEmployeepayrollrunOutputRemoteData] = UNSET r"""The remote data of the employee payroll run in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the employee payroll run was created in the 3rd party system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the employee payroll run record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the employee payroll run record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the employee payroll run was deleted in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "employee_id", - "payroll_run_id", - "gross_pay", - "net_pay", - "start_date", - "end_date", - "check_date", - "deductions", - "earnings", - "taxes", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] - nullable_fields = [ - "employee_id", - "payroll_run_id", - "gross_pay", - "net_pay", - "start_date", - "end_date", - "check_date", - "deductions", - "earnings", - "taxes", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] + optional_fields = ["employee_id", "payroll_run_id", "gross_pay", "net_pay", "start_date", "end_date", "check_date", "deductions", "earnings", "taxes", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] + nullable_fields = ["employee_id", "payroll_run_id", "gross_pay", "net_pay", "start_date", "end_date", "check_date", "deductions", "earnings", "taxes", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] null_default_fields = [] serialized = handler(self) @@ -184,19 +121,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhrisemployerbenefitoutput.py b/src/panora_sdk/models/unifiedhrisemployerbenefitoutput.py index 2c8d024..ea625f6 100644 --- a/src/panora_sdk/models/unifiedhrisemployerbenefitoutput.py +++ b/src/panora_sdk/models/unifiedhrisemployerbenefitoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedHrisEmployerbenefitOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisEmployerbenefitOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisEmployerbenefitOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the employer benefit in the context of the 3rd Party""" - + + class UnifiedHrisEmployerbenefitOutputRemoteData(BaseModel): r"""The remote data of the employer benefit in the context of the 3rd Party""" - + + class UnifiedHrisEmployerbenefitOutputTypedDict(TypedDict): benefit_plan_type: NotRequired[Nullable[str]] @@ -39,17 +37,13 @@ class UnifiedHrisEmployerbenefitOutputTypedDict(TypedDict): r"""The description of the employer benefit""" deduction_code: NotRequired[Nullable[str]] r"""The deduction code for the employer benefit""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisEmployerbenefitOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisEmployerbenefitOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the employer benefit record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the employer benefit in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedHrisEmployerbenefitOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedHrisEmployerbenefitOutputRemoteDataTypedDict]] r"""The remote data of the employer benefit in the context of the 3rd Party""" remote_created_at: NotRequired[Nullable[datetime]] r"""The date when the employer benefit was created in the 3rd party system""" @@ -59,77 +53,38 @@ class UnifiedHrisEmployerbenefitOutputTypedDict(TypedDict): r"""The last modified date of the employer benefit record""" remote_was_deleted: NotRequired[Nullable[bool]] r"""Indicates if the employer benefit was deleted in the remote system""" - + class UnifiedHrisEmployerbenefitOutput(BaseModel): benefit_plan_type: OptionalNullable[str] = UNSET r"""The type of the benefit plan""" - name: OptionalNullable[str] = UNSET r"""The name of the employer benefit""" - description: OptionalNullable[str] = UNSET r"""The description of the employer benefit""" - deduction_code: OptionalNullable[str] = UNSET r"""The deduction code for the employer benefit""" - - field_mappings: OptionalNullable[UnifiedHrisEmployerbenefitOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedHrisEmployerbenefitOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the employer benefit record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the employer benefit in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisEmployerbenefitOutputRemoteData] = UNSET r"""The remote data of the employer benefit in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the employer benefit was created in the 3rd party system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the employer benefit record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the employer benefit record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the employer benefit was deleted in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "benefit_plan_type", - "name", - "description", - "deduction_code", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] - nullable_fields = [ - "benefit_plan_type", - "name", - "description", - "deduction_code", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] + optional_fields = ["benefit_plan_type", "name", "description", "deduction_code", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] + nullable_fields = ["benefit_plan_type", "name", "description", "deduction_code", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] null_default_fields = [] serialized = handler(self) @@ -139,19 +94,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhrisemploymentoutput.py b/src/panora_sdk/models/unifiedhrisemploymentoutput.py index d1362e4..456ead3 100644 --- a/src/panora_sdk/models/unifiedhrisemploymentoutput.py +++ b/src/panora_sdk/models/unifiedhrisemploymentoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedHrisEmploymentOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisEmploymentOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisEmploymentOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the employment in the context of the 3rd Party""" - + + class UnifiedHrisEmploymentOutputRemoteData(BaseModel): r"""The remote data of the employment in the context of the 3rd Party""" - + + class UnifiedHrisEmploymentOutputTypedDict(TypedDict): job_title: NotRequired[Nullable[str]] @@ -51,9 +49,7 @@ class UnifiedHrisEmploymentOutputTypedDict(TypedDict): r"""The UUID of the associated pay group""" employee_id: NotRequired[Nullable[str]] r"""The UUID of the associated employee""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisEmploymentOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisEmploymentOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the employment record""" @@ -69,105 +65,50 @@ class UnifiedHrisEmploymentOutputTypedDict(TypedDict): r"""The last modified date of the employment record""" remote_was_deleted: NotRequired[Nullable[bool]] r"""Indicates if the employment was deleted in the remote system""" - + class UnifiedHrisEmploymentOutput(BaseModel): job_title: OptionalNullable[str] = UNSET r"""The job title of the employment""" - pay_rate: OptionalNullable[float] = UNSET r"""The pay rate of the employment""" - pay_period: OptionalNullable[str] = UNSET r"""The pay period of the employment""" - pay_frequency: OptionalNullable[str] = UNSET r"""The pay frequency of the employment""" - pay_currency: OptionalNullable[str] = UNSET r"""The currency of the pay""" - flsa_status: OptionalNullable[str] = UNSET r"""The FLSA status of the employment""" - effective_date: OptionalNullable[datetime] = UNSET r"""The effective date of the employment""" - employment_type: OptionalNullable[str] = UNSET r"""The type of employment""" - pay_group_id: OptionalNullable[str] = UNSET r"""The UUID of the associated pay group""" - employee_id: OptionalNullable[str] = UNSET r"""The UUID of the associated employee""" - field_mappings: OptionalNullable[UnifiedHrisEmploymentOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the employment record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the employment in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisEmploymentOutputRemoteData] = UNSET r"""The remote data of the employment in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the employment was created in the 3rd party system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the employment record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the employment record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the employment was deleted in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "job_title", - "pay_rate", - "pay_period", - "pay_frequency", - "pay_currency", - "flsa_status", - "effective_date", - "employment_type", - "pay_group_id", - "employee_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] - nullable_fields = [ - "job_title", - "pay_rate", - "pay_period", - "pay_frequency", - "pay_currency", - "flsa_status", - "effective_date", - "employment_type", - "pay_group_id", - "employee_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] + optional_fields = ["job_title", "pay_rate", "pay_period", "pay_frequency", "pay_currency", "flsa_status", "effective_date", "employment_type", "pay_group_id", "employee_id", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] + nullable_fields = ["job_title", "pay_rate", "pay_period", "pay_frequency", "pay_currency", "flsa_status", "effective_date", "employment_type", "pay_group_id", "employee_id", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] null_default_fields = [] serialized = handler(self) @@ -177,19 +118,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhrisgroupoutput.py b/src/panora_sdk/models/unifiedhrisgroupoutput.py index 5a17832..78684eb 100644 --- a/src/panora_sdk/models/unifiedhrisgroupoutput.py +++ b/src/panora_sdk/models/unifiedhrisgroupoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedHrisGroupOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisGroupOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisGroupOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the group in the context of the 3rd Party""" - + + class UnifiedHrisGroupOutputRemoteData(BaseModel): r"""The remote data of the group in the context of the 3rd Party""" - + + class UnifiedHrisGroupOutputTypedDict(TypedDict): parent_group: NotRequired[Nullable[str]] @@ -53,70 +51,36 @@ class UnifiedHrisGroupOutputTypedDict(TypedDict): r"""The last modified date of the group record""" remote_was_deleted: NotRequired[Nullable[bool]] r"""Indicates if the group was deleted in the remote system""" - + class UnifiedHrisGroupOutput(BaseModel): parent_group: OptionalNullable[str] = UNSET r"""The UUID of the parent group""" - name: OptionalNullable[str] = UNSET r"""The name of the group""" - type: OptionalNullable[str] = UNSET r"""The type of the group""" - field_mappings: OptionalNullable[UnifiedHrisGroupOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the group record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the group in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisGroupOutputRemoteData] = UNSET r"""The remote data of the group in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the group was created in the 3rd party system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the group record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the group record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the group was deleted in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "parent_group", - "name", - "type", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] - nullable_fields = [ - "parent_group", - "name", - "type", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] + optional_fields = ["parent_group", "name", "type", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] + nullable_fields = ["parent_group", "name", "type", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] null_default_fields = [] serialized = handler(self) @@ -126,19 +90,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhrislocationoutput.py b/src/panora_sdk/models/unifiedhrislocationoutput.py index c45f340..c93c8fc 100644 --- a/src/panora_sdk/models/unifiedhrislocationoutput.py +++ b/src/panora_sdk/models/unifiedhrislocationoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedHrisLocationOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisLocationOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisLocationOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the location in the context of the 3rd Party""" - + + class UnifiedHrisLocationOutputRemoteData(BaseModel): r"""The remote data of the location in the context of the 3rd Party""" - + + class UnifiedHrisLocationOutputTypedDict(TypedDict): name: NotRequired[Nullable[str]] @@ -53,9 +51,7 @@ class UnifiedHrisLocationOutputTypedDict(TypedDict): r"""The UUID of the company associated with the location""" employee_id: NotRequired[Nullable[str]] r"""The UUID of the employee associated with the location""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisLocationOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisLocationOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the location record""" @@ -71,110 +67,52 @@ class UnifiedHrisLocationOutputTypedDict(TypedDict): r"""The last modified date of the location record""" remote_was_deleted: NotRequired[Nullable[bool]] r"""Indicates if the location was deleted in the remote system""" - + class UnifiedHrisLocationOutput(BaseModel): name: OptionalNullable[str] = UNSET r"""The name of the location""" - phone_number: OptionalNullable[str] = UNSET r"""The phone number of the location""" - street_1: OptionalNullable[str] = UNSET r"""The first line of the street address""" - street_2: OptionalNullable[str] = UNSET r"""The second line of the street address""" - city: OptionalNullable[str] = UNSET r"""The city of the location""" - state: OptionalNullable[str] = UNSET r"""The state or region of the location""" - zip_code: OptionalNullable[str] = UNSET r"""The zip or postal code of the location""" - country: OptionalNullable[str] = UNSET r"""The country of the location""" - location_type: OptionalNullable[str] = UNSET r"""The type of the location""" - company_id: OptionalNullable[str] = UNSET r"""The UUID of the company associated with the location""" - employee_id: OptionalNullable[str] = UNSET r"""The UUID of the employee associated with the location""" - field_mappings: OptionalNullable[UnifiedHrisLocationOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the location record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the location in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisLocationOutputRemoteData] = UNSET r"""The remote data of the location in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the location was created in the 3rd party system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the location record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the location record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the location was deleted in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "name", - "phone_number", - "street_1", - "street_2", - "city", - "state", - "zip_code", - "country", - "location_type", - "company_id", - "employee_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] - nullable_fields = [ - "name", - "phone_number", - "street_1", - "street_2", - "city", - "state", - "zip_code", - "country", - "location_type", - "company_id", - "employee_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] + optional_fields = ["name", "phone_number", "street_1", "street_2", "city", "state", "zip_code", "country", "location_type", "company_id", "employee_id", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] + nullable_fields = ["name", "phone_number", "street_1", "street_2", "city", "state", "zip_code", "country", "location_type", "company_id", "employee_id", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] null_default_fields = [] serialized = handler(self) @@ -184,19 +122,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhrispaygroupoutput.py b/src/panora_sdk/models/unifiedhrispaygroupoutput.py index a43b485..0e6412c 100644 --- a/src/panora_sdk/models/unifiedhrispaygroupoutput.py +++ b/src/panora_sdk/models/unifiedhrispaygroupoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,26 +10,28 @@ class UnifiedHrisPaygroupOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisPaygroupOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisPaygroupOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the pay group in the context of the 3rd Party""" - + + class UnifiedHrisPaygroupOutputRemoteData(BaseModel): r"""The remote data of the pay group in the context of the 3rd Party""" - + + class UnifiedHrisPaygroupOutputTypedDict(TypedDict): pay_group_name: NotRequired[Nullable[str]] r"""The name of the pay group""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisPaygroupOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisPaygroupOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the pay group record""" @@ -51,60 +47,32 @@ class UnifiedHrisPaygroupOutputTypedDict(TypedDict): r"""The last modified date of the pay group record""" remote_was_deleted: NotRequired[Nullable[bool]] r"""Indicates if the pay group was deleted in the remote system""" - + class UnifiedHrisPaygroupOutput(BaseModel): pay_group_name: OptionalNullable[str] = UNSET r"""The name of the pay group""" - field_mappings: OptionalNullable[UnifiedHrisPaygroupOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the pay group record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the pay group in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisPaygroupOutputRemoteData] = UNSET r"""The remote data of the pay group in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the pay group was created in the 3rd party system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the pay group record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the pay group record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the pay group was deleted in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "pay_group_name", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] - nullable_fields = [ - "pay_group_name", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] + optional_fields = ["pay_group_name", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] + nullable_fields = ["pay_group_name", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] null_default_fields = [] serialized = handler(self) @@ -114,19 +82,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhrispayrollrunoutput.py b/src/panora_sdk/models/unifiedhrispayrollrunoutput.py index dd843b1..7e46e64 100644 --- a/src/panora_sdk/models/unifiedhrispayrollrunoutput.py +++ b/src/panora_sdk/models/unifiedhrispayrollrunoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedHrisPayrollrunOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisPayrollrunOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisPayrollrunOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the payroll run in the context of the 3rd Party""" - + + class UnifiedHrisPayrollrunOutputRemoteData(BaseModel): r"""The remote data of the payroll run in the context of the 3rd Party""" - + + class UnifiedHrisPayrollrunOutputTypedDict(TypedDict): run_state: NotRequired[Nullable[str]] @@ -41,9 +39,7 @@ class UnifiedHrisPayrollrunOutputTypedDict(TypedDict): r"""The end date of the payroll run""" check_date: NotRequired[Nullable[datetime]] r"""The check date of the payroll run""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisPayrollrunOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisPayrollrunOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the payroll run record""" @@ -61,85 +57,42 @@ class UnifiedHrisPayrollrunOutputTypedDict(TypedDict): r"""Indicates if the payroll run was deleted in the remote system""" employee_payroll_runs: NotRequired[Nullable[List[str]]] r"""The UUIDs of the employee payroll runs associated with this payroll run""" - + class UnifiedHrisPayrollrunOutput(BaseModel): run_state: OptionalNullable[str] = UNSET r"""The state of the payroll run""" - run_type: OptionalNullable[str] = UNSET r"""The type of the payroll run""" - start_date: OptionalNullable[datetime] = UNSET r"""The start date of the payroll run""" - end_date: OptionalNullable[datetime] = UNSET r"""The end date of the payroll run""" - check_date: OptionalNullable[datetime] = UNSET r"""The check date of the payroll run""" - field_mappings: OptionalNullable[UnifiedHrisPayrollrunOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the payroll run record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the payroll run in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisPayrollrunOutputRemoteData] = UNSET r"""The remote data of the payroll run in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the payroll run was created in the 3rd party system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the payroll run record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the payroll run record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the payroll run was deleted in the remote system""" - employee_payroll_runs: OptionalNullable[List[str]] = UNSET r"""The UUIDs of the employee payroll runs associated with this payroll run""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "run_state", - "run_type", - "start_date", - "end_date", - "check_date", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - "employee_payroll_runs", - ] - nullable_fields = [ - "run_state", - "run_type", - "start_date", - "end_date", - "check_date", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - "employee_payroll_runs", - ] + optional_fields = ["run_state", "run_type", "start_date", "end_date", "check_date", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted", "employee_payroll_runs"] + nullable_fields = ["run_state", "run_type", "start_date", "end_date", "check_date", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted", "employee_payroll_runs"] null_default_fields = [] serialized = handler(self) @@ -149,19 +102,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhristimeoffbalanceoutput.py b/src/panora_sdk/models/unifiedhristimeoffbalanceoutput.py index bd18c81..80d8024 100644 --- a/src/panora_sdk/models/unifiedhristimeoffbalanceoutput.py +++ b/src/panora_sdk/models/unifiedhristimeoffbalanceoutput.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -15,19 +9,23 @@ class UnifiedHrisTimeoffbalanceOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisTimeoffbalanceOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisTimeoffbalanceOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the time off balance in the context of the 3rd Party""" - + + class UnifiedHrisTimeoffbalanceOutputRemoteData(BaseModel): r"""The remote data of the time off balance in the context of the 3rd Party""" - + + class UnifiedHrisTimeoffbalanceOutputTypedDict(TypedDict): balance: NotRequired[Nullable[float]] @@ -38,17 +36,13 @@ class UnifiedHrisTimeoffbalanceOutputTypedDict(TypedDict): r"""The amount of time off used""" policy_type: NotRequired[Nullable[str]] r"""The type of time off policy""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisTimeoffbalanceOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisTimeoffbalanceOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the time off balance record""" remote_id: NotRequired[Nullable[str]] r"""The remote ID of the time off balance in the context of the 3rd Party""" - remote_data: NotRequired[ - Nullable[UnifiedHrisTimeoffbalanceOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedHrisTimeoffbalanceOutputRemoteDataTypedDict]] r"""The remote data of the time off balance in the context of the 3rd Party""" remote_created_at: NotRequired[Nullable[str]] r"""The date when the time off balance was created in the 3rd party system""" @@ -58,77 +52,38 @@ class UnifiedHrisTimeoffbalanceOutputTypedDict(TypedDict): r"""The last modified date of the time off balance record""" remote_was_deleted: NotRequired[Nullable[bool]] r"""Indicates if the time off balance was deleted in the remote system""" - + class UnifiedHrisTimeoffbalanceOutput(BaseModel): balance: OptionalNullable[float] = UNSET r"""The current balance of time off""" - employee_id: OptionalNullable[str] = UNSET r"""The UUID of the associated employee""" - used: OptionalNullable[float] = UNSET r"""The amount of time off used""" - policy_type: OptionalNullable[str] = UNSET r"""The type of time off policy""" - - field_mappings: OptionalNullable[UnifiedHrisTimeoffbalanceOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedHrisTimeoffbalanceOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the time off balance record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the time off balance in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisTimeoffbalanceOutputRemoteData] = UNSET r"""The remote data of the time off balance in the context of the 3rd Party""" - remote_created_at: OptionalNullable[str] = UNSET r"""The date when the time off balance was created in the 3rd party system""" - created_at: OptionalNullable[str] = UNSET r"""The created date of the time off balance record""" - modified_at: OptionalNullable[str] = UNSET r"""The last modified date of the time off balance record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the time off balance was deleted in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "balance", - "employee_id", - "used", - "policy_type", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] - nullable_fields = [ - "balance", - "employee_id", - "used", - "policy_type", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] + optional_fields = ["balance", "employee_id", "used", "policy_type", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] + nullable_fields = ["balance", "employee_id", "used", "policy_type", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] null_default_fields = [] serialized = handler(self) @@ -138,19 +93,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhristimeoffinput.py b/src/panora_sdk/models/unifiedhristimeoffinput.py index 58e5f35..429c018 100644 --- a/src/panora_sdk/models/unifiedhristimeoffinput.py +++ b/src/panora_sdk/models/unifiedhristimeoffinput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,11 +10,13 @@ class UnifiedHrisTimeoffInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisTimeoffInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisTimeoffInputTypedDict(TypedDict): employee: NotRequired[Nullable[str]] @@ -43,65 +39,34 @@ class UnifiedHrisTimeoffInputTypedDict(TypedDict): r"""The end time of the time off""" field_mappings: NotRequired[Nullable[UnifiedHrisTimeoffInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedHrisTimeoffInput(BaseModel): employee: OptionalNullable[str] = UNSET r"""The UUID of the employee taking time off""" - approver: OptionalNullable[str] = UNSET r"""The UUID of the approver for the time off request""" - status: OptionalNullable[str] = UNSET r"""The status of the time off request""" - employee_note: OptionalNullable[str] = UNSET r"""A note from the employee about the time off request""" - units: OptionalNullable[str] = UNSET r"""The units used for the time off (e.g., Days, Hours)""" - amount: OptionalNullable[float] = UNSET r"""The amount of time off requested""" - request_type: OptionalNullable[str] = UNSET r"""The type of time off request""" - start_time: OptionalNullable[datetime] = UNSET r"""The start time of the time off""" - end_time: OptionalNullable[datetime] = UNSET r"""The end time of the time off""" - field_mappings: OptionalNullable[UnifiedHrisTimeoffInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "employee", - "approver", - "status", - "employee_note", - "units", - "amount", - "request_type", - "start_time", - "end_time", - "field_mappings", - ] - nullable_fields = [ - "employee", - "approver", - "status", - "employee_note", - "units", - "amount", - "request_type", - "start_time", - "end_time", - "field_mappings", - ] + optional_fields = ["employee", "approver", "status", "employee_note", "units", "amount", "request_type", "start_time", "end_time", "field_mappings"] + nullable_fields = ["employee", "approver", "status", "employee_note", "units", "amount", "request_type", "start_time", "end_time", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -111,19 +76,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhristimeoffoutput.py b/src/panora_sdk/models/unifiedhristimeoffoutput.py index c25df0e..e2a5dcc 100644 --- a/src/panora_sdk/models/unifiedhristimeoffoutput.py +++ b/src/panora_sdk/models/unifiedhristimeoffoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedHrisTimeoffOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisTimeoffOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisTimeoffOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the time off in the context of the 3rd Party""" - + + class UnifiedHrisTimeoffOutputRemoteData(BaseModel): r"""The remote data of the time off in the context of the 3rd Party""" - + + class UnifiedHrisTimeoffOutputTypedDict(TypedDict): employee: NotRequired[Nullable[str]] @@ -49,9 +47,7 @@ class UnifiedHrisTimeoffOutputTypedDict(TypedDict): r"""The start time of the time off""" end_time: NotRequired[Nullable[datetime]] r"""The end time of the time off""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisTimeoffOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisTimeoffOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the time off record""" @@ -67,100 +63,48 @@ class UnifiedHrisTimeoffOutputTypedDict(TypedDict): r"""The last modified date of the time off record""" remote_was_deleted: NotRequired[Nullable[bool]] r"""Indicates if the time off was deleted in the remote system""" - + class UnifiedHrisTimeoffOutput(BaseModel): employee: OptionalNullable[str] = UNSET r"""The UUID of the employee taking time off""" - approver: OptionalNullable[str] = UNSET r"""The UUID of the approver for the time off request""" - status: OptionalNullable[str] = UNSET r"""The status of the time off request""" - employee_note: OptionalNullable[str] = UNSET r"""A note from the employee about the time off request""" - units: OptionalNullable[str] = UNSET r"""The units used for the time off (e.g., Days, Hours)""" - amount: OptionalNullable[float] = UNSET r"""The amount of time off requested""" - request_type: OptionalNullable[str] = UNSET r"""The type of time off request""" - start_time: OptionalNullable[datetime] = UNSET r"""The start time of the time off""" - end_time: OptionalNullable[datetime] = UNSET r"""The end time of the time off""" - field_mappings: OptionalNullable[UnifiedHrisTimeoffOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the time off record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the time off in the context of the 3rd Party""" - remote_data: OptionalNullable[UnifiedHrisTimeoffOutputRemoteData] = UNSET r"""The remote data of the time off in the context of the 3rd Party""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the time off was created in the 3rd party system""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the time off record""" - modified_at: OptionalNullable[datetime] = UNSET r"""The last modified date of the time off record""" - remote_was_deleted: OptionalNullable[bool] = UNSET r"""Indicates if the time off was deleted in the remote system""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "employee", - "approver", - "status", - "employee_note", - "units", - "amount", - "request_type", - "start_time", - "end_time", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] - nullable_fields = [ - "employee", - "approver", - "status", - "employee_note", - "units", - "amount", - "request_type", - "start_time", - "end_time", - "field_mappings", - "id", - "remote_id", - "remote_data", - "remote_created_at", - "created_at", - "modified_at", - "remote_was_deleted", - ] + optional_fields = ["employee", "approver", "status", "employee_note", "units", "amount", "request_type", "start_time", "end_time", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] + nullable_fields = ["employee", "approver", "status", "employee_note", "units", "amount", "request_type", "start_time", "end_time", "field_mappings", "id", "remote_id", "remote_data", "remote_created_at", "created_at", "modified_at", "remote_was_deleted"] null_default_fields = [] serialized = handler(self) @@ -170,19 +114,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhristimesheetentryinput.py b/src/panora_sdk/models/unifiedhristimesheetentryinput.py index ecfde70..8635e40 100644 --- a/src/panora_sdk/models/unifiedhristimesheetentryinput.py +++ b/src/panora_sdk/models/unifiedhristimesheetentryinput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Optional, TypedDict from typing_extensions import NotRequired @@ -16,11 +10,13 @@ class UnifiedHrisTimesheetEntryInputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisTimesheetEntryInputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisTimesheetEntryInputTypedDict(TypedDict): hours_worked: NotRequired[Nullable[float]] @@ -33,50 +29,28 @@ class UnifiedHrisTimesheetEntryInputTypedDict(TypedDict): r"""The UUID of the associated employee""" remote_was_deleted: NotRequired[bool] r"""Indicates if the timesheet entry was deleted in the remote system""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisTimesheetEntryInputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisTimesheetEntryInputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + class UnifiedHrisTimesheetEntryInput(BaseModel): hours_worked: OptionalNullable[float] = UNSET r"""The number of hours worked""" - start_time: OptionalNullable[datetime] = UNSET r"""The start time of the timesheet entry""" - end_time: OptionalNullable[datetime] = UNSET r"""The end time of the timesheet entry""" - employee_id: OptionalNullable[str] = UNSET r"""The UUID of the associated employee""" - remote_was_deleted: Optional[bool] = None r"""Indicates if the timesheet entry was deleted in the remote system""" - - field_mappings: OptionalNullable[UnifiedHrisTimesheetEntryInputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedHrisTimesheetEntryInputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "hours_worked", - "start_time", - "end_time", - "employee_id", - "remote_was_deleted", - "field_mappings", - ] - nullable_fields = [ - "hours_worked", - "start_time", - "end_time", - "employee_id", - "field_mappings", - ] + optional_fields = ["hours_worked", "start_time", "end_time", "employee_id", "remote_was_deleted", "field_mappings"] + nullable_fields = ["hours_worked", "start_time", "end_time", "employee_id", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -86,19 +60,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedhristimesheetentryoutput.py b/src/panora_sdk/models/unifiedhristimesheetentryoutput.py index 0c29c2b..ba04874 100644 --- a/src/panora_sdk/models/unifiedhristimesheetentryoutput.py +++ b/src/panora_sdk/models/unifiedhristimesheetentryoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Optional, TypedDict from typing_extensions import NotRequired @@ -16,19 +10,23 @@ class UnifiedHrisTimesheetEntryOutputFieldMappingsTypedDict(TypedDict): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisTimesheetEntryOutputFieldMappings(BaseModel): r"""The custom field mappings of the object between the remote 3rd party & Panora""" - + + class UnifiedHrisTimesheetEntryOutputRemoteDataTypedDict(TypedDict): r"""The remote data of the timesheet entry in the context of the 3rd Party""" - + + class UnifiedHrisTimesheetEntryOutputRemoteData(BaseModel): r"""The remote data of the timesheet entry in the context of the 3rd Party""" - + + class UnifiedHrisTimesheetEntryOutputTypedDict(TypedDict): hours_worked: NotRequired[Nullable[float]] @@ -41,9 +39,7 @@ class UnifiedHrisTimesheetEntryOutputTypedDict(TypedDict): r"""The UUID of the associated employee""" remote_was_deleted: NotRequired[bool] r"""Indicates if the timesheet entry was deleted in the remote system""" - field_mappings: NotRequired[ - Nullable[UnifiedHrisTimesheetEntryOutputFieldMappingsTypedDict] - ] + field_mappings: NotRequired[Nullable[UnifiedHrisTimesheetEntryOutputFieldMappingsTypedDict]] r"""The custom field mappings of the object between the remote 3rd party & Panora""" id: NotRequired[Nullable[str]] r"""The UUID of the timesheet entry record""" @@ -55,78 +51,40 @@ class UnifiedHrisTimesheetEntryOutputTypedDict(TypedDict): r"""The created date of the timesheet entry""" modified_at: NotRequired[datetime] r"""The last modified date of the timesheet entry""" - remote_data: NotRequired[ - Nullable[UnifiedHrisTimesheetEntryOutputRemoteDataTypedDict] - ] + remote_data: NotRequired[Nullable[UnifiedHrisTimesheetEntryOutputRemoteDataTypedDict]] r"""The remote data of the timesheet entry in the context of the 3rd Party""" - + class UnifiedHrisTimesheetEntryOutput(BaseModel): hours_worked: OptionalNullable[float] = UNSET r"""The number of hours worked""" - start_time: OptionalNullable[datetime] = UNSET r"""The start time of the timesheet entry""" - end_time: OptionalNullable[datetime] = UNSET r"""The end time of the timesheet entry""" - employee_id: OptionalNullable[str] = UNSET r"""The UUID of the associated employee""" - remote_was_deleted: Optional[bool] = None r"""Indicates if the timesheet entry was deleted in the remote system""" - - field_mappings: OptionalNullable[UnifiedHrisTimesheetEntryOutputFieldMappings] = ( - UNSET - ) + field_mappings: OptionalNullable[UnifiedHrisTimesheetEntryOutputFieldMappings] = UNSET r"""The custom field mappings of the object between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the timesheet entry record""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the timesheet entry""" - remote_created_at: OptionalNullable[datetime] = UNSET r"""The date when the timesheet entry was created in the remote system""" - created_at: Optional[datetime] = None r"""The created date of the timesheet entry""" - modified_at: Optional[datetime] = None r"""The last modified date of the timesheet entry""" - remote_data: OptionalNullable[UnifiedHrisTimesheetEntryOutputRemoteData] = UNSET r"""The remote data of the timesheet entry in the context of the 3rd Party""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "hours_worked", - "start_time", - "end_time", - "employee_id", - "remote_was_deleted", - "field_mappings", - "id", - "remote_id", - "remote_created_at", - "created_at", - "modified_at", - "remote_data", - ] - nullable_fields = [ - "hours_worked", - "start_time", - "end_time", - "employee_id", - "field_mappings", - "id", - "remote_id", - "remote_created_at", - "remote_data", - ] + optional_fields = ["hours_worked", "start_time", "end_time", "employee_id", "remote_was_deleted", "field_mappings", "id", "remote_id", "remote_created_at", "created_at", "modified_at", "remote_data"] + nullable_fields = ["hours_worked", "start_time", "end_time", "employee_id", "field_mappings", "id", "remote_id", "remote_created_at", "remote_data"] null_default_fields = [] serialized = handler(self) @@ -136,19 +94,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedmarketingautomationactioninput.py b/src/panora_sdk/models/unifiedmarketingautomationactioninput.py index 4162699..d64e919 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationactioninput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationactioninput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationActionInputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationActionInput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationactionoutput.py b/src/panora_sdk/models/unifiedmarketingautomationactionoutput.py index b5b5bea..72bc9b8 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationactionoutput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationactionoutput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationActionOutputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationActionOutput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationautomationinput.py b/src/panora_sdk/models/unifiedmarketingautomationautomationinput.py index 5e1f366..199bb9c 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationautomationinput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationautomationinput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationAutomationInputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationAutomationInput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationautomationoutput.py b/src/panora_sdk/models/unifiedmarketingautomationautomationoutput.py index 823c360..eda446f 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationautomationoutput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationautomationoutput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationAutomationOutputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationAutomationOutput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationcampaigninput.py b/src/panora_sdk/models/unifiedmarketingautomationcampaigninput.py index e7b9a9e..86c3fcf 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationcampaigninput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationcampaigninput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationCampaignInputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationCampaignInput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationcampaignoutput.py b/src/panora_sdk/models/unifiedmarketingautomationcampaignoutput.py index d35dde6..32fa6af 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationcampaignoutput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationcampaignoutput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationCampaignOutputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationCampaignOutput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationcontactinput.py b/src/panora_sdk/models/unifiedmarketingautomationcontactinput.py index 1752817..2977ceb 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationcontactinput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationcontactinput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationContactInputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationContactInput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationcontactoutput.py b/src/panora_sdk/models/unifiedmarketingautomationcontactoutput.py index 6891c53..a140a86 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationcontactoutput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationcontactoutput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationContactOutputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationContactOutput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationemailoutput.py b/src/panora_sdk/models/unifiedmarketingautomationemailoutput.py index 321c4ac..b948dc0 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationemailoutput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationemailoutput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationEmailOutputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationEmailOutput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationeventoutput.py b/src/panora_sdk/models/unifiedmarketingautomationeventoutput.py index 72eb3f6..a1d82a3 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationeventoutput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationeventoutput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationEventOutputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationEventOutput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationlistinput.py b/src/panora_sdk/models/unifiedmarketingautomationlistinput.py index 2465c2a..74b3832 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationlistinput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationlistinput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationListInputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationListInput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationlistoutput.py b/src/panora_sdk/models/unifiedmarketingautomationlistoutput.py index 1cb8651..01fa0e9 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationlistoutput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationlistoutput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationListOutputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationListOutput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationmessageoutput.py b/src/panora_sdk/models/unifiedmarketingautomationmessageoutput.py index 502673e..09f8312 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationmessageoutput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationmessageoutput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationMessageOutputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationMessageOutput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationtemplateinput.py b/src/panora_sdk/models/unifiedmarketingautomationtemplateinput.py index c8c31ba..281c429 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationtemplateinput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationtemplateinput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationTemplateInputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationTemplateInput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationtemplateoutput.py b/src/panora_sdk/models/unifiedmarketingautomationtemplateoutput.py index 71f923c..99832ed 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationtemplateoutput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationtemplateoutput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationTemplateOutputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationTemplateOutput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedmarketingautomationuseroutput.py b/src/panora_sdk/models/unifiedmarketingautomationuseroutput.py index a7503c6..2182560 100644 --- a/src/panora_sdk/models/unifiedmarketingautomationuseroutput.py +++ b/src/panora_sdk/models/unifiedmarketingautomationuseroutput.py @@ -7,7 +7,8 @@ class UnifiedMarketingautomationUserOutputTypedDict(TypedDict): pass - + class UnifiedMarketingautomationUserOutput(BaseModel): pass + diff --git a/src/panora_sdk/models/unifiedticketingaccountoutput.py b/src/panora_sdk/models/unifiedticketingaccountoutput.py index fae9a9f..b0f4ba1 100644 --- a/src/panora_sdk/models/unifiedticketingaccountoutput.py +++ b/src/panora_sdk/models/unifiedticketingaccountoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict from typing_extensions import NotRequired @@ -31,54 +25,30 @@ class UnifiedTicketingAccountOutputTypedDict(TypedDict): r"""The created date of the account""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the account""" - + class UnifiedTicketingAccountOutput(BaseModel): name: Nullable[str] r"""The name of the account""" - domains: OptionalNullable[List[str]] = UNSET r"""The domains of the account""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the account between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the account""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the account in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the account in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the account""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the account""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "domains", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "domains", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["domains", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "domains", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -88,19 +58,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedticketingattachmentinput.py b/src/panora_sdk/models/unifiedticketingattachmentinput.py index 0800917..7ed7ca5 100644 --- a/src/panora_sdk/models/unifiedticketingattachmentinput.py +++ b/src/panora_sdk/models/unifiedticketingattachmentinput.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -26,38 +20,26 @@ class UnifiedTicketingAttachmentInputTypedDict(TypedDict): r"""The UUID of the comment the attachment is tied to""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the attachment between the remote 3rd party & Panora""" - + class UnifiedTicketingAttachmentInput(BaseModel): file_name: Nullable[str] r"""The file name of the attachment""" - file_url: Nullable[str] r"""The file url of the attachment""" - uploader: Nullable[str] r"""The uploader's UUID of the attachment""" - ticket_id: OptionalNullable[str] = UNSET r"""The UUID of the ticket the attachment is tied to""" - comment_id: OptionalNullable[str] = UNSET r"""The UUID of the comment the attachment is tied to""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the attachment between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["ticket_id", "comment_id", "field_mappings"] - nullable_fields = [ - "file_name", - "file_url", - "uploader", - "ticket_id", - "comment_id", - "field_mappings", - ] + nullable_fields = ["file_name", "file_url", "uploader", "ticket_id", "comment_id", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -67,19 +49,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedticketingattachmentoutput.py b/src/panora_sdk/models/unifiedticketingattachmentoutput.py index cfc722f..a6261d9 100644 --- a/src/panora_sdk/models/unifiedticketingattachmentoutput.py +++ b/src/panora_sdk/models/unifiedticketingattachmentoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -37,67 +31,36 @@ class UnifiedTicketingAttachmentOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedTicketingAttachmentOutput(BaseModel): file_name: Nullable[str] r"""The file name of the attachment""" - file_url: Nullable[str] r"""The file url of the attachment""" - uploader: Nullable[str] r"""The uploader's UUID of the attachment""" - ticket_id: OptionalNullable[str] = UNSET r"""The UUID of the ticket the attachment is tied to""" - comment_id: OptionalNullable[str] = UNSET r"""The UUID of the comment the attachment is tied to""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the attachment between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the attachment""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the attachment in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the attachment in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "ticket_id", - "comment_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "file_name", - "file_url", - "uploader", - "ticket_id", - "comment_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["ticket_id", "comment_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["file_name", "file_url", "uploader", "ticket_id", "comment_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -107,19 +70,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedticketingcollectionoutput.py b/src/panora_sdk/models/unifiedticketingcollectionoutput.py index c9b4f96..d815732 100644 --- a/src/panora_sdk/models/unifiedticketingcollectionoutput.py +++ b/src/panora_sdk/models/unifiedticketingcollectionoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -31,54 +25,30 @@ class UnifiedTicketingCollectionOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedTicketingCollectionOutput(BaseModel): name: Nullable[str] r"""The name of the collection""" - description: OptionalNullable[str] = UNSET r"""The description of the collection""" - collection_type: OptionalNullable[str] = UNSET r"""The type of the collection. Authorized values are either PROJECT or LIST""" - id: OptionalNullable[str] = UNSET r"""The UUID of the collection""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the collection in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the collection in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "description", - "collection_type", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "description", - "collection_type", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["description", "collection_type", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "description", "collection_type", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -88,19 +58,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedticketingcommentinput.py b/src/panora_sdk/models/unifiedticketingcommentinput.py index 642510a..1bd7182 100644 --- a/src/panora_sdk/models/unifiedticketingcommentinput.py +++ b/src/panora_sdk/models/unifiedticketingcommentinput.py @@ -1,30 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingattachmentoutput import ( - UnifiedTicketingAttachmentOutput, - UnifiedTicketingAttachmentOutputTypedDict, -) -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from .unifiedticketingattachmentoutput import UnifiedTicketingAttachmentOutput, UnifiedTicketingAttachmentOutputTypedDict +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict, Union from typing_extensions import NotRequired -UnifiedTicketingCommentInputAttachmentsTypedDict = Union[ - UnifiedTicketingAttachmentOutputTypedDict, str -] - - -UnifiedTicketingCommentInputAttachments = Union[UnifiedTicketingAttachmentOutput, str] - - class UnifiedTicketingCommentInputTypedDict(TypedDict): body: Nullable[str] r"""The body of the comment""" @@ -40,58 +23,32 @@ class UnifiedTicketingCommentInputTypedDict(TypedDict): r"""The UUID of the contact which the comment belongs to (if no user_id specified)""" user_id: NotRequired[Nullable[str]] r"""The UUID of the user which the comment belongs to (if no contact_id specified)""" - attachments: NotRequired[ - Nullable[List[UnifiedTicketingCommentInputAttachmentsTypedDict]] - ] + attachments: NotRequired[Nullable[List[UnifiedTicketingCommentInputAttachmentsTypedDict]]] r"""The attachements UUIDs tied to the comment""" - + class UnifiedTicketingCommentInput(BaseModel): body: Nullable[str] r"""The body of the comment""" - html_body: OptionalNullable[str] = UNSET r"""The html body of the comment""" - is_private: OptionalNullable[bool] = UNSET r"""The public status of the comment""" - creator_type: OptionalNullable[str] = UNSET r"""The creator type of the comment. Authorized values are either USER or CONTACT""" - ticket_id: OptionalNullable[str] = UNSET r"""The UUID of the ticket the comment is tied to""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the contact which the comment belongs to (if no user_id specified)""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user which the comment belongs to (if no contact_id specified)""" - attachments: OptionalNullable[List[UnifiedTicketingCommentInputAttachments]] = UNSET r"""The attachements UUIDs tied to the comment""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "html_body", - "is_private", - "creator_type", - "ticket_id", - "contact_id", - "user_id", - "attachments", - ] - nullable_fields = [ - "body", - "html_body", - "is_private", - "creator_type", - "ticket_id", - "contact_id", - "user_id", - "attachments", - ] + optional_fields = ["html_body", "is_private", "creator_type", "ticket_id", "contact_id", "user_id", "attachments"] + nullable_fields = ["body", "html_body", "is_private", "creator_type", "ticket_id", "contact_id", "user_id", "attachments"] null_default_fields = [] serialized = handler(self) @@ -101,19 +58,27 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + + +UnifiedTicketingCommentInputAttachmentsTypedDict = Union[UnifiedTicketingAttachmentOutputTypedDict, str] + + +UnifiedTicketingCommentInputAttachments = Union[UnifiedTicketingAttachmentOutput, str] + diff --git a/src/panora_sdk/models/unifiedticketingcommentoutput.py b/src/panora_sdk/models/unifiedticketingcommentoutput.py index 56d32e7..077690f 100644 --- a/src/panora_sdk/models/unifiedticketingcommentoutput.py +++ b/src/panora_sdk/models/unifiedticketingcommentoutput.py @@ -1,31 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingattachmentoutput import ( - UnifiedTicketingAttachmentOutput, - UnifiedTicketingAttachmentOutputTypedDict, -) +from .unifiedticketingattachmentoutput import UnifiedTicketingAttachmentOutput, UnifiedTicketingAttachmentOutputTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict, Union from typing_extensions import NotRequired -UnifiedTicketingCommentOutputAttachmentsTypedDict = Union[ - UnifiedTicketingAttachmentOutputTypedDict, str -] - - -UnifiedTicketingCommentOutputAttachments = Union[UnifiedTicketingAttachmentOutput, str] - - class UnifiedTicketingCommentOutputTypedDict(TypedDict): body: Nullable[str] r"""The body of the comment""" @@ -41,9 +24,7 @@ class UnifiedTicketingCommentOutputTypedDict(TypedDict): r"""The UUID of the contact which the comment belongs to (if no user_id specified)""" user_id: NotRequired[Nullable[str]] r"""The UUID of the user which the comment belongs to (if no contact_id specified)""" - attachments: NotRequired[ - Nullable[List[UnifiedTicketingCommentOutputAttachmentsTypedDict]] - ] + attachments: NotRequired[Nullable[List[UnifiedTicketingCommentOutputAttachmentsTypedDict]]] r"""The attachements UUIDs tied to the comment""" id: NotRequired[Nullable[str]] r"""The UUID of the comment""" @@ -55,81 +36,40 @@ class UnifiedTicketingCommentOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedTicketingCommentOutput(BaseModel): body: Nullable[str] r"""The body of the comment""" - html_body: OptionalNullable[str] = UNSET r"""The html body of the comment""" - is_private: OptionalNullable[bool] = UNSET r"""The public status of the comment""" - creator_type: OptionalNullable[str] = UNSET r"""The creator type of the comment. Authorized values are either USER or CONTACT""" - ticket_id: OptionalNullable[str] = UNSET r"""The UUID of the ticket the comment is tied to""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the contact which the comment belongs to (if no user_id specified)""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user which the comment belongs to (if no contact_id specified)""" - - attachments: OptionalNullable[List[UnifiedTicketingCommentOutputAttachments]] = ( - UNSET - ) + attachments: OptionalNullable[List[UnifiedTicketingCommentOutputAttachments]] = UNSET r"""The attachements UUIDs tied to the comment""" - id: OptionalNullable[str] = UNSET r"""The UUID of the comment""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the comment in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the comment in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "html_body", - "is_private", - "creator_type", - "ticket_id", - "contact_id", - "user_id", - "attachments", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "body", - "html_body", - "is_private", - "creator_type", - "ticket_id", - "contact_id", - "user_id", - "attachments", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["html_body", "is_private", "creator_type", "ticket_id", "contact_id", "user_id", "attachments", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["body", "html_body", "is_private", "creator_type", "ticket_id", "contact_id", "user_id", "attachments", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -139,19 +79,27 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + + +UnifiedTicketingCommentOutputAttachmentsTypedDict = Union[UnifiedTicketingAttachmentOutputTypedDict, str] + + +UnifiedTicketingCommentOutputAttachments = Union[UnifiedTicketingAttachmentOutput, str] + diff --git a/src/panora_sdk/models/unifiedticketingcontactoutput.py b/src/panora_sdk/models/unifiedticketingcontactoutput.py index d80bb17..170c4d2 100644 --- a/src/panora_sdk/models/unifiedticketingcontactoutput.py +++ b/src/panora_sdk/models/unifiedticketingcontactoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, Optional, TypedDict from typing_extensions import NotRequired @@ -35,62 +29,34 @@ class UnifiedTicketingContactOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedTicketingContactOutput(BaseModel): name: Nullable[str] r"""The name of the contact""" - email_address: Nullable[str] r"""The email address of the contact""" - phone_number: OptionalNullable[str] = UNSET r"""The phone number of the contact""" - details: OptionalNullable[str] = UNSET r"""The details of the contact""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the contact between the remote 3rd party & Panora""" - id: Optional[str] = None r"""The UUID of the contact""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the contact in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the contact in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "phone_number", - "details", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "email_address", - "phone_number", - "details", - "field_mappings", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["phone_number", "details", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "email_address", "phone_number", "details", "field_mappings", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -100,19 +66,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedticketingtagoutput.py b/src/panora_sdk/models/unifiedticketingtagoutput.py index 2ecf39a..c1e929a 100644 --- a/src/panora_sdk/models/unifiedticketingtagoutput.py +++ b/src/panora_sdk/models/unifiedticketingtagoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -29,49 +23,28 @@ class UnifiedTicketingTagOutputTypedDict(TypedDict): r"""The created date of the tag""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the tag""" - + class UnifiedTicketingTagOutput(BaseModel): name: Nullable[str] r"""The name of the tag""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the tag between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the tag""" - remote_id: OptionalNullable[str] = UNSET r"""The remote ID of the tag in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the tag in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the tag""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the tag""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -81,19 +54,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedticketingteamoutput.py b/src/panora_sdk/models/unifiedticketingteamoutput.py index 2a40792..b99a7bc 100644 --- a/src/panora_sdk/models/unifiedticketingteamoutput.py +++ b/src/panora_sdk/models/unifiedticketingteamoutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, TypedDict from typing_extensions import NotRequired @@ -31,54 +25,30 @@ class UnifiedTicketingTeamOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedTicketingTeamOutput(BaseModel): name: Nullable[str] r"""The name of the team""" - description: OptionalNullable[str] = UNSET r"""The description of the team""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the team between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the team""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the team in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the team in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "description", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "description", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["description", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "description", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -88,19 +58,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/unifiedticketingticketinput.py b/src/panora_sdk/models/unifiedticketingticketinput.py index b9963d5..dc69566 100644 --- a/src/panora_sdk/models/unifiedticketingticketinput.py +++ b/src/panora_sdk/models/unifiedticketingticketinput.py @@ -1,64 +1,20 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingattachmentinput import ( - UnifiedTicketingAttachmentInput, - UnifiedTicketingAttachmentInputTypedDict, -) -from .unifiedticketingattachmentoutput import ( - UnifiedTicketingAttachmentOutput, - UnifiedTicketingAttachmentOutputTypedDict, -) -from .unifiedticketingcollectionoutput import ( - UnifiedTicketingCollectionOutput, - UnifiedTicketingCollectionOutputTypedDict, -) -from .unifiedticketingtagoutput import ( - UnifiedTicketingTagOutput, - UnifiedTicketingTagOutputTypedDict, -) +from .unifiedticketingattachmentinput import UnifiedTicketingAttachmentInput, UnifiedTicketingAttachmentInputTypedDict +from .unifiedticketingattachmentoutput import UnifiedTicketingAttachmentOutput, UnifiedTicketingAttachmentOutputTypedDict +from .unifiedticketingcollectionoutput import UnifiedTicketingCollectionOutput, UnifiedTicketingCollectionOutputTypedDict +from .unifiedticketingtagoutput import UnifiedTicketingTagOutput, UnifiedTicketingTagOutputTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict, Union from typing_extensions import NotRequired -UnifiedTicketingTicketInputCollectionsTypedDict = Union[ - UnifiedTicketingCollectionOutputTypedDict, str -] - - -UnifiedTicketingTicketInputCollections = Union[UnifiedTicketingCollectionOutput, str] - - -UnifiedTicketingTicketInputTagsTypedDict = Union[ - UnifiedTicketingTagOutputTypedDict, str -] - - -UnifiedTicketingTicketInputTags = Union[UnifiedTicketingTagOutput, str] - - -UnifiedTicketingTicketInputCommentAttachmentsTypedDict = Union[ - UnifiedTicketingAttachmentOutputTypedDict, str -] - - -UnifiedTicketingTicketInputCommentAttachments = Union[ - UnifiedTicketingAttachmentOutput, str -] - - class UnifiedTicketingTicketInputCommentTypedDict(TypedDict): r"""The comment of the ticket""" - + body: Nullable[str] r"""The body of the comment""" html_body: NotRequired[Nullable[str]] @@ -73,62 +29,34 @@ class UnifiedTicketingTicketInputCommentTypedDict(TypedDict): r"""The UUID of the contact which the comment belongs to (if no user_id specified)""" user_id: NotRequired[Nullable[str]] r"""The UUID of the user which the comment belongs to (if no contact_id specified)""" - attachments: NotRequired[ - Nullable[List[UnifiedTicketingTicketInputCommentAttachmentsTypedDict]] - ] + attachments: NotRequired[Nullable[List[UnifiedTicketingTicketInputCommentAttachmentsTypedDict]]] r"""The attachements UUIDs tied to the comment""" - + class UnifiedTicketingTicketInputComment(BaseModel): r"""The comment of the ticket""" - + body: Nullable[str] r"""The body of the comment""" - html_body: OptionalNullable[str] = UNSET r"""The html body of the comment""" - is_private: OptionalNullable[bool] = UNSET r"""The public status of the comment""" - creator_type: OptionalNullable[str] = UNSET r"""The creator type of the comment. Authorized values are either USER or CONTACT""" - ticket_id: OptionalNullable[str] = UNSET r"""The UUID of the ticket the comment is tied to""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the contact which the comment belongs to (if no user_id specified)""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user which the comment belongs to (if no contact_id specified)""" - - attachments: OptionalNullable[ - List[UnifiedTicketingTicketInputCommentAttachments] - ] = UNSET + attachments: OptionalNullable[List[UnifiedTicketingTicketInputCommentAttachments]] = UNSET r"""The attachements UUIDs tied to the comment""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "html_body", - "is_private", - "creator_type", - "ticket_id", - "contact_id", - "user_id", - "attachments", - ] - nullable_fields = [ - "body", - "html_body", - "is_private", - "creator_type", - "ticket_id", - "contact_id", - "user_id", - "attachments", - ] + optional_fields = ["html_body", "is_private", "creator_type", "ticket_id", "contact_id", "user_id", "attachments"] + nullable_fields = ["body", "html_body", "is_private", "creator_type", "ticket_id", "contact_id", "user_id", "attachments"] null_default_fields = [] serialized = handler(self) @@ -138,31 +66,24 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - - -UnifiedTicketingTicketInputAttachmentsTypedDict = Union[ - UnifiedTicketingAttachmentInputTypedDict, str -] - - -UnifiedTicketingTicketInputAttachments = Union[UnifiedTicketingAttachmentInput, str] - + class UnifiedTicketingTicketInputTypedDict(TypedDict): name: Nullable[str] @@ -177,9 +98,7 @@ class UnifiedTicketingTicketInputTypedDict(TypedDict): r"""The type of the ticket. Authorized values are PROBLEM, QUESTION, or TASK""" parent_ticket: NotRequired[Nullable[str]] r"""The UUID of the parent ticket""" - collections: NotRequired[ - Nullable[List[UnifiedTicketingTicketInputCollectionsTypedDict]] - ] + collections: NotRequired[Nullable[List[UnifiedTicketingTicketInputCollectionsTypedDict]]] r"""The collection UUIDs the ticket belongs to""" tags: NotRequired[Nullable[List[UnifiedTicketingTicketInputTagsTypedDict]]] r"""The tags names of the ticket""" @@ -195,99 +114,50 @@ class UnifiedTicketingTicketInputTypedDict(TypedDict): r"""The UUID of the account which the ticket belongs to""" contact_id: NotRequired[Nullable[str]] r"""The UUID of the contact which the ticket belongs to""" - attachments: NotRequired[ - Nullable[List[UnifiedTicketingTicketInputAttachmentsTypedDict]] - ] + attachments: NotRequired[Nullable[List[UnifiedTicketingTicketInputAttachmentsTypedDict]]] r"""The attachements UUIDs tied to the ticket""" field_mappings: NotRequired[Nullable[Dict[str, Any]]] r"""The custom field mappings of the ticket between the remote 3rd party & Panora""" - + class UnifiedTicketingTicketInput(BaseModel): name: Nullable[str] r"""The name of the ticket""" - description: Nullable[str] r"""The description of the ticket""" - status: OptionalNullable[str] = UNSET r"""The status of the ticket. Authorized values are OPEN or CLOSED.""" - due_date: OptionalNullable[datetime] = UNSET r"""The date the ticket is due""" - type: OptionalNullable[str] = UNSET r"""The type of the ticket. Authorized values are PROBLEM, QUESTION, or TASK""" - parent_ticket: OptionalNullable[str] = UNSET r"""The UUID of the parent ticket""" - collections: OptionalNullable[List[UnifiedTicketingTicketInputCollections]] = UNSET r"""The collection UUIDs the ticket belongs to""" - tags: OptionalNullable[List[UnifiedTicketingTicketInputTags]] = UNSET r"""The tags names of the ticket""" - completed_at: OptionalNullable[datetime] = UNSET r"""The date the ticket has been completed""" - priority: OptionalNullable[str] = UNSET r"""The priority of the ticket. Authorized values are HIGH, MEDIUM or LOW.""" - assigned_to: OptionalNullable[List[str]] = UNSET r"""The users UUIDs the ticket is assigned to""" - comment: OptionalNullable[UnifiedTicketingTicketInputComment] = UNSET r"""The comment of the ticket""" - account_id: OptionalNullable[str] = UNSET r"""The UUID of the account which the ticket belongs to""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the contact which the ticket belongs to""" - attachments: OptionalNullable[List[UnifiedTicketingTicketInputAttachments]] = UNSET r"""The attachements UUIDs tied to the ticket""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the ticket between the remote 3rd party & Panora""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "status", - "due_date", - "type", - "parent_ticket", - "collections", - "tags", - "completed_at", - "priority", - "assigned_to", - "comment", - "account_id", - "contact_id", - "attachments", - "field_mappings", - ] - nullable_fields = [ - "name", - "description", - "status", - "due_date", - "type", - "parent_ticket", - "collections", - "tags", - "completed_at", - "priority", - "assigned_to", - "comment", - "account_id", - "contact_id", - "attachments", - "field_mappings", - ] + optional_fields = ["status", "due_date", "type", "parent_ticket", "collections", "tags", "completed_at", "priority", "assigned_to", "comment", "account_id", "contact_id", "attachments", "field_mappings"] + nullable_fields = ["name", "description", "status", "due_date", "type", "parent_ticket", "collections", "tags", "completed_at", "priority", "assigned_to", "comment", "account_id", "contact_id", "attachments", "field_mappings"] null_default_fields = [] serialized = handler(self) @@ -297,19 +167,45 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + + +UnifiedTicketingTicketInputCollectionsTypedDict = Union[UnifiedTicketingCollectionOutputTypedDict, str] + + +UnifiedTicketingTicketInputCollections = Union[UnifiedTicketingCollectionOutput, str] + + +UnifiedTicketingTicketInputTagsTypedDict = Union[UnifiedTicketingTagOutputTypedDict, str] + + +UnifiedTicketingTicketInputTags = Union[UnifiedTicketingTagOutput, str] + + +UnifiedTicketingTicketInputCommentAttachmentsTypedDict = Union[UnifiedTicketingAttachmentOutputTypedDict, str] + + +UnifiedTicketingTicketInputCommentAttachments = Union[UnifiedTicketingAttachmentOutput, str] + + +UnifiedTicketingTicketInputAttachmentsTypedDict = Union[UnifiedTicketingAttachmentInputTypedDict, str] + + +UnifiedTicketingTicketInputAttachments = Union[UnifiedTicketingAttachmentInput, str] + diff --git a/src/panora_sdk/models/unifiedticketingticketoutput.py b/src/panora_sdk/models/unifiedticketingticketoutput.py index 1761677..4ea05df 100644 --- a/src/panora_sdk/models/unifiedticketingticketoutput.py +++ b/src/panora_sdk/models/unifiedticketingticketoutput.py @@ -1,58 +1,20 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .unifiedticketingattachmentinput import ( - UnifiedTicketingAttachmentInput, - UnifiedTicketingAttachmentInputTypedDict, -) -from .unifiedticketingattachmentoutput import ( - UnifiedTicketingAttachmentOutput, - UnifiedTicketingAttachmentOutputTypedDict, -) -from .unifiedticketingcollectionoutput import ( - UnifiedTicketingCollectionOutput, - UnifiedTicketingCollectionOutputTypedDict, -) -from .unifiedticketingtagoutput import ( - UnifiedTicketingTagOutput, - UnifiedTicketingTagOutputTypedDict, -) +from .unifiedticketingattachmentinput import UnifiedTicketingAttachmentInput, UnifiedTicketingAttachmentInputTypedDict +from .unifiedticketingattachmentoutput import UnifiedTicketingAttachmentOutput, UnifiedTicketingAttachmentOutputTypedDict +from .unifiedticketingcollectionoutput import UnifiedTicketingCollectionOutput, UnifiedTicketingCollectionOutputTypedDict +from .unifiedticketingtagoutput import UnifiedTicketingTagOutput, UnifiedTicketingTagOutputTypedDict from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict, Union from typing_extensions import NotRequired -CollectionsModelTypedDict = Union[UnifiedTicketingCollectionOutputTypedDict, str] - - -CollectionsModel = Union[UnifiedTicketingCollectionOutput, str] - - -TagsModelTypedDict = Union[UnifiedTicketingTagOutputTypedDict, str] - - -TagsModel = Union[UnifiedTicketingTagOutput, str] - - -UnifiedTicketingTicketOutputAttachmentsTypedDict = Union[ - UnifiedTicketingAttachmentOutputTypedDict, str -] - - -UnifiedTicketingTicketOutputAttachments = Union[UnifiedTicketingAttachmentOutput, str] - - class CommentTypedDict(TypedDict): r"""The comment of the ticket""" - + body: Nullable[str] r"""The body of the comment""" html_body: NotRequired[Nullable[str]] @@ -67,60 +29,34 @@ class CommentTypedDict(TypedDict): r"""The UUID of the contact which the comment belongs to (if no user_id specified)""" user_id: NotRequired[Nullable[str]] r"""The UUID of the user which the comment belongs to (if no contact_id specified)""" - attachments: NotRequired[ - Nullable[List[UnifiedTicketingTicketOutputAttachmentsTypedDict]] - ] + attachments: NotRequired[Nullable[List[UnifiedTicketingTicketOutputAttachmentsTypedDict]]] r"""The attachements UUIDs tied to the comment""" - + class Comment(BaseModel): r"""The comment of the ticket""" - + body: Nullable[str] r"""The body of the comment""" - html_body: OptionalNullable[str] = UNSET r"""The html body of the comment""" - is_private: OptionalNullable[bool] = UNSET r"""The public status of the comment""" - creator_type: OptionalNullable[str] = UNSET r"""The creator type of the comment. Authorized values are either USER or CONTACT""" - ticket_id: OptionalNullable[str] = UNSET r"""The UUID of the ticket the comment is tied to""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the contact which the comment belongs to (if no user_id specified)""" - user_id: OptionalNullable[str] = UNSET r"""The UUID of the user which the comment belongs to (if no contact_id specified)""" - attachments: OptionalNullable[List[UnifiedTicketingTicketOutputAttachments]] = UNSET r"""The attachements UUIDs tied to the comment""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "html_body", - "is_private", - "creator_type", - "ticket_id", - "contact_id", - "user_id", - "attachments", - ] - nullable_fields = [ - "body", - "html_body", - "is_private", - "creator_type", - "ticket_id", - "contact_id", - "user_id", - "attachments", - ] + optional_fields = ["html_body", "is_private", "creator_type", "ticket_id", "contact_id", "user_id", "attachments"] + nullable_fields = ["body", "html_body", "is_private", "creator_type", "ticket_id", "contact_id", "user_id", "attachments"] null_default_fields = [] serialized = handler(self) @@ -130,29 +66,24 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m - - -AttachmentsModelTypedDict = Union[UnifiedTicketingAttachmentInputTypedDict, str] - - -AttachmentsModel = Union[UnifiedTicketingAttachmentInput, str] - + class UnifiedTicketingTicketOutputTypedDict(TypedDict): name: Nullable[str] @@ -197,118 +128,56 @@ class UnifiedTicketingTicketOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedTicketingTicketOutput(BaseModel): name: Nullable[str] r"""The name of the ticket""" - description: Nullable[str] r"""The description of the ticket""" - status: OptionalNullable[str] = UNSET r"""The status of the ticket. Authorized values are OPEN or CLOSED.""" - due_date: OptionalNullable[datetime] = UNSET r"""The date the ticket is due""" - type: OptionalNullable[str] = UNSET r"""The type of the ticket. Authorized values are PROBLEM, QUESTION, or TASK""" - parent_ticket: OptionalNullable[str] = UNSET r"""The UUID of the parent ticket""" - collections: OptionalNullable[List[CollectionsModel]] = UNSET r"""The collection UUIDs the ticket belongs to""" - tags: OptionalNullable[List[TagsModel]] = UNSET r"""The tags names of the ticket""" - completed_at: OptionalNullable[datetime] = UNSET r"""The date the ticket has been completed""" - priority: OptionalNullable[str] = UNSET r"""The priority of the ticket. Authorized values are HIGH, MEDIUM or LOW.""" - assigned_to: OptionalNullable[List[str]] = UNSET r"""The users UUIDs the ticket is assigned to""" - comment: OptionalNullable[Comment] = UNSET r"""The comment of the ticket""" - account_id: OptionalNullable[str] = UNSET r"""The UUID of the account which the ticket belongs to""" - contact_id: OptionalNullable[str] = UNSET r"""The UUID of the contact which the ticket belongs to""" - attachments: OptionalNullable[List[AttachmentsModel]] = UNSET r"""The attachements UUIDs tied to the ticket""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the ticket between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the ticket""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the ticket in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the ticket in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "status", - "due_date", - "type", - "parent_ticket", - "collections", - "tags", - "completed_at", - "priority", - "assigned_to", - "comment", - "account_id", - "contact_id", - "attachments", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "description", - "status", - "due_date", - "type", - "parent_ticket", - "collections", - "tags", - "completed_at", - "priority", - "assigned_to", - "comment", - "account_id", - "contact_id", - "attachments", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["status", "due_date", "type", "parent_ticket", "collections", "tags", "completed_at", "priority", "assigned_to", "comment", "account_id", "contact_id", "attachments", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "description", "status", "due_date", "type", "parent_ticket", "collections", "tags", "completed_at", "priority", "assigned_to", "comment", "account_id", "contact_id", "attachments", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -318,19 +187,45 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + + +CollectionsModelTypedDict = Union[UnifiedTicketingCollectionOutputTypedDict, str] + + +CollectionsModel = Union[UnifiedTicketingCollectionOutput, str] + + +TagsModelTypedDict = Union[UnifiedTicketingTagOutputTypedDict, str] + + +TagsModel = Union[UnifiedTicketingTagOutput, str] + + +UnifiedTicketingTicketOutputAttachmentsTypedDict = Union[UnifiedTicketingAttachmentOutputTypedDict, str] + + +UnifiedTicketingTicketOutputAttachments = Union[UnifiedTicketingAttachmentOutput, str] + + +AttachmentsModelTypedDict = Union[UnifiedTicketingAttachmentInputTypedDict, str] + + +AttachmentsModel = Union[UnifiedTicketingAttachmentInput, str] + diff --git a/src/panora_sdk/models/unifiedticketinguseroutput.py b/src/panora_sdk/models/unifiedticketinguseroutput.py index 0cbc285..120c45e 100644 --- a/src/panora_sdk/models/unifiedticketinguseroutput.py +++ b/src/panora_sdk/models/unifiedticketinguseroutput.py @@ -2,13 +2,7 @@ from __future__ import annotations from datetime import datetime -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import Any, Dict, List, TypedDict from typing_extensions import NotRequired @@ -35,63 +29,34 @@ class UnifiedTicketingUserOutputTypedDict(TypedDict): r"""The created date of the object""" modified_at: NotRequired[Nullable[datetime]] r"""The modified date of the object""" - + class UnifiedTicketingUserOutput(BaseModel): name: Nullable[str] r"""The name of the user""" - email_address: Nullable[str] r"""The email address of the user""" - teams: OptionalNullable[List[str]] = UNSET r"""The teams whose the user is part of""" - account_id: OptionalNullable[str] = UNSET r"""The account or organization the user is part of""" - field_mappings: OptionalNullable[Dict[str, Any]] = UNSET r"""The custom field mappings of the user between the remote 3rd party & Panora""" - id: OptionalNullable[str] = UNSET r"""The UUID of the user""" - remote_id: OptionalNullable[str] = UNSET r"""The id of the user in the context of the 3rd Party""" - remote_data: OptionalNullable[Dict[str, Any]] = UNSET r"""The remote data of the user in the context of the 3rd Party""" - created_at: OptionalNullable[datetime] = UNSET r"""The created date of the object""" - modified_at: OptionalNullable[datetime] = UNSET r"""The modified date of the object""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "teams", - "account_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] - nullable_fields = [ - "name", - "email_address", - "teams", - "account_id", - "field_mappings", - "id", - "remote_id", - "remote_data", - "created_at", - "modified_at", - ] + optional_fields = ["teams", "account_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] + nullable_fields = ["name", "email_address", "teams", "account_id", "field_mappings", "id", "remote_id", "remote_data", "created_at", "modified_at"] null_default_fields = [] serialized = handler(self) @@ -101,19 +66,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/updatepullfrequencydto.py b/src/panora_sdk/models/updatepullfrequencydto.py index 4f9c381..2de114b 100644 --- a/src/panora_sdk/models/updatepullfrequencydto.py +++ b/src/panora_sdk/models/updatepullfrequencydto.py @@ -20,26 +20,21 @@ class UpdatePullFrequencyDtoTypedDict(TypedDict): r"""Frequency in seconds""" ticketing: float r"""Frequency in seconds""" - + class UpdatePullFrequencyDto(BaseModel): crm: float r"""Frequency in seconds""" - ats: float r"""Frequency in seconds""" - hris: float r"""Frequency in seconds""" - accounting: float r"""Frequency in seconds""" - filestorage: float r"""Frequency in seconds""" - ecommerce: float r"""Frequency in seconds""" - ticketing: float r"""Frequency in seconds""" + diff --git a/src/panora_sdk/models/updatepullfrequencyop.py b/src/panora_sdk/models/updatepullfrequencyop.py index 662dc82..7f6dc5a 100644 --- a/src/panora_sdk/models/updatepullfrequencyop.py +++ b/src/panora_sdk/models/updatepullfrequencyop.py @@ -7,7 +7,8 @@ class UpdatePullFrequencyResponseBodyTypedDict(TypedDict): pass - + class UpdatePullFrequencyResponseBody(BaseModel): pass + diff --git a/src/panora_sdk/models/updatestatusop.py b/src/panora_sdk/models/updatestatusop.py index 3147fe0..be05b01 100644 --- a/src/panora_sdk/models/updatestatusop.py +++ b/src/panora_sdk/models/updatestatusop.py @@ -10,10 +10,9 @@ class UpdateStatusRequestTypedDict(TypedDict): id: str r"""id of the webhook to update.""" - + class UpdateStatusRequest(BaseModel): - id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + id: Annotated[str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))] r"""id of the webhook to update.""" + diff --git a/src/panora_sdk/models/url.py b/src/panora_sdk/models/url.py index 65d9f2d..aaf0da7 100644 --- a/src/panora_sdk/models/url.py +++ b/src/panora_sdk/models/url.py @@ -11,15 +11,14 @@ class URLTypedDict(TypedDict): r"""The url.""" url_type: Nullable[str] r"""The url type. It takes [WEBSITE | BLOG | LINKEDIN | GITHUB | OTHER]""" - + class URL(BaseModel): url: Nullable[str] r"""The url.""" - url_type: Nullable[str] r"""The url type. It takes [WEBSITE | BLOG | LINKEDIN | GITHUB | OTHER]""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] @@ -33,19 +32,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/variant.py b/src/panora_sdk/models/variant.py index c980a82..2508df6 100644 --- a/src/panora_sdk/models/variant.py +++ b/src/panora_sdk/models/variant.py @@ -7,7 +7,8 @@ class VariantTypedDict(TypedDict): pass - + class Variant(BaseModel): pass + diff --git a/src/panora_sdk/models/webhookdto.py b/src/panora_sdk/models/webhookdto.py index 37df8a3..7ea5ff7 100644 --- a/src/panora_sdk/models/webhookdto.py +++ b/src/panora_sdk/models/webhookdto.py @@ -1,13 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from panora_sdk.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from panora_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL from pydantic import model_serializer from typing import List, TypedDict from typing_extensions import NotRequired @@ -20,18 +14,16 @@ class WebhookDtoTypedDict(TypedDict): r"""The events that the webhook listen to.""" description: NotRequired[Nullable[str]] r"""The description of the webhook.""" - + class WebhookDto(BaseModel): url: Nullable[str] r"""The endpoint url of the webhook.""" - scope: Nullable[List[str]] r"""The events that the webhook listen to.""" - description: OptionalNullable[str] = UNSET r"""The description of the webhook.""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["description"] @@ -45,19 +37,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/models/webhookresponse.py b/src/panora_sdk/models/webhookresponse.py index dd4d3de..f4a185b 100644 --- a/src/panora_sdk/models/webhookresponse.py +++ b/src/panora_sdk/models/webhookresponse.py @@ -26,49 +26,32 @@ class WebhookResponseTypedDict(TypedDict): r"""The project id tied to the webhook.""" last_update: Nullable[datetime] r"""The last update date of the webhook.""" - + class WebhookResponse(BaseModel): id_webhook_endpoint: Nullable[str] r"""The unique UUID of the webhook.""" - endpoint_description: Nullable[str] r"""The description of the webhook.""" - url: Nullable[str] r"""The endpoint url of the webhook.""" - secret: str r"""The secret of the webhook.""" - active: Nullable[bool] r"""The status of the webhook.""" - created_at: Nullable[datetime] r"""The created date of the webhook.""" - scope: Nullable[List[str]] r"""The events that the webhook listen to.""" - id_project: Nullable[str] r"""The project id tied to the webhook.""" - last_update: Nullable[datetime] r"""The last update date of the webhook.""" - + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = [] - nullable_fields = [ - "id_webhook_endpoint", - "endpoint_description", - "url", - "active", - "created_at", - "scope", - "id_project", - "last_update", - ] + nullable_fields = ["id_webhook_endpoint", "endpoint_description", "url", "active", "created_at", "scope", "id_project", "last_update"] null_default_fields = [] serialized = handler(self) @@ -78,19 +61,21 @@ def serialize_model(self, handler): for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member if val is not None and val != UNSET_SENTINEL: m[k] = val elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) + not k in optional_fields + or ( + k in optional_fields + and k in nullable_fields + and ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + ) ): m[k] = val return m + diff --git a/src/panora_sdk/notes.py b/src/panora_sdk/notes.py index c4b2d67..1c92ddd 100644 --- a/src/panora_sdk/notes.py +++ b/src/panora_sdk/notes.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Notes(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmNoteResponse]: + ) -> models.ListCrmNoteResponse: r"""List Notes :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmNoteRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/crm/notes", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listCrmNote", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmNote", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmNoteResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListCrmNoteResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmNoteResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmNoteResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmNoteResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmNoteResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmNoteResponse]: + ) -> models.ListCrmNoteResponse: r"""List Notes :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmNoteRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/notes", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listCrmNote", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmNote", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmNoteResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,34 +194,21 @@ def next_func() -> Optional[models.ListCrmNoteResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmNoteResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmNoteResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmNoteResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmNoteResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_crm_note_input: Union[ - models.UnifiedCrmNoteInput, models.UnifiedCrmNoteInputTypedDict - ], + unified_crm_note_input: Union[models.UnifiedCrmNoteInput, models.UnifiedCrmNoteInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -238,7 +219,7 @@ def create( Create Notes in any supported Crm software :param x_connection_token: The connection token - :param unified_crm_note_input: + :param unified_crm_note_input: :param remote_data: Set to true to include data from the original Crm software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -248,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateCrmNoteRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_crm_note_input=utils.get_pydantic_model( - unified_crm_note_input, models.UnifiedCrmNoteInput - ), + unified_crm_note_input=utils.get_pydantic_model(unified_crm_note_input, models.UnifiedCrmNoteInput), ) - + req = self.build_request( method="POST", path="/crm/notes", @@ -272,59 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_crm_note_input, - False, - False, - "json", - models.UnifiedCrmNoteInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_crm_note_input, False, False, "json", models.UnifiedCrmNoteInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createCrmNote", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createCrmNote", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmNoteOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmNoteOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_crm_note_input: Union[ - models.UnifiedCrmNoteInput, models.UnifiedCrmNoteInputTypedDict - ], + unified_crm_note_input: Union[models.UnifiedCrmNoteInput, models.UnifiedCrmNoteInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -335,7 +300,7 @@ async def create_async( Create Notes in any supported Crm software :param x_connection_token: The connection token - :param unified_crm_note_input: + :param unified_crm_note_input: :param remote_data: Set to true to include data from the original Crm software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -345,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateCrmNoteRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_crm_note_input=utils.get_pydantic_model( - unified_crm_note_input, models.UnifiedCrmNoteInput - ), + unified_crm_note_input=utils.get_pydantic_model(unified_crm_note_input, models.UnifiedCrmNoteInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/crm/notes", base_url=base_url, @@ -369,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_crm_note_input, - False, - False, - "json", - models.UnifiedCrmNoteInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_crm_note_input, False, False, "json", models.UnifiedCrmNoteInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createCrmNote", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createCrmNote", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmNoteOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmNoteOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -440,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmNoteRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/crm/notes/{id}", @@ -464,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveCrmNote", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmNote", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmNoteOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmNoteOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -526,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmNoteRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/notes/{id}", base_url=base_url, @@ -550,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveCrmNote", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmNote", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmNoteOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmNoteOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/offers.py b/src/panora_sdk/offers.py index f8084e1..205b4c3 100644 --- a/src/panora_sdk/offers.py +++ b/src/panora_sdk/offers.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Offers(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsOfferResponse]: + ) -> models.ListAtsOfferResponse: r"""List Offers :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsOfferRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/offers", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsOffer", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsOffer", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsOfferResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsOfferResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsOfferResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsOfferResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsOfferResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsOfferResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsOfferResponse]: + ) -> models.ListAtsOfferResponse: r"""List Offers :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsOfferRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/offers", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsOffer", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsOffer", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsOfferResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAtsOfferResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsOfferResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsOfferResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsOfferResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsOfferResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsOfferRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/offers/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsOffer", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsOffer", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsOfferOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsOfferOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsOfferRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/offers/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsOffer", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsOffer", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsOfferOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsOfferOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/offices.py b/src/panora_sdk/offices.py index 4990e8e..5db52f2 100644 --- a/src/panora_sdk/offices.py +++ b/src/panora_sdk/offices.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Offices(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsOfficeResponse]: + ) -> models.ListAtsOfficeResponse: r"""List Offices :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsOfficeRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/offices", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsOffice", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsOffice", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsOfficeResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsOfficeResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsOfficeResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsOfficeResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsOfficeResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsOfficeResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsOfficeResponse]: + ) -> models.ListAtsOfficeResponse: r"""List Offices :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsOfficeRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/offices", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsOffice", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsOffice", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsOfficeResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAtsOfficeResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsOfficeResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsOfficeResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsOfficeResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsOfficeResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsOfficeRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/offices/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsOffice", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsOffice", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsOfficeOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsOfficeOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsOfficeRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/offices/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsOffice", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsOffice", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsOfficeOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsOfficeOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/orders.py b/src/panora_sdk/orders.py index 019ee9a..1062be0 100644 --- a/src/panora_sdk/orders.py +++ b/src/panora_sdk/orders.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Orders(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListEcommerceOrdersResponse]: + ) -> models.ListEcommerceOrdersResponse: r"""List Orders :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListEcommerceOrdersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ecommerce/orders", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listEcommerceOrders", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listEcommerceOrders", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListEcommerceOrdersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListEcommerceOrdersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListEcommerceOrdersResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListEcommerceOrdersResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListEcommerceOrdersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListEcommerceOrdersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListEcommerceOrdersResponse]: + ) -> models.ListEcommerceOrdersResponse: r"""List Orders :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListEcommerceOrdersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ecommerce/orders", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listEcommerceOrders", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listEcommerceOrders", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListEcommerceOrdersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListEcommerceOrdersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListEcommerceOrdersResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListEcommerceOrdersResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListEcommerceOrdersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListEcommerceOrdersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_ecommerce_order_input: Union[ - models.UnifiedEcommerceOrderInput, - models.UnifiedEcommerceOrderInputTypedDict, - ], + unified_ecommerce_order_input: Union[models.UnifiedEcommerceOrderInput, models.UnifiedEcommerceOrderInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create Orders in any supported Ecommerce software :param x_connection_token: The connection token - :param unified_ecommerce_order_input: + :param unified_ecommerce_order_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateEcommerceOrderRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ecommerce_order_input=utils.get_pydantic_model( - unified_ecommerce_order_input, models.UnifiedEcommerceOrderInput - ), + unified_ecommerce_order_input=utils.get_pydantic_model(unified_ecommerce_order_input, models.UnifiedEcommerceOrderInput), ) - + req = self.build_request( method="POST", path="/ecommerce/orders", @@ -273,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ecommerce_order_input, - False, - False, - "json", - models.UnifiedEcommerceOrderInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ecommerce_order_input, False, False, "json", models.UnifiedEcommerceOrderInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createEcommerceOrder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createEcommerceOrder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedEcommerceOrderOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedEcommerceOrderOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_ecommerce_order_input: Union[ - models.UnifiedEcommerceOrderInput, - models.UnifiedEcommerceOrderInputTypedDict, - ], + unified_ecommerce_order_input: Union[models.UnifiedEcommerceOrderInput, models.UnifiedEcommerceOrderInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -337,7 +300,7 @@ async def create_async( Create Orders in any supported Ecommerce software :param x_connection_token: The connection token - :param unified_ecommerce_order_input: + :param unified_ecommerce_order_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -347,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateEcommerceOrderRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ecommerce_order_input=utils.get_pydantic_model( - unified_ecommerce_order_input, models.UnifiedEcommerceOrderInput - ), + unified_ecommerce_order_input=utils.get_pydantic_model(unified_ecommerce_order_input, models.UnifiedEcommerceOrderInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/ecommerce/orders", base_url=base_url, @@ -371,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ecommerce_order_input, - False, - False, - "json", - models.UnifiedEcommerceOrderInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ecommerce_order_input, False, False, "json", models.UnifiedEcommerceOrderInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createEcommerceOrder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createEcommerceOrder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedEcommerceOrderOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedEcommerceOrderOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -442,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveEcommerceOrderRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ecommerce/orders/{id}", @@ -466,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveEcommerceOrder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveEcommerceOrder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedEcommerceOrderOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedEcommerceOrderOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -528,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveEcommerceOrderRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ecommerce/orders/{id}", base_url=base_url, @@ -552,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveEcommerceOrder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveEcommerceOrder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedEcommerceOrderOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedEcommerceOrderOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_accounting_contacts.py b/src/panora_sdk/panora_accounting_contacts.py index 60dfb02..f90754c 100644 --- a/src/panora_sdk/panora_accounting_contacts.py +++ b/src/panora_sdk/panora_accounting_contacts.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class PanoraAccountingContacts(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingContactsResponse]: + ) -> models.ListAccountingContactsResponse: r"""List Contacts :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingContactsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/contacts", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingContacts", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingContacts", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingContactsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAccountingContactsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingContactsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingContactsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingContactsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingContactsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingContactsResponse]: + ) -> models.ListAccountingContactsResponse: r"""List Contacts :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingContactsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/contacts", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingContacts", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingContacts", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingContactsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListAccountingContactsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingContactsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingContactsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingContactsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingContactsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_accounting_contact_input: Union[ - models.UnifiedAccountingContactInput, - models.UnifiedAccountingContactInputTypedDict, - ], + unified_accounting_contact_input: Union[models.UnifiedAccountingContactInput, models.UnifiedAccountingContactInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create contacts in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_contact_input: + :param unified_accounting_contact_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingContactRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_contact_input=utils.get_pydantic_model( - unified_accounting_contact_input, models.UnifiedAccountingContactInput - ), + unified_accounting_contact_input=utils.get_pydantic_model(unified_accounting_contact_input, models.UnifiedAccountingContactInput), ) - + req = self.build_request( method="POST", path="/accounting/contacts", @@ -273,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_contact_input, - False, - False, - "json", - models.UnifiedAccountingContactInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_contact_input, False, False, "json", models.UnifiedAccountingContactInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAccountingContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingContactOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingContactOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_accounting_contact_input: Union[ - models.UnifiedAccountingContactInput, - models.UnifiedAccountingContactInputTypedDict, - ], + unified_accounting_contact_input: Union[models.UnifiedAccountingContactInput, models.UnifiedAccountingContactInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -337,7 +300,7 @@ async def create_async( Create contacts in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_contact_input: + :param unified_accounting_contact_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -347,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingContactRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_contact_input=utils.get_pydantic_model( - unified_accounting_contact_input, models.UnifiedAccountingContactInput - ), + unified_accounting_contact_input=utils.get_pydantic_model(unified_accounting_contact_input, models.UnifiedAccountingContactInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/accounting/contacts", base_url=base_url, @@ -371,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_contact_input, - False, - False, - "json", - models.UnifiedAccountingContactInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_contact_input, False, False, "json", models.UnifiedAccountingContactInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAccountingContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingContactOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingContactOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -442,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingContactRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/contacts/{id}", @@ -466,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingContactOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingContactOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -528,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingContactRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/contacts/{id}", base_url=base_url, @@ -552,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingContactOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingContactOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_accounts.py b/src/panora_sdk/panora_accounts.py index 3b6b04c..139a842 100644 --- a/src/panora_sdk/panora_accounts.py +++ b/src/panora_sdk/panora_accounts.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class PanoraAccounts(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingAccountsResponse]: + ) -> models.ListAccountingAccountsResponse: r"""List Accounts :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingAccountsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/accounts", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingAccounts", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingAccounts", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingAccountsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAccountingAccountsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingAccountsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingAccountsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingAccountsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingAccountsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingAccountsResponse]: + ) -> models.ListAccountingAccountsResponse: r"""List Accounts :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingAccountsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/accounts", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingAccounts", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingAccounts", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingAccountsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListAccountingAccountsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingAccountsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingAccountsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingAccountsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingAccountsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_accounting_account_input: Union[ - models.UnifiedAccountingAccountInput, - models.UnifiedAccountingAccountInputTypedDict, - ], + unified_accounting_account_input: Union[models.UnifiedAccountingAccountInput, models.UnifiedAccountingAccountInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create accounts in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_account_input: + :param unified_accounting_account_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingAccountRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_account_input=utils.get_pydantic_model( - unified_accounting_account_input, models.UnifiedAccountingAccountInput - ), + unified_accounting_account_input=utils.get_pydantic_model(unified_accounting_account_input, models.UnifiedAccountingAccountInput), ) - + req = self.build_request( method="POST", path="/accounting/accounts", @@ -273,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_account_input, - False, - False, - "json", - models.UnifiedAccountingAccountInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_account_input, False, False, "json", models.UnifiedAccountingAccountInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAccountingAccount", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingAccount", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingAccountOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingAccountOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_accounting_account_input: Union[ - models.UnifiedAccountingAccountInput, - models.UnifiedAccountingAccountInputTypedDict, - ], + unified_accounting_account_input: Union[models.UnifiedAccountingAccountInput, models.UnifiedAccountingAccountInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -337,7 +300,7 @@ async def create_async( Create accounts in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_account_input: + :param unified_accounting_account_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -347,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingAccountRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_account_input=utils.get_pydantic_model( - unified_accounting_account_input, models.UnifiedAccountingAccountInput - ), + unified_accounting_account_input=utils.get_pydantic_model(unified_accounting_account_input, models.UnifiedAccountingAccountInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/accounting/accounts", base_url=base_url, @@ -371,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_account_input, - False, - False, - "json", - models.UnifiedAccountingAccountInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_account_input, False, False, "json", models.UnifiedAccountingAccountInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAccountingAccount", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingAccount", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingAccountOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingAccountOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -442,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingAccountRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/accounts/{id}", @@ -466,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingAccount", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingAccount", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingAccountOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingAccountOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -528,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingAccountRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/accounts/{id}", base_url=base_url, @@ -552,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingAccount", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingAccount", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingAccountOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingAccountOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_ats_users.py b/src/panora_sdk/panora_ats_users.py index a5e189c..31b7068 100644 --- a/src/panora_sdk/panora_ats_users.py +++ b/src/panora_sdk/panora_ats_users.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class PanoraAtsUsers(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsUsersResponse]: + ) -> models.ListAtsUsersResponse: r"""List Users :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsUsersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/users", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsUsers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsUsers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsUsersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsUsersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsUsersResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsUsersResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsUsersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsUsersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsUsersResponse]: + ) -> models.ListAtsUsersResponse: r"""List Users :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsUsersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/users", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsUsers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsUsers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsUsersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAtsUsersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsUsersResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsUsersResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsUsersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsUsersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsUserRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/users/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsUserOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsUserOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsUserRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/users/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsUserOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsUserOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_attachments.py b/src/panora_sdk/panora_attachments.py index ac3357f..d7a4348 100644 --- a/src/panora_sdk/panora_attachments.py +++ b/src/panora_sdk/panora_attachments.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class PanoraAttachments(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingAttachmentsResponse]: + ) -> models.ListAccountingAttachmentsResponse: r"""List Attachments :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingAttachmentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/attachments", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingAttachments", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingAttachments", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingAttachmentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListAccountingAttachmentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingAttachmentsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingAttachmentsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingAttachmentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingAttachmentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingAttachmentsResponse]: + ) -> models.ListAccountingAttachmentsResponse: r"""List Attachments :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingAttachmentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/attachments", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingAttachments", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingAttachments", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingAttachmentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,36 +194,21 @@ def next_func() -> Optional[models.ListAccountingAttachmentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingAttachmentsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingAttachmentsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingAttachmentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingAttachmentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_accounting_attachment_input: Union[ - models.UnifiedAccountingAttachmentInput, - models.UnifiedAccountingAttachmentInputTypedDict, - ], + unified_accounting_attachment_input: Union[models.UnifiedAccountingAttachmentInput, models.UnifiedAccountingAttachmentInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -241,7 +219,7 @@ def create( Create attachments in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_attachment_input: + :param unified_accounting_attachment_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -251,19 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingAttachmentRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_attachment_input=utils.get_pydantic_model( - unified_accounting_attachment_input, - models.UnifiedAccountingAttachmentInput, - ), + unified_accounting_attachment_input=utils.get_pydantic_model(unified_accounting_attachment_input, models.UnifiedAccountingAttachmentInput), ) - + req = self.build_request( method="POST", path="/accounting/attachments", @@ -276,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_attachment_input, - False, - False, - "json", - models.UnifiedAccountingAttachmentInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_attachment_input, False, False, "json", models.UnifiedAccountingAttachmentInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAccountingAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingAttachmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingAttachmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_accounting_attachment_input: Union[ - models.UnifiedAccountingAttachmentInput, - models.UnifiedAccountingAttachmentInputTypedDict, - ], + unified_accounting_attachment_input: Union[models.UnifiedAccountingAttachmentInput, models.UnifiedAccountingAttachmentInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -340,7 +300,7 @@ async def create_async( Create attachments in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_attachment_input: + :param unified_accounting_attachment_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -350,20 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingAttachmentRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_attachment_input=utils.get_pydantic_model( - unified_accounting_attachment_input, - models.UnifiedAccountingAttachmentInput, - ), + unified_accounting_attachment_input=utils.get_pydantic_model(unified_accounting_attachment_input, models.UnifiedAccountingAttachmentInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/accounting/attachments", base_url=base_url, @@ -375,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_attachment_input, - False, - False, - "json", - models.UnifiedAccountingAttachmentInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_attachment_input, False, False, "json", models.UnifiedAccountingAttachmentInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAccountingAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingAttachmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingAttachmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -446,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingAttachmentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/attachments/{id}", @@ -470,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingAttachmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingAttachmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -532,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingAttachmentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/attachments/{id}", base_url=base_url, @@ -556,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingAttachmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingAttachmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_companies.py b/src/panora_sdk/panora_companies.py index f1b4472..5d4815f 100644 --- a/src/panora_sdk/panora_companies.py +++ b/src/panora_sdk/panora_companies.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class PanoraCompanies(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisCompaniesResponse]: + ) -> models.ListHrisCompaniesResponse: r"""List Companies :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisCompaniesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/companies", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisCompanies", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisCompanies", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisCompaniesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisCompaniesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisCompaniesResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisCompaniesResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisCompaniesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisCompaniesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisCompaniesResponse]: + ) -> models.ListHrisCompaniesResponse: r"""List Companies :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisCompaniesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/companies", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisCompanies", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisCompanies", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisCompaniesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListHrisCompaniesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisCompaniesResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisCompaniesResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisCompaniesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisCompaniesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisCompanyRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/companies/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisCompany", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisCompany", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisCompanyOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisCompanyOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisCompanyRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/companies/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisCompany", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisCompany", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisCompanyOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisCompanyOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_contacts.py b/src/panora_sdk/panora_contacts.py index b98cf50..cc0fb43 100644 --- a/src/panora_sdk/panora_contacts.py +++ b/src/panora_sdk/panora_contacts.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class PanoraContacts(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmContactsResponse]: + ) -> models.ListCrmContactsResponse: r"""List CRM Contacts :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmContactsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/crm/contacts", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listCrmContacts", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmContacts", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmContactsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListCrmContactsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmContactsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmContactsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmContactsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmContactsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmContactsResponse]: + ) -> models.ListCrmContactsResponse: r"""List CRM Contacts :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmContactsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/contacts", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listCrmContacts", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmContacts", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmContactsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,34 +194,21 @@ def next_func() -> Optional[models.ListCrmContactsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmContactsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmContactsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmContactsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmContactsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_crm_contact_input: Union[ - models.UnifiedCrmContactInput, models.UnifiedCrmContactInputTypedDict - ], + unified_crm_contact_input: Union[models.UnifiedCrmContactInput, models.UnifiedCrmContactInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -238,7 +219,7 @@ def create( Create Contacts in any supported CRM :param x_connection_token: The connection token - :param unified_crm_contact_input: + :param unified_crm_contact_input: :param remote_data: Set to true to include data from the original CRM software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -248,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateCrmContactRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_crm_contact_input=utils.get_pydantic_model( - unified_crm_contact_input, models.UnifiedCrmContactInput - ), + unified_crm_contact_input=utils.get_pydantic_model(unified_crm_contact_input, models.UnifiedCrmContactInput), ) - + req = self.build_request( method="POST", path="/crm/contacts", @@ -272,59 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_crm_contact_input, - False, - False, - "json", - models.UnifiedCrmContactInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_crm_contact_input, False, False, "json", models.UnifiedCrmContactInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createCrmContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createCrmContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmContactOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmContactOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_crm_contact_input: Union[ - models.UnifiedCrmContactInput, models.UnifiedCrmContactInputTypedDict - ], + unified_crm_contact_input: Union[models.UnifiedCrmContactInput, models.UnifiedCrmContactInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -335,7 +300,7 @@ async def create_async( Create Contacts in any supported CRM :param x_connection_token: The connection token - :param unified_crm_contact_input: + :param unified_crm_contact_input: :param remote_data: Set to true to include data from the original CRM software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -345,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateCrmContactRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_crm_contact_input=utils.get_pydantic_model( - unified_crm_contact_input, models.UnifiedCrmContactInput - ), + unified_crm_contact_input=utils.get_pydantic_model(unified_crm_contact_input, models.UnifiedCrmContactInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/crm/contacts", base_url=base_url, @@ -369,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_crm_contact_input, - False, - False, - "json", - models.UnifiedCrmContactInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_crm_contact_input, False, False, "json", models.UnifiedCrmContactInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createCrmContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createCrmContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmContactOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmContactOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -440,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmContactRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/crm/contacts/{id}", @@ -464,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveCrmContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmContactOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmContactOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -526,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmContactRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/contacts/{id}", base_url=base_url, @@ -550,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveCrmContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmContactOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmContactOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_events.py b/src/panora_sdk/panora_events.py index 4757a0b..567e26e 100644 --- a/src/panora_sdk/panora_events.py +++ b/src/panora_sdk/panora_events.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class PanoraEvents(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingAutomationEventsResponse]: + ) -> models.ListMarketingAutomationEventsResponse: r"""List Events :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingAutomationEventsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/marketingautomation/events", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listMarketingAutomationEvents", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingAutomationEvents", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingAutomationEventsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListMarketingAutomationEventsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingAutomationEventsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingAutomationEventsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingAutomationEventsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingAutomationEventsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingAutomationEventsResponse]: + ) -> models.ListMarketingAutomationEventsResponse: r"""List Events :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingAutomationEventsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/events", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listMarketingAutomationEvents", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingAutomationEvents", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingAutomationEventsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListMarketingAutomationEventsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingAutomationEventsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingAutomationEventsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingAutomationEventsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingAutomationEventsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationEventRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/marketingautomation/events/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationEvent", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationEvent", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationEventOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationEventOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationEventRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/events/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationEvent", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationEvent", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationEventOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationEventOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_filestorage_users.py b/src/panora_sdk/panora_filestorage_users.py index 4304a71..2dd5109 100644 --- a/src/panora_sdk/panora_filestorage_users.py +++ b/src/panora_sdk/panora_filestorage_users.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class PanoraFilestorageUsers(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListFilestorageUsersResponse]: + ) -> models.ListFilestorageUsersResponse: r"""List Users :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListFilestorageUsersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/filestorage/users", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listFilestorageUsers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listFilestorageUsers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListFilestorageUsersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListFilestorageUsersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListFilestorageUsersResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListFilestorageUsersResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListFilestorageUsersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListFilestorageUsersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListFilestorageUsersResponse]: + ) -> models.ListFilestorageUsersResponse: r"""List Users :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListFilestorageUsersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/filestorage/users", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listFilestorageUsers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listFilestorageUsers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListFilestorageUsersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListFilestorageUsersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListFilestorageUsersResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListFilestorageUsersResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListFilestorageUsersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListFilestorageUsersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveFilestorageUserRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/filestorage/users/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveFilestorageUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveFilestorageUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedFilestorageUserOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedFilestorageUserOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveFilestorageUserRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/filestorage/users/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveFilestorageUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveFilestorageUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedFilestorageUserOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedFilestorageUserOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_groups.py b/src/panora_sdk/panora_groups.py index 1c17fc7..c54fae7 100644 --- a/src/panora_sdk/panora_groups.py +++ b/src/panora_sdk/panora_groups.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class PanoraGroups(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListFilestorageGroupResponse]: + ) -> models.ListFilestorageGroupResponse: r"""List Groups :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListFilestorageGroupRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/filestorage/groups", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listFilestorageGroup", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listFilestorageGroup", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListFilestorageGroupResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListFilestorageGroupResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListFilestorageGroupResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListFilestorageGroupResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListFilestorageGroupResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListFilestorageGroupResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListFilestorageGroupResponse]: + ) -> models.ListFilestorageGroupResponse: r"""List Groups :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListFilestorageGroupRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/filestorage/groups", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listFilestorageGroup", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listFilestorageGroup", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListFilestorageGroupResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListFilestorageGroupResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListFilestorageGroupResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListFilestorageGroupResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListFilestorageGroupResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListFilestorageGroupResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveFilestorageGroupRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/filestorage/groups/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveFilestorageGroup", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveFilestorageGroup", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedFilestorageGroupOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedFilestorageGroupOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveFilestorageGroupRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/filestorage/groups/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveFilestorageGroup", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveFilestorageGroup", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedFilestorageGroupOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedFilestorageGroupOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_marketingautomation_contacts.py b/src/panora_sdk/panora_marketingautomation_contacts.py index df5aa69..22f497a 100644 --- a/src/panora_sdk/panora_marketingautomation_contacts.py +++ b/src/panora_sdk/panora_marketingautomation_contacts.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class PanoraMarketingautomationContacts(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingAutomationContactsResponse]: + ) -> models.ListMarketingAutomationContactsResponse: r"""List Contacts :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingAutomationContactsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/marketingautomation/contacts", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listMarketingAutomationContacts", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingAutomationContacts", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingAutomationContactsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListMarketingAutomationContactsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingAutomationContactsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingAutomationContactsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingAutomationContactsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingAutomationContactsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingAutomationContactsResponse]: + ) -> models.ListMarketingAutomationContactsResponse: r"""List Contacts :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingAutomationContactsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/contacts", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listMarketingAutomationContacts", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingAutomationContacts", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingAutomationContactsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,36 +194,21 @@ def next_func() -> Optional[models.ListMarketingAutomationContactsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingAutomationContactsResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingAutomationContactsResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingAutomationContactsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingAutomationContactsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_marketingautomation_contact_input: Union[ - models.UnifiedMarketingautomationContactInput, - models.UnifiedMarketingautomationContactInputTypedDict, - ], + unified_marketingautomation_contact_input: Union[models.UnifiedMarketingautomationContactInput, models.UnifiedMarketingautomationContactInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -241,7 +219,7 @@ def create( Create a contact in any supported Marketingautomation software :param x_connection_token: The connection token - :param unified_marketingautomation_contact_input: + :param unified_marketingautomation_contact_input: :param remote_data: Set to true to include data from the original Marketingautomation software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -251,19 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateMarketingAutomationContactRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_marketingautomation_contact_input=utils.get_pydantic_model( - unified_marketingautomation_contact_input, - models.UnifiedMarketingautomationContactInput, - ), + unified_marketingautomation_contact_input=utils.get_pydantic_model(unified_marketingautomation_contact_input, models.UnifiedMarketingautomationContactInput), ) - + req = self.build_request( method="POST", path="/marketingautomation/contacts", @@ -276,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_marketingautomation_contact_input, - False, - False, - "json", - models.UnifiedMarketingautomationContactInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_marketingautomation_contact_input, False, False, "json", models.UnifiedMarketingautomationContactInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createMarketingAutomationContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createMarketingAutomationContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationContactOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationContactOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_marketingautomation_contact_input: Union[ - models.UnifiedMarketingautomationContactInput, - models.UnifiedMarketingautomationContactInputTypedDict, - ], + unified_marketingautomation_contact_input: Union[models.UnifiedMarketingautomationContactInput, models.UnifiedMarketingautomationContactInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -340,7 +300,7 @@ async def create_async( Create a contact in any supported Marketingautomation software :param x_connection_token: The connection token - :param unified_marketingautomation_contact_input: + :param unified_marketingautomation_contact_input: :param remote_data: Set to true to include data from the original Marketingautomation software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -350,20 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateMarketingAutomationContactRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_marketingautomation_contact_input=utils.get_pydantic_model( - unified_marketingautomation_contact_input, - models.UnifiedMarketingautomationContactInput, - ), + unified_marketingautomation_contact_input=utils.get_pydantic_model(unified_marketingautomation_contact_input, models.UnifiedMarketingautomationContactInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/marketingautomation/contacts", base_url=base_url, @@ -375,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_marketingautomation_contact_input, - False, - False, - "json", - models.UnifiedMarketingautomationContactInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_marketingautomation_contact_input, False, False, "json", models.UnifiedMarketingautomationContactInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createMarketingAutomationContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createMarketingAutomationContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationContactOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationContactOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -446,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingAutomationContactRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/marketingautomation/contacts/{id}", @@ -470,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveMarketingAutomationContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingAutomationContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationContactOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationContactOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -532,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingAutomationContactRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/contacts/{id}", base_url=base_url, @@ -556,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveMarketingAutomationContact", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingAutomationContact", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationContactOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationContactOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_marketingautomation_users.py b/src/panora_sdk/panora_marketingautomation_users.py index cbf631d..4779f33 100644 --- a/src/panora_sdk/panora_marketingautomation_users.py +++ b/src/panora_sdk/panora_marketingautomation_users.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class PanoraMarketingautomationUsers(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingAutomationUsersResponse]: + ) -> models.ListMarketingAutomationUsersResponse: r"""List Users :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingAutomationUsersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/marketingautomation/users", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listMarketingAutomationUsers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingAutomationUsers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingAutomationUsersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListMarketingAutomationUsersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingAutomationUsersResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingAutomationUsersResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingAutomationUsersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingAutomationUsersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingAutomationUsersResponse]: + ) -> models.ListMarketingAutomationUsersResponse: r"""List Users :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingAutomationUsersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/users", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listMarketingAutomationUsers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingAutomationUsers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingAutomationUsersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListMarketingAutomationUsersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingAutomationUsersResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingAutomationUsersResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingAutomationUsersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingAutomationUsersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingAutomationUserRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/marketingautomation/users/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveMarketingAutomationUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingAutomationUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationUserOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationUserOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingAutomationUserRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/users/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveMarketingAutomationUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingAutomationUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationUserOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationUserOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_tags.py b/src/panora_sdk/panora_tags.py index 1c6a458..6843595 100644 --- a/src/panora_sdk/panora_tags.py +++ b/src/panora_sdk/panora_tags.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class PanoraTags(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsTagsResponse]: + ) -> models.ListAtsTagsResponse: r"""List Tags :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsTagsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/tags", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsTags", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsTags", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsTagsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsTagsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsTagsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsTagsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsTagsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsTagsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsTagsResponse]: + ) -> models.ListAtsTagsResponse: r"""List Tags :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsTagsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/tags", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsTags", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsTags", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsTagsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAtsTagsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsTagsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsTagsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsTagsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsTagsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsTagRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/tags/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsTag", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsTag", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsTagOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsTagOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsTagRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/tags/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsTag", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsTag", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsTagOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsTagOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_ticketing_attachments.py b/src/panora_sdk/panora_ticketing_attachments.py index 70b9580..4cff962 100644 --- a/src/panora_sdk/panora_ticketing_attachments.py +++ b/src/panora_sdk/panora_ticketing_attachments.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class PanoraTicketingAttachments(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingAttachmentsResponse]: + ) -> models.ListTicketingAttachmentsResponse: r"""List Attachments :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingAttachmentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ticketing/attachments", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listTicketingAttachments", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingAttachments", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingAttachmentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListTicketingAttachmentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingAttachmentsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingAttachmentsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingAttachmentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingAttachmentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingAttachmentsResponse]: + ) -> models.ListTicketingAttachmentsResponse: r"""List Attachments :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingAttachmentsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/attachments", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listTicketingAttachments", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingAttachments", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingAttachmentsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListTicketingAttachmentsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingAttachmentsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingAttachmentsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingAttachmentsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingAttachmentsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_ticketing_attachment_input: Union[ - models.UnifiedTicketingAttachmentInput, - models.UnifiedTicketingAttachmentInputTypedDict, - ], + unified_ticketing_attachment_input: Union[models.UnifiedTicketingAttachmentInput, models.UnifiedTicketingAttachmentInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create Attachments in any supported Ticketing software :param x_connection_token: The connection token - :param unified_ticketing_attachment_input: + :param unified_ticketing_attachment_input: :param remote_data: Set to true to include data from the original Ticketing software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,19 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateTicketingAttachmentRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ticketing_attachment_input=utils.get_pydantic_model( - unified_ticketing_attachment_input, - models.UnifiedTicketingAttachmentInput, - ), + unified_ticketing_attachment_input=utils.get_pydantic_model(unified_ticketing_attachment_input, models.UnifiedTicketingAttachmentInput), ) - + req = self.build_request( method="POST", path="/ticketing/attachments", @@ -274,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ticketing_attachment_input, - False, - False, - "json", - models.UnifiedTicketingAttachmentInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ticketing_attachment_input, False, False, "json", models.UnifiedTicketingAttachmentInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createTicketingAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createTicketingAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingAttachmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingAttachmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_ticketing_attachment_input: Union[ - models.UnifiedTicketingAttachmentInput, - models.UnifiedTicketingAttachmentInputTypedDict, - ], + unified_ticketing_attachment_input: Union[models.UnifiedTicketingAttachmentInput, models.UnifiedTicketingAttachmentInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -338,7 +300,7 @@ async def create_async( Create Attachments in any supported Ticketing software :param x_connection_token: The connection token - :param unified_ticketing_attachment_input: + :param unified_ticketing_attachment_input: :param remote_data: Set to true to include data from the original Ticketing software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -348,20 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateTicketingAttachmentRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ticketing_attachment_input=utils.get_pydantic_model( - unified_ticketing_attachment_input, - models.UnifiedTicketingAttachmentInput, - ), + unified_ticketing_attachment_input=utils.get_pydantic_model(unified_ticketing_attachment_input, models.UnifiedTicketingAttachmentInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/ticketing/attachments", base_url=base_url, @@ -373,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ticketing_attachment_input, - False, - False, - "json", - models.UnifiedTicketingAttachmentInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ticketing_attachment_input, False, False, "json", models.UnifiedTicketingAttachmentInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createTicketingAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createTicketingAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingAttachmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingAttachmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -444,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingAttachmentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ticketing/attachments/{id}", @@ -468,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveTicketingAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingAttachmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingAttachmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -530,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingAttachmentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/attachments/{id}", base_url=base_url, @@ -554,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveTicketingAttachment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingAttachment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingAttachmentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingAttachmentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/panora_users.py b/src/panora_sdk/panora_users.py index 06d6c9e..a9ae2e0 100644 --- a/src/panora_sdk/panora_users.py +++ b/src/panora_sdk/panora_users.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class PanoraUsers(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmUsersResponse]: + ) -> models.ListCrmUsersResponse: r"""List Users :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmUsersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/crm/users", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listCrmUsers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmUsers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmUsersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListCrmUsersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmUsersResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmUsersResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmUsersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmUsersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmUsersResponse]: + ) -> models.ListCrmUsersResponse: r"""List Users :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmUsersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/users", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listCrmUsers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmUsers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmUsersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListCrmUsersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmUsersResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmUsersResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmUsersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmUsersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmUserRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/crm/users/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveCrmUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmUserOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmUserOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmUserRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/users/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveCrmUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmUserOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmUserOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/passthrough.py b/src/panora_sdk/passthrough.py index 15d6058..49389bf 100644 --- a/src/panora_sdk/passthrough.py +++ b/src/panora_sdk/passthrough.py @@ -2,39 +2,36 @@ from .basesdk import BaseSDK from .sdkconfiguration import SDKConfiguration -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.retryid_ import Retryid from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Optional, Union - class Passthrough(BaseSDK): retryid: Retryid - def __init__(self, sdk_config: SDKConfiguration) -> None: BaseSDK.__init__(self, sdk_config) self.sdk_configuration = sdk_config self._init_sdks() - + def _init_sdks(self): self.retryid = Retryid(self.sdk_configuration) - + + def request( - self, - *, + self, *, x_connection_token: str, - pass_through_request_dto: Union[ - models.PassThroughRequestDto, models.PassThroughRequestDtoTypedDict - ], + pass_through_request_dto: Union[models.PassThroughRequestDto, models.PassThroughRequestDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, ) -> Optional[models.RequestResponse]: r"""Make a passthrough request - :param x_connection_token: - :param pass_through_request_dto: + :param x_connection_token: + :param pass_through_request_dto: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -43,17 +40,15 @@ def request( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RequestRequest( x_connection_token=x_connection_token, - pass_through_request_dto=utils.get_pydantic_model( - pass_through_request_dto, models.PassThroughRequestDto - ), + pass_through_request_dto=utils.get_pydantic_model(pass_through_request_dto, models.PassThroughRequestDto), ) - + req = self.build_request( method="POST", path="/passthrough", @@ -66,71 +61,55 @@ def request( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.pass_through_request_dto, - False, - False, - "json", - models.PassThroughRequestDto, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.pass_through_request_dto, False, False, "json", models.PassThroughRequestDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="request", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="request", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.RequestResponseBody] - ) + return utils.unmarshal_json(http_res.text, Optional[models.RequestResponseBody]) if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.RequestPassthroughResponseBody] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.RequestPassthroughResponseBody]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def request_async( - self, - *, + self, *, x_connection_token: str, - pass_through_request_dto: Union[ - models.PassThroughRequestDto, models.PassThroughRequestDtoTypedDict - ], + pass_through_request_dto: Union[models.PassThroughRequestDto, models.PassThroughRequestDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, ) -> Optional[models.RequestResponse]: r"""Make a passthrough request - :param x_connection_token: - :param pass_through_request_dto: + :param x_connection_token: + :param pass_through_request_dto: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -139,18 +118,16 @@ async def request_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RequestRequest( x_connection_token=x_connection_token, - pass_through_request_dto=utils.get_pydantic_model( - pass_through_request_dto, models.PassThroughRequestDto - ), + pass_through_request_dto=utils.get_pydantic_model(pass_through_request_dto, models.PassThroughRequestDto), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/passthrough", base_url=base_url, @@ -162,52 +139,39 @@ async def request_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.pass_through_request_dto, - False, - False, - "json", - models.PassThroughRequestDto, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.pass_through_request_dto, False, False, "json", models.PassThroughRequestDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="request", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="request", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.RequestResponseBody] - ) + return utils.unmarshal_json(http_res.text, Optional[models.RequestResponseBody]) if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.RequestPassthroughResponseBody] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.RequestPassthroughResponseBody]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/paygroups.py b/src/panora_sdk/paygroups.py index 39884d5..84bf662 100644 --- a/src/panora_sdk/paygroups.py +++ b/src/panora_sdk/paygroups.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Paygroups(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisPaygroupsResponse]: + ) -> models.ListHrisPaygroupsResponse: r"""List Pay Groups :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisPaygroupsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/paygroups", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisPaygroups", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisPaygroups", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisPaygroupsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisPaygroupsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisPaygroupsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisPaygroupsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisPaygroupsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisPaygroupsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisPaygroupsResponse]: + ) -> models.ListHrisPaygroupsResponse: r"""List Pay Groups :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisPaygroupsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/paygroups", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisPaygroups", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisPaygroups", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisPaygroupsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListHrisPaygroupsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisPaygroupsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisPaygroupsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisPaygroupsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisPaygroupsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisPaygroupRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/paygroups/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisPaygroup", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisPaygroup", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisPaygroupOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisPaygroupOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisPaygroupRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/paygroups/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisPaygroup", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisPaygroup", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisPaygroupOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisPaygroupOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/payments.py b/src/panora_sdk/payments.py index 18a76df..82caff0 100644 --- a/src/panora_sdk/payments.py +++ b/src/panora_sdk/payments.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Payments(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingPaymentResponse]: + ) -> models.ListAccountingPaymentResponse: r"""List Payments :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingPaymentRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/payments", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingPayment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingPayment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingPaymentResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAccountingPaymentResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingPaymentResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingPaymentResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingPaymentResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingPaymentResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingPaymentResponse]: + ) -> models.ListAccountingPaymentResponse: r"""List Payments :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingPaymentRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/payments", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingPayment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingPayment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingPaymentResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListAccountingPaymentResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingPaymentResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingPaymentResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingPaymentResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingPaymentResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_accounting_payment_input: Union[ - models.UnifiedAccountingPaymentInput, - models.UnifiedAccountingPaymentInputTypedDict, - ], + unified_accounting_payment_input: Union[models.UnifiedAccountingPaymentInput, models.UnifiedAccountingPaymentInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create Payments in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_payment_input: + :param unified_accounting_payment_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingPaymentRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_payment_input=utils.get_pydantic_model( - unified_accounting_payment_input, models.UnifiedAccountingPaymentInput - ), + unified_accounting_payment_input=utils.get_pydantic_model(unified_accounting_payment_input, models.UnifiedAccountingPaymentInput), ) - + req = self.build_request( method="POST", path="/accounting/payments", @@ -273,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_payment_input, - False, - False, - "json", - models.UnifiedAccountingPaymentInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_payment_input, False, False, "json", models.UnifiedAccountingPaymentInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAccountingPayment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingPayment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingPaymentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingPaymentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_accounting_payment_input: Union[ - models.UnifiedAccountingPaymentInput, - models.UnifiedAccountingPaymentInputTypedDict, - ], + unified_accounting_payment_input: Union[models.UnifiedAccountingPaymentInput, models.UnifiedAccountingPaymentInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -337,7 +300,7 @@ async def create_async( Create Payments in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_payment_input: + :param unified_accounting_payment_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -347,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingPaymentRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_payment_input=utils.get_pydantic_model( - unified_accounting_payment_input, models.UnifiedAccountingPaymentInput - ), + unified_accounting_payment_input=utils.get_pydantic_model(unified_accounting_payment_input, models.UnifiedAccountingPaymentInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/accounting/payments", base_url=base_url, @@ -371,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_payment_input, - False, - False, - "json", - models.UnifiedAccountingPaymentInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_payment_input, False, False, "json", models.UnifiedAccountingPaymentInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAccountingPayment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingPayment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingPaymentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingPaymentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -442,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingPaymentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/payments/{id}", @@ -466,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingPayment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingPayment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingPaymentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingPaymentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -528,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingPaymentRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/payments/{id}", base_url=base_url, @@ -552,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingPayment", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingPayment", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingPaymentOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingPaymentOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/payrollruns.py b/src/panora_sdk/payrollruns.py index 2813d78..71c643f 100644 --- a/src/panora_sdk/payrollruns.py +++ b/src/panora_sdk/payrollruns.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Payrollruns(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisPayrollRunsResponse]: + ) -> models.ListHrisPayrollRunsResponse: r"""List Payroll Runs :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisPayrollRunsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/payrollruns", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisPayrollRuns", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisPayrollRuns", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisPayrollRunsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisPayrollRunsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisPayrollRunsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisPayrollRunsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisPayrollRunsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisPayrollRunsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisPayrollRunsResponse]: + ) -> models.ListHrisPayrollRunsResponse: r"""List Payroll Runs :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisPayrollRunsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/payrollruns", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisPayrollRuns", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisPayrollRuns", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisPayrollRunsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListHrisPayrollRunsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisPayrollRunsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisPayrollRunsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisPayrollRunsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisPayrollRunsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisPayrollRunRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/payrollruns/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisPayrollRun", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisPayrollRun", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisPayrollrunOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisPayrollrunOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisPayrollRunRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/payrollruns/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisPayrollRun", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisPayrollRun", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisPayrollrunOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisPayrollrunOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/phonenumbers.py b/src/panora_sdk/phonenumbers.py index f3140e3..c527383 100644 --- a/src/panora_sdk/phonenumbers.py +++ b/src/panora_sdk/phonenumbers.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Phonenumbers(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingPhonenumberResponse]: + ) -> models.ListAccountingPhonenumberResponse: r"""List PhoneNumbers :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingPhonenumberRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/phonenumbers", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingPhonenumber", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingPhonenumber", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingPhonenumberResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListAccountingPhonenumberResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingPhonenumberResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingPhonenumberResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingPhonenumberResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingPhonenumberResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingPhonenumberResponse]: + ) -> models.ListAccountingPhonenumberResponse: r"""List PhoneNumbers :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingPhonenumberRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/phonenumbers", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingPhonenumber", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingPhonenumber", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingPhonenumberResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListAccountingPhonenumberResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingPhonenumberResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingPhonenumberResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingPhonenumberResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingPhonenumberResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingPhonenumberRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/phonenumbers/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingPhonenumber", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingPhonenumber", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingPhonenumberOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingPhonenumberOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingPhonenumberRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/phonenumbers/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingPhonenumber", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingPhonenumber", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingPhonenumberOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingPhonenumberOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/products.py b/src/panora_sdk/products.py index 24fbd3a..53c07a1 100644 --- a/src/panora_sdk/products.py +++ b/src/panora_sdk/products.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Products(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListEcommerceProductsResponse]: + ) -> models.ListEcommerceProductsResponse: r"""List Products :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListEcommerceProductsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ecommerce/products", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listEcommerceProducts", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listEcommerceProducts", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListEcommerceProductsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListEcommerceProductsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListEcommerceProductsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListEcommerceProductsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListEcommerceProductsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListEcommerceProductsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListEcommerceProductsResponse]: + ) -> models.ListEcommerceProductsResponse: r"""List Products :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListEcommerceProductsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ecommerce/products", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listEcommerceProducts", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listEcommerceProducts", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListEcommerceProductsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListEcommerceProductsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListEcommerceProductsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListEcommerceProductsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListEcommerceProductsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListEcommerceProductsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_ecommerce_product_input: Union[ - models.UnifiedEcommerceProductInput, - models.UnifiedEcommerceProductInputTypedDict, - ], + unified_ecommerce_product_input: Union[models.UnifiedEcommerceProductInput, models.UnifiedEcommerceProductInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create Products in any supported Ecommerce software :param x_connection_token: The connection token - :param unified_ecommerce_product_input: + :param unified_ecommerce_product_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateEcommerceProductRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ecommerce_product_input=utils.get_pydantic_model( - unified_ecommerce_product_input, models.UnifiedEcommerceProductInput - ), + unified_ecommerce_product_input=utils.get_pydantic_model(unified_ecommerce_product_input, models.UnifiedEcommerceProductInput), ) - + req = self.build_request( method="POST", path="/ecommerce/products", @@ -273,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ecommerce_product_input, - False, - False, - "json", - models.UnifiedEcommerceProductInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ecommerce_product_input, False, False, "json", models.UnifiedEcommerceProductInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createEcommerceProduct", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createEcommerceProduct", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedEcommerceProductOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedEcommerceProductOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_ecommerce_product_input: Union[ - models.UnifiedEcommerceProductInput, - models.UnifiedEcommerceProductInputTypedDict, - ], + unified_ecommerce_product_input: Union[models.UnifiedEcommerceProductInput, models.UnifiedEcommerceProductInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -337,7 +300,7 @@ async def create_async( Create Products in any supported Ecommerce software :param x_connection_token: The connection token - :param unified_ecommerce_product_input: + :param unified_ecommerce_product_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -347,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateEcommerceProductRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ecommerce_product_input=utils.get_pydantic_model( - unified_ecommerce_product_input, models.UnifiedEcommerceProductInput - ), + unified_ecommerce_product_input=utils.get_pydantic_model(unified_ecommerce_product_input, models.UnifiedEcommerceProductInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/ecommerce/products", base_url=base_url, @@ -371,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ecommerce_product_input, - False, - False, - "json", - models.UnifiedEcommerceProductInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ecommerce_product_input, False, False, "json", models.UnifiedEcommerceProductInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createEcommerceProduct", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createEcommerceProduct", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedEcommerceProductOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedEcommerceProductOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -442,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveEcommerceProductRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ecommerce/products/{id}", @@ -466,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveEcommerceProduct", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveEcommerceProduct", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedEcommerceProductOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedEcommerceProductOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -528,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveEcommerceProductRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ecommerce/products/{id}", base_url=base_url, @@ -552,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveEcommerceProduct", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveEcommerceProduct", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedEcommerceProductOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedEcommerceProductOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/projects.py b/src/panora_sdk/projects.py index 2ee0341..8af0913 100644 --- a/src/panora_sdk/projects.py +++ b/src/panora_sdk/projects.py @@ -1,16 +1,17 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import BaseModel, OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import List, Optional, Union, cast - class Projects(BaseSDK): + + def get_projects( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -25,7 +26,7 @@ def get_projects( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url req = self.build_request( @@ -42,46 +43,40 @@ def get_projects( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="getProjects", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getProjects", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[models.ProjectResponse]] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[List[models.ProjectResponse]]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def get_projects_async( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -96,10 +91,10 @@ async def get_projects_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - req = self.build_request_async( + req = self.build_request( method="GET", path="/projects", base_url=base_url, @@ -113,46 +108,40 @@ async def get_projects_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="getProjects", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getProjects", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[models.ProjectResponse]] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[List[models.ProjectResponse]]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, request: Union[models.CreateProjectDto, models.CreateProjectDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -169,14 +158,14 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.CreateProjectDto) request = cast(models.CreateProjectDto, request) - + req = self.build_request( method="POST", path="/projects", @@ -189,49 +178,43 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateProjectDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.CreateProjectDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createProject", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createProject", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): return utils.unmarshal_json(http_res.text, Optional[models.ProjectResponse]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, request: Union[models.CreateProjectDto, models.CreateProjectDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -248,15 +231,15 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.CreateProjectDto) request = cast(models.CreateProjectDto, request) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/projects", base_url=base_url, @@ -268,42 +251,37 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateProjectDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.CreateProjectDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createProject", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createProject", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): return utils.unmarshal_json(http_res.text, Optional[models.ProjectResponse]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/purchaseorders.py b/src/panora_sdk/purchaseorders.py index e9b0794..cb7a149 100644 --- a/src/panora_sdk/purchaseorders.py +++ b/src/panora_sdk/purchaseorders.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Purchaseorders(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingPurchaseOrderResponse]: + ) -> models.ListAccountingPurchaseOrderResponse: r"""List PurchaseOrders :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingPurchaseOrderRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/purchaseorders", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingPurchaseOrder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingPurchaseOrder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingPurchaseOrderResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListAccountingPurchaseOrderResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingPurchaseOrderResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingPurchaseOrderResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingPurchaseOrderResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingPurchaseOrderResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingPurchaseOrderResponse]: + ) -> models.ListAccountingPurchaseOrderResponse: r"""List PurchaseOrders :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingPurchaseOrderRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/purchaseorders", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingPurchaseOrder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingPurchaseOrder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingPurchaseOrderResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,36 +194,21 @@ def next_func() -> Optional[models.ListAccountingPurchaseOrderResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingPurchaseOrderResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingPurchaseOrderResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingPurchaseOrderResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingPurchaseOrderResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_accounting_purchaseorder_input: Union[ - models.UnifiedAccountingPurchaseorderInput, - models.UnifiedAccountingPurchaseorderInputTypedDict, - ], + unified_accounting_purchaseorder_input: Union[models.UnifiedAccountingPurchaseorderInput, models.UnifiedAccountingPurchaseorderInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -241,7 +219,7 @@ def create( Create Purchase Orders in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_purchaseorder_input: + :param unified_accounting_purchaseorder_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -251,19 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingPurchaseOrderRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_purchaseorder_input=utils.get_pydantic_model( - unified_accounting_purchaseorder_input, - models.UnifiedAccountingPurchaseorderInput, - ), + unified_accounting_purchaseorder_input=utils.get_pydantic_model(unified_accounting_purchaseorder_input, models.UnifiedAccountingPurchaseorderInput), ) - + req = self.build_request( method="POST", path="/accounting/purchaseorders", @@ -276,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_purchaseorder_input, - False, - False, - "json", - models.UnifiedAccountingPurchaseorderInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_purchaseorder_input, False, False, "json", models.UnifiedAccountingPurchaseorderInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createAccountingPurchaseOrder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingPurchaseOrder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingPurchaseorderOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingPurchaseorderOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_accounting_purchaseorder_input: Union[ - models.UnifiedAccountingPurchaseorderInput, - models.UnifiedAccountingPurchaseorderInputTypedDict, - ], + unified_accounting_purchaseorder_input: Union[models.UnifiedAccountingPurchaseorderInput, models.UnifiedAccountingPurchaseorderInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -340,7 +300,7 @@ async def create_async( Create Purchase Orders in any supported Accounting software :param x_connection_token: The connection token - :param unified_accounting_purchaseorder_input: + :param unified_accounting_purchaseorder_input: :param remote_data: Set to true to include data from the original Accounting software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -350,20 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateAccountingPurchaseOrderRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_accounting_purchaseorder_input=utils.get_pydantic_model( - unified_accounting_purchaseorder_input, - models.UnifiedAccountingPurchaseorderInput, - ), + unified_accounting_purchaseorder_input=utils.get_pydantic_model(unified_accounting_purchaseorder_input, models.UnifiedAccountingPurchaseorderInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/accounting/purchaseorders", base_url=base_url, @@ -375,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_accounting_purchaseorder_input, - False, - False, - "json", - models.UnifiedAccountingPurchaseorderInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_accounting_purchaseorder_input, False, False, "json", models.UnifiedAccountingPurchaseorderInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createAccountingPurchaseOrder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createAccountingPurchaseOrder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingPurchaseorderOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingPurchaseorderOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -446,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingPurchaseOrderRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/purchaseorders/{id}", @@ -470,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingPurchaseOrder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingPurchaseOrder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingPurchaseorderOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingPurchaseorderOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -532,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingPurchaseOrderRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/purchaseorders/{id}", base_url=base_url, @@ -556,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingPurchaseOrder", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingPurchaseOrder", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingPurchaseorderOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingPurchaseorderOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/query.py b/src/panora_sdk/query.py index 6d40f24..ea4a500 100644 --- a/src/panora_sdk/query.py +++ b/src/panora_sdk/query.py @@ -1,21 +1,29 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET -from typing import Optional - +import panora_sdk.utils as utils +from typing import Optional, Union class Query(BaseSDK): - def rag_controller_query_embeddings( - self, - *, + + + def query( + self, *, + x_connection_token: str, + query_body: Union[models.QueryBody, models.QueryBodyTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.RagControllerQueryEmbeddingsResponseBody]: - r""" + ) -> Optional[models.QueryResponseBody]: + r"""Query using RAG Search + + Query across your connected data sources using RAG Search + + :param x_connection_token: The connection token + :param query_body: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -24,68 +32,76 @@ def rag_controller_query_embeddings( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url + + request = models.QueryRequest( + x_connection_token=x_connection_token, + query_body=utils.get_pydantic_model(query_body, models.QueryBody), + ) + req = self.build_request( method="POST", path="/rag/query", base_url=base_url, url_variables=url_variables, - request=None, - request_body_required=False, + request=request, + request_body_required=True, request_has_path_params=False, request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body(request.query_body, False, False, "json", models.QueryBody), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="RagController_queryEmbeddings", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="query", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.RagControllerQueryEmbeddingsResponseBody] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.QueryResponseBody]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) - - async def rag_controller_query_embeddings_async( - self, - *, + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + + + async def query_async( + self, *, + x_connection_token: str, + query_body: Union[models.QueryBody, models.QueryBodyTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.RagControllerQueryEmbeddingsResponseBody]: - r""" + ) -> Optional[models.QueryResponseBody]: + r"""Query using RAG Search + + Query across your connected data sources using RAG Search + + :param x_connection_token: The connection token + :param query_body: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -94,56 +110,58 @@ async def rag_controller_query_embeddings_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - req = self.build_request_async( + + request = models.QueryRequest( + x_connection_token=x_connection_token, + query_body=utils.get_pydantic_model(query_body, models.QueryBody), + ) + + req = self.build_request( method="POST", path="/rag/query", base_url=base_url, url_variables=url_variables, - request=None, - request_body_required=False, + request=request, + request_body_required=True, request_has_path_params=False, request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body(request.query_body, False, False, "json", models.QueryBody), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="RagController_queryEmbeddings", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="query", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.RagControllerQueryEmbeddingsResponseBody] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.QueryResponseBody]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/rag.py b/src/panora_sdk/rag.py index 98ab4e4..c72687e 100644 --- a/src/panora_sdk/rag.py +++ b/src/panora_sdk/rag.py @@ -4,14 +4,13 @@ from .sdkconfiguration import SDKConfiguration from panora_sdk.query import Query - class Rag(BaseSDK): query: Query - def __init__(self, sdk_config: SDKConfiguration) -> None: BaseSDK.__init__(self, sdk_config) self.sdk_configuration = sdk_config self._init_sdks() - + def _init_sdks(self): self.query = Query(self.sdk_configuration) + diff --git a/src/panora_sdk/rejectreasons.py b/src/panora_sdk/rejectreasons.py index 88ab5f7..ebf66e6 100644 --- a/src/panora_sdk/rejectreasons.py +++ b/src/panora_sdk/rejectreasons.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Rejectreasons(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsRejectReasonsResponse]: + ) -> models.ListAtsRejectReasonsResponse: r"""List RejectReasons :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsRejectReasonsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/rejectreasons", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsRejectReasons", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsRejectReasons", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsRejectReasonsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsRejectReasonsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsRejectReasonsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsRejectReasonsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsRejectReasonsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsRejectReasonsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsRejectReasonsResponse]: + ) -> models.ListAtsRejectReasonsResponse: r"""List RejectReasons :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsRejectReasonsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/rejectreasons", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsRejectReasons", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsRejectReasons", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsRejectReasonsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAtsRejectReasonsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsRejectReasonsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsRejectReasonsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsRejectReasonsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsRejectReasonsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsRejectReasonRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/rejectreasons/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsRejectReason", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsRejectReason", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsRejectreasonOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsRejectreasonOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsRejectReasonRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/rejectreasons/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsRejectReason", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsRejectReason", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsRejectreasonOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsRejectreasonOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/retryid_.py b/src/panora_sdk/retryid_.py index beeff6d..3b10afc 100644 --- a/src/panora_sdk/retryid_.py +++ b/src/panora_sdk/retryid_.py @@ -1,16 +1,17 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Optional - class Retryid(BaseSDK): + + def get_retried_request_response( - self, - *, + self, *, retry_id: str, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -27,14 +28,14 @@ def get_retried_request_response( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.GetRetriedRequestResponseRequest( retry_id=retry_id, ) - + req = self.build_request( method="GET", path="/passthrough/{retryId}", @@ -49,44 +50,40 @@ def get_retried_request_response( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="getRetriedRequestResponse", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getRetriedRequestResponse", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def get_retried_request_response_async( - self, - *, + self, *, retry_id: str, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -103,15 +100,15 @@ async def get_retried_request_response_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.GetRetriedRequestResponseRequest( retry_id=retry_id, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/passthrough/{retryId}", base_url=base_url, @@ -125,37 +122,34 @@ async def get_retried_request_response_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="getRetriedRequestResponse", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getRetriedRequestResponse", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/scorecards.py b/src/panora_sdk/scorecards.py index 6437046..3f2bc82 100644 --- a/src/panora_sdk/scorecards.py +++ b/src/panora_sdk/scorecards.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Scorecards(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsScorecardResponse]: + ) -> models.ListAtsScorecardResponse: r"""List ScoreCards :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsScorecardRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ats/scorecards", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAtsScorecard", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsScorecard", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsScorecardResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAtsScorecardResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsScorecardResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsScorecardResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsScorecardResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsScorecardResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAtsScorecardResponse]: + ) -> models.ListAtsScorecardResponse: r"""List ScoreCards :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAtsScorecardRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/scorecards", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAtsScorecard", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAtsScorecard", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAtsScorecardResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAtsScorecardResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAtsScorecardResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAtsScorecardResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAtsScorecardResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAtsScorecardResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsScorecardRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ats/scorecards/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAtsScorecard", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsScorecard", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsScorecardOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsScorecardOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAtsScorecardRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ats/scorecards/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAtsScorecard", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAtsScorecard", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAtsScorecardOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAtsScorecardOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/sdk.py b/src/panora_sdk/sdk.py index ea3c9b6..1366744 100644 --- a/src/panora_sdk/sdk.py +++ b/src/panora_sdk/sdk.py @@ -3,10 +3,10 @@ from .basesdk import BaseSDK from .httpclient import AsyncHttpClient, HttpClient from .sdkconfiguration import SDKConfiguration -from .utils.logger import Logger, get_default_logger +from .utils.logger import Logger, NoOpLogger from .utils.retries import RetryConfig import httpx -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext, SDKHooks from panora_sdk.accounting import Accounting from panora_sdk.ats import Ats @@ -26,13 +26,12 @@ from panora_sdk.sync import Sync from panora_sdk.ticketing import Ticketing from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from panora_sdk.webhooks import Webhooks from typing import Any, Callable, Dict, Optional, Union - class Panora(BaseSDK): r"""Panora API: A unified API to ship integrations""" - rag: Rag filestorage: Filestorage auth: Auth @@ -51,7 +50,6 @@ class Panora(BaseSDK): ats: Ats accounting: Accounting ecommerce: Ecommerce - def __init__( self, api_key: Union[str, Callable[[], str]], @@ -62,7 +60,7 @@ def __init__( async_client: Optional[AsyncHttpClient] = None, retry_config: OptionalNullable[RetryConfig] = UNSET, timeout_ms: Optional[int] = None, - debug_logger: Optional[Logger] = None, + debug_logger: Optional[Logger] = None ) -> None: r"""Instantiates the SDK configuring it with the provided parameters. @@ -86,42 +84,38 @@ def __init__( async_client = httpx.AsyncClient() if debug_logger is None: - debug_logger = get_default_logger() + debug_logger = NoOpLogger() assert issubclass( type(async_client), AsyncHttpClient ), "The provided async_client must implement the AsyncHttpClient protocol." - + security: Any = None if callable(api_key): - security = lambda: models.Security(api_key=api_key()) # pylint: disable=unnecessary-lambda-assignment + security = lambda: models.Security(api_key = api_key()) # pylint: disable=unnecessary-lambda-assignment else: - security = models.Security(api_key=api_key) + security = models.Security(api_key = api_key) if server_url is not None: if url_params is not None: server_url = utils.template_url(server_url, url_params) - - BaseSDK.__init__( - self, - SDKConfiguration( - client=client, - async_client=async_client, - security=security, - server_url=server_url, - server_idx=server_idx, - retry_config=retry_config, - timeout_ms=timeout_ms, - debug_logger=debug_logger, - ), - ) + + + BaseSDK.__init__(self, SDKConfiguration( + client=client, + async_client=async_client, + security=security, + server_url=server_url, + server_idx=server_idx, + retry_config=retry_config, + timeout_ms=timeout_ms, + debug_logger=debug_logger + )) hooks = SDKHooks() current_server_url, *_ = self.sdk_configuration.get_server_details() - server_url, self.sdk_configuration.client = hooks.sdk_init( - current_server_url, self.sdk_configuration.client - ) + server_url, self.sdk_configuration.client = hooks.sdk_init(current_server_url, self.sdk_configuration.client) if current_server_url != server_url: self.sdk_configuration.server_url = server_url @@ -130,6 +124,7 @@ def __init__( self._init_sdks() + def _init_sdks(self): self.rag = Rag(self.sdk_configuration) self.filestorage = Filestorage(self.sdk_configuration) @@ -149,10 +144,10 @@ def _init_sdks(self): self.ats = Ats(self.sdk_configuration) self.accounting = Accounting(self.sdk_configuration) self.ecommerce = Ecommerce(self.sdk_configuration) - + + def hello( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -166,7 +161,7 @@ def hello( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url req = self.build_request( @@ -183,44 +178,40 @@ def hello( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="hello", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="hello", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "text/plain"): return http_res.text - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def hello_async( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -234,10 +225,10 @@ async def hello_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - req = self.build_request_async( + req = self.build_request( method="GET", path="/", base_url=base_url, @@ -251,44 +242,40 @@ async def hello_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="hello", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="hello", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "text/plain"): return http_res.text - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def health( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -302,7 +289,7 @@ def health( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url req = self.build_request( @@ -319,44 +306,40 @@ def health( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="health", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="health", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): return utils.unmarshal_json(http_res.text, Optional[float]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def health_async( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -370,10 +353,10 @@ async def health_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - req = self.build_request_async( + req = self.build_request( method="GET", path="/health", base_url=base_url, @@ -387,37 +370,34 @@ async def health_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="health", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="health", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): return utils.unmarshal_json(http_res.text, Optional[float]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/sdkconfiguration.py b/src/panora_sdk/sdkconfiguration.py index 9939ba2..2ed58f7 100644 --- a/src/panora_sdk/sdkconfiguration.py +++ b/src/panora_sdk/sdkconfiguration.py @@ -1,5 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + from ._hooks import SDKHooks from .httpclient import AsyncHttpClient, HttpClient from .utils import Logger, RetryConfig, remove_suffix @@ -20,20 +21,19 @@ ] """Contains the list of servers available to the SDK""" - @dataclass class SDKConfiguration: client: HttpClient async_client: AsyncHttpClient debug_logger: Logger - security: Optional[Union[models.Security, Callable[[], models.Security]]] = None + security: Optional[Union[models.Security,Callable[[], models.Security]]] = None server_url: Optional[str] = "" server_idx: Optional[int] = 0 language: str = "python" openapi_doc_version: str = "1.0" - sdk_version: str = "0.6.1" - gen_version: str = "2.415.7" - user_agent: str = "speakeasy-sdk/python 0.6.1 2.415.7 1.0 panora-sdk" + sdk_version: str = "0.7.0" + gen_version: str = "2.385.2" + user_agent: str = "speakeasy-sdk/python 0.7.0 2.385.2 1.0 panora-sdk" retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET) timeout_ms: Optional[int] = None @@ -48,5 +48,6 @@ def get_server_details(self) -> Tuple[str, Dict[str, str]]: return SERVERS[self.server_idx], {} + def get_hooks(self) -> SDKHooks: return self._hooks diff --git a/src/panora_sdk/stages.py b/src/panora_sdk/stages.py index 93a295b..7a20db2 100644 --- a/src/panora_sdk/stages.py +++ b/src/panora_sdk/stages.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Stages(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmStagesResponse]: + ) -> models.ListCrmStagesResponse: r"""List Stages :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmStagesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/crm/stages", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listCrmStages", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmStages", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmStagesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListCrmStagesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmStagesResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmStagesResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmStagesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmStagesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmStagesResponse]: + ) -> models.ListCrmStagesResponse: r"""List Stages :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmStagesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/stages", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listCrmStages", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmStages", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmStagesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListCrmStagesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmStagesResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmStagesResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmStagesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmStagesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmStageRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/crm/stages/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveCrmStage", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmStage", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmStageOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmStageOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmStageRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/stages/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveCrmStage", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmStage", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmStageOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmStageOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/sync.py b/src/panora_sdk/sync.py index 7c1ff0e..9b5cbd1 100644 --- a/src/panora_sdk/sync.py +++ b/src/panora_sdk/sync.py @@ -1,16 +1,17 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import BaseModel, OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Optional, Union, cast - class Sync(BaseSDK): + + def status( - self, - *, + self, *, vertical: models.PathParamVertical, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -18,7 +19,7 @@ def status( ): r"""Retrieve sync status of a certain vertical - :param vertical: + :param vertical: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -27,14 +28,14 @@ def status( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.StatusRequest( vertical=vertical, ) - + req = self.build_request( method="GET", path="/sync/status/{vertical}", @@ -49,44 +50,40 @@ def status( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="status", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="status", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def status_async( - self, - *, + self, *, vertical: models.PathParamVertical, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -94,7 +91,7 @@ async def status_async( ): r"""Retrieve sync status of a certain vertical - :param vertical: + :param vertical: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -103,15 +100,15 @@ async def status_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.StatusRequest( vertical=vertical, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/sync/status/{vertical}", base_url=base_url, @@ -125,44 +122,40 @@ async def status_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="status", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="status", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def resync( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -177,7 +170,7 @@ def resync( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url req = self.build_request( @@ -194,44 +187,40 @@ def resync( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="resync", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="resync", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): return utils.unmarshal_json(http_res.text, Optional[models.ResyncStatusDto]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def resync_async( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -246,10 +235,10 @@ async def resync_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - req = self.build_request_async( + req = self.build_request( method="POST", path="/sync/resync", base_url=base_url, @@ -263,47 +252,41 @@ async def resync_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="resync", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="resync", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): return utils.unmarshal_json(http_res.text, Optional[models.ResyncStatusDto]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def update_pull_frequency( - self, - *, - request: Union[ - models.UpdatePullFrequencyDto, models.UpdatePullFrequencyDtoTypedDict - ], + self, *, + request: Union[models.UpdatePullFrequencyDto, models.UpdatePullFrequencyDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -319,14 +302,14 @@ def update_pull_frequency( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.UpdatePullFrequencyDto) request = cast(models.UpdatePullFrequencyDto, request) - + req = self.build_request( method="POST", path="/sync/pull-frequencies", @@ -339,56 +322,46 @@ def update_pull_frequency( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.UpdatePullFrequencyDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.UpdatePullFrequencyDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="updatePullFrequency", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="updatePullFrequency", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return None if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UpdatePullFrequencyResponseBody] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UpdatePullFrequencyResponseBody]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def update_pull_frequency_async( - self, - *, - request: Union[ - models.UpdatePullFrequencyDto, models.UpdatePullFrequencyDtoTypedDict - ], + self, *, + request: Union[models.UpdatePullFrequencyDto, models.UpdatePullFrequencyDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -404,15 +377,15 @@ async def update_pull_frequency_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.UpdatePullFrequencyDto) request = cast(models.UpdatePullFrequencyDto, request) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/sync/pull-frequencies", base_url=base_url, @@ -424,53 +397,45 @@ async def update_pull_frequency_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.UpdatePullFrequencyDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.UpdatePullFrequencyDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="updatePullFrequency", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="updatePullFrequency", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return None if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UpdatePullFrequencyResponseBody] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UpdatePullFrequencyResponseBody]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def get_pull_frequency( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -485,7 +450,7 @@ def get_pull_frequency( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url req = self.build_request( @@ -502,46 +467,40 @@ def get_pull_frequency( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="getPullFrequency", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getPullFrequency", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UpdatePullFrequencyDto] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UpdatePullFrequencyDto]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def get_pull_frequency_async( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -556,10 +515,10 @@ async def get_pull_frequency_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - req = self.build_request_async( + req = self.build_request( method="GET", path="/sync/pull-frequencies", base_url=base_url, @@ -573,39 +532,34 @@ async def get_pull_frequency_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="getPullFrequency", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="getPullFrequency", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UpdatePullFrequencyDto] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UpdatePullFrequencyDto]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/tags.py b/src/panora_sdk/tags.py index b5fb412..0378704 100644 --- a/src/panora_sdk/tags.py +++ b/src/panora_sdk/tags.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Tags(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingTagsResponse]: + ) -> models.ListTicketingTagsResponse: r"""List Tags :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingTagsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ticketing/tags", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listTicketingTags", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingTags", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingTagsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListTicketingTagsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingTagsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingTagsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingTagsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingTagsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingTagsResponse]: + ) -> models.ListTicketingTagsResponse: r"""List Tags :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingTagsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/tags", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listTicketingTags", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingTags", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingTagsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListTicketingTagsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingTagsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingTagsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingTagsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingTagsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingTagRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ticketing/tags/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveTicketingTag", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingTag", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingTagOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingTagOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingTagRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/tags/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveTicketingTag", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingTag", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingTagOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingTagOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/tasks.py b/src/panora_sdk/tasks.py index 06e4a46..a890489 100644 --- a/src/panora_sdk/tasks.py +++ b/src/panora_sdk/tasks.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Tasks(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmTaskResponse]: + ) -> models.ListCrmTaskResponse: r"""List Tasks :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmTaskRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/crm/tasks", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listCrmTask", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmTask", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmTaskResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListCrmTaskResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmTaskResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmTaskResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmTaskResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmTaskResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListCrmTaskResponse]: + ) -> models.ListCrmTaskResponse: r"""List Tasks :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListCrmTaskRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/tasks", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listCrmTask", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listCrmTask", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListCrmTaskResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,34 +194,21 @@ def next_func() -> Optional[models.ListCrmTaskResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListCrmTaskResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListCrmTaskResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListCrmTaskResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListCrmTaskResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_crm_task_input: Union[ - models.UnifiedCrmTaskInput, models.UnifiedCrmTaskInputTypedDict - ], + unified_crm_task_input: Union[models.UnifiedCrmTaskInput, models.UnifiedCrmTaskInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -238,7 +219,7 @@ def create( Create Tasks in any supported Crm software :param x_connection_token: The connection token - :param unified_crm_task_input: + :param unified_crm_task_input: :param remote_data: Set to true to include data from the original Crm software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -248,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateCrmTaskRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_crm_task_input=utils.get_pydantic_model( - unified_crm_task_input, models.UnifiedCrmTaskInput - ), + unified_crm_task_input=utils.get_pydantic_model(unified_crm_task_input, models.UnifiedCrmTaskInput), ) - + req = self.build_request( method="POST", path="/crm/tasks", @@ -272,59 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_crm_task_input, - False, - False, - "json", - models.UnifiedCrmTaskInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_crm_task_input, False, False, "json", models.UnifiedCrmTaskInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createCrmTask", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createCrmTask", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmTaskOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmTaskOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_crm_task_input: Union[ - models.UnifiedCrmTaskInput, models.UnifiedCrmTaskInputTypedDict - ], + unified_crm_task_input: Union[models.UnifiedCrmTaskInput, models.UnifiedCrmTaskInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -335,7 +300,7 @@ async def create_async( Create Tasks in any supported Crm software :param x_connection_token: The connection token - :param unified_crm_task_input: + :param unified_crm_task_input: :param remote_data: Set to true to include data from the original Crm software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -345,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateCrmTaskRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_crm_task_input=utils.get_pydantic_model( - unified_crm_task_input, models.UnifiedCrmTaskInput - ), + unified_crm_task_input=utils.get_pydantic_model(unified_crm_task_input, models.UnifiedCrmTaskInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/crm/tasks", base_url=base_url, @@ -369,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_crm_task_input, - False, - False, - "json", - models.UnifiedCrmTaskInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_crm_task_input, False, False, "json", models.UnifiedCrmTaskInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createCrmTask", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createCrmTask", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmTaskOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmTaskOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -440,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmTaskRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/crm/tasks/{id}", @@ -464,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveCrmTask", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmTask", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmTaskOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmTaskOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -526,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveCrmTaskRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/crm/tasks/{id}", base_url=base_url, @@ -550,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveCrmTask", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveCrmTask", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedCrmTaskOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedCrmTaskOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/taxrates.py b/src/panora_sdk/taxrates.py index 9ff0ac5..dd79274 100644 --- a/src/panora_sdk/taxrates.py +++ b/src/panora_sdk/taxrates.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Taxrates(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingTaxRateResponse]: + ) -> models.ListAccountingTaxRateResponse: r"""List TaxRates :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingTaxRateRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/taxrates", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingTaxRate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingTaxRate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingTaxRateResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListAccountingTaxRateResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingTaxRateResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingTaxRateResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingTaxRateResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingTaxRateResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingTaxRateResponse]: + ) -> models.ListAccountingTaxRateResponse: r"""List TaxRates :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingTaxRateRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/taxrates", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingTaxRate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingTaxRate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingTaxRateResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListAccountingTaxRateResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingTaxRateResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListAccountingTaxRateResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingTaxRateResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingTaxRateResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingTaxRateRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/taxrates/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingTaxRate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingTaxRate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingTaxrateOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingTaxrateOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingTaxRateRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/taxrates/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingTaxRate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingTaxRate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingTaxrateOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingTaxrateOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/teams.py b/src/panora_sdk/teams.py index 85fe6a8..df7ae31 100644 --- a/src/panora_sdk/teams.py +++ b/src/panora_sdk/teams.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Teams(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingTeamsResponse]: + ) -> models.ListTicketingTeamsResponse: r"""List Teams :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingTeamsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ticketing/teams", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listTicketingTeams", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingTeams", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingTeamsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListTicketingTeamsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingTeamsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingTeamsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingTeamsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingTeamsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingTeamsResponse]: + ) -> models.ListTicketingTeamsResponse: r"""List Teams :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingTeamsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/teams", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listTicketingTeams", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingTeams", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingTeamsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListTicketingTeamsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingTeamsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingTeamsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingTeamsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingTeamsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingTeamRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ticketing/teams/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveTicketingTeam", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingTeam", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingTeamOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingTeamOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingTeamRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/teams/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveTicketingTeam", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingTeam", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingTeamOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingTeamOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/templates.py b/src/panora_sdk/templates.py index baf4f7e..05cd5d7 100644 --- a/src/panora_sdk/templates.py +++ b/src/panora_sdk/templates.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Templates(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationTemplatesResponse]: + ) -> models.ListMarketingautomationTemplatesResponse: r"""List Templates :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationTemplatesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/marketingautomation/templates", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listMarketingautomationTemplates", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationTemplates", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationTemplatesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListMarketingautomationTemplatesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationTemplatesResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationTemplatesResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationTemplatesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationTemplatesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListMarketingautomationTemplatesResponse]: + ) -> models.ListMarketingautomationTemplatesResponse: r"""List Templates :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListMarketingautomationTemplatesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/templates", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listMarketingautomationTemplates", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listMarketingautomationTemplates", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListMarketingautomationTemplatesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,36 +194,21 @@ def next_func() -> Optional[models.ListMarketingautomationTemplatesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListMarketingautomationTemplatesResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListMarketingautomationTemplatesResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListMarketingautomationTemplatesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListMarketingautomationTemplatesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_marketingautomation_template_input: Union[ - models.UnifiedMarketingautomationTemplateInput, - models.UnifiedMarketingautomationTemplateInputTypedDict, - ], + unified_marketingautomation_template_input: Union[models.UnifiedMarketingautomationTemplateInput, models.UnifiedMarketingautomationTemplateInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -241,7 +219,7 @@ def create( Create a template in any supported Marketingautomation software :param x_connection_token: The connection token - :param unified_marketingautomation_template_input: + :param unified_marketingautomation_template_input: :param remote_data: Set to true to include data from the original Marketingautomation software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -251,19 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateMarketingautomationTemplateRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_marketingautomation_template_input=utils.get_pydantic_model( - unified_marketingautomation_template_input, - models.UnifiedMarketingautomationTemplateInput, - ), + unified_marketingautomation_template_input=utils.get_pydantic_model(unified_marketingautomation_template_input, models.UnifiedMarketingautomationTemplateInput), ) - + req = self.build_request( method="POST", path="/marketingautomation/templates", @@ -276,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_marketingautomation_template_input, - False, - False, - "json", - models.UnifiedMarketingautomationTemplateInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_marketingautomation_template_input, False, False, "json", models.UnifiedMarketingautomationTemplateInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createMarketingautomationTemplate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createMarketingautomationTemplate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationTemplateOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationTemplateOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_marketingautomation_template_input: Union[ - models.UnifiedMarketingautomationTemplateInput, - models.UnifiedMarketingautomationTemplateInputTypedDict, - ], + unified_marketingautomation_template_input: Union[models.UnifiedMarketingautomationTemplateInput, models.UnifiedMarketingautomationTemplateInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -340,7 +300,7 @@ async def create_async( Create a template in any supported Marketingautomation software :param x_connection_token: The connection token - :param unified_marketingautomation_template_input: + :param unified_marketingautomation_template_input: :param remote_data: Set to true to include data from the original Marketingautomation software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -350,20 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateMarketingautomationTemplateRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_marketingautomation_template_input=utils.get_pydantic_model( - unified_marketingautomation_template_input, - models.UnifiedMarketingautomationTemplateInput, - ), + unified_marketingautomation_template_input=utils.get_pydantic_model(unified_marketingautomation_template_input, models.UnifiedMarketingautomationTemplateInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/marketingautomation/templates", base_url=base_url, @@ -375,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_marketingautomation_template_input, - False, - False, - "json", - models.UnifiedMarketingautomationTemplateInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_marketingautomation_template_input, False, False, "json", models.UnifiedMarketingautomationTemplateInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createMarketingautomationTemplate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createMarketingautomationTemplate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationTemplateOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationTemplateOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -446,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationTemplateRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/marketingautomation/templates/{id}", @@ -470,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationTemplate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationTemplate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationTemplateOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationTemplateOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -532,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveMarketingautomationTemplateRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/marketingautomation/templates/{id}", base_url=base_url, @@ -556,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveMarketingautomationTemplate", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveMarketingautomationTemplate", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedMarketingautomationTemplateOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedMarketingautomationTemplateOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/ticketing.py b/src/panora_sdk/ticketing.py index 7a53ded..7b76b24 100644 --- a/src/panora_sdk/ticketing.py +++ b/src/panora_sdk/ticketing.py @@ -12,7 +12,6 @@ from panora_sdk.tickets import Tickets from panora_sdk.users import Users - class Ticketing(BaseSDK): tickets: Tickets users: Users @@ -23,12 +22,11 @@ class Ticketing(BaseSDK): tags: Tags teams: Teams attachments: PanoraTicketingAttachments - def __init__(self, sdk_config: SDKConfiguration) -> None: BaseSDK.__init__(self, sdk_config) self.sdk_configuration = sdk_config self._init_sdks() - + def _init_sdks(self): self.tickets = Tickets(self.sdk_configuration) self.users = Users(self.sdk_configuration) @@ -39,3 +37,4 @@ def _init_sdks(self): self.tags = Tags(self.sdk_configuration) self.teams = Teams(self.sdk_configuration) self.attachments = PanoraTicketingAttachments(self.sdk_configuration) + diff --git a/src/panora_sdk/tickets.py b/src/panora_sdk/tickets.py index 1433f23..6982715 100644 --- a/src/panora_sdk/tickets.py +++ b/src/panora_sdk/tickets.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Tickets(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingTicketResponse]: + ) -> models.ListTicketingTicketResponse: r"""List Tickets :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingTicketRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ticketing/tickets", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listTicketingTicket", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingTicket", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingTicketResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListTicketingTicketResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingTicketResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingTicketResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingTicketResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingTicketResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingTicketResponse]: + ) -> models.ListTicketingTicketResponse: r"""List Tickets :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingTicketRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/tickets", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listTicketingTicket", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingTicket", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingTicketResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListTicketingTicketResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingTicketResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingTicketResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingTicketResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingTicketResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_ticketing_ticket_input: Union[ - models.UnifiedTicketingTicketInput, - models.UnifiedTicketingTicketInputTypedDict, - ], + unified_ticketing_ticket_input: Union[models.UnifiedTicketingTicketInput, models.UnifiedTicketingTicketInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create Tickets in any supported Ticketing software :param x_connection_token: The connection token - :param unified_ticketing_ticket_input: + :param unified_ticketing_ticket_input: :param remote_data: Set to true to include data from the original Ticketing software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateTicketingTicketRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ticketing_ticket_input=utils.get_pydantic_model( - unified_ticketing_ticket_input, models.UnifiedTicketingTicketInput - ), + unified_ticketing_ticket_input=utils.get_pydantic_model(unified_ticketing_ticket_input, models.UnifiedTicketingTicketInput), ) - + req = self.build_request( method="POST", path="/ticketing/tickets", @@ -273,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ticketing_ticket_input, - False, - False, - "json", - models.UnifiedTicketingTicketInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ticketing_ticket_input, False, False, "json", models.UnifiedTicketingTicketInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createTicketingTicket", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createTicketingTicket", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingTicketOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingTicketOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_ticketing_ticket_input: Union[ - models.UnifiedTicketingTicketInput, - models.UnifiedTicketingTicketInputTypedDict, - ], + unified_ticketing_ticket_input: Union[models.UnifiedTicketingTicketInput, models.UnifiedTicketingTicketInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -337,7 +300,7 @@ async def create_async( Create Tickets in any supported Ticketing software :param x_connection_token: The connection token - :param unified_ticketing_ticket_input: + :param unified_ticketing_ticket_input: :param remote_data: Set to true to include data from the original Ticketing software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -347,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateTicketingTicketRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_ticketing_ticket_input=utils.get_pydantic_model( - unified_ticketing_ticket_input, models.UnifiedTicketingTicketInput - ), + unified_ticketing_ticket_input=utils.get_pydantic_model(unified_ticketing_ticket_input, models.UnifiedTicketingTicketInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/ticketing/tickets", base_url=base_url, @@ -371,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_ticketing_ticket_input, - False, - False, - "json", - models.UnifiedTicketingTicketInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_ticketing_ticket_input, False, False, "json", models.UnifiedTicketingTicketInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createTicketingTicket", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createTicketingTicket", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingTicketOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingTicketOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -442,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingTicketRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ticketing/tickets/{id}", @@ -466,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveTicketingTicket", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingTicket", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingTicketOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingTicketOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -528,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingTicketRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/tickets/{id}", base_url=base_url, @@ -552,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveTicketingTicket", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingTicket", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingTicketOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingTicketOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/timeoffbalances.py b/src/panora_sdk/timeoffbalances.py index 4f7116f..8f0efee 100644 --- a/src/panora_sdk/timeoffbalances.py +++ b/src/panora_sdk/timeoffbalances.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Timeoffbalances(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisTimeoffbalancesResponse]: + ) -> models.ListHrisTimeoffbalancesResponse: r"""List TimeoffBalances :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisTimeoffbalancesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/timeoffbalances", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisTimeoffbalances", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisTimeoffbalances", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisTimeoffbalancesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisTimeoffbalancesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisTimeoffbalancesResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisTimeoffbalancesResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisTimeoffbalancesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisTimeoffbalancesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisTimeoffbalancesResponse]: + ) -> models.ListHrisTimeoffbalancesResponse: r"""List TimeoffBalances :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisTimeoffbalancesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/timeoffbalances", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisTimeoffbalances", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisTimeoffbalances", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisTimeoffbalancesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListHrisTimeoffbalancesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisTimeoffbalancesResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisTimeoffbalancesResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisTimeoffbalancesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisTimeoffbalancesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisTimeoffbalanceRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/timeoffbalances/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisTimeoffbalance", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisTimeoffbalance", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisTimeoffbalanceOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisTimeoffbalanceOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisTimeoffbalanceRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/timeoffbalances/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisTimeoffbalance", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisTimeoffbalance", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisTimeoffbalanceOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisTimeoffbalanceOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/timeoffs.py b/src/panora_sdk/timeoffs.py index a040ad4..23e0bed 100644 --- a/src/panora_sdk/timeoffs.py +++ b/src/panora_sdk/timeoffs.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Timeoffs(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisTimeoffsResponse]: + ) -> models.ListHrisTimeoffsResponse: r"""List Time Offs :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisTimeoffsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/timeoffs", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisTimeoffs", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisTimeoffs", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisTimeoffsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisTimeoffsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisTimeoffsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisTimeoffsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisTimeoffsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisTimeoffsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisTimeoffsResponse]: + ) -> models.ListHrisTimeoffsResponse: r"""List Time Offs :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisTimeoffsRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/timeoffs", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisTimeoffs", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisTimeoffs", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisTimeoffsResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,34 +194,21 @@ def next_func() -> Optional[models.ListHrisTimeoffsResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisTimeoffsResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisTimeoffsResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisTimeoffsResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisTimeoffsResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_hris_timeoff_input: Union[ - models.UnifiedHrisTimeoffInput, models.UnifiedHrisTimeoffInputTypedDict - ], + unified_hris_timeoff_input: Union[models.UnifiedHrisTimeoffInput, models.UnifiedHrisTimeoffInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -238,7 +219,7 @@ def create( Create Timeoffs in any supported Hris software :param x_connection_token: The connection token - :param unified_hris_timeoff_input: + :param unified_hris_timeoff_input: :param remote_data: Set to true to include data from the original Hris software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -248,18 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateHrisTimeoffRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_hris_timeoff_input=utils.get_pydantic_model( - unified_hris_timeoff_input, models.UnifiedHrisTimeoffInput - ), + unified_hris_timeoff_input=utils.get_pydantic_model(unified_hris_timeoff_input, models.UnifiedHrisTimeoffInput), ) - + req = self.build_request( method="POST", path="/hris/timeoffs", @@ -272,59 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_hris_timeoff_input, - False, - False, - "json", - models.UnifiedHrisTimeoffInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_hris_timeoff_input, False, False, "json", models.UnifiedHrisTimeoffInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createHrisTimeoff", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createHrisTimeoff", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisTimeoffOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisTimeoffOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_hris_timeoff_input: Union[ - models.UnifiedHrisTimeoffInput, models.UnifiedHrisTimeoffInputTypedDict - ], + unified_hris_timeoff_input: Union[models.UnifiedHrisTimeoffInput, models.UnifiedHrisTimeoffInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -335,7 +300,7 @@ async def create_async( Create Timeoffs in any supported Hris software :param x_connection_token: The connection token - :param unified_hris_timeoff_input: + :param unified_hris_timeoff_input: :param remote_data: Set to true to include data from the original Hris software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -345,19 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateHrisTimeoffRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_hris_timeoff_input=utils.get_pydantic_model( - unified_hris_timeoff_input, models.UnifiedHrisTimeoffInput - ), + unified_hris_timeoff_input=utils.get_pydantic_model(unified_hris_timeoff_input, models.UnifiedHrisTimeoffInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/hris/timeoffs", base_url=base_url, @@ -369,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_hris_timeoff_input, - False, - False, - "json", - models.UnifiedHrisTimeoffInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_hris_timeoff_input, False, False, "json", models.UnifiedHrisTimeoffInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createHrisTimeoff", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createHrisTimeoff", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisTimeoffOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisTimeoffOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -440,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisTimeoffRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/timeoffs/{id}", @@ -464,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisTimeoff", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisTimeoff", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisTimeoffOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisTimeoffOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -526,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisTimeoffRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/timeoffs/{id}", base_url=base_url, @@ -550,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisTimeoff", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisTimeoff", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisTimeoffOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisTimeoffOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/timesheetentries.py b/src/panora_sdk/timesheetentries.py index a15257b..94ba09a 100644 --- a/src/panora_sdk/timesheetentries.py +++ b/src/panora_sdk/timesheetentries.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional, Union - class Timesheetentries(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisTimesheetentriesResponse]: + ) -> models.ListHrisTimesheetentriesResponse: r"""List Timesheetentries :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisTimesheetentriesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/hris/timesheetentries", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listHrisTimesheetentries", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisTimesheetentries", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisTimesheetentriesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListHrisTimesheetentriesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisTimesheetentriesResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisTimesheetentriesResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisTimesheetentriesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisTimesheetentriesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListHrisTimesheetentriesResponse]: + ) -> models.ListHrisTimesheetentriesResponse: r"""List Timesheetentries :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListHrisTimesheetentriesRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/timesheetentries", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listHrisTimesheetentries", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listHrisTimesheetentries", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListHrisTimesheetentriesResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,35 +194,21 @@ def next_func() -> Optional[models.ListHrisTimesheetentriesResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListHrisTimesheetentriesResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListHrisTimesheetentriesResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListHrisTimesheetentriesResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListHrisTimesheetentriesResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, x_connection_token: str, - unified_hris_timesheet_entry_input: Union[ - models.UnifiedHrisTimesheetEntryInput, - models.UnifiedHrisTimesheetEntryInputTypedDict, - ], + unified_hris_timesheet_entry_input: Union[models.UnifiedHrisTimesheetEntryInput, models.UnifiedHrisTimesheetEntryInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -239,7 +219,7 @@ def create( Create Timesheetentrys in any supported Hris software :param x_connection_token: The connection token - :param unified_hris_timesheet_entry_input: + :param unified_hris_timesheet_entry_input: :param remote_data: Set to true to include data from the original Hris software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -249,19 +229,16 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateHrisTimesheetentryRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_hris_timesheet_entry_input=utils.get_pydantic_model( - unified_hris_timesheet_entry_input, - models.UnifiedHrisTimesheetEntryInput, - ), + unified_hris_timesheet_entry_input=utils.get_pydantic_model(unified_hris_timesheet_entry_input, models.UnifiedHrisTimesheetEntryInput), ) - + req = self.build_request( method="POST", path="/hris/timesheetentries", @@ -274,60 +251,45 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_hris_timesheet_entry_input, - False, - False, - "json", - models.UnifiedHrisTimesheetEntryInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_hris_timesheet_entry_input, False, False, "json", models.UnifiedHrisTimesheetEntryInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createHrisTimesheetentry", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createHrisTimesheetentry", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisTimesheetEntryOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisTimesheetEntryOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, x_connection_token: str, - unified_hris_timesheet_entry_input: Union[ - models.UnifiedHrisTimesheetEntryInput, - models.UnifiedHrisTimesheetEntryInputTypedDict, - ], + unified_hris_timesheet_entry_input: Union[models.UnifiedHrisTimesheetEntryInput, models.UnifiedHrisTimesheetEntryInputTypedDict], remote_data: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -338,7 +300,7 @@ async def create_async( Create Timesheetentrys in any supported Hris software :param x_connection_token: The connection token - :param unified_hris_timesheet_entry_input: + :param unified_hris_timesheet_entry_input: :param remote_data: Set to true to include data from the original Hris software. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -348,20 +310,17 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.CreateHrisTimesheetentryRequest( x_connection_token=x_connection_token, remote_data=remote_data, - unified_hris_timesheet_entry_input=utils.get_pydantic_model( - unified_hris_timesheet_entry_input, - models.UnifiedHrisTimesheetEntryInput, - ), + unified_hris_timesheet_entry_input=utils.get_pydantic_model(unified_hris_timesheet_entry_input, models.UnifiedHrisTimesheetEntryInput), ) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/hris/timesheetentries", base_url=base_url, @@ -373,55 +332,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.unified_hris_timesheet_entry_input, - False, - False, - "json", - models.UnifiedHrisTimesheetEntryInput, - ), + get_serialized_body=lambda: utils.serialize_request_body(request.unified_hris_timesheet_entry_input, False, False, "json", models.UnifiedHrisTimesheetEntryInput), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createHrisTimesheetentry", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createHrisTimesheetentry", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisTimesheetEntryOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisTimesheetEntryOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -444,16 +391,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisTimesheetentryRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/hris/timesheetentries/{id}", @@ -468,46 +415,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveHrisTimesheetentry", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisTimesheetentry", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisTimesheetEntryOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisTimesheetEntryOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -530,17 +471,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveHrisTimesheetentryRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/hris/timesheetentries/{id}", base_url=base_url, @@ -554,39 +495,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveHrisTimesheetentry", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveHrisTimesheetentry", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedHrisTimesheetEntryOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedHrisTimesheetEntryOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/trackingcategories.py b/src/panora_sdk/trackingcategories.py index 2fa510b..dd22b7c 100644 --- a/src/panora_sdk/trackingcategories.py +++ b/src/panora_sdk/trackingcategories.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Trackingcategories(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingTrackingCategorysResponse]: + ) -> models.ListAccountingTrackingCategorysResponse: r"""List TrackingCategorys :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingTrackingCategorysRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/trackingcategories", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingTrackingCategorys", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingTrackingCategorys", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingTrackingCategorysResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListAccountingTrackingCategorysResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingTrackingCategorysResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingTrackingCategorysResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingTrackingCategorysResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingTrackingCategorysResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingTrackingCategorysResponse]: + ) -> models.ListAccountingTrackingCategorysResponse: r"""List TrackingCategorys :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingTrackingCategorysRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/trackingcategories", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingTrackingCategorys", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingTrackingCategorys", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingTrackingCategorysResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListAccountingTrackingCategorysResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingTrackingCategorysResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingTrackingCategorysResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingTrackingCategorysResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingTrackingCategorysResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingTrackingCategoryRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/trackingcategories/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingTrackingCategory", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingTrackingCategory", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingTrackingcategoryOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingTrackingcategoryOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingTrackingCategoryRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/trackingcategories/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingTrackingCategory", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingTrackingCategory", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingTrackingcategoryOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingTrackingcategoryOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/transactions.py b/src/panora_sdk/transactions.py index 32533ec..decfc17 100644 --- a/src/panora_sdk/transactions.py +++ b/src/panora_sdk/transactions.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Transactions(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingTransactionResponse]: + ) -> models.ListAccountingTransactionResponse: r"""List Transactions :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingTransactionRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/transactions", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingTransaction", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingTransaction", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingTransactionResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListAccountingTransactionResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingTransactionResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingTransactionResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingTransactionResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingTransactionResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingTransactionResponse]: + ) -> models.ListAccountingTransactionResponse: r"""List Transactions :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingTransactionRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/transactions", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingTransaction", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingTransaction", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingTransactionResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListAccountingTransactionResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingTransactionResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingTransactionResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingTransactionResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingTransactionResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingTransactionRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/transactions/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingTransaction", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingTransaction", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingTransactionOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingTransactionOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingTransactionRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/transactions/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingTransaction", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingTransaction", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingTransactionOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingTransactionOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/types/basemodel.py b/src/panora_sdk/types/basemodel.py index a6187ef..85f7c61 100644 --- a/src/panora_sdk/types/basemodel.py +++ b/src/panora_sdk/types/basemodel.py @@ -2,8 +2,8 @@ from pydantic import ConfigDict, model_serializer from pydantic import BaseModel as PydanticBaseModel -from typing import TYPE_CHECKING, Literal, Optional, TypeVar, Union, NewType -from typing_extensions import TypeAliasType, TypeAlias +from typing import Literal, Optional, TypeVar, Union, NewType +from typing_extensions import TypeAliasType class BaseModel(PydanticBaseModel): @@ -26,14 +26,10 @@ def __bool__(self) -> Literal[False]: T = TypeVar("T") -if TYPE_CHECKING: - Nullable: TypeAlias = Union[T, None] - OptionalNullable: TypeAlias = Union[Optional[Nullable[T]], Unset] -else: - Nullable = TypeAliasType("Nullable", Union[T, None], type_params=(T,)) - OptionalNullable = TypeAliasType( - "OptionalNullable", Union[Optional[Nullable[T]], Unset], type_params=(T,) - ) +Nullable = TypeAliasType("Nullable", Union[T, None], type_params=(T,)) +OptionalNullable = TypeAliasType( + "OptionalNullable", Union[Optional[Nullable[T]], Unset], type_params=(T,) +) UnrecognizedInt = NewType("UnrecognizedInt", int) UnrecognizedStr = NewType("UnrecognizedStr", str) diff --git a/src/panora_sdk/users.py b/src/panora_sdk/users.py index b0e3e24..61437a1 100644 --- a/src/panora_sdk/users.py +++ b/src/panora_sdk/users.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Users(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingUsersResponse]: + ) -> models.ListTicketingUsersResponse: r"""List Users :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingUsersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/ticketing/users", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listTicketingUsers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingUsers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingUsersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,30 +97,19 @@ def next_func() -> Optional[models.ListTicketingUsersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingUsersResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingUsersResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingUsersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingUsersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -125,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListTicketingUsersResponse]: + ) -> models.ListTicketingUsersResponse: r"""List Users :param x_connection_token: The connection token @@ -140,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListTicketingUsersRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/users", base_url=base_url, @@ -165,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listTicketingUsers", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listTicketingUsers", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListTicketingUsersResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -200,30 +194,19 @@ def next_func() -> Optional[models.ListTicketingUsersResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListTicketingUsersResponse( - result=utils.unmarshal_json( - http_res.text, Optional[models.ListTicketingUsersResponseBody] - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListTicketingUsersResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListTicketingUsersResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -246,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingUserRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/ticketing/users/{id}", @@ -270,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveTicketingUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingUserOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingUserOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -332,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveTicketingUserRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/ticketing/users/{id}", base_url=base_url, @@ -356,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveTicketingUser", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveTicketingUser", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedTicketingUserOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedTicketingUserOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/utils/__init__.py b/src/panora_sdk/utils/__init__.py index 6c26aeb..95aa1b6 100644 --- a/src/panora_sdk/utils/__init__.py +++ b/src/panora_sdk/utils/__init__.py @@ -33,13 +33,8 @@ validate_open_enum, ) from .url import generate_url, template_url, remove_suffix -from .values import ( - get_global_from_env, - match_content_type, - match_status_codes, - match_response, -) -from .logger import Logger, get_body_content, get_default_logger +from .values import get_global_from_env, match_content_type, match_status_codes, match_response +from .logger import Logger, get_body_content, NoOpLogger __all__ = [ "BackoffStrategy", @@ -48,7 +43,6 @@ "FormMetadata", "generate_url", "get_body_content", - "get_default_logger", "get_discriminator", "get_global_from_env", "get_headers", @@ -63,6 +57,7 @@ "match_status_codes", "match_response", "MultipartFormMetadata", + "NoOpLogger", "OpenEnumMeta", "PathParamMetadata", "QueryParamMetadata", diff --git a/src/panora_sdk/utils/eventstreaming.py b/src/panora_sdk/utils/eventstreaming.py index 553b386..7789cfd 100644 --- a/src/panora_sdk/utils/eventstreaming.py +++ b/src/panora_sdk/utils/eventstreaming.py @@ -147,14 +147,15 @@ def _parse_event( data = data[:-1] event.data = data - data_is_primitive = ( - data.isnumeric() or data == "true" or data == "false" or data == "null" - ) - data_is_json = ( - data.startswith("{") or data.startswith("[") or data.startswith('"') - ) - - if data_is_primitive or data_is_json: + if ( + data.isnumeric() + or data == "true" + or data == "false" + or data == "null" + or data.startswith("{") + or data.startswith("[") + or data.startswith('"') + ): try: event.data = json.loads(data) except Exception: diff --git a/src/panora_sdk/utils/forms.py b/src/panora_sdk/utils/forms.py index 9f5a731..07f9b23 100644 --- a/src/panora_sdk/utils/forms.py +++ b/src/panora_sdk/utils/forms.py @@ -17,7 +17,7 @@ MultipartFormMetadata, find_field_metadata, ) -from .values import _is_set, _val_to_string +from .values import _val_to_string def _populate_form( @@ -27,7 +27,7 @@ def _populate_form( delimiter: str, form: Dict[str, List[str]], ): - if not _is_set(obj): + if obj is None: return form if isinstance(obj, BaseModel): @@ -41,7 +41,7 @@ def _populate_form( continue val = getattr(obj, name) - if not _is_set(val): + if val is None: continue if explode: @@ -54,7 +54,7 @@ def _populate_form( elif isinstance(obj, Dict): items = [] for key, value in obj.items(): - if not _is_set(value): + if value is None: continue if explode: @@ -68,7 +68,7 @@ def _populate_form( items = [] for value in obj: - if not _is_set(value): + if value is None: continue if explode: @@ -102,7 +102,7 @@ def serialize_multipart_form( field = request_fields[name] val = getattr(request, name) - if not _is_set(val): + if val is None: continue field_metadata = find_field_metadata(field, MultipartFormMetadata) @@ -156,7 +156,7 @@ def serialize_multipart_form( values = [] for value in val: - if not _is_set(value): + if value is None: continue values.append(_val_to_string(value)) @@ -176,7 +176,7 @@ def serialize_form_data(data: Any) -> Dict[str, Any]: field = data_fields[name] val = getattr(data, name) - if not _is_set(val): + if val is None: continue metadata = find_field_metadata(field, FormMetadata) @@ -200,8 +200,7 @@ def serialize_form_data(data: Any) -> Dict[str, Any]: raise ValueError(f"Invalid form style for field {name}") elif isinstance(data, Dict): for key, value in data.items(): - if _is_set(value): - form[key] = [_val_to_string(value)] + form[key] = [_val_to_string(value)] else: raise TypeError(f"Invalid request body type {type(data)} for form data") diff --git a/src/panora_sdk/utils/headers.py b/src/panora_sdk/utils/headers.py index 37864cb..e14a0f4 100644 --- a/src/panora_sdk/utils/headers.py +++ b/src/panora_sdk/utils/headers.py @@ -15,16 +15,16 @@ find_field_metadata, ) -from .values import _is_set, _populate_from_globals, _val_to_string +from .values import _populate_from_globals, _val_to_string def get_headers(headers_params: Any, gbls: Optional[Any] = None) -> Dict[str, str]: headers: Dict[str, str] = {} globals_already_populated = [] - if _is_set(headers_params): + if headers_params is not None: globals_already_populated = _populate_headers(headers_params, gbls, headers, []) - if _is_set(gbls): + if gbls is not None: _populate_headers(gbls, None, headers, globals_already_populated) return headers @@ -67,7 +67,7 @@ def _populate_headers( def _serialize_header(explode: bool, obj: Any) -> str: - if not _is_set(obj): + if obj is None: return "" if isinstance(obj, BaseModel): @@ -83,7 +83,7 @@ def _serialize_header(explode: bool, obj: Any) -> str: f_name = obj_field.alias if obj_field.alias is not None else name val = getattr(obj, name) - if not _is_set(val): + if val is None: continue if explode: @@ -98,7 +98,7 @@ def _serialize_header(explode: bool, obj: Any) -> str: items = [] for key, value in obj.items(): - if not _is_set(value): + if value is None: continue if explode: @@ -113,14 +113,14 @@ def _serialize_header(explode: bool, obj: Any) -> str: items = [] for value in obj: - if not _is_set(value): + if value is None: continue items.append(_val_to_string(value)) if len(items) > 0: return ",".join(items) - elif _is_set(obj): + else: return f"{_val_to_string(obj)}" return "" diff --git a/src/panora_sdk/utils/logger.py b/src/panora_sdk/utils/logger.py index b661aff..7e4bbea 100644 --- a/src/panora_sdk/utils/logger.py +++ b/src/panora_sdk/utils/logger.py @@ -3,20 +3,14 @@ import httpx from typing import Any, Protocol - class Logger(Protocol): def debug(self, msg: str, *args: Any, **kwargs: Any) -> None: pass - class NoOpLogger: def debug(self, msg: str, *args: Any, **kwargs: Any) -> None: pass - def get_body_content(req: httpx.Request) -> str: return "" if not hasattr(req, "_content") else str(req.content) - -def get_default_logger() -> Logger: - return NoOpLogger() diff --git a/src/panora_sdk/utils/queryparams.py b/src/panora_sdk/utils/queryparams.py index 37a6e7f..1c8c583 100644 --- a/src/panora_sdk/utils/queryparams.py +++ b/src/panora_sdk/utils/queryparams.py @@ -15,12 +15,7 @@ QueryParamMetadata, find_field_metadata, ) -from .values import ( - _get_serialized_params, - _is_set, - _populate_from_globals, - _val_to_string, -) +from .values import _get_serialized_params, _populate_from_globals, _val_to_string from .forms import _populate_form @@ -31,7 +26,7 @@ def get_query_params( params: Dict[str, List[str]] = {} globals_already_populated = _populate_query_params(query_params, gbls, params, []) - if _is_set(gbls): + if gbls is not None: _populate_query_params(gbls, None, params, globals_already_populated) return params @@ -60,7 +55,7 @@ def _populate_query_params( if not metadata: continue - value = getattr(query_params, name) if _is_set(query_params) else None + value = getattr(query_params, name) if query_params is not None else None value, global_found = _populate_from_globals( name, value, QueryParamMetadata, gbls @@ -104,7 +99,7 @@ def _populate_deep_object_query_params( obj: Any, params: Dict[str, List[str]], ): - if not _is_set(obj): + if obj is None: return if isinstance(obj, BaseModel): @@ -118,7 +113,10 @@ def _populate_deep_object_query_params_basemodel( obj: Any, params: Dict[str, List[str]], ): - if not _is_set(obj) or not isinstance(obj, BaseModel): + if obj is None: + return + + if not isinstance(obj, BaseModel): return obj_fields: Dict[str, FieldInfo] = obj.__class__.model_fields @@ -130,11 +128,11 @@ def _populate_deep_object_query_params_basemodel( params_key = f"{prior_params_key}[{f_name}]" obj_param_metadata = find_field_metadata(obj_field, QueryParamMetadata) - if not _is_set(obj_param_metadata): + if obj_param_metadata is None: continue obj_val = getattr(obj, name) - if not _is_set(obj_val): + if obj_val is None: continue if isinstance(obj_val, BaseModel): @@ -152,11 +150,11 @@ def _populate_deep_object_query_params_dict( value: Dict, params: Dict[str, List[str]], ): - if not _is_set(value): + if value is None: return for key, val in value.items(): - if not _is_set(val): + if val is None: continue params_key = f"{prior_params_key}[{key}]" @@ -176,11 +174,11 @@ def _populate_deep_object_query_params_list( value: List, params: Dict[str, List[str]], ): - if not _is_set(value): + if value is None: return for val in value: - if not _is_set(val): + if val is None: continue if params.get(params_key) is None: diff --git a/src/panora_sdk/utils/retries.py b/src/panora_sdk/utils/retries.py index 4d60867..8070fae 100644 --- a/src/panora_sdk/utils/retries.py +++ b/src/panora_sdk/utils/retries.py @@ -1,6 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -import asyncio import random import time from typing import List @@ -77,7 +76,7 @@ def do_request() -> httpx.Response: status_major = res.status_code / 100 - if code_range <= status_major < code_range + 1: + if status_major >= code_range and status_major < code_range + 1: raise TemporaryError(res) else: parsed_code = int(code) @@ -126,7 +125,7 @@ async def do_request() -> httpx.Response: status_major = res.status_code / 100 - if code_range <= status_major < code_range + 1: + if status_major >= code_range and status_major < code_range + 1: raise TemporaryError(res) else: parsed_code = int(code) @@ -213,5 +212,5 @@ async def retry_with_backoff_async( raise sleep = (initial_interval / 1000) * exponent**retries + random.uniform(0, 1) sleep = min(sleep, max_interval / 1000) - await asyncio.sleep(sleep) + time.sleep(sleep) retries += 1 diff --git a/src/panora_sdk/utils/security.py b/src/panora_sdk/utils/security.py index 295a3f4..aab4cb6 100644 --- a/src/panora_sdk/utils/security.py +++ b/src/panora_sdk/utils/security.py @@ -16,6 +16,7 @@ ) + def get_security(security: Any) -> Tuple[Dict[str, str], Dict[str, List[str]]]: headers: Dict[str, str] = {} query_params: Dict[str, List[str]] = {} @@ -41,10 +42,8 @@ def get_security(security: Any) -> Tuple[Dict[str, str], Dict[str, List[str]]]: _parse_security_option(headers, query_params, value) return headers, query_params if metadata.scheme: - # Special case for basic auth or custom auth which could be a flattened model - if metadata.sub_type in ["basic", "custom"] and not isinstance( - value, BaseModel - ): + # Special case for basic auth which could be a flattened model + if metadata.sub_type == "basic" and not isinstance(value, BaseModel): _parse_security_scheme(headers, query_params, metadata, name, security) else: _parse_security_scheme(headers, query_params, metadata, name, value) @@ -81,12 +80,9 @@ def _parse_security_scheme( sub_type = scheme_metadata.sub_type if isinstance(scheme, BaseModel): - if scheme_type == "http": - if sub_type == "basic": - _parse_basic_auth_scheme(headers, scheme) - return - if sub_type == "custom": - return + if scheme_type == "http" and sub_type == "basic": + _parse_basic_auth_scheme(headers, scheme) + return scheme_fields: Dict[str, FieldInfo] = scheme.__class__.model_fields for name in scheme_fields: @@ -135,8 +131,6 @@ def _parse_security_scheme_value( elif scheme_type == "http": if sub_type == "bearer": headers[header_name] = _apply_bearer(value) - elif sub_type == "custom": - return else: raise ValueError("sub type {sub_type} not supported") else: diff --git a/src/panora_sdk/utils/serializers.py b/src/panora_sdk/utils/serializers.py index 85d57f4..a98998a 100644 --- a/src/panora_sdk/utils/serializers.py +++ b/src/panora_sdk/utils/serializers.py @@ -9,15 +9,13 @@ from pydantic_core import from_json from typing_inspect import is_optional_type -from ..types.basemodel import BaseModel, Nullable, OptionalNullable, Unset +from ..types.basemodel import BaseModel, Nullable, OptionalNullable def serialize_decimal(as_str: bool): def serialize(d): if is_optional_type(type(d)) and d is None: return None - if isinstance(d, Unset): - return d if not isinstance(d, Decimal): raise ValueError("Expected Decimal object") @@ -31,7 +29,7 @@ def validate_decimal(d): if d is None: return None - if isinstance(d, (Decimal, Unset)): + if isinstance(d, Decimal): return d if not isinstance(d, (str, int, float)): @@ -44,8 +42,6 @@ def serialize_float(as_str: bool): def serialize(f): if is_optional_type(type(f)) and f is None: return None - if isinstance(f, Unset): - return f if not isinstance(f, float): raise ValueError("Expected float") @@ -59,7 +55,7 @@ def validate_float(f): if f is None: return None - if isinstance(f, (float, Unset)): + if isinstance(f, float): return f if not isinstance(f, str): @@ -69,16 +65,14 @@ def validate_float(f): def serialize_int(as_str: bool): - def serialize(i): - if is_optional_type(type(i)) and i is None: + def serialize(b): + if is_optional_type(type(b)) and b is None: return None - if isinstance(i, Unset): - return i - if not isinstance(i, int): + if not isinstance(b, int): raise ValueError("Expected int") - return str(i) if as_str else i + return str(b) if as_str else b return serialize @@ -87,7 +81,7 @@ def validate_int(b): if b is None: return None - if isinstance(b, (int, Unset)): + if isinstance(b, int): return b if not isinstance(b, str): @@ -101,9 +95,6 @@ def validate(e): if e is None: return None - if isinstance(e, Unset): - return e - if is_int: if not isinstance(e, int): raise ValueError("Expected int") diff --git a/src/panora_sdk/utils/url.py b/src/panora_sdk/utils/url.py index c78ccba..b201bfa 100644 --- a/src/panora_sdk/utils/url.py +++ b/src/panora_sdk/utils/url.py @@ -18,12 +18,7 @@ PathParamMetadata, find_field_metadata, ) -from .values import ( - _get_serialized_params, - _is_set, - _populate_from_globals, - _val_to_string, -) +from .values import _get_serialized_params, _populate_from_globals, _val_to_string def generate_url( @@ -37,7 +32,7 @@ def generate_url( globals_already_populated = _populate_path_params( path_params, gbls, path_param_values, [] ) - if _is_set(gbls): + if gbls is not None: _populate_path_params(gbls, None, path_param_values, globals_already_populated) for key, value in path_param_values.items(): @@ -69,14 +64,14 @@ def _populate_path_params( if param_metadata is None: continue - param = getattr(path_params, name) if _is_set(path_params) else None + param = getattr(path_params, name) if path_params is not None else None param, global_found = _populate_from_globals( name, param, PathParamMetadata, gbls ) if global_found: globals_already_populated.append(name) - if not _is_set(param): + if param is None: continue f_name = field.alias if field.alias is not None else name @@ -92,13 +87,13 @@ def _populate_path_params( if param_metadata.style == "simple": if isinstance(param, List): for pp_val in param: - if not _is_set(pp_val): + if pp_val is None: continue pp_vals.append(_val_to_string(pp_val)) path_param_values[f_name] = ",".join(pp_vals) elif isinstance(param, Dict): for pp_key in param: - if not _is_set(param[pp_key]): + if param[pp_key] is None: continue if param_metadata.explode: pp_vals.append(f"{pp_key}={_val_to_string(param[pp_key])}") @@ -121,7 +116,7 @@ def _populate_path_params( ) param_field_val = getattr(param, name) - if not _is_set(param_field_val): + if param_field_val is None: continue if param_metadata.explode: pp_vals.append( @@ -132,7 +127,7 @@ def _populate_path_params( f"{param_name},{_val_to_string(param_field_val)}" ) path_param_values[f_name] = ",".join(pp_vals) - elif _is_set(param): + else: path_param_values[f_name] = _val_to_string(param) return globals_already_populated diff --git a/src/panora_sdk/utils/values.py b/src/panora_sdk/utils/values.py index 2b4b683..24ccae3 100644 --- a/src/panora_sdk/utils/values.py +++ b/src/panora_sdk/utils/values.py @@ -10,8 +10,6 @@ from pydantic import BaseModel from pydantic.fields import FieldInfo -from ..types.basemodel import Unset - from .serializers import marshal_json from .metadata import ParamMetadata, find_field_metadata @@ -128,7 +126,3 @@ def _get_serialized_params( params[field_name] = marshal_json(obj, typ) return params - - -def _is_set(value: Any) -> bool: - return value is not None and not isinstance(value, Unset) diff --git a/src/panora_sdk/vendorcredits.py b/src/panora_sdk/vendorcredits.py index 18442fb..80090e7 100644 --- a/src/panora_sdk/vendorcredits.py +++ b/src/panora_sdk/vendorcredits.py @@ -2,16 +2,17 @@ from .basesdk import BaseSDK from jsonpath import JSONPath -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, Optional - class Vendorcredits(BaseSDK): + + def list( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -19,7 +20,7 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingVendorCreditResponse]: + ) -> models.ListAccountingVendorCreditResponse: r"""List VendorCredits :param x_connection_token: The connection token @@ -34,17 +35,17 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingVendorCreditRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - + req = self.build_request( method="GET", path="/accounting/vendorcredits", @@ -59,26 +60,28 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listAccountingVendorCredit", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingVendorCredit", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingVendorCreditResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -94,31 +97,19 @@ def next_func() -> Optional[models.ListAccountingVendorCreditResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingVendorCreditResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingVendorCreditResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingVendorCreditResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingVendorCreditResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, x_connection_token: str, remote_data: Optional[bool] = None, limit: Optional[float] = 50, @@ -126,7 +117,7 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[models.ListAccountingVendorCreditResponse]: + ) -> models.ListAccountingVendorCreditResponse: r"""List VendorCredits :param x_connection_token: The connection token @@ -141,18 +132,18 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.ListAccountingVendorCreditRequest( x_connection_token=x_connection_token, remote_data=remote_data, limit=limit, cursor=cursor, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/vendorcredits", base_url=base_url, @@ -166,26 +157,28 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listAccountingVendorCredit", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listAccountingVendorCredit", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + def next_func() -> Optional[models.ListAccountingVendorCreditResponse]: body = utils.unmarshal_json(http_res.text, Dict[Any, Any]) next_cursor = JSONPath("$.next_cursor").parse(body) @@ -201,31 +194,19 @@ def next_func() -> Optional[models.ListAccountingVendorCreditResponse]: cursor=next_cursor, retries=retries, ) - + if utils.match_response(http_res, "200", "application/json"): - return models.ListAccountingVendorCreditResponse( - result=utils.unmarshal_json( - http_res.text, - Optional[models.ListAccountingVendorCreditResponseBody], - ), - next=next_func, - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return models.ListAccountingVendorCreditResponse(result=utils.unmarshal_json(http_res.text, Optional[models.ListAccountingVendorCreditResponseBody]), next=next_func) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def retrieve( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -248,16 +229,16 @@ def retrieve( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingVendorCreditRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - + req = self.build_request( method="GET", path="/accounting/vendorcredits/{id}", @@ -272,46 +253,40 @@ def retrieve( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="retrieveAccountingVendorCredit", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingVendorCredit", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingVendorcreditOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingVendorcreditOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def retrieve_async( - self, - *, + self, *, x_connection_token: str, id: str, remote_data: Optional[bool] = None, @@ -334,17 +309,17 @@ async def retrieve_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.RetrieveAccountingVendorCreditRequest( x_connection_token=x_connection_token, id=id, remote_data=remote_data, ) - - req = self.build_request_async( + + req = self.build_request( method="GET", path="/accounting/vendorcredits/{id}", base_url=base_url, @@ -358,39 +333,34 @@ async def retrieve_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="retrieveAccountingVendorCredit", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="retrieveAccountingVendorCredit", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[models.UnifiedAccountingVendorcreditOutput] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[models.UnifiedAccountingVendorcreditOutput]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + diff --git a/src/panora_sdk/webhooks.py b/src/panora_sdk/webhooks.py index 050fd69..4db5c4b 100644 --- a/src/panora_sdk/webhooks.py +++ b/src/panora_sdk/webhooks.py @@ -1,16 +1,17 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from panora_sdk import models, utils +from panora_sdk import models from panora_sdk._hooks import HookContext from panora_sdk.types import BaseModel, OptionalNullable, UNSET +import panora_sdk.utils as utils from typing import Any, Dict, List, Optional, Union, cast - class Webhooks(BaseSDK): + + def list( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -25,7 +26,7 @@ def list( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url req = self.build_request( @@ -42,46 +43,40 @@ def list( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="listWebhooks", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listWebhooks", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[models.WebhookResponse]] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[List[models.WebhookResponse]]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def list_async( - self, - *, + self, *, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -96,10 +91,10 @@ async def list_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - req = self.build_request_async( + req = self.build_request( method="GET", path="/webhooks", base_url=base_url, @@ -113,46 +108,40 @@ async def list_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="listWebhooks", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="listWebhooks", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[models.WebhookResponse]] - ) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + return utils.unmarshal_json(http_res.text, Optional[List[models.WebhookResponse]]) + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def create( - self, - *, + self, *, request: Union[models.WebhookDto, models.WebhookDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -169,14 +158,14 @@ def create( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.WebhookDto) request = cast(models.WebhookDto, request) - + req = self.build_request( method="POST", path="/webhooks", @@ -189,49 +178,43 @@ def create( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.WebhookDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.WebhookDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="createWebhookPublic", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createWebhookPublic", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): return utils.unmarshal_json(http_res.text, Optional[models.WebhookResponse]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def create_async( - self, - *, + self, *, request: Union[models.WebhookDto, models.WebhookDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -248,15 +231,15 @@ async def create_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.WebhookDto) request = cast(models.WebhookDto, request) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/webhooks", base_url=base_url, @@ -268,49 +251,43 @@ async def create_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.WebhookDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.WebhookDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="createWebhookPublic", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="createWebhookPublic", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): return utils.unmarshal_json(http_res.text, Optional[models.WebhookResponse]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def delete( - self, - *, + self, *, id: str, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -327,14 +304,14 @@ def delete( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.DeleteRequest( id=id, ) - + req = self.build_request( method="DELETE", path="/webhooks/{id}", @@ -349,46 +326,42 @@ def delete( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="delete", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="delete", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return None if utils.match_response(http_res, "201", "application/json"): return utils.unmarshal_json(http_res.text, Optional[models.WebhookResponse]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def delete_async( - self, - *, + self, *, id: str, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -405,15 +378,15 @@ async def delete_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.DeleteRequest( id=id, ) - - req = self.build_request_async( + + req = self.build_request( method="DELETE", path="/webhooks/{id}", base_url=base_url, @@ -427,46 +400,42 @@ async def delete_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="delete", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="delete", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return None if utils.match_response(http_res, "201", "application/json"): return utils.unmarshal_json(http_res.text, Optional[models.WebhookResponse]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def update_status( - self, - *, + self, *, id: str, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -483,14 +452,14 @@ def update_status( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.UpdateStatusRequest( id=id, ) - + req = self.build_request( method="PUT", path="/webhooks/{id}", @@ -505,46 +474,42 @@ def update_status( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="updateStatus", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="updateStatus", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return None if utils.match_response(http_res, "201", "application/json"): return utils.unmarshal_json(http_res.text, Optional[models.WebhookResponse]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def update_status_async( - self, - *, + self, *, id: str, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -561,15 +526,15 @@ async def update_status_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + request = models.UpdateStatusRequest( id=id, ) - - req = self.build_request_async( + + req = self.build_request( method="PUT", path="/webhooks/{id}", base_url=base_url, @@ -583,49 +548,43 @@ async def update_status_async( security=self.sdk_configuration.security, timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="updateStatus", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="updateStatus", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "200", "*"): return None if utils.match_response(http_res, "201", "application/json"): return utils.unmarshal_json(http_res.text, Optional[models.WebhookResponse]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + def verify_event( - self, - *, - request: Union[ - models.SignatureVerificationDto, models.SignatureVerificationDtoTypedDict - ], + self, *, + request: Union[models.SignatureVerificationDto, models.SignatureVerificationDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -641,14 +600,14 @@ def verify_event( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.SignatureVerificationDto) request = cast(models.SignatureVerificationDto, request) - + req = self.build_request( method="POST", path="/webhooks/verifyEvent", @@ -661,52 +620,44 @@ def verify_event( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.SignatureVerificationDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.SignatureVerificationDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = self.do_request( - hook_ctx=HookContext( - operation_id="verifyEvent", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="verifyEvent", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): return utils.unmarshal_json(http_res.text, Optional[Dict[str, Any]]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + + async def verify_event_async( - self, - *, - request: Union[ - models.SignatureVerificationDto, models.SignatureVerificationDtoTypedDict - ], + self, *, + request: Union[models.SignatureVerificationDto, models.SignatureVerificationDtoTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -722,15 +673,15 @@ async def verify_event_async( url_variables = None if timeout_ms is None: timeout_ms = self.sdk_configuration.timeout_ms - + if server_url is not None: base_url = server_url - + if not isinstance(request, BaseModel): request = utils.unmarshal(request, models.SignatureVerificationDto) request = cast(models.SignatureVerificationDto, request) - - req = self.build_request_async( + + req = self.build_request( method="POST", path="/webhooks/verifyEvent", base_url=base_url, @@ -742,42 +693,37 @@ async def verify_event_async( user_agent_header="user-agent", accept_header_value="application/json", security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.SignatureVerificationDto - ), + get_serialized_body=lambda: utils.serialize_request_body(request, False, False, "json", models.SignatureVerificationDto), timeout_ms=timeout_ms, ) - + if retries == UNSET: if self.sdk_configuration.retry_config is not UNSET: retries = self.sdk_configuration.retry_config retry_config = None if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - + retry_config = (retries, [ + "429", + "500", + "502", + "503", + "504" + ]) + http_res = await self.do_request_async( - hook_ctx=HookContext( - operation_id="verifyEvent", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), + hook_ctx=HookContext(operation_id="verifyEvent", oauth2_scopes=[], security_source=self.sdk_configuration.security), request=req, - error_status_codes=["4XX", "5XX"], - retry_config=retry_config, + error_status_codes=["4XX","5XX"], + retry_config=retry_config ) - + if utils.match_response(http_res, "201", "application/json"): return utils.unmarshal_json(http_res.text, Optional[Dict[str, Any]]) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): - raise models.SDKError( - "API error occurred", http_res.status_code, http_res.text, http_res - ) - + if utils.match_response(http_res, ["4XX","5XX"], "*"): + raise models.SDKError("API error occurred", http_res.status_code, http_res.text, http_res) + content_type = http_res.headers.get("Content-Type") - raise models.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res.text, - http_res, - ) + raise models.SDKError(f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", http_res.status_code, http_res.text, http_res) + +