@hubspot/app-connect-sdk 1.0.0-alpha.2 → 1.0.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-format$colon$check.log +1 -1
- package/.turbo/turbo-test.log +101 -57
- package/.turbo/turbo-tsdown.log +474 -469
- package/build/tsconfig.browser.tsbuildinfo +1 -1
- package/build/tsconfig.server.tsbuildinfo +1 -1
- package/dist/browser/{HubSpotAppConnect-BW45gyDs.js → HubSpotAppConnect-721kYr9d.js} +17 -23
- package/dist/browser/HubSpotAppConnect-721kYr9d.js.map +1 -0
- package/dist/browser/{create-vctOhpX9.js → create-DxEyGG-k.js} +336 -100
- package/dist/browser/create-DxEyGG-k.js.map +1 -0
- package/dist/browser/index.d.ts +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/browser/react/lovable.d.ts +9 -2
- package/dist/browser/react/lovable.js +7 -4
- package/dist/browser/react/lovable.js.map +1 -1
- package/dist/browser/react.d.ts +2 -3
- package/dist/browser/react.js +1 -1
- package/dist/browser/{types-rTQw6A54.d.ts → types-C3wed8dU.d.ts} +52 -7
- package/dist/server/api-client-core/apis/account/account-info-types.generated.d.ts +73 -85
- package/dist/server/api-client-core/apis/account/account-info.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/account/account-info.generated.js +4 -3
- package/dist/server/api-client-core/apis/account/account-info.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/account/audit-logs-types.generated.d.ts +203 -215
- package/dist/server/api-client-core/apis/account/audit-logs.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/account/audit-logs.generated.js +4 -3
- package/dist/server/api-client-core/apis/account/audit-logs.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/auth/oauth-types.generated.d.ts +78 -90
- package/dist/server/api-client-core/apis/auth/oauth.generated.d.ts +1 -1
- package/dist/server/api-client-core/apis/auth/oauth.generated.js +3 -2
- package/dist/server/api-client-core/apis/auth/oauth.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/automation/actions-types.generated.d.ts +779 -794
- package/dist/server/api-client-core/apis/automation/actions.generated.d.ts +6 -3
- package/dist/server/api-client-core/apis/automation/actions.generated.js +101 -102
- package/dist/server/api-client-core/apis/automation/actions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/automation/sequences-types.generated.d.ts +370 -382
- package/dist/server/api-client-core/apis/automation/sequences.generated.d.ts +1 -1
- package/dist/server/api-client-core/apis/automation/sequences.generated.js +3 -2
- package/dist/server/api-client-core/apis/automation/sequences.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/business-units-types.generated.d.ts +43 -55
- package/dist/server/api-client-core/apis/business-units.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/business-units.generated.js +4 -3
- package/dist/server/api-client-core/apis/business-units.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/authors-types.generated.d.ts +420 -445
- package/dist/server/api-client-core/apis/cms/authors.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/cms/authors.generated.js +155 -158
- package/dist/server/api-client-core/apis/cms/authors.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/blog-settings-types.generated.d.ts +270 -295
- package/dist/server/api-client-core/apis/cms/blog-settings.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/cms/blog-settings.generated.js +35 -38
- package/dist/server/api-client-core/apis/cms/blog-settings.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/cms-content-audit-types.generated.d.ts +107 -131
- package/dist/server/api-client-core/apis/cms/cms-content-audit.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/cms/cms-content-audit.generated.js +6 -5
- package/dist/server/api-client-core/apis/cms/cms-content-audit.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/domains-types.generated.d.ts +155 -167
- package/dist/server/api-client-core/apis/cms/domains.generated.d.ts +2 -2
- package/dist/server/api-client-core/apis/cms/domains.generated.js +3 -2
- package/dist/server/api-client-core/apis/cms/domains.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/hubdb-types.generated.d.ts +876 -889
- package/dist/server/api-client-core/apis/cms/hubdb.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/cms/hubdb.generated.js +184 -185
- package/dist/server/api-client-core/apis/cms/hubdb.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/media-bridge-types.generated.d.ts +1550 -1575
- package/dist/server/api-client-core/apis/cms/media-bridge.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/cms/media-bridge.generated.js +161 -164
- package/dist/server/api-client-core/apis/cms/media-bridge.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/pages-types.generated.d.ts +1583 -1547
- package/dist/server/api-client-core/apis/cms/pages.generated.d.ts +15 -3
- package/dist/server/api-client-core/apis/cms/pages.generated.js +335 -326
- package/dist/server/api-client-core/apis/cms/pages.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/posts-types.generated.d.ts +900 -904
- package/dist/server/api-client-core/apis/cms/posts.generated.d.ts +7 -3
- package/dist/server/api-client-core/apis/cms/posts.generated.js +197 -196
- package/dist/server/api-client-core/apis/cms/posts.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/site-search-types.generated.d.ts +162 -174
- package/dist/server/api-client-core/apis/cms/site-search.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/cms/site-search.generated.js +4 -3
- package/dist/server/api-client-core/apis/cms/site-search.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/source-code-types.generated.d.ts +148 -172
- package/dist/server/api-client-core/apis/cms/source-code.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/cms/source-code.generated.js +40 -43
- package/dist/server/api-client-core/apis/cms/source-code.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/tags-types.generated.d.ts +406 -420
- package/dist/server/api-client-core/apis/cms/tags.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/cms/tags.generated.js +157 -158
- package/dist/server/api-client-core/apis/cms/tags.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/url-mappings-types.generated.d.ts +127 -139
- package/dist/server/api-client-core/apis/cms/url-mappings.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/cms/url-mappings.generated.js +4 -3
- package/dist/server/api-client-core/apis/cms/url-mappings.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/url-redirects-types.generated.d.ts +170 -182
- package/dist/server/api-client-core/apis/cms/url-redirects.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/cms/url-redirects.generated.js +4 -3
- package/dist/server/api-client-core/apis/cms/url-redirects.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/communication-preferences/subscriptions-types.generated.d.ts +728 -742
- package/dist/server/api-client-core/apis/communication-preferences/subscriptions.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/communication-preferences/subscriptions.generated.js +66 -69
- package/dist/server/api-client-core/apis/communication-preferences/subscriptions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/conversations/custom-channels-types.generated.d.ts +445 -471
- package/dist/server/api-client-core/apis/conversations/custom-channels.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/conversations/custom-channels.generated.js +70 -73
- package/dist/server/api-client-core/apis/conversations/custom-channels.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/conversations/visitor-identification-types.generated.d.ts +28 -40
- package/dist/server/api-client-core/apis/conversations/visitor-identification.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/conversations/visitor-identification.generated.js +3 -2
- package/dist/server/api-client-core/apis/conversations/visitor-identification.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/conversations-types.generated.d.ts +768 -781
- package/dist/server/api-client-core/apis/conversations.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/conversations.generated.js +101 -102
- package/dist/server/api-client-core/apis/conversations.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/app-uninstalls-types.generated.d.ts +8 -19
- package/dist/server/api-client-core/apis/crm/app-uninstalls.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/app-uninstalls.generated.js +3 -2
- package/dist/server/api-client-core/apis/crm/app-uninstalls.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/appointments-types.generated.d.ts +887 -891
- package/dist/server/api-client-core/apis/crm/appointments.generated.d.ts +7 -3
- package/dist/server/api-client-core/apis/crm/appointments.generated.js +105 -106
- package/dist/server/api-client-core/apis/crm/appointments.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/associations-schema-types.generated.d.ts +247 -260
- package/dist/server/api-client-core/apis/crm/associations-schema.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/crm/associations-schema.generated.js +48 -49
- package/dist/server/api-client-core/apis/crm/associations-schema.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/associations-types.generated.d.ts +576 -590
- package/dist/server/api-client-core/apis/crm/associations.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/associations.generated.js +71 -72
- package/dist/server/api-client-core/apis/crm/associations.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/calling-extensions-types.generated.d.ts +355 -379
- package/dist/server/api-client-core/apis/crm/calling-extensions.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/calling-extensions.generated.js +34 -37
- package/dist/server/api-client-core/apis/crm/calling-extensions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/calls-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/calls.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/calls.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/calls.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/carts-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/carts.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/carts.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/carts.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/commerce-payments-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/commerce-payments.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/commerce-payments.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/commerce-payments.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/commerce-subscriptions-types.generated.d.ts +752 -766
- package/dist/server/api-client-core/apis/crm/commerce-subscriptions.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/commerce-subscriptions.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/commerce-subscriptions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/communications-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/communications.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/communications.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/communications.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/companies-types.generated.d.ts +769 -795
- package/dist/server/api-client-core/apis/crm/companies.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/companies.generated.js +59 -58
- package/dist/server/api-client-core/apis/crm/companies.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/contacts-types.generated.d.ts +786 -812
- package/dist/server/api-client-core/apis/crm/contacts.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/contacts.generated.js +60 -61
- package/dist/server/api-client-core/apis/crm/contacts.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/contracts-types.generated.d.ts +796 -777
- package/dist/server/api-client-core/apis/crm/contracts.generated.d.ts +8 -3
- package/dist/server/api-client-core/apis/crm/contracts.generated.js +60 -57
- package/dist/server/api-client-core/apis/crm/contracts.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/courses-types.generated.d.ts +758 -772
- package/dist/server/api-client-core/apis/crm/courses.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/courses.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/courses.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/crm-owners-types.generated.d.ts +103 -115
- package/dist/server/api-client-core/apis/crm/crm-owners.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/crm-owners.generated.js +4 -3
- package/dist/server/api-client-core/apis/crm/crm-owners.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/custom-objects-types.generated.d.ts +833 -848
- package/dist/server/api-client-core/apis/crm/custom-objects.generated.d.ts +6 -3
- package/dist/server/api-client-core/apis/crm/custom-objects.generated.js +91 -90
- package/dist/server/api-client-core/apis/crm/custom-objects.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/deal-splits-types.generated.d.ts +158 -170
- package/dist/server/api-client-core/apis/crm/deal-splits.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/deal-splits.generated.js +4 -3
- package/dist/server/api-client-core/apis/crm/deal-splits.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/deals-types.generated.d.ts +771 -785
- package/dist/server/api-client-core/apis/crm/deals.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/deals.generated.js +59 -58
- package/dist/server/api-client-core/apis/crm/deals.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/discounts-types.generated.d.ts +754 -768
- package/dist/server/api-client-core/apis/crm/discounts.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/discounts.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/discounts.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/emails-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/emails.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/emails.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/emails.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/exports-types.generated.d.ts +227 -251
- package/dist/server/api-client-core/apis/crm/exports.generated.d.ts +2 -2
- package/dist/server/api-client-core/apis/crm/exports.generated.js +4 -5
- package/dist/server/api-client-core/apis/crm/exports.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/feedback-submissions-types.generated.d.ts +551 -565
- package/dist/server/api-client-core/apis/crm/feedback-submissions.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/feedback-submissions.generated.js +45 -46
- package/dist/server/api-client-core/apis/crm/feedback-submissions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/fees-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/fees.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/fees.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/fees.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/goal-targets-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/goal-targets.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/goal-targets.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/goal-targets.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/imports-types.generated.d.ts +305 -329
- package/dist/server/api-client-core/apis/crm/imports.generated.d.ts +2 -2
- package/dist/server/api-client-core/apis/crm/imports.generated.js +20 -23
- package/dist/server/api-client-core/apis/crm/imports.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/invoices-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/invoices.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/invoices.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/invoices.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/leads-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/leads.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/leads.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/leads.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/limits-tracking-types.generated.d.ts +251 -263
- package/dist/server/api-client-core/apis/crm/limits-tracking.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/limits-tracking.generated.js +4 -3
- package/dist/server/api-client-core/apis/crm/limits-tracking.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/line-items-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/line-items.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/line-items.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/line-items.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/listings-types.generated.d.ts +758 -772
- package/dist/server/api-client-core/apis/crm/listings.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/listings.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/listings.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/lists-types.generated.d.ts +2075 -2111
- package/dist/server/api-client-core/apis/crm/lists.generated.d.ts +2 -2
- package/dist/server/api-client-core/apis/crm/lists.generated.js +97 -98
- package/dist/server/api-client-core/apis/crm/lists.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/meetings-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/meetings.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/meetings.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/meetings.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/notes-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/notes.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/notes.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/notes.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/object-library-types.generated.d.ts +24 -36
- package/dist/server/api-client-core/apis/crm/object-library.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/object-library.generated.js +4 -3
- package/dist/server/api-client-core/apis/crm/object-library.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/objects-types.generated.d.ts +620 -645
- package/dist/server/api-client-core/apis/crm/objects.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/crm/objects.generated.js +66 -67
- package/dist/server/api-client-core/apis/crm/objects.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/orders-types.generated.d.ts +747 -761
- package/dist/server/api-client-core/apis/crm/orders.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/orders.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/orders.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/partner-clients-types.generated.d.ts +646 -660
- package/dist/server/api-client-core/apis/crm/partner-clients.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/partner-clients.generated.js +63 -62
- package/dist/server/api-client-core/apis/crm/partner-clients.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/partner-services-types.generated.d.ts +646 -660
- package/dist/server/api-client-core/apis/crm/partner-services.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/partner-services.generated.js +63 -62
- package/dist/server/api-client-core/apis/crm/partner-services.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/pipelines-types.generated.d.ts +320 -332
- package/dist/server/api-client-core/apis/crm/pipelines.generated.d.ts +2 -2
- package/dist/server/api-client-core/apis/crm/pipelines.generated.js +3 -2
- package/dist/server/api-client-core/apis/crm/pipelines.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/postal-mail-types.generated.d.ts +744 -758
- package/dist/server/api-client-core/apis/crm/postal-mail.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/postal-mail.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/postal-mail.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/products-types.generated.d.ts +747 -761
- package/dist/server/api-client-core/apis/crm/products.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/products.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/products.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/projects-types.generated.d.ts +761 -787
- package/dist/server/api-client-core/apis/crm/projects.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/projects.generated.js +59 -58
- package/dist/server/api-client-core/apis/crm/projects.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/properties-types.generated.d.ts +526 -528
- package/dist/server/api-client-core/apis/crm/properties.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/properties.generated.js +79 -78
- package/dist/server/api-client-core/apis/crm/properties.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/property-validations-types.generated.d.ts +71 -83
- package/dist/server/api-client-core/apis/crm/property-validations.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/property-validations.generated.js +4 -3
- package/dist/server/api-client-core/apis/crm/property-validations.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/public-app-crm-cards-types.generated.d.ts +409 -433
- package/dist/server/api-client-core/apis/crm/public-app-crm-cards.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/public-app-crm-cards.generated.js +24 -25
- package/dist/server/api-client-core/apis/crm/public-app-crm-cards.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/public-app-feature-flags-types.generated.d.ts +156 -169
- package/dist/server/api-client-core/apis/crm/public-app-feature-flags.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/crm/public-app-feature-flags.generated.js +55 -56
- package/dist/server/api-client-core/apis/crm/public-app-feature-flags.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/quotes-types.generated.d.ts +747 -761
- package/dist/server/api-client-core/apis/crm/quotes.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/quotes.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/quotes.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/schemas-types.generated.d.ts +575 -600
- package/dist/server/api-client-core/apis/crm/schemas.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/crm/schemas.generated.js +33 -34
- package/dist/server/api-client-core/apis/crm/schemas.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/services-types.generated.d.ts +750 -764
- package/dist/server/api-client-core/apis/crm/services.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/services.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/services.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/tasks-types.generated.d.ts +747 -761
- package/dist/server/api-client-core/apis/crm/tasks.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/tasks.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/tasks.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/taxes-types.generated.d.ts +747 -761
- package/dist/server/api-client-core/apis/crm/taxes.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/taxes.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/taxes.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/tickets-types.generated.d.ts +764 -790
- package/dist/server/api-client-core/apis/crm/tickets.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/tickets.generated.js +59 -58
- package/dist/server/api-client-core/apis/crm/tickets.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/timeline-types.generated.d.ts +136 -149
- package/dist/server/api-client-core/apis/crm/timeline.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/crm/timeline.generated.js +5 -6
- package/dist/server/api-client-core/apis/crm/timeline.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/transcriptions-types.generated.d.ts +104 -117
- package/dist/server/api-client-core/apis/crm/transcriptions.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/crm/transcriptions.generated.js +7 -10
- package/dist/server/api-client-core/apis/crm/transcriptions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/users-types.generated.d.ts +747 -761
- package/dist/server/api-client-core/apis/crm/users.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/users.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/users.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/video-conferencing-extension-types.generated.d.ts +28 -40
- package/dist/server/api-client-core/apis/crm/video-conferencing-extension.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/video-conferencing-extension.generated.js +4 -3
- package/dist/server/api-client-core/apis/crm/video-conferencing-extension.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/events/manage-event-definitions-types.generated.d.ts +909 -945
- package/dist/server/api-client-core/apis/events/manage-event-definitions.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/events/manage-event-definitions.generated.js +29 -30
- package/dist/server/api-client-core/apis/events/manage-event-definitions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/events/send-event-completions-types.generated.d.ts +49 -62
- package/dist/server/api-client-core/apis/events/send-event-completions.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/events/send-event-completions.generated.js +4 -5
- package/dist/server/api-client-core/apis/events/send-event-completions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/events-types.generated.d.ts +99 -111
- package/dist/server/api-client-core/apis/events.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/events.generated.js +4 -3
- package/dist/server/api-client-core/apis/events.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/files-types.generated.d.ts +636 -649
- package/dist/server/api-client-core/apis/files.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/files.generated.js +112 -113
- package/dist/server/api-client-core/apis/files.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/marketing/campaigns-public-api-types.generated.d.ts +799 -816
- package/dist/server/api-client-core/apis/marketing/campaigns-public-api.generated.d.ts +8 -3
- package/dist/server/api-client-core/apis/marketing/campaigns-public-api.generated.js +126 -127
- package/dist/server/api-client-core/apis/marketing/campaigns-public-api.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/marketing/marketing-emails-types.generated.d.ts +745 -769
- package/dist/server/api-client-core/apis/marketing/marketing-emails.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/marketing/marketing-emails.generated.js +100 -103
- package/dist/server/api-client-core/apis/marketing/marketing-emails.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/marketing/marketing-events-types.generated.d.ts +1504 -1546
- package/dist/server/api-client-core/apis/marketing/marketing-events.generated.d.ts +9 -3
- package/dist/server/api-client-core/apis/marketing/marketing-events.generated.js +162 -167
- package/dist/server/api-client-core/apis/marketing/marketing-events.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/marketing/single-send-types.generated.d.ts +91 -103
- package/dist/server/api-client-core/apis/marketing/single-send.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/marketing/single-send.generated.js +3 -2
- package/dist/server/api-client-core/apis/marketing/single-send.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/marketing/transactional-single-send-types.generated.d.ts +187 -200
- package/dist/server/api-client-core/apis/marketing/transactional-single-send.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/marketing/transactional-single-send.generated.js +14 -15
- package/dist/server/api-client-core/apis/marketing/transactional-single-send.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/meta/origins-types.generated.d.ts +41 -53
- package/dist/server/api-client-core/apis/meta/origins.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/meta/origins.generated.js +4 -3
- package/dist/server/api-client-core/apis/meta/origins.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/scheduler/meetings-types.generated.d.ts +850 -863
- package/dist/server/api-client-core/apis/scheduler/meetings.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/scheduler/meetings.generated.js +28 -29
- package/dist/server/api-client-core/apis/scheduler/meetings.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/settings/multicurrency-types.generated.d.ts +281 -296
- package/dist/server/api-client-core/apis/settings/multicurrency.generated.d.ts +6 -3
- package/dist/server/api-client-core/apis/settings/multicurrency.generated.js +32 -33
- package/dist/server/api-client-core/apis/settings/multicurrency.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/settings/tax-rates-types.generated.d.ts +71 -83
- package/dist/server/api-client-core/apis/settings/tax-rates.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/settings/tax-rates.generated.js +4 -3
- package/dist/server/api-client-core/apis/settings/tax-rates.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/settings/user-provisioning-types.generated.d.ts +202 -250
- package/dist/server/api-client-core/apis/settings/user-provisioning.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/settings/user-provisioning.generated.js +23 -26
- package/dist/server/api-client-core/apis/settings/user-provisioning.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/webhooks-journal-types.generated.d.ts +490 -526
- package/dist/server/api-client-core/apis/webhooks-journal.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/webhooks-journal.generated.js +65 -70
- package/dist/server/api-client-core/apis/webhooks-journal.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/webhooks-types.generated.d.ts +816 -852
- package/dist/server/api-client-core/apis/webhooks.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/webhooks.generated.js +93 -98
- package/dist/server/api-client-core/apis/webhooks.generated.js.map +1 -1
- package/dist/server/api-client-core/binary-data.js.map +1 -1
- package/dist/server/api-client-core/client.js +5 -1
- package/dist/server/api-client-core/client.js.map +1 -1
- package/dist/server/api-client-core/codegen-helpers/file-op-wrappers.js.map +1 -1
- package/dist/server/api-client-core/errors.js.map +1 -1
- package/dist/server/api-client-core/op.js.map +1 -1
- package/dist/server/api-client-core/pagination.d.ts +2 -2
- package/dist/server/api-client-core/pagination.js +2 -2
- package/dist/server/api-client-core/pagination.js.map +1 -1
- package/dist/server/api-client-core/plugins/fetch-transport.js +33 -9
- package/dist/server/api-client-core/plugins/fetch-transport.js.map +1 -1
- package/dist/server/api-client-core/types.d.ts +1 -1
- package/dist/server/api-client.d.ts +184 -184
- package/dist/server/api-client.js +89 -89
- package/dist/server/constants.js +33 -6
- package/dist/server/constants.js.map +1 -1
- package/dist/server/deno/start.js.map +1 -1
- package/dist/server/hono/hono-request-handler.js +32 -23
- package/dist/server/hono/hono-request-handler.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/auth-complete.js +158 -0
- package/dist/server/hono/hubspot-connect-routes/auth-complete.js.map +1 -0
- package/dist/server/hono/hubspot-connect-routes/auth-init-session.js +25 -12
- package/dist/server/hono/hubspot-connect-routes/auth-init-session.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/auth-logout.js +32 -9
- package/dist/server/hono/hubspot-connect-routes/auth-logout.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/auth-refresh.js +32 -18
- package/dist/server/hono/hubspot-connect-routes/auth-refresh.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/cimd-client-metadata-types.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/cimd-public-routes.js +4 -1
- package/dist/server/hono/hubspot-connect-routes/cimd-public-routes.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/fetch-hubspot-client-metadata.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/hubspot-connect-routes.js +4 -2
- package/dist/server/hono/hubspot-connect-routes/hubspot-connect-routes.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/load-hubspot-connect-routes-env.js +5 -5
- package/dist/server/hono/hubspot-connect-routes/load-hubspot-connect-routes-env.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/oauth-client.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/utils.js +53 -6
- package/dist/server/hono/hubspot-connect-routes/utils.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/whoami.js +51 -0
- package/dist/server/hono/hubspot-connect-routes/whoami.js.map +1 -0
- package/dist/server/hono/types.d.ts +9 -10
- package/dist/server/hono/utils/cookie-utils.js +2 -1
- package/dist/server/hono/utils/cookie-utils.js.map +1 -1
- package/dist/server/hono/utils/cors-middleware.js +85 -0
- package/dist/server/hono/utils/cors-middleware.js.map +1 -0
- package/dist/server/import-app-keys.js.map +1 -1
- package/dist/server/lovable/create-app-function-start.d.ts +1 -1
- package/dist/server/lovable/create-app-function-start.js +4 -6
- package/dist/server/lovable/create-app-function-start.js.map +1 -1
- package/dist/server/lovable/hubspot-connect/index.js.map +1 -1
- package/dist/server/lovable/hubspot-connect/run-hubspot-connect-lovable-server.js +14 -15
- package/dist/server/lovable/hubspot-connect/run-hubspot-connect-lovable-server.js.map +1 -1
- package/dist/server/sanitize-request.js +14 -11
- package/dist/server/sanitize-request.js.map +1 -1
- package/dist/server/secure-start-core.js +4 -5
- package/dist/server/secure-start-core.js.map +1 -1
- package/dist/server/shared/constants.js +22 -9
- package/dist/server/shared/constants.js.map +1 -1
- package/dist/server/shared/encoding/base64.js.map +1 -1
- package/dist/server/shared/encoding/sha256.js.map +1 -1
- package/dist/server/shared/logger.js.map +1 -1
- package/dist/server/types.d.ts +1 -35
- package/dist/server/utils/cookie-utils.js.map +1 -1
- package/dist/server/utils/dpop-utils.js.map +1 -1
- package/dist/server/utils/env-utils.js +60 -7
- package/dist/server/utils/env-utils.js.map +1 -1
- package/dist/server/utils/hubspot-dpop-auth-headers.js +38 -0
- package/dist/server/utils/hubspot-dpop-auth-headers.js.map +1 -0
- package/dist/server/utils/jwk-utils.js.map +1 -1
- package/dist/server/utils/jwt-utils.js.map +1 -1
- package/package.json +15 -21
- package/src/browser/app-connect-controller/README.md +5 -2
- package/src/browser/app-connect-controller/connect-start.test.ts +157 -0
- package/src/browser/app-connect-controller/connect-start.ts +18 -3
- package/src/browser/app-connect-controller/constants.ts +6 -4
- package/src/browser/app-connect-controller/create.ts +8 -2
- package/src/browser/app-connect-controller/disconnect.ts +5 -7
- package/src/browser/app-connect-controller/init.test.ts +275 -0
- package/src/browser/app-connect-controller/init.ts +44 -19
- package/src/browser/app-connect-controller/oauth-complete.test.ts +110 -0
- package/src/browser/app-connect-controller/oauth-complete.ts +53 -0
- package/src/browser/app-connect-controller/oauth-popup.test.ts +239 -0
- package/src/browser/app-connect-controller/oauth-popup.ts +160 -0
- package/src/browser/app-connect-controller/types.ts +3 -0
- package/src/browser/app-connect-controller/utils/iframe-utils.ts +12 -0
- package/src/browser/app-connect-controller/utils/resolve-oauth-connect-mode.test.ts +35 -0
- package/src/browser/app-connect-controller/utils/resolve-oauth-connect-mode.ts +21 -0
- package/src/browser/app-connect-controller/utils/session-utils.test.ts +73 -22
- package/src/browser/app-connect-controller/utils/session-utils.ts +74 -33
- package/src/browser/app-connect-controller/view-state.test.ts +1 -0
- package/src/browser/app-connect-controller/view-state.ts +1 -0
- package/src/browser/index.ts +1 -0
- package/src/browser/react/components/AppConnectHeader/AppConnectHeader.tsx +21 -34
- package/src/browser/react/components/ConnectButton/ConnectButton.tsx +1 -1
- package/src/browser/react/lovable/LovableHubSpotAppConnect.tsx +12 -2
- package/src/browser/types.ts +30 -5
- package/src/server/api-client-core/__tests__/errors.test.ts +309 -0
- package/src/server/api-client-core/__tests__/operation-headers.test.ts +251 -0
- package/src/server/api-client-core/apis/account/account-info-types.generated.ts +74 -88
- package/src/server/api-client-core/apis/account/account-info.generated.ts +2 -4
- package/src/server/api-client-core/apis/account/audit-logs-types.generated.ts +346 -360
- package/src/server/api-client-core/apis/account/audit-logs.generated.ts +2 -4
- package/src/server/api-client-core/apis/auth/oauth-types.generated.ts +81 -99
- package/src/server/api-client-core/apis/auth/oauth.generated.ts +1 -3
- package/src/server/api-client-core/apis/automation/actions-types.generated.ts +1162 -1188
- package/src/server/api-client-core/apis/automation/actions.generated.ts +10 -12
- package/src/server/api-client-core/apis/automation/sequences-types.generated.ts +379 -393
- package/src/server/api-client-core/apis/automation/sequences.generated.ts +1 -3
- package/src/server/api-client-core/apis/business-units-types.generated.ts +43 -59
- package/src/server/api-client-core/apis/business-units.generated.ts +9 -10
- package/src/server/api-client-core/apis/cms/authors-types.generated.ts +3823 -3853
- package/src/server/api-client-core/apis/cms/authors.generated.ts +31 -37
- package/src/server/api-client-core/apis/cms/blog-settings-types.generated.ts +3667 -3696
- package/src/server/api-client-core/apis/cms/blog-settings.generated.ts +46 -51
- package/src/server/api-client-core/apis/cms/cms-content-audit-types.generated.ts +138 -163
- package/src/server/api-client-core/apis/cms/cms-content-audit.generated.ts +2 -10
- package/src/server/api-client-core/apis/cms/domains-types.generated.ts +153 -167
- package/src/server/api-client-core/apis/cms/domains.generated.ts +2 -4
- package/src/server/api-client-core/apis/cms/hubdb-types.generated.ts +1013 -1063
- package/src/server/api-client-core/apis/cms/hubdb.generated.ts +3 -5
- package/src/server/api-client-core/apis/cms/media-bridge-types.generated.ts +8623 -8657
- package/src/server/api-client-core/apis/cms/media-bridge.generated.ts +16 -22
- package/src/server/api-client-core/apis/cms/pages-types.generated.ts +5259 -5272
- package/src/server/api-client-core/apis/cms/pages.generated.ts +262 -226
- package/src/server/api-client-core/apis/cms/posts-types.generated.ts +4420 -4438
- package/src/server/api-client-core/apis/cms/posts.generated.ts +108 -106
- package/src/server/api-client-core/apis/cms/site-search-types.generated.ts +1867 -1881
- package/src/server/api-client-core/apis/cms/site-search.generated.ts +2 -4
- package/src/server/api-client-core/apis/cms/source-code-types.generated.ts +144 -177
- package/src/server/api-client-core/apis/cms/source-code.generated.ts +15 -23
- package/src/server/api-client-core/apis/cms/tags-types.generated.ts +3820 -3845
- package/src/server/api-client-core/apis/cms/tags.generated.ts +80 -82
- package/src/server/api-client-core/apis/cms/url-mappings-types.generated.ts +188 -202
- package/src/server/api-client-core/apis/cms/url-mappings.generated.ts +2 -4
- package/src/server/api-client-core/apis/cms/url-redirects-types.generated.ts +182 -196
- package/src/server/api-client-core/apis/cms/url-redirects.generated.ts +2 -4
- package/src/server/api-client-core/apis/communication-preferences/subscriptions-types.generated.ts +810 -828
- package/src/server/api-client-core/apis/communication-preferences/subscriptions.generated.ts +66 -63
- package/src/server/api-client-core/apis/conversations/custom-channels-types.generated.ts +564 -601
- package/src/server/api-client-core/apis/conversations/custom-channels.generated.ts +90 -86
- package/src/server/api-client-core/apis/conversations/visitor-identification-types.generated.ts +31 -44
- package/src/server/api-client-core/apis/conversations/visitor-identification.generated.ts +6 -8
- package/src/server/api-client-core/apis/conversations-types.generated.ts +955 -991
- package/src/server/api-client-core/apis/conversations.generated.ts +6 -5
- package/src/server/api-client-core/apis/crm/app-uninstalls-types.generated.ts +7 -19
- package/src/server/api-client-core/apis/crm/app-uninstalls.generated.ts +2 -4
- package/src/server/api-client-core/apis/crm/appointments-types.generated.ts +965 -969
- package/src/server/api-client-core/apis/crm/appointments.generated.ts +143 -137
- package/src/server/api-client-core/apis/crm/associations-schema-types.generated.ts +292 -322
- package/src/server/api-client-core/apis/crm/associations-schema.generated.ts +17 -19
- package/src/server/api-client-core/apis/crm/associations-types.generated.ts +657 -675
- package/src/server/api-client-core/apis/crm/associations.generated.ts +70 -70
- package/src/server/api-client-core/apis/crm/calling-extensions-types.generated.ts +417 -441
- package/src/server/api-client-core/apis/crm/calling-extensions.generated.ts +62 -69
- package/src/server/api-client-core/apis/crm/calls-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/calls.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/carts-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/carts.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/commerce-payments-types.generated.ts +847 -856
- package/src/server/api-client-core/apis/crm/commerce-payments.generated.ts +73 -73
- package/src/server/api-client-core/apis/crm/commerce-subscriptions-types.generated.ts +844 -853
- package/src/server/api-client-core/apis/crm/commerce-subscriptions.generated.ts +50 -51
- package/src/server/api-client-core/apis/crm/communications-types.generated.ts +846 -856
- package/src/server/api-client-core/apis/crm/communications.generated.ts +73 -73
- package/src/server/api-client-core/apis/crm/companies-types.generated.ts +859 -885
- package/src/server/api-client-core/apis/crm/companies.generated.ts +44 -50
- package/src/server/api-client-core/apis/crm/contacts-types.generated.ts +875 -907
- package/src/server/api-client-core/apis/crm/contacts.generated.ts +46 -52
- package/src/server/api-client-core/apis/crm/contracts-types.generated.ts +894 -862
- package/src/server/api-client-core/apis/crm/contracts.generated.ts +66 -56
- package/src/server/api-client-core/apis/crm/courses-types.generated.ts +842 -859
- package/src/server/api-client-core/apis/crm/courses.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/crm-owners-types.generated.ts +102 -115
- package/src/server/api-client-core/apis/crm/crm-owners.generated.ts +2 -4
- package/src/server/api-client-core/apis/crm/custom-objects-types.generated.ts +900 -915
- package/src/server/api-client-core/apis/crm/custom-objects.generated.ts +128 -126
- package/src/server/api-client-core/apis/crm/deal-splits-types.generated.ts +157 -170
- package/src/server/api-client-core/apis/crm/deal-splits.generated.ts +2 -4
- package/src/server/api-client-core/apis/crm/deals-types.generated.ts +858 -875
- package/src/server/api-client-core/apis/crm/deals.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/discounts-types.generated.ts +842 -855
- package/src/server/api-client-core/apis/crm/discounts.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/emails-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/emails.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/exports-types.generated.ts +284 -314
- package/src/server/api-client-core/apis/crm/exports.generated.ts +6 -11
- package/src/server/api-client-core/apis/crm/feedback-submissions-types.generated.ts +607 -622
- package/src/server/api-client-core/apis/crm/feedback-submissions.generated.ts +84 -80
- package/src/server/api-client-core/apis/crm/fees-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/fees.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/goal-targets-types.generated.ts +845 -856
- package/src/server/api-client-core/apis/crm/goal-targets.generated.ts +50 -51
- package/src/server/api-client-core/apis/crm/imports-types.generated.ts +663 -692
- package/src/server/api-client-core/apis/crm/imports.generated.ts +2 -7
- package/src/server/api-client-core/apis/crm/invoices-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/invoices.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/leads-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/leads.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/limits-tracking-types.generated.ts +263 -275
- package/src/server/api-client-core/apis/crm/limits-tracking.generated.ts +2 -4
- package/src/server/api-client-core/apis/crm/line-items-types.generated.ts +843 -856
- package/src/server/api-client-core/apis/crm/line-items.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/listings-types.generated.ts +842 -859
- package/src/server/api-client-core/apis/crm/listings.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/lists-types.generated.ts +2794 -2845
- package/src/server/api-client-core/apis/crm/lists.generated.ts +8 -20
- package/src/server/api-client-core/apis/crm/meetings-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/meetings.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/notes-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/notes.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/object-library-types.generated.ts +26 -39
- package/src/server/api-client-core/apis/crm/object-library.generated.ts +2 -4
- package/src/server/api-client-core/apis/crm/objects-types.generated.ts +688 -716
- package/src/server/api-client-core/apis/crm/objects.generated.ts +79 -83
- package/src/server/api-client-core/apis/crm/orders-types.generated.ts +829 -846
- package/src/server/api-client-core/apis/crm/orders.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/partner-clients-types.generated.ts +721 -735
- package/src/server/api-client-core/apis/crm/partner-clients.generated.ts +60 -60
- package/src/server/api-client-core/apis/crm/partner-services-types.generated.ts +720 -734
- package/src/server/api-client-core/apis/crm/partner-services.generated.ts +60 -60
- package/src/server/api-client-core/apis/crm/pipelines-types.generated.ts +366 -388
- package/src/server/api-client-core/apis/crm/pipelines.generated.ts +2 -4
- package/src/server/api-client-core/apis/crm/postal-mail-types.generated.ts +830 -843
- package/src/server/api-client-core/apis/crm/postal-mail.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/products-types.generated.ts +829 -846
- package/src/server/api-client-core/apis/crm/products.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/projects-types.generated.ts +845 -875
- package/src/server/api-client-core/apis/crm/projects.generated.ts +47 -53
- package/src/server/api-client-core/apis/crm/properties-types.generated.ts +623 -626
- package/src/server/api-client-core/apis/crm/properties.generated.ts +33 -28
- package/src/server/api-client-core/apis/crm/property-validations-types.generated.ts +160 -174
- package/src/server/api-client-core/apis/crm/property-validations.generated.ts +2 -6
- package/src/server/api-client-core/apis/crm/public-app-crm-cards-types.generated.ts +467 -494
- package/src/server/api-client-core/apis/crm/public-app-crm-cards.generated.ts +7 -15
- package/src/server/api-client-core/apis/crm/public-app-feature-flags-types.generated.ts +166 -177
- package/src/server/api-client-core/apis/crm/public-app-feature-flags.generated.ts +6 -8
- package/src/server/api-client-core/apis/crm/quotes-types.generated.ts +829 -846
- package/src/server/api-client-core/apis/crm/quotes.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/schemas-types.generated.ts +613 -640
- package/src/server/api-client-core/apis/crm/schemas.generated.ts +8 -14
- package/src/server/api-client-core/apis/crm/services-types.generated.ts +832 -849
- package/src/server/api-client-core/apis/crm/services.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/tasks-types.generated.ts +829 -846
- package/src/server/api-client-core/apis/crm/tasks.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/taxes-types.generated.ts +829 -846
- package/src/server/api-client-core/apis/crm/taxes.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/tickets-types.generated.ts +848 -878
- package/src/server/api-client-core/apis/crm/tickets.generated.ts +47 -53
- package/src/server/api-client-core/apis/crm/timeline-types.generated.ts +144 -161
- package/src/server/api-client-core/apis/crm/timeline.generated.ts +6 -8
- package/src/server/api-client-core/apis/crm/transcriptions-types.generated.ts +149 -164
- package/src/server/api-client-core/apis/crm/transcriptions.generated.ts +22 -22
- package/src/server/api-client-core/apis/crm/users-types.generated.ts +829 -846
- package/src/server/api-client-core/apis/crm/users.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/video-conferencing-extension-types.generated.ts +29 -42
- package/src/server/api-client-core/apis/crm/video-conferencing-extension.generated.ts +17 -19
- package/src/server/api-client-core/apis/events/manage-event-definitions-types.generated.ts +1509 -1558
- package/src/server/api-client-core/apis/events/manage-event-definitions.generated.ts +55 -65
- package/src/server/api-client-core/apis/events/send-event-completions-types.generated.ts +51 -68
- package/src/server/api-client-core/apis/events/send-event-completions.generated.ts +10 -10
- package/src/server/api-client-core/apis/events-types.generated.ts +97 -110
- package/src/server/api-client-core/apis/events.generated.ts +2 -4
- package/src/server/api-client-core/apis/files-types.generated.ts +727 -757
- package/src/server/api-client-core/apis/files.generated.ts +3 -5
- package/src/server/api-client-core/apis/marketing/campaigns-public-api-types.generated.ts +1221 -1234
- package/src/server/api-client-core/apis/marketing/campaigns-public-api.generated.ts +45 -47
- package/src/server/api-client-core/apis/marketing/marketing-emails-types.generated.ts +3704 -3733
- package/src/server/api-client-core/apis/marketing/marketing-emails.generated.ts +44 -52
- package/src/server/api-client-core/apis/marketing/marketing-events-types.generated.ts +1787 -1848
- package/src/server/api-client-core/apis/marketing/marketing-events.generated.ts +236 -241
- package/src/server/api-client-core/apis/marketing/single-send-types.generated.ts +142 -155
- package/src/server/api-client-core/apis/marketing/single-send.generated.ts +2 -6
- package/src/server/api-client-core/apis/marketing/transactional-single-send-types.generated.ts +253 -269
- package/src/server/api-client-core/apis/marketing/transactional-single-send.generated.ts +32 -31
- package/src/server/api-client-core/apis/meta/origins-types.generated.ts +40 -56
- package/src/server/api-client-core/apis/meta/origins.generated.ts +2 -4
- package/src/server/api-client-core/apis/scheduler/meetings-types.generated.ts +1001 -1014
- package/src/server/api-client-core/apis/scheduler/meetings.generated.ts +6 -8
- package/src/server/api-client-core/apis/settings/multicurrency-types.generated.ts +1906 -1912
- package/src/server/api-client-core/apis/settings/multicurrency.generated.ts +64 -63
- package/src/server/api-client-core/apis/settings/tax-rates-types.generated.ts +71 -85
- package/src/server/api-client-core/apis/settings/tax-rates.generated.ts +2 -4
- package/src/server/api-client-core/apis/settings/user-provisioning-types.generated.ts +207 -257
- package/src/server/api-client-core/apis/settings/user-provisioning.generated.ts +8 -24
- package/src/server/api-client-core/apis/webhooks-journal-types.generated.ts +740 -771
- package/src/server/api-client-core/apis/webhooks-journal.generated.ts +47 -59
- package/src/server/api-client-core/apis/webhooks-types.generated.ts +1194 -1228
- package/src/server/api-client-core/apis/webhooks.generated.ts +52 -64
- package/src/server/api-client-core/client.ts +5 -1
- package/src/server/api-client-core/pagination.ts +2 -2
- package/src/server/api-client-core/plugins/fetch-transport.ts +70 -12
- package/src/server/api-client-core/types.ts +1 -1
- package/src/server/constants.ts +29 -4
- package/src/server/hono/hono-request-handler.ts +68 -27
- package/src/server/hono/hubspot-connect-routes/auth-complete.test.ts +394 -0
- package/src/server/hono/hubspot-connect-routes/{auth-callback.ts → auth-complete.ts} +81 -30
- package/src/server/hono/hubspot-connect-routes/auth-init-session.test.ts +114 -30
- package/src/server/hono/hubspot-connect-routes/auth-init-session.ts +35 -10
- package/src/server/hono/hubspot-connect-routes/auth-logout.test.ts +13 -0
- package/src/server/hono/hubspot-connect-routes/auth-logout.ts +39 -10
- package/src/server/hono/hubspot-connect-routes/auth-refresh.test.ts +6 -0
- package/src/server/hono/hubspot-connect-routes/auth-refresh.ts +24 -9
- package/src/server/hono/hubspot-connect-routes/cimd-public-routes.test.ts +7 -6
- package/src/server/hono/hubspot-connect-routes/cimd-public-routes.ts +5 -1
- package/src/server/hono/hubspot-connect-routes/hubspot-connect-routes.ts +11 -3
- package/src/server/hono/hubspot-connect-routes/load-hubspot-connect-routes-env.test.ts +17 -24
- package/src/server/hono/hubspot-connect-routes/load-hubspot-connect-routes-env.ts +8 -8
- package/src/server/hono/hubspot-connect-routes/utils.test.ts +16 -46
- package/src/server/hono/hubspot-connect-routes/utils.ts +61 -5
- package/src/server/hono/hubspot-connect-routes/whoami.ts +74 -0
- package/src/server/hono/types.ts +11 -10
- package/src/server/hono/utils/cookie-utils.ts +27 -2
- package/src/server/hono/utils/cors-middleware.test.ts +80 -0
- package/src/server/hono/utils/cors-middleware.ts +95 -0
- package/src/server/lovable/create-app-function-start.ts +4 -7
- package/src/server/lovable/hubspot-connect/run-hubspot-connect-lovable-server.ts +21 -16
- package/src/server/sanitize-request.ts +15 -12
- package/src/server/secure-start-core.ts +7 -6
- package/src/server/types.ts +2 -38
- package/src/server/utils/env-utils.test.ts +140 -12
- package/src/server/utils/env-utils.ts +80 -6
- package/src/server/utils/hubspot-dpop-auth-headers.test.ts +43 -0
- package/src/server/utils/hubspot-dpop-auth-headers.ts +48 -0
- package/src/shared/constants.ts +40 -3
- package/src/shared/wire-types.ts +49 -0
- package/dist/browser/HubSpotAppConnect-BW45gyDs.js.map +0 -1
- package/dist/browser/create-vctOhpX9.js.map +0 -1
- package/dist/server/hono/hubspot-connect-routes/auth-callback.js +0 -125
- package/dist/server/hono/hubspot-connect-routes/auth-callback.js.map +0 -1
- package/dist/server/proxy.js +0 -68
- package/dist/server/proxy.js.map +0 -1
- package/src/server/hono/hubspot-connect-routes/auth-callback.test.ts +0 -225
- package/src/server/proxy.test.ts +0 -80
- package/src/server/proxy.ts +0 -116
|
@@ -2,928 +2,736 @@
|
|
|
2
2
|
|
|
3
3
|
import type { Operation } from '../../types.ts';
|
|
4
4
|
|
|
5
|
-
export namespace
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
export namespace CRMAppointmentsSchemas {
|
|
6
|
+
/**
|
|
7
|
+
* Contains the id and type of an association
|
|
8
|
+
*/
|
|
9
|
+
export interface AssociatedId {
|
|
10
|
+
/**
|
|
11
|
+
* The ID for the association type.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* The type of associations.
|
|
16
|
+
*/
|
|
17
|
+
type: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Defines the type, direction, and details of the relationship between two CRM objects.
|
|
22
|
+
*/
|
|
23
|
+
export interface AssociationSpec {
|
|
24
|
+
/**
|
|
25
|
+
* The category of the association, such as "HUBSPOT_DEFINED".
|
|
26
|
+
*/
|
|
27
|
+
associationCategory:
|
|
28
|
+
| 'HUBSPOT_DEFINED'
|
|
29
|
+
| 'INTEGRATOR_DEFINED'
|
|
30
|
+
| 'USER_DEFINED'
|
|
31
|
+
| 'WORK';
|
|
32
|
+
/**
|
|
33
|
+
* The ID representing the specific type of association.
|
|
34
|
+
*/
|
|
35
|
+
associationTypeId: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Defines the type, direction, and details of the relationship between two CRM objects.
|
|
40
|
+
*/
|
|
41
|
+
export interface AssociationSpecWithLabel {
|
|
42
|
+
/**
|
|
43
|
+
* The category of the association, such as 'HUBSPOT_DEFINED', 'USER_DEFINED', or 'INTEGRATOR_DEFINED'.
|
|
44
|
+
*/
|
|
45
|
+
category:
|
|
46
|
+
| 'HUBSPOT_DEFINED'
|
|
47
|
+
| 'INTEGRATOR_DEFINED'
|
|
48
|
+
| 'USER_DEFINED'
|
|
49
|
+
| 'WORK';
|
|
50
|
+
/**
|
|
51
|
+
* The label associated with the type of association.
|
|
52
|
+
*/
|
|
53
|
+
label?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The ID representing the specific type of association.
|
|
56
|
+
*/
|
|
57
|
+
typeId: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface BatchInputSimplePublicObjectBatchInput {
|
|
61
|
+
inputs: SimplePublicObjectBatchInput[];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface BatchInputSimplePublicObjectBatchInputForCreate {
|
|
65
|
+
inputs: SimplePublicObjectBatchInputForCreate[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface BatchInputSimplePublicObjectBatchInputUpsert {
|
|
69
|
+
inputs: SimplePublicObjectBatchInputUpsert[];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface BatchInputSimplePublicObjectId {
|
|
73
|
+
inputs: SimplePublicObjectId[];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Specifies the input for reading a batch of CRM objects, including arrays of object IDs, requested property names (with optional history), and an optional unique identifying property.
|
|
78
|
+
*/
|
|
79
|
+
export interface BatchReadInputSimplePublicObjectId {
|
|
80
|
+
/**
|
|
81
|
+
* When using a custom unique value property to retrieve records, the name of the property. Do not include this parameter if retrieving by record ID.
|
|
82
|
+
*/
|
|
83
|
+
idProperty?: string;
|
|
84
|
+
inputs: SimplePublicObjectId[];
|
|
85
|
+
/**
|
|
86
|
+
* Key-value pairs for setting properties for the new object.
|
|
87
|
+
*/
|
|
88
|
+
properties: string[];
|
|
89
|
+
/**
|
|
90
|
+
* Key-value pairs for setting properties for the new object and their histories.
|
|
91
|
+
*/
|
|
92
|
+
propertiesWithHistory: string[];
|
|
93
|
+
}
|
|
11
94
|
|
|
12
|
-
|
|
95
|
+
/**
|
|
96
|
+
* The response returned after performing a batch operation on associations.
|
|
97
|
+
*/
|
|
98
|
+
export interface BatchResponsePublicDefaultAssociation {
|
|
99
|
+
/**
|
|
100
|
+
* The timestamp when the batch processing was completed, in ISO 8601 format.
|
|
101
|
+
*/
|
|
102
|
+
completedAt: string;
|
|
103
|
+
errors?: StandardError[];
|
|
104
|
+
/**
|
|
105
|
+
* An object containing relevant links related to the batch request.
|
|
106
|
+
*/
|
|
107
|
+
links?: Record<string, string>;
|
|
108
|
+
/**
|
|
109
|
+
* The number of errors that occurred during the batch operation.
|
|
110
|
+
*/
|
|
111
|
+
numErrors?: number;
|
|
112
|
+
/**
|
|
113
|
+
* The timestamp when the batch request was initially made, in ISO 8601 format.
|
|
114
|
+
*/
|
|
115
|
+
requestedAt?: string;
|
|
116
|
+
results: PublicDefaultAssociation[];
|
|
117
|
+
/**
|
|
118
|
+
* The timestamp when the batch processing began, in ISO 8601 format.
|
|
119
|
+
*/
|
|
120
|
+
startedAt: string;
|
|
121
|
+
/**
|
|
122
|
+
* The status of the batch processing request: "PENDING", "PROCESSING", "CANCELLED", or "COMPLETE".
|
|
123
|
+
*/
|
|
124
|
+
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
125
|
+
}
|
|
13
126
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
127
|
+
/**
|
|
128
|
+
* A public object batch response object
|
|
129
|
+
*/
|
|
130
|
+
export interface BatchResponseSimplePublicObject {
|
|
131
|
+
/**
|
|
132
|
+
* The timestamp when the batch processing was completed, in ISO 8601 format.
|
|
133
|
+
*/
|
|
134
|
+
completedAt: string;
|
|
135
|
+
/**
|
|
136
|
+
* An object containing relevant links related to the batch request.
|
|
137
|
+
*/
|
|
138
|
+
links?: Record<string, string>;
|
|
139
|
+
/**
|
|
140
|
+
* The timestamp when the batch request was initially made, in ISO 8601 format.
|
|
141
|
+
*/
|
|
142
|
+
requestedAt?: string;
|
|
143
|
+
results: SimplePublicObject[];
|
|
144
|
+
/**
|
|
145
|
+
* The timestamp when the batch processing began, in ISO 8601 format.
|
|
146
|
+
*/
|
|
147
|
+
startedAt: string;
|
|
148
|
+
/**
|
|
149
|
+
* The status of the batch processing request: "PENDING", "PROCESSING", "CANCELLED", or "COMPLETE"
|
|
150
|
+
*/
|
|
151
|
+
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
152
|
+
}
|
|
18
153
|
|
|
19
|
-
|
|
154
|
+
/**
|
|
155
|
+
* Represents the result of a batch upsert operation, including the operation’s status, timestamps, and a list of successfully created or updated objects.
|
|
156
|
+
*/
|
|
157
|
+
export interface BatchResponseSimplePublicUpsertObject {
|
|
158
|
+
/**
|
|
159
|
+
* The timestamp when the batch process was completed, in ISO 8601 format.
|
|
160
|
+
*/
|
|
161
|
+
completedAt: string;
|
|
162
|
+
/**
|
|
163
|
+
* An object containing relevant links related to the batch request.
|
|
164
|
+
*/
|
|
165
|
+
links?: Record<string, string>;
|
|
166
|
+
/**
|
|
167
|
+
* The timestamp when the batch process was initiated, in ISO 8601 format.
|
|
168
|
+
*/
|
|
169
|
+
requestedAt?: string;
|
|
170
|
+
results: SimplePublicUpsertObject[];
|
|
171
|
+
/**
|
|
172
|
+
* The timestamp when the batch process began execution, in ISO 8601 format.
|
|
173
|
+
*/
|
|
174
|
+
startedAt: string;
|
|
175
|
+
/**
|
|
176
|
+
* The status of the batch processing request. Can be: "PENDING", "PROCESSING", "CANCELED", or "COMPLETE".
|
|
177
|
+
*/
|
|
178
|
+
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
20
179
|
}
|
|
21
180
|
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
objectType: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type CreateOutput = Schemas.SimplePublicObject;
|
|
29
|
-
|
|
30
|
-
export interface Delete2Input {
|
|
31
|
-
objectId: string;
|
|
32
|
-
objectType: string;
|
|
33
|
-
toObjectId: string;
|
|
34
|
-
toObjectType: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type Delete2Output = void;
|
|
38
|
-
|
|
39
|
-
export interface DeleteInput {
|
|
40
|
-
objectId: string;
|
|
41
|
-
objectType: string;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export type DeleteOutput = void;
|
|
45
|
-
|
|
46
|
-
export interface GetInput {
|
|
47
|
-
/**
|
|
48
|
-
* Whether to return only results that have been archived.
|
|
49
|
-
*/
|
|
50
|
-
archived?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
53
|
-
*/
|
|
54
|
-
associations?: string[];
|
|
55
|
-
/**
|
|
56
|
-
* The name of a property whose values are unique for this object type
|
|
57
|
-
*/
|
|
58
|
-
idProperty?: string;
|
|
59
|
-
objectId: string;
|
|
60
|
-
objectType: string;
|
|
61
|
-
/**
|
|
62
|
-
* A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
63
|
-
*/
|
|
64
|
-
properties?: string[];
|
|
65
|
-
/**
|
|
66
|
-
* A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
67
|
-
*/
|
|
68
|
-
propertiesWithHistory?: string[];
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export type GetOutput = Schemas.SimplePublicObjectWithAssociations;
|
|
72
|
-
|
|
73
|
-
export interface List2Input {
|
|
74
|
-
/**
|
|
75
|
-
* The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
|
76
|
-
*/
|
|
77
|
-
after?: string;
|
|
78
|
-
/**
|
|
79
|
-
* The maximum number of results to display per page.
|
|
80
|
-
*/
|
|
81
|
-
limit?: number;
|
|
82
|
-
objectId: string;
|
|
83
|
-
objectType: string;
|
|
84
|
-
toObjectType: string;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export type List2Output =
|
|
88
|
-
Schemas.CollectionResponseMultiAssociatedObjectWithLabelForwardPaging;
|
|
89
|
-
|
|
90
|
-
export interface ListInput {
|
|
91
|
-
/**
|
|
92
|
-
* The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
|
93
|
-
*/
|
|
94
|
-
after?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Whether to return only results that have been archived.
|
|
97
|
-
*/
|
|
98
|
-
archived?: boolean;
|
|
99
|
-
/**
|
|
100
|
-
* A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
101
|
-
*/
|
|
102
|
-
associations?: string[];
|
|
103
|
-
/**
|
|
104
|
-
* The maximum number of results to display per page.
|
|
105
|
-
*/
|
|
106
|
-
limit?: number;
|
|
107
|
-
objectType: string;
|
|
108
|
-
/**
|
|
109
|
-
* A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
110
|
-
*/
|
|
111
|
-
properties?: string[];
|
|
112
|
-
/**
|
|
113
|
-
* A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
|
|
114
|
-
*/
|
|
115
|
-
propertiesWithHistory?: string[];
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export type ListOutput =
|
|
119
|
-
Schemas.CollectionResponseSimplePublicObjectWithAssociationsForwardPaging;
|
|
120
|
-
|
|
121
|
-
export interface UpdateAssociationLabelsInput {
|
|
122
|
-
data: Schemas.AssociationSpec[];
|
|
123
|
-
objectId: string;
|
|
124
|
-
objectType: string;
|
|
125
|
-
toObjectId: string;
|
|
126
|
-
toObjectType: string;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export type UpdateAssociationLabelsOutput = Schemas.LabelsBetweenObjectPair;
|
|
130
|
-
|
|
131
|
-
export interface UpdateInput {
|
|
132
|
-
data: Schemas.SimplePublicObjectInput;
|
|
133
|
-
/**
|
|
134
|
-
* The name of a property whose values are unique for this object type
|
|
135
|
-
*/
|
|
136
|
-
idProperty?: string;
|
|
137
|
-
objectId: string;
|
|
138
|
-
objectType: string;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export type UpdateOutput = Schemas.SimplePublicObject;
|
|
181
|
+
export interface CollectionResponseAssociatedId {
|
|
182
|
+
paging?: Paging;
|
|
183
|
+
results: AssociatedId[];
|
|
142
184
|
}
|
|
143
185
|
|
|
144
|
-
export
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
186
|
+
export interface CollectionResponseMultiAssociatedObjectWithLabelForwardPaging {
|
|
187
|
+
paging?: ForwardPaging;
|
|
188
|
+
results: MultiAssociatedObjectWithLabel[];
|
|
189
|
+
}
|
|
149
190
|
|
|
150
|
-
|
|
191
|
+
export interface CollectionResponseSimplePublicObjectWithAssociationsForwardPaging {
|
|
192
|
+
paging?: ForwardPaging;
|
|
193
|
+
results: SimplePublicObjectWithAssociations[];
|
|
194
|
+
}
|
|
151
195
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
196
|
+
/**
|
|
197
|
+
* Represents a list of simple objects returned from an API request, along with the total count of objects available.
|
|
198
|
+
*/
|
|
199
|
+
export interface CollectionResponseWithTotalSimplePublicObject {
|
|
200
|
+
paging?: Paging;
|
|
201
|
+
results: SimplePublicObject[];
|
|
202
|
+
/**
|
|
203
|
+
* The number of available results
|
|
204
|
+
*/
|
|
205
|
+
total: number;
|
|
206
|
+
}
|
|
158
207
|
|
|
159
|
-
|
|
208
|
+
export interface ErrorDetail {
|
|
209
|
+
/**
|
|
210
|
+
* The status code associated with the error detail
|
|
211
|
+
*/
|
|
212
|
+
code?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Context about the error condition
|
|
215
|
+
*/
|
|
216
|
+
context?: Record<string, string[]>;
|
|
217
|
+
/**
|
|
218
|
+
* The name of the field or parameter in which the error was found.
|
|
219
|
+
*/
|
|
220
|
+
in?: string;
|
|
221
|
+
/**
|
|
222
|
+
* A human readable message describing the error along with remediation steps where appropriate
|
|
223
|
+
*/
|
|
224
|
+
message: string;
|
|
225
|
+
/**
|
|
226
|
+
* A specific category that contains more specific detail about the error
|
|
227
|
+
*/
|
|
228
|
+
subCategory?: string;
|
|
229
|
+
}
|
|
160
230
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
231
|
+
/**
|
|
232
|
+
* Defines a single condition for searching CRM objects, specifying the property to filter on, the operator to use (such as equals, greater than, or contains), and the value(s) to compare against.
|
|
233
|
+
*/
|
|
234
|
+
export interface Filter {
|
|
235
|
+
/**
|
|
236
|
+
* The upper boundary value when using ranged-based filters.
|
|
237
|
+
*/
|
|
238
|
+
highValue?: string;
|
|
239
|
+
/**
|
|
240
|
+
* null
|
|
241
|
+
*/
|
|
242
|
+
operator:
|
|
243
|
+
| 'BETWEEN'
|
|
244
|
+
| 'CONTAINS_TOKEN'
|
|
245
|
+
| 'EQ'
|
|
246
|
+
| 'GT'
|
|
247
|
+
| 'GTE'
|
|
248
|
+
| 'HAS_PROPERTY'
|
|
249
|
+
| 'IN'
|
|
250
|
+
| 'LT'
|
|
251
|
+
| 'LTE'
|
|
252
|
+
| 'NEQ'
|
|
253
|
+
| 'NOT_CONTAINS_TOKEN'
|
|
254
|
+
| 'NOT_HAS_PROPERTY'
|
|
255
|
+
| 'NOT_IN';
|
|
256
|
+
/**
|
|
257
|
+
* The name of the property to apply the filter to.
|
|
258
|
+
*/
|
|
259
|
+
propertyName: string;
|
|
260
|
+
/**
|
|
261
|
+
* The value to match against the property.
|
|
262
|
+
*/
|
|
263
|
+
value?: string;
|
|
264
|
+
/**
|
|
265
|
+
* The values to match against the property.
|
|
266
|
+
*/
|
|
267
|
+
values?: string[];
|
|
268
|
+
}
|
|
165
269
|
|
|
166
|
-
|
|
270
|
+
export interface FilterGroup {
|
|
271
|
+
filters: Filter[];
|
|
272
|
+
}
|
|
167
273
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
*/
|
|
172
|
-
archived?: boolean;
|
|
173
|
-
data: Schemas.BatchReadInputSimplePublicObjectId;
|
|
174
|
-
objectType: string;
|
|
175
|
-
}
|
|
274
|
+
export interface ForwardPaging {
|
|
275
|
+
next?: NextPage;
|
|
276
|
+
}
|
|
176
277
|
|
|
177
|
-
|
|
278
|
+
/**
|
|
279
|
+
* The relationship descriptors applicable between two object types.
|
|
280
|
+
*/
|
|
281
|
+
export interface LabelsBetweenObjectPair {
|
|
282
|
+
/**
|
|
283
|
+
* The ID of the originating object in the label association.
|
|
284
|
+
*/
|
|
285
|
+
fromObjectId: string;
|
|
286
|
+
/**
|
|
287
|
+
* The type ID of the originating object in the label association.
|
|
288
|
+
*/
|
|
289
|
+
fromObjectTypeId: string;
|
|
290
|
+
/**
|
|
291
|
+
* An array of labels associated with the object pair.
|
|
292
|
+
*/
|
|
293
|
+
labels: string[];
|
|
294
|
+
/**
|
|
295
|
+
* The ID of the target object in the label association.
|
|
296
|
+
*/
|
|
297
|
+
toObjectId: string;
|
|
298
|
+
/**
|
|
299
|
+
* The type ID of the target object in the label association.
|
|
300
|
+
*/
|
|
301
|
+
toObjectTypeId: string;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Represents an object that is associated with multiple other objects, with optional context.
|
|
306
|
+
*/
|
|
307
|
+
export interface MultiAssociatedObjectWithLabel {
|
|
308
|
+
associationTypes: AssociationSpecWithLabel[];
|
|
309
|
+
/**
|
|
310
|
+
* The ID of the target object in the association.
|
|
311
|
+
*/
|
|
312
|
+
toObjectId: string;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Specifies the paging information needed to retrieve the next set of results in a paginated API response
|
|
317
|
+
*/
|
|
318
|
+
export interface NextPage {
|
|
319
|
+
/**
|
|
320
|
+
* A paging cursor token for retrieving subsequent pages.
|
|
321
|
+
*/
|
|
322
|
+
after: string;
|
|
323
|
+
/**
|
|
324
|
+
* A URL that can be used to retrieve the next page results.
|
|
325
|
+
*/
|
|
326
|
+
link?: string;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export interface Paging {
|
|
330
|
+
next?: NextPage;
|
|
331
|
+
prev?: PreviousPage;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* specifies the paging information needed to retrieve the previous set of results in a paginated API response
|
|
336
|
+
*/
|
|
337
|
+
export interface PreviousPage {
|
|
338
|
+
/**
|
|
339
|
+
* A paging cursor token for retrieving previous pages.
|
|
340
|
+
*/
|
|
341
|
+
before: string;
|
|
342
|
+
/**
|
|
343
|
+
* A URL that can be used to retrieve the previous pages' results.
|
|
344
|
+
*/
|
|
345
|
+
link?: string;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export interface PublicAssociationsForObject {
|
|
349
|
+
to: PublicObjectId;
|
|
350
|
+
types: AssociationSpec[];
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export interface PublicDefaultAssociation {
|
|
354
|
+
associationSpec: AssociationSpec;
|
|
355
|
+
from: PublicObjectId;
|
|
356
|
+
to: PublicObjectId;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* An input that contains the information required to process a public GDPR data deletion request.
|
|
361
|
+
*/
|
|
362
|
+
export interface PublicGdprDeleteInput {
|
|
363
|
+
/**
|
|
364
|
+
* The name of a property whose values are unique for this object
|
|
365
|
+
*/
|
|
366
|
+
idProperty?: string;
|
|
367
|
+
/**
|
|
368
|
+
* The unique identifier of the object to be fully purged along with any GDPR-related data.
|
|
369
|
+
*/
|
|
370
|
+
objectId: string;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Input data for merging two records.
|
|
375
|
+
*/
|
|
376
|
+
export interface PublicMergeInput {
|
|
377
|
+
/**
|
|
378
|
+
* The object ID to merge with the primary object.
|
|
379
|
+
*/
|
|
380
|
+
objectIdToMerge: string;
|
|
381
|
+
/**
|
|
382
|
+
* The object ID of the primary object to merge.
|
|
383
|
+
*/
|
|
384
|
+
primaryObjectId: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Contains the Id of a Public Object
|
|
389
|
+
*/
|
|
390
|
+
export interface PublicObjectId {
|
|
391
|
+
/**
|
|
392
|
+
* The unique ID of the object.
|
|
393
|
+
*/
|
|
394
|
+
id: string;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Describes a search request
|
|
399
|
+
*/
|
|
400
|
+
export interface PublicObjectSearchRequest {
|
|
401
|
+
/**
|
|
402
|
+
* A paging cursor token for retrieving subsequent pages.
|
|
403
|
+
*/
|
|
404
|
+
after: string;
|
|
405
|
+
/**
|
|
406
|
+
* Up to 6 groups of filters defining additional query criteria.
|
|
407
|
+
*/
|
|
408
|
+
filterGroups: FilterGroup[];
|
|
409
|
+
/**
|
|
410
|
+
* The maximum results to return, up to 200 objects.
|
|
411
|
+
*/
|
|
412
|
+
limit: number;
|
|
413
|
+
/**
|
|
414
|
+
* A list of property names to include in the response.
|
|
415
|
+
*/
|
|
416
|
+
properties: string[];
|
|
417
|
+
/**
|
|
418
|
+
* The search query string, up to 3000 characters.
|
|
419
|
+
*/
|
|
420
|
+
query?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Specifies sorting order based on object properties.
|
|
423
|
+
*/
|
|
424
|
+
sorts: string[];
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* A simple public object.
|
|
429
|
+
*/
|
|
430
|
+
export interface SimplePublicObject {
|
|
431
|
+
/**
|
|
432
|
+
* Whether the object is archived.
|
|
433
|
+
*/
|
|
434
|
+
archived: boolean;
|
|
435
|
+
/**
|
|
436
|
+
* The timestamp when the object was archived, in ISO 8601 format.
|
|
437
|
+
*/
|
|
438
|
+
archivedAt?: string;
|
|
439
|
+
/**
|
|
440
|
+
* The timestamp when the object was created, in ISO 8601 format.
|
|
441
|
+
*/
|
|
442
|
+
createdAt: string;
|
|
443
|
+
/**
|
|
444
|
+
* The unique ID of the object.
|
|
445
|
+
*/
|
|
446
|
+
id: string;
|
|
447
|
+
/**
|
|
448
|
+
* Unique ID to identify each write operation, which will be returned with any errors to identify which request encountered which error.
|
|
449
|
+
*/
|
|
450
|
+
objectWriteTraceId?: string;
|
|
451
|
+
/**
|
|
452
|
+
* Key-value pairs representing the properties of the object.
|
|
453
|
+
*/
|
|
454
|
+
properties: Record<string, string>;
|
|
455
|
+
/**
|
|
456
|
+
* Key-value pairs representing the properties of the object along with their history.
|
|
457
|
+
*/
|
|
458
|
+
propertiesWithHistory?: Record<string, ValueWithTimestamp[]>;
|
|
459
|
+
/**
|
|
460
|
+
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
461
|
+
*/
|
|
462
|
+
updatedAt: string;
|
|
463
|
+
/**
|
|
464
|
+
* URL to go to the object
|
|
465
|
+
*/
|
|
466
|
+
url?: string;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Contains an array of CRM object records to be processed in a batch operation, each defined by their ID and properties.
|
|
471
|
+
*/
|
|
472
|
+
export interface SimplePublicObjectBatchInput {
|
|
473
|
+
/**
|
|
474
|
+
* The id to be updated. This can be the object id, or the unique property value of the idProperty property
|
|
475
|
+
*/
|
|
476
|
+
id: string;
|
|
477
|
+
/**
|
|
478
|
+
* The name of a property whose values are unique for this object
|
|
479
|
+
*/
|
|
480
|
+
idProperty?: string;
|
|
481
|
+
/**
|
|
482
|
+
* A unique identifier for tracing the request.
|
|
483
|
+
*/
|
|
484
|
+
objectWriteTraceId?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Key-value pairs representing the properties of the object.
|
|
487
|
+
*/
|
|
488
|
+
properties: Record<string, string>;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* An input object that contains a collection of objects to be created together in a batch.
|
|
493
|
+
*/
|
|
494
|
+
export interface SimplePublicObjectBatchInputForCreate {
|
|
495
|
+
associations: PublicAssociationsForObject[];
|
|
496
|
+
/**
|
|
497
|
+
* An identifier for tracing the creation request.
|
|
498
|
+
*/
|
|
499
|
+
objectWriteTraceId?: string;
|
|
500
|
+
/**
|
|
501
|
+
* Key-value pairs representing the properties of the object.
|
|
502
|
+
*/
|
|
503
|
+
properties: Record<string, string>;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Represents an object used in batch upsert operations, containing an object’s unique identifier, its properties, and optionally the unique property name and a write trace ID.
|
|
508
|
+
*/
|
|
509
|
+
export interface SimplePublicObjectBatchInputUpsert {
|
|
510
|
+
/**
|
|
511
|
+
* The unique ID of the object.
|
|
512
|
+
*/
|
|
513
|
+
id: string;
|
|
514
|
+
/**
|
|
515
|
+
* The name of a property whose values are unique for this object
|
|
516
|
+
*/
|
|
517
|
+
idProperty?: string;
|
|
518
|
+
/**
|
|
519
|
+
* An identifier for tracing the creation request.
|
|
520
|
+
*/
|
|
521
|
+
objectWriteTraceId?: string;
|
|
522
|
+
/**
|
|
523
|
+
* Key value pairs representing the properties of the object.
|
|
524
|
+
*/
|
|
525
|
+
properties: Record<string, string>;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Contains the Id of a Public Object
|
|
530
|
+
*/
|
|
531
|
+
export interface SimplePublicObjectId {
|
|
532
|
+
/**
|
|
533
|
+
* The unique ID of the object.
|
|
534
|
+
*/
|
|
535
|
+
id: string;
|
|
536
|
+
}
|
|
178
537
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
538
|
+
/**
|
|
539
|
+
* Represents the input required to create or update a CRM object, containing an object with property names and their corresponding values.
|
|
540
|
+
*/
|
|
541
|
+
export interface SimplePublicObjectInput {
|
|
542
|
+
/**
|
|
543
|
+
* Key value pairs representing the properties of the object.
|
|
544
|
+
*/
|
|
545
|
+
properties: Record<string, string>;
|
|
546
|
+
}
|
|
183
547
|
|
|
184
|
-
|
|
548
|
+
/**
|
|
549
|
+
* Is the input object used to create a new CRM object, containing the properties to be set and optional associations to link the new record with other CRM objects.
|
|
550
|
+
*/
|
|
551
|
+
export interface SimplePublicObjectInputForCreate {
|
|
552
|
+
associations: PublicAssociationsForObject[];
|
|
553
|
+
/**
|
|
554
|
+
* Key-value pairs for setting properties for the new object.
|
|
555
|
+
*/
|
|
556
|
+
properties: Record<string, string>;
|
|
557
|
+
}
|
|
185
558
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
559
|
+
/**
|
|
560
|
+
* Represents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type.
|
|
561
|
+
*/
|
|
562
|
+
export interface SimplePublicObjectWithAssociations {
|
|
563
|
+
/**
|
|
564
|
+
* Whether the object is archived.
|
|
565
|
+
*/
|
|
566
|
+
archived: boolean;
|
|
567
|
+
/**
|
|
568
|
+
* The timestamp when the object was archived, in ISO 8601 format.
|
|
569
|
+
*/
|
|
570
|
+
archivedAt?: string;
|
|
571
|
+
/**
|
|
572
|
+
* A list defining relationships with other objects.
|
|
573
|
+
*/
|
|
574
|
+
associations?: Record<string, CollectionResponseAssociatedId>;
|
|
575
|
+
/**
|
|
576
|
+
* The timestamp when the object was created, in ISO 8601 format.
|
|
577
|
+
*/
|
|
578
|
+
createdAt: string;
|
|
579
|
+
/**
|
|
580
|
+
* The unique ID of the object.
|
|
581
|
+
*/
|
|
582
|
+
id: string;
|
|
583
|
+
/**
|
|
584
|
+
* An identifier for tracing the creation or update request of the object.
|
|
585
|
+
*/
|
|
586
|
+
objectWriteTraceId?: string;
|
|
587
|
+
/**
|
|
588
|
+
* Key value pairs representing the properties of the object.
|
|
589
|
+
*/
|
|
590
|
+
properties: Record<string, string>;
|
|
591
|
+
/**
|
|
592
|
+
* Key-value pairs representing the properties of the object along with their history.
|
|
593
|
+
*/
|
|
594
|
+
propertiesWithHistory?: Record<string, ValueWithTimestamp[]>;
|
|
595
|
+
/**
|
|
596
|
+
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
597
|
+
*/
|
|
598
|
+
updatedAt: string;
|
|
599
|
+
/**
|
|
600
|
+
* The URL associated with the CRM object.
|
|
601
|
+
*/
|
|
602
|
+
url?: string;
|
|
603
|
+
}
|
|
190
604
|
|
|
191
|
-
|
|
605
|
+
/**
|
|
606
|
+
* Represents a CRM object that has either been created or updated (upserted)
|
|
607
|
+
*/
|
|
608
|
+
export interface SimplePublicUpsertObject {
|
|
609
|
+
/**
|
|
610
|
+
* Whether the object is archived.
|
|
611
|
+
*/
|
|
612
|
+
archived: boolean;
|
|
613
|
+
/**
|
|
614
|
+
* The timestamp when the object was archived, in ISO 8601 format.
|
|
615
|
+
*/
|
|
616
|
+
archivedAt?: string;
|
|
617
|
+
/**
|
|
618
|
+
* The timestamp when the object was created, in ISO 8601 format.
|
|
619
|
+
*/
|
|
620
|
+
createdAt: string;
|
|
621
|
+
/**
|
|
622
|
+
* The unique ID of the object.
|
|
623
|
+
*/
|
|
624
|
+
id: string;
|
|
625
|
+
/**
|
|
626
|
+
* Whether the property is new.
|
|
627
|
+
*/
|
|
628
|
+
new: boolean;
|
|
629
|
+
/**
|
|
630
|
+
* An identifier for tracing the creation or update request.
|
|
631
|
+
*/
|
|
632
|
+
objectWriteTraceId?: string;
|
|
633
|
+
/**
|
|
634
|
+
* Key value pairs representing the properties of the object.
|
|
635
|
+
*/
|
|
636
|
+
properties: Record<string, string>;
|
|
637
|
+
/**
|
|
638
|
+
* Key-value pairs representing the properties of the object along with their history.
|
|
639
|
+
*/
|
|
640
|
+
propertiesWithHistory?: Record<string, ValueWithTimestamp[]>;
|
|
641
|
+
/**
|
|
642
|
+
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
643
|
+
*/
|
|
644
|
+
updatedAt: string;
|
|
645
|
+
/**
|
|
646
|
+
* The URL associated with the object.
|
|
647
|
+
*/
|
|
648
|
+
url?: string;
|
|
192
649
|
}
|
|
193
650
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
export interface AssociationSpecWithLabel {
|
|
231
|
-
/**
|
|
232
|
-
* The category of the association, such as 'HUBSPOT_DEFINED', 'USER_DEFINED', or 'INTEGRATOR_DEFINED'.
|
|
233
|
-
*/
|
|
234
|
-
category:
|
|
235
|
-
| 'HUBSPOT_DEFINED'
|
|
236
|
-
| 'INTEGRATOR_DEFINED'
|
|
237
|
-
| 'USER_DEFINED'
|
|
238
|
-
| 'WORK';
|
|
239
|
-
/**
|
|
240
|
-
* The label associated with the type of association.
|
|
241
|
-
*/
|
|
242
|
-
label?: string;
|
|
243
|
-
/**
|
|
244
|
-
* The ID representing the specific type of association.
|
|
245
|
-
*/
|
|
246
|
-
typeId: number;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
export interface BatchInputSimplePublicObjectBatchInput {
|
|
250
|
-
inputs: Schemas.SimplePublicObjectBatchInput[];
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
export interface BatchInputSimplePublicObjectBatchInputForCreate {
|
|
254
|
-
inputs: Schemas.SimplePublicObjectBatchInputForCreate[];
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export interface BatchInputSimplePublicObjectBatchInputUpsert {
|
|
258
|
-
inputs: Schemas.SimplePublicObjectBatchInputUpsert[];
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export interface BatchInputSimplePublicObjectId {
|
|
262
|
-
inputs: Schemas.SimplePublicObjectId[];
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Specifies the input for reading a batch of CRM objects, including arrays of object IDs, requested property names (with optional history), and an optional unique identifying property.
|
|
267
|
-
*/
|
|
268
|
-
export interface BatchReadInputSimplePublicObjectId {
|
|
269
|
-
/**
|
|
270
|
-
* When using a custom unique value property to retrieve records, the name of the property. Do not include this parameter if retrieving by record ID.
|
|
271
|
-
*/
|
|
272
|
-
idProperty?: string;
|
|
273
|
-
inputs: Schemas.SimplePublicObjectId[];
|
|
274
|
-
/**
|
|
275
|
-
* Key-value pairs for setting properties for the new object.
|
|
276
|
-
*/
|
|
277
|
-
properties: string[];
|
|
278
|
-
/**
|
|
279
|
-
* Key-value pairs for setting properties for the new object and their histories.
|
|
280
|
-
*/
|
|
281
|
-
propertiesWithHistory: string[];
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* The response returned after performing a batch operation on associations.
|
|
286
|
-
*/
|
|
287
|
-
export interface BatchResponsePublicDefaultAssociation {
|
|
288
|
-
/**
|
|
289
|
-
* The timestamp when the batch processing was completed, in ISO 8601 format.
|
|
290
|
-
*/
|
|
291
|
-
completedAt: string;
|
|
292
|
-
errors?: Schemas.StandardError[];
|
|
293
|
-
/**
|
|
294
|
-
* An object containing relevant links related to the batch request.
|
|
295
|
-
*/
|
|
296
|
-
links?: Record<string, string>;
|
|
297
|
-
/**
|
|
298
|
-
* The number of errors that occurred during the batch operation.
|
|
299
|
-
*/
|
|
300
|
-
numErrors?: number;
|
|
301
|
-
/**
|
|
302
|
-
* The timestamp when the batch request was initially made, in ISO 8601 format.
|
|
303
|
-
*/
|
|
304
|
-
requestedAt?: string;
|
|
305
|
-
results: Schemas.PublicDefaultAssociation[];
|
|
306
|
-
/**
|
|
307
|
-
* The timestamp when the batch processing began, in ISO 8601 format.
|
|
308
|
-
*/
|
|
309
|
-
startedAt: string;
|
|
310
|
-
/**
|
|
311
|
-
* The status of the batch processing request: "PENDING", "PROCESSING", "CANCELLED", or "COMPLETE".
|
|
312
|
-
*/
|
|
313
|
-
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* A public object batch response object
|
|
318
|
-
*/
|
|
319
|
-
export interface BatchResponseSimplePublicObject {
|
|
320
|
-
/**
|
|
321
|
-
* The timestamp when the batch processing was completed, in ISO 8601 format.
|
|
322
|
-
*/
|
|
323
|
-
completedAt: string;
|
|
324
|
-
/**
|
|
325
|
-
* An object containing relevant links related to the batch request.
|
|
326
|
-
*/
|
|
327
|
-
links?: Record<string, string>;
|
|
328
|
-
/**
|
|
329
|
-
* The timestamp when the batch request was initially made, in ISO 8601 format.
|
|
330
|
-
*/
|
|
331
|
-
requestedAt?: string;
|
|
332
|
-
results: Schemas.SimplePublicObject[];
|
|
333
|
-
/**
|
|
334
|
-
* The timestamp when the batch processing began, in ISO 8601 format.
|
|
335
|
-
*/
|
|
336
|
-
startedAt: string;
|
|
337
|
-
/**
|
|
338
|
-
* The status of the batch processing request: "PENDING", "PROCESSING", "CANCELLED", or "COMPLETE"
|
|
339
|
-
*/
|
|
340
|
-
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Represents the result of a batch upsert operation, including the operation’s status, timestamps, and a list of successfully created or updated objects.
|
|
345
|
-
*/
|
|
346
|
-
export interface BatchResponseSimplePublicUpsertObject {
|
|
347
|
-
/**
|
|
348
|
-
* The timestamp when the batch process was completed, in ISO 8601 format.
|
|
349
|
-
*/
|
|
350
|
-
completedAt: string;
|
|
351
|
-
/**
|
|
352
|
-
* An object containing relevant links related to the batch request.
|
|
353
|
-
*/
|
|
354
|
-
links?: Record<string, string>;
|
|
355
|
-
/**
|
|
356
|
-
* The timestamp when the batch process was initiated, in ISO 8601 format.
|
|
357
|
-
*/
|
|
358
|
-
requestedAt?: string;
|
|
359
|
-
results: Schemas.SimplePublicUpsertObject[];
|
|
360
|
-
/**
|
|
361
|
-
* The timestamp when the batch process began execution, in ISO 8601 format.
|
|
362
|
-
*/
|
|
363
|
-
startedAt: string;
|
|
364
|
-
/**
|
|
365
|
-
* The status of the batch processing request. Can be: "PENDING", "PROCESSING", "CANCELED", or "COMPLETE".
|
|
366
|
-
*/
|
|
367
|
-
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
export interface CollectionResponseAssociatedId {
|
|
371
|
-
paging?: Schemas.Paging;
|
|
372
|
-
results: Schemas.AssociatedId[];
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
export interface CollectionResponseMultiAssociatedObjectWithLabelForwardPaging {
|
|
376
|
-
paging?: Schemas.ForwardPaging;
|
|
377
|
-
results: Schemas.MultiAssociatedObjectWithLabel[];
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
export interface CollectionResponseSimplePublicObjectWithAssociationsForwardPaging {
|
|
381
|
-
paging?: Schemas.ForwardPaging;
|
|
382
|
-
results: Schemas.SimplePublicObjectWithAssociations[];
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Represents a list of simple objects returned from an API request, along with the total count of objects available.
|
|
387
|
-
*/
|
|
388
|
-
export interface CollectionResponseWithTotalSimplePublicObject {
|
|
389
|
-
paging?: Schemas.Paging;
|
|
390
|
-
results: Schemas.SimplePublicObject[];
|
|
391
|
-
/**
|
|
392
|
-
* The number of available results
|
|
393
|
-
*/
|
|
394
|
-
total: number;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
export interface ErrorDetail {
|
|
398
|
-
/**
|
|
399
|
-
* The status code associated with the error detail
|
|
400
|
-
*/
|
|
401
|
-
code?: string;
|
|
402
|
-
/**
|
|
403
|
-
* Context about the error condition
|
|
404
|
-
*/
|
|
405
|
-
context?: Record<string, string[]>;
|
|
406
|
-
/**
|
|
407
|
-
* The name of the field or parameter in which the error was found.
|
|
408
|
-
*/
|
|
409
|
-
in?: string;
|
|
410
|
-
/**
|
|
411
|
-
* A human readable message describing the error along with remediation steps where appropriate
|
|
412
|
-
*/
|
|
413
|
-
message: string;
|
|
414
|
-
/**
|
|
415
|
-
* A specific category that contains more specific detail about the error
|
|
416
|
-
*/
|
|
417
|
-
subCategory?: string;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* Defines a single condition for searching CRM objects, specifying the property to filter on, the operator to use (such as equals, greater than, or contains), and the value(s) to compare against.
|
|
422
|
-
*/
|
|
423
|
-
export interface Filter {
|
|
424
|
-
/**
|
|
425
|
-
* The upper boundary value when using ranged-based filters.
|
|
426
|
-
*/
|
|
427
|
-
highValue?: string;
|
|
428
|
-
/**
|
|
429
|
-
* null
|
|
430
|
-
*/
|
|
431
|
-
operator:
|
|
432
|
-
| 'BETWEEN'
|
|
433
|
-
| 'CONTAINS_TOKEN'
|
|
434
|
-
| 'EQ'
|
|
435
|
-
| 'GT'
|
|
436
|
-
| 'GTE'
|
|
437
|
-
| 'HAS_PROPERTY'
|
|
438
|
-
| 'IN'
|
|
439
|
-
| 'LT'
|
|
440
|
-
| 'LTE'
|
|
441
|
-
| 'NEQ'
|
|
442
|
-
| 'NOT_CONTAINS_TOKEN'
|
|
443
|
-
| 'NOT_HAS_PROPERTY'
|
|
444
|
-
| 'NOT_IN';
|
|
445
|
-
/**
|
|
446
|
-
* The name of the property to apply the filter to.
|
|
447
|
-
*/
|
|
448
|
-
propertyName: string;
|
|
449
|
-
/**
|
|
450
|
-
* The value to match against the property.
|
|
451
|
-
*/
|
|
452
|
-
value?: string;
|
|
453
|
-
/**
|
|
454
|
-
* The values to match against the property.
|
|
455
|
-
*/
|
|
456
|
-
values?: string[];
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
export interface FilterGroup {
|
|
460
|
-
filters: Schemas.Filter[];
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
export interface ForwardPaging {
|
|
464
|
-
next?: Schemas.NextPage;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* The relationship descriptors applicable between two object types.
|
|
469
|
-
*/
|
|
470
|
-
export interface LabelsBetweenObjectPair {
|
|
471
|
-
/**
|
|
472
|
-
* The ID of the originating object in the label association.
|
|
473
|
-
*/
|
|
474
|
-
fromObjectId: string;
|
|
475
|
-
/**
|
|
476
|
-
* The type ID of the originating object in the label association.
|
|
477
|
-
*/
|
|
478
|
-
fromObjectTypeId: string;
|
|
479
|
-
/**
|
|
480
|
-
* An array of labels associated with the object pair.
|
|
481
|
-
*/
|
|
482
|
-
labels: string[];
|
|
483
|
-
/**
|
|
484
|
-
* The ID of the target object in the label association.
|
|
485
|
-
*/
|
|
486
|
-
toObjectId: string;
|
|
487
|
-
/**
|
|
488
|
-
* The type ID of the target object in the label association.
|
|
489
|
-
*/
|
|
490
|
-
toObjectTypeId: string;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* Represents an object that is associated with multiple other objects, with optional context.
|
|
495
|
-
*/
|
|
496
|
-
export interface MultiAssociatedObjectWithLabel {
|
|
497
|
-
associationTypes: Schemas.AssociationSpecWithLabel[];
|
|
498
|
-
/**
|
|
499
|
-
* The ID of the target object in the association.
|
|
500
|
-
*/
|
|
501
|
-
toObjectId: string;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* Specifies the paging information needed to retrieve the next set of results in a paginated API response
|
|
506
|
-
*/
|
|
507
|
-
export interface NextPage {
|
|
508
|
-
/**
|
|
509
|
-
* A paging cursor token for retrieving subsequent pages.
|
|
510
|
-
*/
|
|
511
|
-
after: string;
|
|
512
|
-
/**
|
|
513
|
-
* A URL that can be used to retrieve the next page results.
|
|
514
|
-
*/
|
|
515
|
-
link?: string;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
export interface Paging {
|
|
519
|
-
next?: Schemas.NextPage;
|
|
520
|
-
prev?: Schemas.PreviousPage;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
/**
|
|
524
|
-
* specifies the paging information needed to retrieve the previous set of results in a paginated API response
|
|
525
|
-
*/
|
|
526
|
-
export interface PreviousPage {
|
|
527
|
-
/**
|
|
528
|
-
* A paging cursor token for retrieving previous pages.
|
|
529
|
-
*/
|
|
530
|
-
before: string;
|
|
531
|
-
/**
|
|
532
|
-
* A URL that can be used to retrieve the previous pages' results.
|
|
533
|
-
*/
|
|
534
|
-
link?: string;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
export interface PublicAssociationsForObject {
|
|
538
|
-
to: Schemas.PublicObjectId;
|
|
539
|
-
types: Schemas.AssociationSpec[];
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
export interface PublicDefaultAssociation {
|
|
543
|
-
associationSpec: Schemas.AssociationSpec;
|
|
544
|
-
from: Schemas.PublicObjectId;
|
|
545
|
-
to: Schemas.PublicObjectId;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* An input that contains the information required to process a public GDPR data deletion request.
|
|
550
|
-
*/
|
|
551
|
-
export interface PublicGdprDeleteInput {
|
|
552
|
-
/**
|
|
553
|
-
* The name of a property whose values are unique for this object
|
|
554
|
-
*/
|
|
555
|
-
idProperty?: string;
|
|
556
|
-
/**
|
|
557
|
-
* The unique identifier of the object to be fully purged along with any GDPR-related data.
|
|
558
|
-
*/
|
|
559
|
-
objectId: string;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
/**
|
|
563
|
-
* Input data for merging two records.
|
|
564
|
-
*/
|
|
565
|
-
export interface PublicMergeInput {
|
|
566
|
-
/**
|
|
567
|
-
* The object ID to merge with the primary object.
|
|
568
|
-
*/
|
|
569
|
-
objectIdToMerge: string;
|
|
570
|
-
/**
|
|
571
|
-
* The object ID of the primary object to merge.
|
|
572
|
-
*/
|
|
573
|
-
primaryObjectId: string;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
/**
|
|
577
|
-
* Contains the Id of a Public Object
|
|
578
|
-
*/
|
|
579
|
-
export interface PublicObjectId {
|
|
580
|
-
/**
|
|
581
|
-
* The unique ID of the object.
|
|
582
|
-
*/
|
|
583
|
-
id: string;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* Describes a search request
|
|
588
|
-
*/
|
|
589
|
-
export interface PublicObjectSearchRequest {
|
|
590
|
-
/**
|
|
591
|
-
* A paging cursor token for retrieving subsequent pages.
|
|
592
|
-
*/
|
|
593
|
-
after: string;
|
|
594
|
-
/**
|
|
595
|
-
* Up to 6 groups of filters defining additional query criteria.
|
|
596
|
-
*/
|
|
597
|
-
filterGroups: Schemas.FilterGroup[];
|
|
598
|
-
/**
|
|
599
|
-
* The maximum results to return, up to 200 objects.
|
|
600
|
-
*/
|
|
601
|
-
limit: number;
|
|
602
|
-
/**
|
|
603
|
-
* A list of property names to include in the response.
|
|
604
|
-
*/
|
|
605
|
-
properties: string[];
|
|
606
|
-
/**
|
|
607
|
-
* The search query string, up to 3000 characters.
|
|
608
|
-
*/
|
|
609
|
-
query?: string;
|
|
610
|
-
/**
|
|
611
|
-
* Specifies sorting order based on object properties.
|
|
612
|
-
*/
|
|
613
|
-
sorts: string[];
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
/**
|
|
617
|
-
* A simple public object.
|
|
618
|
-
*/
|
|
619
|
-
export interface SimplePublicObject {
|
|
620
|
-
/**
|
|
621
|
-
* Whether the object is archived.
|
|
622
|
-
*/
|
|
623
|
-
archived: boolean;
|
|
624
|
-
/**
|
|
625
|
-
* The timestamp when the object was archived, in ISO 8601 format.
|
|
626
|
-
*/
|
|
627
|
-
archivedAt?: string;
|
|
628
|
-
/**
|
|
629
|
-
* The timestamp when the object was created, in ISO 8601 format.
|
|
630
|
-
*/
|
|
631
|
-
createdAt: string;
|
|
632
|
-
/**
|
|
633
|
-
* The unique ID of the object.
|
|
634
|
-
*/
|
|
635
|
-
id: string;
|
|
636
|
-
/**
|
|
637
|
-
* Unique ID to identify each write operation, which will be returned with any errors to identify which request encountered which error.
|
|
638
|
-
*/
|
|
639
|
-
objectWriteTraceId?: string;
|
|
640
|
-
/**
|
|
641
|
-
* Key-value pairs representing the properties of the object.
|
|
642
|
-
*/
|
|
643
|
-
properties: Record<string, string>;
|
|
644
|
-
/**
|
|
645
|
-
* Key-value pairs representing the properties of the object along with their history.
|
|
646
|
-
*/
|
|
647
|
-
propertiesWithHistory?: Record<string, Schemas.ValueWithTimestamp[]>;
|
|
648
|
-
/**
|
|
649
|
-
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
650
|
-
*/
|
|
651
|
-
updatedAt: string;
|
|
652
|
-
/**
|
|
653
|
-
* URL to go to the object
|
|
654
|
-
*/
|
|
655
|
-
url?: string;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* Contains an array of CRM object records to be processed in a batch operation, each defined by their ID and properties.
|
|
660
|
-
*/
|
|
661
|
-
export interface SimplePublicObjectBatchInput {
|
|
662
|
-
/**
|
|
663
|
-
* The id to be updated. This can be the object id, or the unique property value of the idProperty property
|
|
664
|
-
*/
|
|
665
|
-
id: string;
|
|
666
|
-
/**
|
|
667
|
-
* The name of a property whose values are unique for this object
|
|
668
|
-
*/
|
|
669
|
-
idProperty?: string;
|
|
670
|
-
/**
|
|
671
|
-
* A unique identifier for tracing the request.
|
|
672
|
-
*/
|
|
673
|
-
objectWriteTraceId?: string;
|
|
674
|
-
/**
|
|
675
|
-
* Key-value pairs representing the properties of the object.
|
|
676
|
-
*/
|
|
677
|
-
properties: Record<string, string>;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* An input object that contains a collection of objects to be created together in a batch.
|
|
682
|
-
*/
|
|
683
|
-
export interface SimplePublicObjectBatchInputForCreate {
|
|
684
|
-
associations: Schemas.PublicAssociationsForObject[];
|
|
685
|
-
/**
|
|
686
|
-
* An identifier for tracing the creation request.
|
|
687
|
-
*/
|
|
688
|
-
objectWriteTraceId?: string;
|
|
689
|
-
/**
|
|
690
|
-
* Key-value pairs representing the properties of the object.
|
|
691
|
-
*/
|
|
692
|
-
properties: Record<string, string>;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* Represents an object used in batch upsert operations, containing an object’s unique identifier, its properties, and optionally the unique property name and a write trace ID.
|
|
697
|
-
*/
|
|
698
|
-
export interface SimplePublicObjectBatchInputUpsert {
|
|
699
|
-
/**
|
|
700
|
-
* The unique ID of the object.
|
|
701
|
-
*/
|
|
702
|
-
id: string;
|
|
703
|
-
/**
|
|
704
|
-
* The name of a property whose values are unique for this object
|
|
705
|
-
*/
|
|
706
|
-
idProperty?: string;
|
|
707
|
-
/**
|
|
708
|
-
* An identifier for tracing the creation request.
|
|
709
|
-
*/
|
|
710
|
-
objectWriteTraceId?: string;
|
|
711
|
-
/**
|
|
712
|
-
* Key value pairs representing the properties of the object.
|
|
713
|
-
*/
|
|
714
|
-
properties: Record<string, string>;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
/**
|
|
718
|
-
* Contains the Id of a Public Object
|
|
719
|
-
*/
|
|
720
|
-
export interface SimplePublicObjectId {
|
|
721
|
-
/**
|
|
722
|
-
* The unique ID of the object.
|
|
723
|
-
*/
|
|
724
|
-
id: string;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
* Represents the input required to create or update a CRM object, containing an object with property names and their corresponding values.
|
|
729
|
-
*/
|
|
730
|
-
export interface SimplePublicObjectInput {
|
|
731
|
-
/**
|
|
732
|
-
* Key value pairs representing the properties of the object.
|
|
733
|
-
*/
|
|
734
|
-
properties: Record<string, string>;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* Is the input object used to create a new CRM object, containing the properties to be set and optional associations to link the new record with other CRM objects.
|
|
739
|
-
*/
|
|
740
|
-
export interface SimplePublicObjectInputForCreate {
|
|
741
|
-
associations: Schemas.PublicAssociationsForObject[];
|
|
742
|
-
/**
|
|
743
|
-
* Key-value pairs for setting properties for the new object.
|
|
744
|
-
*/
|
|
745
|
-
properties: Record<string, string>;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* Represents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type.
|
|
750
|
-
*/
|
|
751
|
-
export interface SimplePublicObjectWithAssociations {
|
|
752
|
-
/**
|
|
753
|
-
* Whether the object is archived.
|
|
754
|
-
*/
|
|
755
|
-
archived: boolean;
|
|
756
|
-
/**
|
|
757
|
-
* The timestamp when the object was archived, in ISO 8601 format.
|
|
758
|
-
*/
|
|
759
|
-
archivedAt?: string;
|
|
760
|
-
/**
|
|
761
|
-
* A list defining relationships with other objects.
|
|
762
|
-
*/
|
|
763
|
-
associations?: Record<string, Schemas.CollectionResponseAssociatedId>;
|
|
764
|
-
/**
|
|
765
|
-
* The timestamp when the object was created, in ISO 8601 format.
|
|
766
|
-
*/
|
|
767
|
-
createdAt: string;
|
|
768
|
-
/**
|
|
769
|
-
* The unique ID of the object.
|
|
770
|
-
*/
|
|
771
|
-
id: string;
|
|
772
|
-
/**
|
|
773
|
-
* An identifier for tracing the creation or update request of the object.
|
|
774
|
-
*/
|
|
775
|
-
objectWriteTraceId?: string;
|
|
776
|
-
/**
|
|
777
|
-
* Key value pairs representing the properties of the object.
|
|
778
|
-
*/
|
|
779
|
-
properties: Record<string, string>;
|
|
780
|
-
/**
|
|
781
|
-
* Key-value pairs representing the properties of the object along with their history.
|
|
782
|
-
*/
|
|
783
|
-
propertiesWithHistory?: Record<string, Schemas.ValueWithTimestamp[]>;
|
|
784
|
-
/**
|
|
785
|
-
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
786
|
-
*/
|
|
787
|
-
updatedAt: string;
|
|
788
|
-
/**
|
|
789
|
-
* The URL associated with the CRM object.
|
|
790
|
-
*/
|
|
791
|
-
url?: string;
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
* Represents a CRM object that has either been created or updated (upserted)
|
|
796
|
-
*/
|
|
797
|
-
export interface SimplePublicUpsertObject {
|
|
798
|
-
/**
|
|
799
|
-
* Whether the object is archived.
|
|
800
|
-
*/
|
|
801
|
-
archived: boolean;
|
|
802
|
-
/**
|
|
803
|
-
* The timestamp when the object was archived, in ISO 8601 format.
|
|
804
|
-
*/
|
|
805
|
-
archivedAt?: string;
|
|
806
|
-
/**
|
|
807
|
-
* The timestamp when the object was created, in ISO 8601 format.
|
|
808
|
-
*/
|
|
809
|
-
createdAt: string;
|
|
810
|
-
/**
|
|
811
|
-
* The unique ID of the object.
|
|
812
|
-
*/
|
|
813
|
-
id: string;
|
|
814
|
-
/**
|
|
815
|
-
* Whether the property is new.
|
|
816
|
-
*/
|
|
817
|
-
new: boolean;
|
|
818
|
-
/**
|
|
819
|
-
* An identifier for tracing the creation or update request.
|
|
820
|
-
*/
|
|
821
|
-
objectWriteTraceId?: string;
|
|
822
|
-
/**
|
|
823
|
-
* Key value pairs representing the properties of the object.
|
|
824
|
-
*/
|
|
825
|
-
properties: Record<string, string>;
|
|
826
|
-
/**
|
|
827
|
-
* Key-value pairs representing the properties of the object along with their history.
|
|
828
|
-
*/
|
|
829
|
-
propertiesWithHistory?: Record<string, Schemas.ValueWithTimestamp[]>;
|
|
830
|
-
/**
|
|
831
|
-
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
832
|
-
*/
|
|
833
|
-
updatedAt: string;
|
|
834
|
-
/**
|
|
835
|
-
* The URL associated with the object.
|
|
836
|
-
*/
|
|
837
|
-
url?: string;
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
/**
|
|
841
|
-
* Represents a standard error response in the HubSpot API, providing detailed information about an error that occurred during an API request.
|
|
842
|
-
*/
|
|
843
|
-
export interface StandardError {
|
|
844
|
-
/**
|
|
845
|
-
* The main category of the error.
|
|
846
|
-
*/
|
|
847
|
-
category: string;
|
|
848
|
-
/**
|
|
849
|
-
* Additional context-specific information related to the error.
|
|
850
|
-
*/
|
|
851
|
-
context: Record<string, string[]>;
|
|
852
|
-
/**
|
|
853
|
-
* The detailed error objects.
|
|
854
|
-
*/
|
|
855
|
-
errors: Schemas.ErrorDetail[];
|
|
856
|
-
/**
|
|
857
|
-
* A unique ID for the error instance.
|
|
858
|
-
*/
|
|
859
|
-
id?: string;
|
|
860
|
-
/**
|
|
861
|
-
* URLs linking to documentation or resources associated with the error.
|
|
862
|
-
*/
|
|
863
|
-
links: Record<string, string>;
|
|
864
|
-
/**
|
|
865
|
-
* A human-readable string describing the error and possible remediation steps.
|
|
866
|
-
*/
|
|
867
|
-
message: string;
|
|
868
|
-
/**
|
|
869
|
-
* The HTTP status code associated with the error.
|
|
870
|
-
*/
|
|
871
|
-
status: string;
|
|
872
|
-
/**
|
|
873
|
-
* A more specific error category within each main category.
|
|
874
|
-
*/
|
|
875
|
-
subCategory?: Record<string, never>;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
/**
|
|
879
|
-
* Property model that includes timestamp.
|
|
880
|
-
*/
|
|
881
|
-
export interface ValueWithTimestamp {
|
|
882
|
-
/**
|
|
883
|
-
* The unique ID of the property.
|
|
884
|
-
*/
|
|
885
|
-
sourceId?: string;
|
|
886
|
-
/**
|
|
887
|
-
* A human-readable label.
|
|
888
|
-
*/
|
|
889
|
-
sourceLabel?: string;
|
|
890
|
-
/**
|
|
891
|
-
* The property type.
|
|
892
|
-
*/
|
|
893
|
-
sourceType: string;
|
|
894
|
-
/**
|
|
895
|
-
* The timestamp when the property was updated, in ISO 8601 format.
|
|
896
|
-
*/
|
|
897
|
-
timestamp: string;
|
|
898
|
-
/**
|
|
899
|
-
* The ID of the user who last updated the property.
|
|
900
|
-
*/
|
|
901
|
-
updatedByUserId?: number;
|
|
902
|
-
/**
|
|
903
|
-
* The property value.
|
|
904
|
-
*/
|
|
905
|
-
value: string;
|
|
906
|
-
}
|
|
651
|
+
/**
|
|
652
|
+
* Represents a standard error response in the HubSpot API, providing detailed information about an error that occurred during an API request.
|
|
653
|
+
*/
|
|
654
|
+
export interface StandardError {
|
|
655
|
+
/**
|
|
656
|
+
* The main category of the error.
|
|
657
|
+
*/
|
|
658
|
+
category: string;
|
|
659
|
+
/**
|
|
660
|
+
* Additional context-specific information related to the error.
|
|
661
|
+
*/
|
|
662
|
+
context: Record<string, string[]>;
|
|
663
|
+
/**
|
|
664
|
+
* The detailed error objects.
|
|
665
|
+
*/
|
|
666
|
+
errors: ErrorDetail[];
|
|
667
|
+
/**
|
|
668
|
+
* A unique ID for the error instance.
|
|
669
|
+
*/
|
|
670
|
+
id?: string;
|
|
671
|
+
/**
|
|
672
|
+
* URLs linking to documentation or resources associated with the error.
|
|
673
|
+
*/
|
|
674
|
+
links: Record<string, string>;
|
|
675
|
+
/**
|
|
676
|
+
* A human-readable string describing the error and possible remediation steps.
|
|
677
|
+
*/
|
|
678
|
+
message: string;
|
|
679
|
+
/**
|
|
680
|
+
* The HTTP status code associated with the error.
|
|
681
|
+
*/
|
|
682
|
+
status: string;
|
|
683
|
+
/**
|
|
684
|
+
* A more specific error category within each main category.
|
|
685
|
+
*/
|
|
686
|
+
subCategory?: Record<string, never>;
|
|
907
687
|
}
|
|
908
688
|
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
689
|
+
/**
|
|
690
|
+
* Property model that includes timestamp.
|
|
691
|
+
*/
|
|
692
|
+
export interface ValueWithTimestamp {
|
|
693
|
+
/**
|
|
694
|
+
* The unique ID of the property.
|
|
695
|
+
*/
|
|
696
|
+
sourceId?: string;
|
|
697
|
+
/**
|
|
698
|
+
* A human-readable label.
|
|
699
|
+
*/
|
|
700
|
+
sourceLabel?: string;
|
|
701
|
+
/**
|
|
702
|
+
* The property type.
|
|
703
|
+
*/
|
|
704
|
+
sourceType: string;
|
|
705
|
+
/**
|
|
706
|
+
* The timestamp when the property was updated, in ISO 8601 format.
|
|
707
|
+
*/
|
|
708
|
+
timestamp: string;
|
|
709
|
+
/**
|
|
710
|
+
* The ID of the user who last updated the property.
|
|
711
|
+
*/
|
|
712
|
+
updatedByUserId?: number;
|
|
713
|
+
/**
|
|
714
|
+
* The property value.
|
|
715
|
+
*/
|
|
716
|
+
value: string;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
914
719
|
|
|
915
|
-
|
|
916
|
-
|
|
720
|
+
export namespace CrmAppointmentsAdvanced {
|
|
721
|
+
export interface GdprDeleteObjectInput {
|
|
722
|
+
data: CRMAppointmentsSchemas.PublicGdprDeleteInput;
|
|
723
|
+
objectType: string;
|
|
917
724
|
}
|
|
918
725
|
|
|
726
|
+
export type GdprDeleteObjectOutput = void;
|
|
919
727
|
/**
|
|
920
728
|
* Usage example:
|
|
921
729
|
* ```ts
|
|
922
|
-
* import {
|
|
923
|
-
* client.send(
|
|
730
|
+
* import { crmAppointmentsAdvanced } from '@hubspot/api-client-core';
|
|
731
|
+
* client.send(crmAppointmentsAdvanced.gdprDeleteObject(input));
|
|
924
732
|
* ```
|
|
925
733
|
*/
|
|
926
|
-
export interface
|
|
734
|
+
export interface API {
|
|
927
735
|
/**
|
|
928
736
|
* GDPR-delete an object
|
|
929
737
|
* @apiPath /crm/objects/2026-03/{objectType}/gdpr-delete
|
|
@@ -931,164 +739,352 @@ export namespace CRMAppointments {
|
|
|
931
739
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
932
740
|
*/
|
|
933
741
|
gdprDeleteObject: (
|
|
934
|
-
input:
|
|
935
|
-
) => Operation<
|
|
742
|
+
input: GdprDeleteObjectInput
|
|
743
|
+
) => Operation<GdprDeleteObjectOutput>;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export namespace CrmAppointmentsCrmAssociations {
|
|
748
|
+
export interface CreateInput {
|
|
749
|
+
fromObjectId: string;
|
|
750
|
+
fromObjectType: string;
|
|
751
|
+
toObjectId: string;
|
|
752
|
+
toObjectType: string;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
export type CreateOutput =
|
|
756
|
+
CRMAppointmentsSchemas.BatchResponsePublicDefaultAssociation;
|
|
757
|
+
|
|
758
|
+
export interface DeleteInput {
|
|
759
|
+
objectId: string;
|
|
760
|
+
objectType: string;
|
|
761
|
+
toObjectId: string;
|
|
762
|
+
toObjectType: string;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
export type DeleteOutput = void;
|
|
766
|
+
|
|
767
|
+
export interface ListInput {
|
|
936
768
|
/**
|
|
937
|
-
*
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
769
|
+
* The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
|
770
|
+
*/
|
|
771
|
+
after?: string;
|
|
772
|
+
/**
|
|
773
|
+
* The maximum number of results to display per page.
|
|
941
774
|
*/
|
|
942
|
-
|
|
775
|
+
limit?: number;
|
|
776
|
+
objectId: string;
|
|
777
|
+
objectType: string;
|
|
778
|
+
toObjectType: string;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
export type ListOutput =
|
|
782
|
+
CRMAppointmentsSchemas.CollectionResponseMultiAssociatedObjectWithLabelForwardPaging;
|
|
783
|
+
|
|
784
|
+
export interface UpdateLabelsInput {
|
|
785
|
+
data: CRMAppointmentsSchemas.AssociationSpec[];
|
|
786
|
+
objectId: string;
|
|
787
|
+
objectType: string;
|
|
788
|
+
toObjectId: string;
|
|
789
|
+
toObjectType: string;
|
|
943
790
|
}
|
|
944
791
|
|
|
792
|
+
export type UpdateLabelsOutput =
|
|
793
|
+
CRMAppointmentsSchemas.LabelsBetweenObjectPair;
|
|
945
794
|
/**
|
|
946
795
|
* Usage example:
|
|
947
796
|
* ```ts
|
|
948
|
-
* import {
|
|
949
|
-
* client.send(
|
|
797
|
+
* import { crmAppointmentsCrmAssociations } from '@hubspot/api-client-core';
|
|
798
|
+
* client.send(crmAppointmentsCrmAssociations.create(input));
|
|
950
799
|
* ```
|
|
951
800
|
*/
|
|
952
|
-
export interface
|
|
953
|
-
/**
|
|
954
|
-
* Create a CRM object with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard objects is provided.
|
|
955
|
-
* @apiPath /crm/objects/2026-03/{objectType}
|
|
956
|
-
* @apiMethod POST
|
|
957
|
-
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
958
|
-
*/
|
|
959
|
-
create: (input: Basic.CreateInput) => Operation<Basic.CreateOutput>;
|
|
801
|
+
export interface API {
|
|
960
802
|
/**
|
|
961
|
-
*
|
|
962
|
-
* @apiPath /crm/objects/2026-03/{
|
|
963
|
-
* @apiMethod
|
|
803
|
+
* Create the default (most generic) association type between two object types
|
|
804
|
+
* @apiPath /crm/objects/2026-03/{fromObjectType}/{fromObjectId}/associations/default/{toObjectType}/{toObjectId}
|
|
805
|
+
* @apiMethod PUT
|
|
964
806
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
965
807
|
*/
|
|
966
|
-
|
|
808
|
+
create: (input: CreateInput) => Operation<CreateOutput>;
|
|
967
809
|
/**
|
|
968
810
|
* deletes all associations between two records.
|
|
969
811
|
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}
|
|
970
812
|
* @apiMethod DELETE
|
|
971
813
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
972
814
|
*/
|
|
973
|
-
|
|
974
|
-
/**
|
|
975
|
-
* Read
|
|
976
|
-
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}
|
|
977
|
-
* @apiMethod GET
|
|
978
|
-
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
979
|
-
*/
|
|
980
|
-
get: (input: Basic.GetInput) => Operation<Basic.GetOutput>;
|
|
981
|
-
/**
|
|
982
|
-
* List
|
|
983
|
-
* @apiPath /crm/objects/2026-03/{objectType}
|
|
984
|
-
* @apiMethod GET
|
|
985
|
-
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
986
|
-
*/
|
|
987
|
-
list: (input: Basic.ListInput) => Operation<Basic.ListOutput>;
|
|
815
|
+
delete: (input: DeleteInput) => Operation<DeleteOutput>;
|
|
988
816
|
/**
|
|
989
817
|
* Retrieve all associations between a specific record and an object type. Limit 500 per call.
|
|
990
818
|
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}/associations/{toObjectType}
|
|
991
819
|
* @apiMethod GET
|
|
992
820
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
993
821
|
*/
|
|
994
|
-
|
|
995
|
-
/**
|
|
996
|
-
* Update
|
|
997
|
-
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}
|
|
998
|
-
* @apiMethod PATCH
|
|
999
|
-
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1000
|
-
*/
|
|
1001
|
-
update: (input: Basic.UpdateInput) => Operation<Basic.UpdateOutput>;
|
|
822
|
+
list: (input: ListInput) => Operation<ListOutput>;
|
|
1002
823
|
/**
|
|
1003
824
|
* Set association labels between two records.
|
|
1004
825
|
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}
|
|
1005
826
|
* @apiMethod PUT
|
|
1006
827
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1007
828
|
*/
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
829
|
+
updateLabels: (input: UpdateLabelsInput) => Operation<UpdateLabelsOutput>;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
export namespace CrmAppointmentsCrmObjectsCustom {
|
|
834
|
+
export interface MergeInput {
|
|
835
|
+
data: CRMAppointmentsSchemas.PublicMergeInput;
|
|
836
|
+
objectType: string;
|
|
1011
837
|
}
|
|
1012
838
|
|
|
839
|
+
export type MergeOutput = CRMAppointmentsSchemas.SimplePublicObject;
|
|
1013
840
|
/**
|
|
1014
841
|
* Usage example:
|
|
1015
842
|
* ```ts
|
|
1016
|
-
* import {
|
|
1017
|
-
* client.send(
|
|
843
|
+
* import { crmAppointmentsCrmObjectsCustom } from '@hubspot/api-client-core';
|
|
844
|
+
* client.send(crmAppointmentsCrmObjectsCustom.merge(input));
|
|
1018
845
|
* ```
|
|
1019
846
|
*/
|
|
1020
|
-
export interface
|
|
847
|
+
export interface API {
|
|
1021
848
|
/**
|
|
1022
|
-
*
|
|
1023
|
-
* @apiPath /crm/objects/2026-03/{
|
|
1024
|
-
* @apiMethod
|
|
849
|
+
* Merge two CRM objects of the same type by specifying one as the primary object and the other as the object to be merged into it.
|
|
850
|
+
* @apiPath /crm/objects/2026-03/{objectType}/merge
|
|
851
|
+
* @apiMethod POST
|
|
1025
852
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1026
853
|
*/
|
|
1027
|
-
|
|
854
|
+
merge: (input: MergeInput) => Operation<MergeOutput>;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
export namespace CrmAppointmentsCrmObjectsCustomBatch {
|
|
859
|
+
export interface CreateInput {
|
|
860
|
+
data: CRMAppointmentsSchemas.BatchInputSimplePublicObjectBatchInputForCreate;
|
|
861
|
+
objectType: string;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export type CreateOutput =
|
|
865
|
+
CRMAppointmentsSchemas.BatchResponseSimplePublicObject;
|
|
866
|
+
|
|
867
|
+
export interface DeleteInput {
|
|
868
|
+
data: CRMAppointmentsSchemas.BatchInputSimplePublicObjectId;
|
|
869
|
+
objectType: string;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export type DeleteOutput = void;
|
|
873
|
+
|
|
874
|
+
export interface GetInput {
|
|
875
|
+
/**
|
|
876
|
+
* Whether to return only results that have been archived.
|
|
877
|
+
*/
|
|
878
|
+
archived?: boolean;
|
|
879
|
+
data: CRMAppointmentsSchemas.BatchReadInputSimplePublicObjectId;
|
|
880
|
+
objectType: string;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
export type GetOutput =
|
|
884
|
+
CRMAppointmentsSchemas.BatchResponseSimplePublicObject;
|
|
885
|
+
|
|
886
|
+
export interface UpdateInput {
|
|
887
|
+
data: CRMAppointmentsSchemas.BatchInputSimplePublicObjectBatchInput;
|
|
888
|
+
objectType: string;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
export type UpdateOutput =
|
|
892
|
+
CRMAppointmentsSchemas.BatchResponseSimplePublicObject;
|
|
893
|
+
|
|
894
|
+
export interface UpsertInput {
|
|
895
|
+
data: CRMAppointmentsSchemas.BatchInputSimplePublicObjectBatchInputUpsert;
|
|
896
|
+
objectType: string;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
export type UpsertOutput =
|
|
900
|
+
CRMAppointmentsSchemas.BatchResponseSimplePublicUpsertObject;
|
|
901
|
+
/**
|
|
902
|
+
* Usage example:
|
|
903
|
+
* ```ts
|
|
904
|
+
* import { crmAppointmentsCrmObjectsCustomBatch } from '@hubspot/api-client-core';
|
|
905
|
+
* client.send(crmAppointmentsCrmObjectsCustomBatch.create(input));
|
|
906
|
+
* ```
|
|
907
|
+
*/
|
|
908
|
+
export interface API {
|
|
1028
909
|
/**
|
|
1029
910
|
* Create multiple CRM objects in a single request by specifying the object type and providing the necessary properties and associations for each object.
|
|
1030
911
|
* @apiPath /crm/objects/2026-03/{objectType}/batch/create
|
|
1031
912
|
* @apiMethod POST
|
|
1032
913
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1033
914
|
*/
|
|
1034
|
-
|
|
915
|
+
create: (input: CreateInput) => Operation<CreateOutput>;
|
|
1035
916
|
/**
|
|
1036
917
|
* Archive a batch of appointments by ID
|
|
1037
918
|
* @apiPath /crm/objects/2026-03/{objectType}/batch/archive
|
|
1038
919
|
* @apiMethod POST
|
|
1039
920
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1040
921
|
*/
|
|
1041
|
-
delete: (input:
|
|
922
|
+
delete: (input: DeleteInput) => Operation<DeleteOutput>;
|
|
1042
923
|
/**
|
|
1043
924
|
* Read a batch of appointments by internal ID, or unique property values
|
|
1044
925
|
* @apiPath /crm/objects/2026-03/{objectType}/batch/read
|
|
1045
926
|
* @apiMethod POST
|
|
1046
927
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1047
928
|
*/
|
|
1048
|
-
get: (input:
|
|
929
|
+
get: (input: GetInput) => Operation<GetOutput>;
|
|
1049
930
|
/**
|
|
1050
931
|
* Update a batch of appointments by internal ID, or unique property values
|
|
1051
932
|
* @apiPath /crm/objects/2026-03/{objectType}/batch/update
|
|
1052
933
|
* @apiMethod POST
|
|
1053
934
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1054
935
|
*/
|
|
1055
|
-
update: (input:
|
|
936
|
+
update: (input: UpdateInput) => Operation<UpdateOutput>;
|
|
1056
937
|
/**
|
|
1057
938
|
* Create or update records identified by a unique property value as specified by the `idProperty` query param. `idProperty` query param refers to a property whose values are unique for the object.
|
|
1058
939
|
* @apiPath /crm/objects/2026-03/{objectType}/batch/upsert
|
|
1059
940
|
* @apiMethod POST
|
|
1060
941
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1061
942
|
*/
|
|
1062
|
-
upsert: (input:
|
|
943
|
+
upsert: (input: UpsertInput) => Operation<UpsertOutput>;
|
|
1063
944
|
}
|
|
945
|
+
}
|
|
1064
946
|
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
947
|
+
export namespace CrmAppointmentsCrmObjectsGenericobjects {
|
|
948
|
+
export interface CreateInput {
|
|
949
|
+
data: CRMAppointmentsSchemas.SimplePublicObjectInputForCreate;
|
|
950
|
+
objectType: string;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export type CreateOutput = CRMAppointmentsSchemas.SimplePublicObject;
|
|
954
|
+
|
|
955
|
+
export interface DeleteInput {
|
|
956
|
+
objectId: string;
|
|
957
|
+
objectType: string;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
export type DeleteOutput = void;
|
|
961
|
+
|
|
962
|
+
export interface GetInput {
|
|
1073
963
|
/**
|
|
1074
|
-
*
|
|
1075
|
-
|
|
1076
|
-
|
|
964
|
+
* Whether to return only results that have been archived.
|
|
965
|
+
*/
|
|
966
|
+
archived?: boolean;
|
|
967
|
+
/**
|
|
968
|
+
* A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
1077
969
|
*/
|
|
1078
|
-
|
|
970
|
+
associations?: string[];
|
|
971
|
+
/**
|
|
972
|
+
* The name of a property whose values are unique for this object type
|
|
973
|
+
*/
|
|
974
|
+
idProperty?: string;
|
|
975
|
+
objectId: string;
|
|
976
|
+
objectType: string;
|
|
977
|
+
/**
|
|
978
|
+
* A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
979
|
+
*/
|
|
980
|
+
properties?: string[];
|
|
981
|
+
/**
|
|
982
|
+
* A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
983
|
+
*/
|
|
984
|
+
propertiesWithHistory?: string[];
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
export type GetOutput =
|
|
988
|
+
CRMAppointmentsSchemas.SimplePublicObjectWithAssociations;
|
|
989
|
+
|
|
990
|
+
export interface ListInput {
|
|
991
|
+
/**
|
|
992
|
+
* The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
|
993
|
+
*/
|
|
994
|
+
after?: string;
|
|
995
|
+
/**
|
|
996
|
+
* Whether to return only results that have been archived.
|
|
997
|
+
*/
|
|
998
|
+
archived?: boolean;
|
|
999
|
+
/**
|
|
1000
|
+
* A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
1001
|
+
*/
|
|
1002
|
+
associations?: string[];
|
|
1003
|
+
/**
|
|
1004
|
+
* The maximum number of results to display per page.
|
|
1005
|
+
*/
|
|
1006
|
+
limit?: number;
|
|
1007
|
+
objectType: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
1010
|
+
*/
|
|
1011
|
+
properties?: string[];
|
|
1012
|
+
/**
|
|
1013
|
+
* A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
|
|
1014
|
+
*/
|
|
1015
|
+
propertiesWithHistory?: string[];
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
export type ListOutput =
|
|
1019
|
+
CRMAppointmentsSchemas.CollectionResponseSimplePublicObjectWithAssociationsForwardPaging;
|
|
1020
|
+
|
|
1021
|
+
export interface SearchInput {
|
|
1022
|
+
data: CRMAppointmentsSchemas.PublicObjectSearchRequest;
|
|
1023
|
+
objectType: string;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
export type SearchOutput =
|
|
1027
|
+
CRMAppointmentsSchemas.CollectionResponseWithTotalSimplePublicObject;
|
|
1028
|
+
|
|
1029
|
+
export interface UpdateInput {
|
|
1030
|
+
data: CRMAppointmentsSchemas.SimplePublicObjectInput;
|
|
1031
|
+
/**
|
|
1032
|
+
* The name of a property whose values are unique for this object type
|
|
1033
|
+
*/
|
|
1034
|
+
idProperty?: string;
|
|
1035
|
+
objectId: string;
|
|
1036
|
+
objectType: string;
|
|
1079
1037
|
}
|
|
1080
1038
|
|
|
1039
|
+
export type UpdateOutput = CRMAppointmentsSchemas.SimplePublicObject;
|
|
1081
1040
|
/**
|
|
1082
1041
|
* Usage example:
|
|
1083
1042
|
* ```ts
|
|
1084
|
-
* import {
|
|
1085
|
-
* client.send(
|
|
1043
|
+
* import { crmAppointmentsCrmObjectsGenericobjects } from '@hubspot/api-client-core';
|
|
1044
|
+
* client.send(crmAppointmentsCrmObjectsGenericobjects.create(input));
|
|
1086
1045
|
* ```
|
|
1087
1046
|
*/
|
|
1088
1047
|
export interface API {
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1048
|
+
/**
|
|
1049
|
+
* Create a CRM object with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard objects is provided.
|
|
1050
|
+
* @apiPath /crm/objects/2026-03/{objectType}
|
|
1051
|
+
* @apiMethod POST
|
|
1052
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1053
|
+
*/
|
|
1054
|
+
create: (input: CreateInput) => Operation<CreateOutput>;
|
|
1055
|
+
/**
|
|
1056
|
+
* Archive
|
|
1057
|
+
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}
|
|
1058
|
+
* @apiMethod DELETE
|
|
1059
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1060
|
+
*/
|
|
1061
|
+
delete: (input: DeleteInput) => Operation<DeleteOutput>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Read
|
|
1064
|
+
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}
|
|
1065
|
+
* @apiMethod GET
|
|
1066
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1067
|
+
*/
|
|
1068
|
+
get: (input: GetInput) => Operation<GetOutput>;
|
|
1069
|
+
/**
|
|
1070
|
+
* List
|
|
1071
|
+
* @apiPath /crm/objects/2026-03/{objectType}
|
|
1072
|
+
* @apiMethod GET
|
|
1073
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1074
|
+
*/
|
|
1075
|
+
list: (input: ListInput) => Operation<ListOutput>;
|
|
1076
|
+
/**
|
|
1077
|
+
* @apiPath /crm/objects/2026-03/{objectType}/search
|
|
1078
|
+
* @apiMethod POST
|
|
1079
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1080
|
+
*/
|
|
1081
|
+
search: (input: SearchInput) => Operation<SearchOutput>;
|
|
1082
|
+
/**
|
|
1083
|
+
* Update
|
|
1084
|
+
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}
|
|
1085
|
+
* @apiMethod PATCH
|
|
1086
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1087
|
+
*/
|
|
1088
|
+
update: (input: UpdateInput) => Operation<UpdateOutput>;
|
|
1093
1089
|
}
|
|
1094
1090
|
}
|