@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
|
@@ -1,884 +1,858 @@
|
|
|
1
1
|
import { Operation } from "../../types.js";
|
|
2
2
|
|
|
3
3
|
//#region src/server/api-client-core/apis/crm/tickets-types.generated.d.ts
|
|
4
|
-
declare namespace
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
type Delete2Output = void;
|
|
19
|
-
interface DeleteInput {
|
|
20
|
-
ticketId: string;
|
|
21
|
-
}
|
|
22
|
-
type DeleteOutput = void;
|
|
23
|
-
interface GetInput {
|
|
24
|
-
/**
|
|
25
|
-
* Whether to return only results that have been archived.
|
|
26
|
-
*/
|
|
27
|
-
archived?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* 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.
|
|
30
|
-
*/
|
|
31
|
-
associations?: string[];
|
|
32
|
-
/**
|
|
33
|
-
* The name of a property whose values are unique for this object type
|
|
34
|
-
*/
|
|
35
|
-
idProperty?: string;
|
|
36
|
-
/**
|
|
37
|
-
* 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.
|
|
38
|
-
*/
|
|
39
|
-
properties?: string[];
|
|
40
|
-
/**
|
|
41
|
-
* 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.
|
|
42
|
-
*/
|
|
43
|
-
propertiesWithHistory?: string[];
|
|
44
|
-
ticketId: string;
|
|
45
|
-
}
|
|
46
|
-
type GetOutput = Schemas.SimplePublicObjectWithAssociations;
|
|
47
|
-
interface ListInput {
|
|
48
|
-
/**
|
|
49
|
-
* 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.
|
|
50
|
-
*/
|
|
51
|
-
after?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Whether to return only results that have been archived.
|
|
54
|
-
*/
|
|
55
|
-
archived?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* 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.
|
|
58
|
-
*/
|
|
59
|
-
associations?: string[];
|
|
60
|
-
/**
|
|
61
|
-
* The maximum number of results to display per page.
|
|
62
|
-
*/
|
|
63
|
-
limit?: number;
|
|
64
|
-
/**
|
|
65
|
-
* 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.
|
|
66
|
-
*/
|
|
67
|
-
properties?: string[];
|
|
68
|
-
/**
|
|
69
|
-
* 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.
|
|
70
|
-
*/
|
|
71
|
-
propertiesWithHistory?: string[];
|
|
72
|
-
}
|
|
73
|
-
type ListOutput = Schemas.CollectionResponseSimplePublicObjectWithAssociationsForwardPaging;
|
|
74
|
-
interface UpdateAssociationLabelsInput {
|
|
75
|
-
data: Schemas.AssociationSpec[];
|
|
76
|
-
objectId: string;
|
|
77
|
-
objectType: string;
|
|
78
|
-
toObjectId: string;
|
|
79
|
-
toObjectType: string;
|
|
80
|
-
}
|
|
81
|
-
type UpdateAssociationLabelsOutput = Schemas.LabelsBetweenObjectPair;
|
|
82
|
-
interface UpdateInput {
|
|
83
|
-
data: Schemas.SimplePublicObjectInput;
|
|
84
|
-
/**
|
|
85
|
-
* The name of a property whose values are unique for this object type
|
|
86
|
-
*/
|
|
87
|
-
idProperty?: string;
|
|
88
|
-
ticketId: string;
|
|
89
|
-
}
|
|
90
|
-
type UpdateOutput = Schemas.SimplePublicObject;
|
|
91
|
-
}
|
|
92
|
-
namespace Batch {
|
|
93
|
-
interface Create2Input {
|
|
94
|
-
fromObjectId: string;
|
|
95
|
-
fromObjectType: string;
|
|
96
|
-
toObjectId: string;
|
|
97
|
-
toObjectType: string;
|
|
98
|
-
}
|
|
99
|
-
type Create2Output = Schemas.BatchResponsePublicDefaultAssociation;
|
|
100
|
-
type CreateInput = Schemas.BatchInputSimplePublicObjectBatchInputForCreate;
|
|
101
|
-
type CreateOutput = Schemas.BatchResponseSimplePublicObject;
|
|
102
|
-
type DeleteInput = Schemas.BatchInputSimplePublicObjectId;
|
|
103
|
-
type DeleteOutput = void;
|
|
104
|
-
interface GetInput {
|
|
105
|
-
/**
|
|
106
|
-
* Whether to return only results that have been archived.
|
|
107
|
-
*/
|
|
108
|
-
archived?: boolean;
|
|
109
|
-
data: Schemas.BatchReadInputSimplePublicObjectId;
|
|
110
|
-
}
|
|
111
|
-
type GetOutput = Schemas.BatchResponseSimplePublicObject;
|
|
112
|
-
type UpdateInput = Schemas.BatchInputSimplePublicObjectBatchInput;
|
|
113
|
-
type UpdateOutput = Schemas.BatchResponseSimplePublicObject;
|
|
114
|
-
type UpsertInput = Schemas.BatchInputSimplePublicObjectBatchInputUpsert;
|
|
115
|
-
type UpsertOutput = Schemas.BatchResponseSimplePublicUpsertObject;
|
|
116
|
-
}
|
|
117
|
-
namespace Schemas {
|
|
118
|
-
/**
|
|
119
|
-
* Contains the id and type of an association
|
|
120
|
-
*/
|
|
121
|
-
interface AssociatedId {
|
|
122
|
-
/**
|
|
123
|
-
* The ID for the association type.
|
|
124
|
-
*/
|
|
125
|
-
id: string;
|
|
126
|
-
/**
|
|
127
|
-
* The type of associations.
|
|
128
|
-
*/
|
|
129
|
-
type: string;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Defines the type, direction, and details of the relationship between two CRM objects.
|
|
133
|
-
*/
|
|
134
|
-
interface AssociationSpec {
|
|
135
|
-
/**
|
|
136
|
-
* The category of the association, such as "HUBSPOT_DEFINED".
|
|
137
|
-
*/
|
|
138
|
-
associationCategory: 'HUBSPOT_DEFINED' | 'INTEGRATOR_DEFINED' | 'USER_DEFINED' | 'WORK';
|
|
139
|
-
/**
|
|
140
|
-
* The ID representing the specific type of association.
|
|
141
|
-
*/
|
|
142
|
-
associationTypeId: number;
|
|
143
|
-
}
|
|
144
|
-
interface BatchInputSimplePublicObjectBatchInput {
|
|
145
|
-
inputs: Schemas.SimplePublicObjectBatchInput[];
|
|
146
|
-
}
|
|
147
|
-
interface BatchInputSimplePublicObjectBatchInputForCreate {
|
|
148
|
-
inputs: Schemas.SimplePublicObjectBatchInputForCreate[];
|
|
149
|
-
}
|
|
150
|
-
interface BatchInputSimplePublicObjectBatchInputUpsert {
|
|
151
|
-
inputs: Schemas.SimplePublicObjectBatchInputUpsert[];
|
|
152
|
-
}
|
|
153
|
-
interface BatchInputSimplePublicObjectId {
|
|
154
|
-
inputs: Schemas.SimplePublicObjectId[];
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* 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.
|
|
158
|
-
*/
|
|
159
|
-
interface BatchReadInputSimplePublicObjectId {
|
|
160
|
-
/**
|
|
161
|
-
* 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.
|
|
162
|
-
*/
|
|
163
|
-
idProperty?: string;
|
|
164
|
-
inputs: Schemas.SimplePublicObjectId[];
|
|
165
|
-
/**
|
|
166
|
-
* Key-value pairs for setting properties for the new object.
|
|
167
|
-
*/
|
|
168
|
-
properties: string[];
|
|
169
|
-
/**
|
|
170
|
-
* Key-value pairs for setting properties for the new object and their histories.
|
|
171
|
-
*/
|
|
172
|
-
propertiesWithHistory: string[];
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* The response returned after performing a batch operation on associations.
|
|
176
|
-
*/
|
|
177
|
-
interface BatchResponsePublicDefaultAssociation {
|
|
178
|
-
/**
|
|
179
|
-
* The timestamp when the batch process was completed, in ISO 8601 format.
|
|
180
|
-
*/
|
|
181
|
-
completedAt: string;
|
|
182
|
-
errors?: Schemas.StandardError[];
|
|
183
|
-
/**
|
|
184
|
-
* An object containing relevant links related to the batch request.
|
|
185
|
-
*/
|
|
186
|
-
links?: Record<string, string>;
|
|
187
|
-
/**
|
|
188
|
-
* The total number of errors that occurred during the operation.
|
|
189
|
-
*/
|
|
190
|
-
numErrors?: number;
|
|
191
|
-
/**
|
|
192
|
-
* The timestamp when the batch process was initiated, in ISO 8601 format.
|
|
193
|
-
*/
|
|
194
|
-
requestedAt?: string;
|
|
195
|
-
results: Schemas.PublicDefaultAssociation[];
|
|
196
|
-
/**
|
|
197
|
-
* The timestamp when the batch process began execution, in ISO 8601 format.
|
|
198
|
-
*/
|
|
199
|
-
startedAt: string;
|
|
200
|
-
/**
|
|
201
|
-
* The status of the batch processing request. Can be: "PENDING", "PROCESSING", "CANCELED", or "COMPLETE".
|
|
202
|
-
*/
|
|
203
|
-
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* A public object batch response object
|
|
207
|
-
*/
|
|
208
|
-
interface BatchResponseSimplePublicObject {
|
|
209
|
-
/**
|
|
210
|
-
* The timestamp when the batch processing was completed, in ISO 8601 format.
|
|
211
|
-
*/
|
|
212
|
-
completedAt: string;
|
|
213
|
-
/**
|
|
214
|
-
* An object containing relevant links related to the batch request.
|
|
215
|
-
*/
|
|
216
|
-
links?: Record<string, string>;
|
|
217
|
-
/**
|
|
218
|
-
* The timestamp when the batch request was initially made, in ISO 8601 format.
|
|
219
|
-
*/
|
|
220
|
-
requestedAt?: string;
|
|
221
|
-
results: Schemas.SimplePublicObject[];
|
|
222
|
-
/**
|
|
223
|
-
* The timestamp when the batch processing began, in ISO 8601 format.
|
|
224
|
-
*/
|
|
225
|
-
startedAt: string;
|
|
226
|
-
/**
|
|
227
|
-
* The status of the batch processing request. The expected value is "COMPLETE".
|
|
228
|
-
*/
|
|
229
|
-
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Represents the result of a batch upsert operation, including the operation’s status, timestamps, and a list of successfully created or updated objects.
|
|
233
|
-
*/
|
|
234
|
-
interface BatchResponseSimplePublicUpsertObject {
|
|
235
|
-
/**
|
|
236
|
-
* The timestamp when the batch process was completed, in ISO 8601 format.
|
|
237
|
-
*/
|
|
238
|
-
completedAt: string;
|
|
239
|
-
/**
|
|
240
|
-
* An object containing relevant links related to the batch request.
|
|
241
|
-
*/
|
|
242
|
-
links?: Record<string, string>;
|
|
243
|
-
/**
|
|
244
|
-
* The timestamp when the batch process was initiated, in ISO 8601 format.
|
|
245
|
-
*/
|
|
246
|
-
requestedAt?: string;
|
|
247
|
-
results: Schemas.SimplePublicUpsertObject[];
|
|
248
|
-
/**
|
|
249
|
-
* The timestamp when the batch process began execution, in ISO 8601 format.
|
|
250
|
-
*/
|
|
251
|
-
startedAt: string;
|
|
252
|
-
/**
|
|
253
|
-
* The status of the batch processing request. The expected value is "COMPLETE".
|
|
254
|
-
*/
|
|
255
|
-
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
256
|
-
}
|
|
257
|
-
interface CollectionResponseAssociatedId {
|
|
258
|
-
paging?: Schemas.Paging;
|
|
259
|
-
results: Schemas.AssociatedId[];
|
|
260
|
-
}
|
|
261
|
-
interface CollectionResponseSimplePublicObjectWithAssociationsForwardPaging {
|
|
262
|
-
paging?: Schemas.ForwardPaging;
|
|
263
|
-
results: Schemas.SimplePublicObjectWithAssociations[];
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Represents a list of simple objects returned from an API request, along with the total count of objects available.
|
|
267
|
-
*/
|
|
268
|
-
interface CollectionResponseWithTotalSimplePublicObject {
|
|
269
|
-
paging?: Schemas.Paging;
|
|
270
|
-
results: Schemas.SimplePublicObject[];
|
|
271
|
-
/**
|
|
272
|
-
* The number of available results
|
|
273
|
-
*/
|
|
274
|
-
total: number;
|
|
275
|
-
}
|
|
276
|
-
interface ErrorDetail {
|
|
277
|
-
/**
|
|
278
|
-
* The status code associated with the error detail
|
|
279
|
-
*/
|
|
280
|
-
code?: string;
|
|
281
|
-
/**
|
|
282
|
-
* Context about the error condition
|
|
283
|
-
*/
|
|
284
|
-
context?: Record<string, string[]>;
|
|
285
|
-
/**
|
|
286
|
-
* The name of the field or parameter in which the error was found.
|
|
287
|
-
*/
|
|
288
|
-
in?: string;
|
|
289
|
-
/**
|
|
290
|
-
* A human readable message describing the error along with remediation steps where appropriate
|
|
291
|
-
*/
|
|
292
|
-
message: string;
|
|
293
|
-
/**
|
|
294
|
-
* A specific category that contains more specific detail about the error
|
|
295
|
-
*/
|
|
296
|
-
subCategory?: string;
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* 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.
|
|
300
|
-
*/
|
|
301
|
-
interface Filter {
|
|
302
|
-
/**
|
|
303
|
-
* The upper boundary value when using ranged-based filters.
|
|
304
|
-
*/
|
|
305
|
-
highValue?: string;
|
|
306
|
-
/**
|
|
307
|
-
* null
|
|
308
|
-
*/
|
|
309
|
-
operator: 'BETWEEN' | 'CONTAINS_TOKEN' | 'EQ' | 'GT' | 'GTE' | 'HAS_PROPERTY' | 'IN' | 'LT' | 'LTE' | 'NEQ' | 'NOT_CONTAINS_TOKEN' | 'NOT_HAS_PROPERTY' | 'NOT_IN';
|
|
310
|
-
/**
|
|
311
|
-
* The name of the property to apply the filter to.
|
|
312
|
-
*/
|
|
313
|
-
propertyName: string;
|
|
314
|
-
/**
|
|
315
|
-
* The value to match against the property.
|
|
316
|
-
*/
|
|
317
|
-
value?: string;
|
|
318
|
-
/**
|
|
319
|
-
* The values to match against the property.
|
|
320
|
-
*/
|
|
321
|
-
values?: string[];
|
|
322
|
-
}
|
|
323
|
-
interface FilterGroup {
|
|
324
|
-
filters: Schemas.Filter[];
|
|
325
|
-
}
|
|
326
|
-
interface ForwardPaging {
|
|
327
|
-
next?: Schemas.NextPage;
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* The relationship descriptors applicable between two object types.
|
|
331
|
-
*/
|
|
332
|
-
interface LabelsBetweenObjectPair {
|
|
333
|
-
/**
|
|
334
|
-
* Source unique ID of the object.
|
|
335
|
-
*/
|
|
336
|
-
fromObjectId: string;
|
|
337
|
-
/**
|
|
338
|
-
* Source object type.
|
|
339
|
-
*/
|
|
340
|
-
fromObjectTypeId: string;
|
|
341
|
-
labels: string[];
|
|
342
|
-
/**
|
|
343
|
-
* Target unique ID of the object.
|
|
344
|
-
*/
|
|
345
|
-
toObjectId: string;
|
|
346
|
-
/**
|
|
347
|
-
* Target object type.
|
|
348
|
-
*/
|
|
349
|
-
toObjectTypeId: string;
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* Specifies the paging information needed to retrieve the next set of results in a paginated API response
|
|
353
|
-
*/
|
|
354
|
-
interface NextPage {
|
|
355
|
-
/**
|
|
356
|
-
* A paging cursor token for retrieving subsequent pages.
|
|
357
|
-
*/
|
|
358
|
-
after: string;
|
|
359
|
-
/**
|
|
360
|
-
* A URL that can be used to retrieve the next page results.
|
|
361
|
-
*/
|
|
362
|
-
link?: string;
|
|
363
|
-
}
|
|
364
|
-
interface Paging {
|
|
365
|
-
next?: Schemas.NextPage;
|
|
366
|
-
prev?: Schemas.PreviousPage;
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* specifies the paging information needed to retrieve the previous set of results in a paginated API response
|
|
370
|
-
*/
|
|
371
|
-
interface PreviousPage {
|
|
372
|
-
/**
|
|
373
|
-
* A paging cursor token for retrieving previous pages.
|
|
374
|
-
*/
|
|
375
|
-
before: string;
|
|
376
|
-
/**
|
|
377
|
-
* A URL that can be used to retrieve the previous pages' results.
|
|
378
|
-
*/
|
|
379
|
-
link?: string;
|
|
380
|
-
}
|
|
381
|
-
interface PublicAssociationsForObject {
|
|
382
|
-
to: Schemas.PublicObjectId;
|
|
383
|
-
types: Schemas.AssociationSpec[];
|
|
384
|
-
}
|
|
385
|
-
interface PublicDefaultAssociation {
|
|
386
|
-
associationSpec: Schemas.AssociationSpec;
|
|
387
|
-
from: Schemas.PublicObjectId;
|
|
388
|
-
to: Schemas.PublicObjectId;
|
|
389
|
-
}
|
|
390
|
-
/**
|
|
391
|
-
* Input data for merging two records.
|
|
392
|
-
*/
|
|
393
|
-
interface PublicMergeInput {
|
|
394
|
-
/**
|
|
395
|
-
* The ID of the object that will be merged into the primary object.
|
|
396
|
-
*/
|
|
397
|
-
objectIdToMerge: string;
|
|
398
|
-
/**
|
|
399
|
-
* The ID of the primary object into which another object will be merged.
|
|
400
|
-
*/
|
|
401
|
-
primaryObjectId: string;
|
|
402
|
-
}
|
|
403
|
-
/**
|
|
404
|
-
* Contains the Id of a Public Object
|
|
405
|
-
*/
|
|
406
|
-
interface PublicObjectId {
|
|
407
|
-
/**
|
|
408
|
-
* The unique ID of the object.
|
|
409
|
-
*/
|
|
410
|
-
id: string;
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* Describes a search request
|
|
414
|
-
*/
|
|
415
|
-
interface PublicObjectSearchRequest {
|
|
416
|
-
/**
|
|
417
|
-
* A paging cursor token for retrieving subsequent pages.
|
|
418
|
-
*/
|
|
419
|
-
after: string;
|
|
420
|
-
/**
|
|
421
|
-
* Up to 6 groups of filters defining additional query criteria.
|
|
422
|
-
*/
|
|
423
|
-
filterGroups: Schemas.FilterGroup[];
|
|
424
|
-
/**
|
|
425
|
-
* The maximum results to return, up to 200 objects.
|
|
426
|
-
*/
|
|
427
|
-
limit: number;
|
|
428
|
-
/**
|
|
429
|
-
* A list of property names to include in the response.
|
|
430
|
-
*/
|
|
431
|
-
properties: string[];
|
|
432
|
-
/**
|
|
433
|
-
* The search query string, up to 3000 characters.
|
|
434
|
-
*/
|
|
435
|
-
query?: string;
|
|
436
|
-
/**
|
|
437
|
-
* Specifies sorting order based on object properties.
|
|
438
|
-
*/
|
|
439
|
-
sorts: string[];
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* A simple public object.
|
|
443
|
-
*/
|
|
444
|
-
interface SimplePublicObject {
|
|
445
|
-
/**
|
|
446
|
-
* Whether the object is archived.
|
|
447
|
-
*/
|
|
448
|
-
archived: boolean;
|
|
449
|
-
/**
|
|
450
|
-
* The timestamp when the object was archived, in ISO 8601 format.
|
|
451
|
-
*/
|
|
452
|
-
archivedAt?: string;
|
|
453
|
-
/**
|
|
454
|
-
* The timestamp when the object was created, in ISO 8601 format.
|
|
455
|
-
*/
|
|
456
|
-
createdAt: string;
|
|
457
|
-
/**
|
|
458
|
-
* The unique ID of the object.
|
|
459
|
-
*/
|
|
460
|
-
id: string;
|
|
461
|
-
/**
|
|
462
|
-
* An identifier used for tracing the write request for the object.
|
|
463
|
-
*/
|
|
464
|
-
objectWriteTraceId?: string;
|
|
465
|
-
/**
|
|
466
|
-
* Key-value pairs representing the properties of the object.
|
|
467
|
-
*/
|
|
468
|
-
properties: Record<string, string>;
|
|
469
|
-
/**
|
|
470
|
-
* Key-value pairs representing the properties of the object along with their history.
|
|
471
|
-
*/
|
|
472
|
-
propertiesWithHistory?: Record<string, Schemas.ValueWithTimestamp[]>;
|
|
473
|
-
/**
|
|
474
|
-
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
475
|
-
*/
|
|
476
|
-
updatedAt: string;
|
|
477
|
-
/**
|
|
478
|
-
* The URL associated with the object.
|
|
479
|
-
*/
|
|
480
|
-
url?: string;
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* Contains an array of CRM object records to be processed in a batch operation, each defined by their ID and properties.
|
|
484
|
-
*/
|
|
485
|
-
interface SimplePublicObjectBatchInput {
|
|
486
|
-
/**
|
|
487
|
-
* The id to be updated. This can be the object id, or the unique property value of the idProperty property
|
|
488
|
-
*/
|
|
489
|
-
id: string;
|
|
490
|
-
/**
|
|
491
|
-
* The name of a property whose values are unique for this object
|
|
492
|
-
*/
|
|
493
|
-
idProperty?: string;
|
|
494
|
-
/**
|
|
495
|
-
* A unique identifier for tracing the request.
|
|
496
|
-
*/
|
|
497
|
-
objectWriteTraceId?: string;
|
|
498
|
-
/**
|
|
499
|
-
* Key-value pairs representing the properties of the object.
|
|
500
|
-
*/
|
|
501
|
-
properties: Record<string, string>;
|
|
502
|
-
}
|
|
503
|
-
/**
|
|
504
|
-
* An input object that contains a collection of objects to be created together in a batch.
|
|
505
|
-
*/
|
|
506
|
-
interface SimplePublicObjectBatchInputForCreate {
|
|
507
|
-
associations: Schemas.PublicAssociationsForObject[];
|
|
508
|
-
/**
|
|
509
|
-
* An identifier used for tracing the creation or update request of the object.
|
|
510
|
-
*/
|
|
511
|
-
objectWriteTraceId?: string;
|
|
512
|
-
/**
|
|
513
|
-
* Key value pairs representing the properties of the object.
|
|
514
|
-
*/
|
|
515
|
-
properties: Record<string, string>;
|
|
516
|
-
}
|
|
517
|
-
/**
|
|
518
|
-
* 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.
|
|
519
|
-
*/
|
|
520
|
-
interface SimplePublicObjectBatchInputUpsert {
|
|
521
|
-
/**
|
|
522
|
-
* The unique ID of the object.
|
|
523
|
-
*/
|
|
524
|
-
id: string;
|
|
525
|
-
/**
|
|
526
|
-
* The name of a property whose values are unique for this object
|
|
527
|
-
*/
|
|
528
|
-
idProperty?: string;
|
|
529
|
-
/**
|
|
530
|
-
* An identifier for tracing the creation request.
|
|
531
|
-
*/
|
|
532
|
-
objectWriteTraceId?: string;
|
|
533
|
-
/**
|
|
534
|
-
* Key value pairs representing the properties of the object.
|
|
535
|
-
*/
|
|
536
|
-
properties: Record<string, string>;
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Contains the Id of a Public Object
|
|
540
|
-
*/
|
|
541
|
-
interface SimplePublicObjectId {
|
|
542
|
-
/**
|
|
543
|
-
* The unique ID of the object.
|
|
544
|
-
*/
|
|
545
|
-
id: string;
|
|
546
|
-
}
|
|
547
|
-
/**
|
|
548
|
-
* Represents the input required to create or update a CRM object, containing an object with property names and their corresponding values.
|
|
549
|
-
*/
|
|
550
|
-
interface SimplePublicObjectInput {
|
|
551
|
-
/**
|
|
552
|
-
* Key value pairs representing the properties of the object.
|
|
553
|
-
*/
|
|
554
|
-
properties: Record<string, string>;
|
|
555
|
-
}
|
|
556
|
-
/**
|
|
557
|
-
* 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.
|
|
558
|
-
*/
|
|
559
|
-
interface SimplePublicObjectInputForCreate {
|
|
560
|
-
associations: Schemas.PublicAssociationsForObject[];
|
|
561
|
-
/**
|
|
562
|
-
* Key-value pairs for setting properties for the new object.
|
|
563
|
-
*/
|
|
564
|
-
properties: Record<string, string>;
|
|
565
|
-
}
|
|
566
|
-
/**
|
|
567
|
-
* Represents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type.
|
|
568
|
-
*/
|
|
569
|
-
interface SimplePublicObjectWithAssociations {
|
|
570
|
-
/**
|
|
571
|
-
* Whether the object is archived.
|
|
572
|
-
*/
|
|
573
|
-
archived: boolean;
|
|
574
|
-
/**
|
|
575
|
-
* The timestamp when the object was archived, in ISO 8601 format.
|
|
576
|
-
*/
|
|
577
|
-
archivedAt?: string;
|
|
578
|
-
/**
|
|
579
|
-
* A list defining relationships with other objects.
|
|
580
|
-
*/
|
|
581
|
-
associations?: Record<string, Schemas.CollectionResponseAssociatedId>;
|
|
582
|
-
/**
|
|
583
|
-
* The timestamp when the object was created, in ISO 8601 format.
|
|
584
|
-
*/
|
|
585
|
-
createdAt: string;
|
|
586
|
-
/**
|
|
587
|
-
* The unique ID of the object.
|
|
588
|
-
*/
|
|
589
|
-
id: string;
|
|
590
|
-
/**
|
|
591
|
-
* An identifier used for tracing the creation or update request of the object.
|
|
592
|
-
*/
|
|
593
|
-
objectWriteTraceId?: string;
|
|
594
|
-
/**
|
|
595
|
-
* Key value pairs representing the properties of the object.
|
|
596
|
-
*/
|
|
597
|
-
properties: Record<string, string>;
|
|
598
|
-
/**
|
|
599
|
-
* Key-value pairs representing the properties of the object along with their history.
|
|
600
|
-
*/
|
|
601
|
-
propertiesWithHistory?: Record<string, Schemas.ValueWithTimestamp[]>;
|
|
602
|
-
/**
|
|
603
|
-
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
604
|
-
*/
|
|
605
|
-
updatedAt: string;
|
|
606
|
-
/**
|
|
607
|
-
* The URL on the API that provide direct navigation to the corresponding UI pages for the connectors.
|
|
608
|
-
*/
|
|
609
|
-
url?: string;
|
|
610
|
-
}
|
|
611
|
-
/**
|
|
612
|
-
* Represents a CRM object that has either been created or updated (upserted)
|
|
613
|
-
*/
|
|
614
|
-
interface SimplePublicUpsertObject {
|
|
615
|
-
/**
|
|
616
|
-
* Whether the object is archived.
|
|
617
|
-
*/
|
|
618
|
-
archived: boolean;
|
|
619
|
-
/**
|
|
620
|
-
* The timestamp when the object was archived, in ISO 8601 format.
|
|
621
|
-
*/
|
|
622
|
-
archivedAt?: string;
|
|
623
|
-
/**
|
|
624
|
-
* The timestamp when the object was created, in ISO 8601 format.
|
|
625
|
-
*/
|
|
626
|
-
createdAt: string;
|
|
627
|
-
/**
|
|
628
|
-
* The unique ID of the object.
|
|
629
|
-
*/
|
|
630
|
-
id: string;
|
|
631
|
-
/**
|
|
632
|
-
* Whether the property is new.
|
|
633
|
-
*/
|
|
634
|
-
new: boolean;
|
|
635
|
-
/**
|
|
636
|
-
* An identifier used for tracing the write request for the object.
|
|
637
|
-
*/
|
|
638
|
-
objectWriteTraceId?: string;
|
|
639
|
-
/**
|
|
640
|
-
* Key value pairs representing the properties of the object.
|
|
641
|
-
*/
|
|
642
|
-
properties: Record<string, string>;
|
|
643
|
-
/**
|
|
644
|
-
* Key-value pairs representing the properties of the object along with their history.
|
|
645
|
-
*/
|
|
646
|
-
propertiesWithHistory?: Record<string, Schemas.ValueWithTimestamp[]>;
|
|
647
|
-
/**
|
|
648
|
-
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
649
|
-
*/
|
|
650
|
-
updatedAt: string;
|
|
651
|
-
/**
|
|
652
|
-
* The URL associated with the object.
|
|
653
|
-
*/
|
|
654
|
-
url?: string;
|
|
655
|
-
}
|
|
656
|
-
/**
|
|
657
|
-
* Represents a standard error response in the HubSpot API, providing detailed information about an error that occurred during an API request.
|
|
658
|
-
*/
|
|
659
|
-
interface StandardError {
|
|
660
|
-
/**
|
|
661
|
-
* The main category of the error.
|
|
662
|
-
*/
|
|
663
|
-
category: string;
|
|
664
|
-
/**
|
|
665
|
-
* Additional context-specific information related to the error.
|
|
666
|
-
*/
|
|
667
|
-
context: Record<string, string[]>;
|
|
668
|
-
/**
|
|
669
|
-
* The detailed error objects.
|
|
670
|
-
*/
|
|
671
|
-
errors: Schemas.ErrorDetail[];
|
|
672
|
-
/**
|
|
673
|
-
* A unique ID for the error instance.
|
|
674
|
-
*/
|
|
675
|
-
id?: string;
|
|
676
|
-
/**
|
|
677
|
-
* URLs linking to documentation or resources associated with the error.
|
|
678
|
-
*/
|
|
679
|
-
links: Record<string, string>;
|
|
680
|
-
/**
|
|
681
|
-
* A human-readable string describing the error and possible remediation steps.
|
|
682
|
-
*/
|
|
683
|
-
message: string;
|
|
684
|
-
/**
|
|
685
|
-
* The HTTP status code associated with the error.
|
|
686
|
-
*/
|
|
687
|
-
status: string;
|
|
688
|
-
/**
|
|
689
|
-
* A more specific error category within each main category.
|
|
690
|
-
*/
|
|
691
|
-
subCategory?: Record<string, never>;
|
|
692
|
-
}
|
|
693
|
-
/**
|
|
694
|
-
* Property model that includes timestamp.
|
|
695
|
-
*/
|
|
696
|
-
interface ValueWithTimestamp {
|
|
697
|
-
/**
|
|
698
|
-
* The unique ID of the property.
|
|
699
|
-
*/
|
|
700
|
-
sourceId?: string;
|
|
701
|
-
/**
|
|
702
|
-
* A human-readable label.
|
|
703
|
-
*/
|
|
704
|
-
sourceLabel?: string;
|
|
705
|
-
/**
|
|
706
|
-
* The property type.
|
|
707
|
-
*/
|
|
708
|
-
sourceType: string;
|
|
709
|
-
/**
|
|
710
|
-
* The timestamp when the property was updated, in ISO 8601 format.
|
|
711
|
-
*/
|
|
712
|
-
timestamp: string;
|
|
713
|
-
/**
|
|
714
|
-
* The ID of the user who last updated the property.
|
|
715
|
-
*/
|
|
716
|
-
updatedByUserId?: number;
|
|
717
|
-
/**
|
|
718
|
-
* The property value.
|
|
719
|
-
*/
|
|
720
|
-
value: string;
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
namespace Search {
|
|
724
|
-
type SearchInput = Schemas.PublicObjectSearchRequest;
|
|
725
|
-
type SearchOutput = Schemas.CollectionResponseWithTotalSimplePublicObject;
|
|
4
|
+
declare namespace CRMTicketsSchemas {
|
|
5
|
+
/**
|
|
6
|
+
* Contains the id and type of an association
|
|
7
|
+
*/
|
|
8
|
+
interface AssociatedId {
|
|
9
|
+
/**
|
|
10
|
+
* The ID for the association type.
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* The type of associations.
|
|
15
|
+
*/
|
|
16
|
+
type: string;
|
|
726
17
|
}
|
|
727
18
|
/**
|
|
728
|
-
*
|
|
729
|
-
* ```ts
|
|
730
|
-
* import { crmTickets } from '@hubspot/api-client-core';
|
|
731
|
-
* client.send(crmTickets.advanced.merge(input));
|
|
732
|
-
* ```
|
|
19
|
+
* Defines the type, direction, and details of the relationship between two CRM objects.
|
|
733
20
|
*/
|
|
734
|
-
interface
|
|
21
|
+
interface AssociationSpec {
|
|
735
22
|
/**
|
|
736
|
-
*
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
23
|
+
* The category of the association, such as "HUBSPOT_DEFINED".
|
|
24
|
+
*/
|
|
25
|
+
associationCategory: 'HUBSPOT_DEFINED' | 'INTEGRATOR_DEFINED' | 'USER_DEFINED' | 'WORK';
|
|
26
|
+
/**
|
|
27
|
+
* The ID representing the specific type of association.
|
|
28
|
+
*/
|
|
29
|
+
associationTypeId: number;
|
|
30
|
+
}
|
|
31
|
+
interface BatchInputSimplePublicObjectBatchInput {
|
|
32
|
+
inputs: SimplePublicObjectBatchInput[];
|
|
33
|
+
}
|
|
34
|
+
interface BatchInputSimplePublicObjectBatchInputForCreate {
|
|
35
|
+
inputs: SimplePublicObjectBatchInputForCreate[];
|
|
36
|
+
}
|
|
37
|
+
interface BatchInputSimplePublicObjectBatchInputUpsert {
|
|
38
|
+
inputs: SimplePublicObjectBatchInputUpsert[];
|
|
39
|
+
}
|
|
40
|
+
interface BatchInputSimplePublicObjectId {
|
|
41
|
+
inputs: SimplePublicObjectId[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* 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.
|
|
45
|
+
*/
|
|
46
|
+
interface BatchReadInputSimplePublicObjectId {
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
*/
|
|
50
|
+
idProperty?: string;
|
|
51
|
+
inputs: SimplePublicObjectId[];
|
|
52
|
+
/**
|
|
53
|
+
* Key-value pairs for setting properties for the new object.
|
|
54
|
+
*/
|
|
55
|
+
properties: string[];
|
|
56
|
+
/**
|
|
57
|
+
* Key-value pairs for setting properties for the new object and their histories.
|
|
740
58
|
*/
|
|
741
|
-
|
|
59
|
+
propertiesWithHistory: string[];
|
|
742
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* The response returned after performing a batch operation on associations.
|
|
63
|
+
*/
|
|
64
|
+
interface BatchResponsePublicDefaultAssociation {
|
|
65
|
+
/**
|
|
66
|
+
* The timestamp when the batch process was completed, in ISO 8601 format.
|
|
67
|
+
*/
|
|
68
|
+
completedAt: string;
|
|
69
|
+
errors?: StandardError[];
|
|
70
|
+
/**
|
|
71
|
+
* An object containing relevant links related to the batch request.
|
|
72
|
+
*/
|
|
73
|
+
links?: Record<string, string>;
|
|
74
|
+
/**
|
|
75
|
+
* The total number of errors that occurred during the operation.
|
|
76
|
+
*/
|
|
77
|
+
numErrors?: number;
|
|
78
|
+
/**
|
|
79
|
+
* The timestamp when the batch process was initiated, in ISO 8601 format.
|
|
80
|
+
*/
|
|
81
|
+
requestedAt?: string;
|
|
82
|
+
results: PublicDefaultAssociation[];
|
|
83
|
+
/**
|
|
84
|
+
* The timestamp when the batch process began execution, in ISO 8601 format.
|
|
85
|
+
*/
|
|
86
|
+
startedAt: string;
|
|
87
|
+
/**
|
|
88
|
+
* The status of the batch processing request. Can be: "PENDING", "PROCESSING", "CANCELED", or "COMPLETE".
|
|
89
|
+
*/
|
|
90
|
+
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* A public object batch response object
|
|
94
|
+
*/
|
|
95
|
+
interface BatchResponseSimplePublicObject {
|
|
96
|
+
/**
|
|
97
|
+
* The timestamp when the batch processing was completed, in ISO 8601 format.
|
|
98
|
+
*/
|
|
99
|
+
completedAt: string;
|
|
100
|
+
/**
|
|
101
|
+
* An object containing relevant links related to the batch request.
|
|
102
|
+
*/
|
|
103
|
+
links?: Record<string, string>;
|
|
104
|
+
/**
|
|
105
|
+
* The timestamp when the batch request was initially made, in ISO 8601 format.
|
|
106
|
+
*/
|
|
107
|
+
requestedAt?: string;
|
|
108
|
+
results: SimplePublicObject[];
|
|
109
|
+
/**
|
|
110
|
+
* The timestamp when the batch processing began, in ISO 8601 format.
|
|
111
|
+
*/
|
|
112
|
+
startedAt: string;
|
|
113
|
+
/**
|
|
114
|
+
* The status of the batch processing request. The expected value is "COMPLETE".
|
|
115
|
+
*/
|
|
116
|
+
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Represents the result of a batch upsert operation, including the operation’s status, timestamps, and a list of successfully created or updated objects.
|
|
120
|
+
*/
|
|
121
|
+
interface BatchResponseSimplePublicUpsertObject {
|
|
122
|
+
/**
|
|
123
|
+
* The timestamp when the batch process was completed, in ISO 8601 format.
|
|
124
|
+
*/
|
|
125
|
+
completedAt: string;
|
|
126
|
+
/**
|
|
127
|
+
* An object containing relevant links related to the batch request.
|
|
128
|
+
*/
|
|
129
|
+
links?: Record<string, string>;
|
|
130
|
+
/**
|
|
131
|
+
* The timestamp when the batch process was initiated, in ISO 8601 format.
|
|
132
|
+
*/
|
|
133
|
+
requestedAt?: string;
|
|
134
|
+
results: SimplePublicUpsertObject[];
|
|
135
|
+
/**
|
|
136
|
+
* The timestamp when the batch process began execution, in ISO 8601 format.
|
|
137
|
+
*/
|
|
138
|
+
startedAt: string;
|
|
139
|
+
/**
|
|
140
|
+
* The status of the batch processing request. The expected value is "COMPLETE".
|
|
141
|
+
*/
|
|
142
|
+
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
143
|
+
}
|
|
144
|
+
interface CollectionResponseAssociatedId {
|
|
145
|
+
paging?: Paging;
|
|
146
|
+
results: AssociatedId[];
|
|
147
|
+
}
|
|
148
|
+
interface CollectionResponseSimplePublicObjectWithAssociationsForwardPaging {
|
|
149
|
+
paging?: ForwardPaging;
|
|
150
|
+
results: SimplePublicObjectWithAssociations[];
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Represents a list of simple objects returned from an API request, along with the total count of objects available.
|
|
154
|
+
*/
|
|
155
|
+
interface CollectionResponseWithTotalSimplePublicObject {
|
|
156
|
+
paging?: Paging;
|
|
157
|
+
results: SimplePublicObject[];
|
|
158
|
+
/**
|
|
159
|
+
* The number of available results
|
|
160
|
+
*/
|
|
161
|
+
total: number;
|
|
162
|
+
}
|
|
163
|
+
interface ErrorDetail {
|
|
164
|
+
/**
|
|
165
|
+
* The status code associated with the error detail
|
|
166
|
+
*/
|
|
167
|
+
code?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Context about the error condition
|
|
170
|
+
*/
|
|
171
|
+
context?: Record<string, string[]>;
|
|
172
|
+
/**
|
|
173
|
+
* The name of the field or parameter in which the error was found.
|
|
174
|
+
*/
|
|
175
|
+
in?: string;
|
|
176
|
+
/**
|
|
177
|
+
* A human readable message describing the error along with remediation steps where appropriate
|
|
178
|
+
*/
|
|
179
|
+
message: string;
|
|
180
|
+
/**
|
|
181
|
+
* A specific category that contains more specific detail about the error
|
|
182
|
+
*/
|
|
183
|
+
subCategory?: string;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* 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.
|
|
187
|
+
*/
|
|
188
|
+
interface Filter {
|
|
189
|
+
/**
|
|
190
|
+
* The upper boundary value when using ranged-based filters.
|
|
191
|
+
*/
|
|
192
|
+
highValue?: string;
|
|
193
|
+
/**
|
|
194
|
+
* null
|
|
195
|
+
*/
|
|
196
|
+
operator: 'BETWEEN' | 'CONTAINS_TOKEN' | 'EQ' | 'GT' | 'GTE' | 'HAS_PROPERTY' | 'IN' | 'LT' | 'LTE' | 'NEQ' | 'NOT_CONTAINS_TOKEN' | 'NOT_HAS_PROPERTY' | 'NOT_IN';
|
|
197
|
+
/**
|
|
198
|
+
* The name of the property to apply the filter to.
|
|
199
|
+
*/
|
|
200
|
+
propertyName: string;
|
|
201
|
+
/**
|
|
202
|
+
* The value to match against the property.
|
|
203
|
+
*/
|
|
204
|
+
value?: string;
|
|
205
|
+
/**
|
|
206
|
+
* The values to match against the property.
|
|
207
|
+
*/
|
|
208
|
+
values?: string[];
|
|
209
|
+
}
|
|
210
|
+
interface FilterGroup {
|
|
211
|
+
filters: Filter[];
|
|
212
|
+
}
|
|
213
|
+
interface ForwardPaging {
|
|
214
|
+
next?: NextPage;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* The relationship descriptors applicable between two object types.
|
|
218
|
+
*/
|
|
219
|
+
interface LabelsBetweenObjectPair {
|
|
220
|
+
/**
|
|
221
|
+
* Source unique ID of the object.
|
|
222
|
+
*/
|
|
223
|
+
fromObjectId: string;
|
|
224
|
+
/**
|
|
225
|
+
* Source object type.
|
|
226
|
+
*/
|
|
227
|
+
fromObjectTypeId: string;
|
|
228
|
+
labels: string[];
|
|
229
|
+
/**
|
|
230
|
+
* Target unique ID of the object.
|
|
231
|
+
*/
|
|
232
|
+
toObjectId: string;
|
|
233
|
+
/**
|
|
234
|
+
* Target object type.
|
|
235
|
+
*/
|
|
236
|
+
toObjectTypeId: string;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Specifies the paging information needed to retrieve the next set of results in a paginated API response
|
|
240
|
+
*/
|
|
241
|
+
interface NextPage {
|
|
242
|
+
/**
|
|
243
|
+
* A paging cursor token for retrieving subsequent pages.
|
|
244
|
+
*/
|
|
245
|
+
after: string;
|
|
246
|
+
/**
|
|
247
|
+
* A URL that can be used to retrieve the next page results.
|
|
248
|
+
*/
|
|
249
|
+
link?: string;
|
|
250
|
+
}
|
|
251
|
+
interface Paging {
|
|
252
|
+
next?: NextPage;
|
|
253
|
+
prev?: PreviousPage;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* specifies the paging information needed to retrieve the previous set of results in a paginated API response
|
|
257
|
+
*/
|
|
258
|
+
interface PreviousPage {
|
|
259
|
+
/**
|
|
260
|
+
* A paging cursor token for retrieving previous pages.
|
|
261
|
+
*/
|
|
262
|
+
before: string;
|
|
263
|
+
/**
|
|
264
|
+
* A URL that can be used to retrieve the previous pages' results.
|
|
265
|
+
*/
|
|
266
|
+
link?: string;
|
|
267
|
+
}
|
|
268
|
+
interface PublicAssociationsForObject {
|
|
269
|
+
to: PublicObjectId;
|
|
270
|
+
types: AssociationSpec[];
|
|
271
|
+
}
|
|
272
|
+
interface PublicDefaultAssociation {
|
|
273
|
+
associationSpec: AssociationSpec;
|
|
274
|
+
from: PublicObjectId;
|
|
275
|
+
to: PublicObjectId;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Input data for merging two records.
|
|
279
|
+
*/
|
|
280
|
+
interface PublicMergeInput {
|
|
281
|
+
/**
|
|
282
|
+
* The ID of the object that will be merged into the primary object.
|
|
283
|
+
*/
|
|
284
|
+
objectIdToMerge: string;
|
|
285
|
+
/**
|
|
286
|
+
* The ID of the primary object into which another object will be merged.
|
|
287
|
+
*/
|
|
288
|
+
primaryObjectId: string;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Contains the Id of a Public Object
|
|
292
|
+
*/
|
|
293
|
+
interface PublicObjectId {
|
|
294
|
+
/**
|
|
295
|
+
* The unique ID of the object.
|
|
296
|
+
*/
|
|
297
|
+
id: string;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Describes a search request
|
|
301
|
+
*/
|
|
302
|
+
interface PublicObjectSearchRequest {
|
|
303
|
+
/**
|
|
304
|
+
* A paging cursor token for retrieving subsequent pages.
|
|
305
|
+
*/
|
|
306
|
+
after: string;
|
|
307
|
+
/**
|
|
308
|
+
* Up to 6 groups of filters defining additional query criteria.
|
|
309
|
+
*/
|
|
310
|
+
filterGroups: FilterGroup[];
|
|
311
|
+
/**
|
|
312
|
+
* The maximum results to return, up to 200 objects.
|
|
313
|
+
*/
|
|
314
|
+
limit: number;
|
|
315
|
+
/**
|
|
316
|
+
* A list of property names to include in the response.
|
|
317
|
+
*/
|
|
318
|
+
properties: string[];
|
|
319
|
+
/**
|
|
320
|
+
* The search query string, up to 3000 characters.
|
|
321
|
+
*/
|
|
322
|
+
query?: string;
|
|
323
|
+
/**
|
|
324
|
+
* Specifies sorting order based on object properties.
|
|
325
|
+
*/
|
|
326
|
+
sorts: string[];
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* A simple public object.
|
|
330
|
+
*/
|
|
331
|
+
interface SimplePublicObject {
|
|
332
|
+
/**
|
|
333
|
+
* Whether the object is archived.
|
|
334
|
+
*/
|
|
335
|
+
archived: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* The timestamp when the object was archived, in ISO 8601 format.
|
|
338
|
+
*/
|
|
339
|
+
archivedAt?: string;
|
|
340
|
+
/**
|
|
341
|
+
* The timestamp when the object was created, in ISO 8601 format.
|
|
342
|
+
*/
|
|
343
|
+
createdAt: string;
|
|
344
|
+
/**
|
|
345
|
+
* The unique ID of the object.
|
|
346
|
+
*/
|
|
347
|
+
id: string;
|
|
348
|
+
/**
|
|
349
|
+
* An identifier used for tracing the write request for the object.
|
|
350
|
+
*/
|
|
351
|
+
objectWriteTraceId?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Key-value pairs representing the properties of the object.
|
|
354
|
+
*/
|
|
355
|
+
properties: Record<string, string>;
|
|
356
|
+
/**
|
|
357
|
+
* Key-value pairs representing the properties of the object along with their history.
|
|
358
|
+
*/
|
|
359
|
+
propertiesWithHistory?: Record<string, ValueWithTimestamp[]>;
|
|
360
|
+
/**
|
|
361
|
+
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
362
|
+
*/
|
|
363
|
+
updatedAt: string;
|
|
364
|
+
/**
|
|
365
|
+
* The URL associated with the object.
|
|
366
|
+
*/
|
|
367
|
+
url?: string;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Contains an array of CRM object records to be processed in a batch operation, each defined by their ID and properties.
|
|
371
|
+
*/
|
|
372
|
+
interface SimplePublicObjectBatchInput {
|
|
373
|
+
/**
|
|
374
|
+
* The id to be updated. This can be the object id, or the unique property value of the idProperty property
|
|
375
|
+
*/
|
|
376
|
+
id: string;
|
|
377
|
+
/**
|
|
378
|
+
* The name of a property whose values are unique for this object
|
|
379
|
+
*/
|
|
380
|
+
idProperty?: string;
|
|
381
|
+
/**
|
|
382
|
+
* A unique identifier for tracing the request.
|
|
383
|
+
*/
|
|
384
|
+
objectWriteTraceId?: string;
|
|
385
|
+
/**
|
|
386
|
+
* Key-value pairs representing the properties of the object.
|
|
387
|
+
*/
|
|
388
|
+
properties: Record<string, string>;
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* An input object that contains a collection of objects to be created together in a batch.
|
|
392
|
+
*/
|
|
393
|
+
interface SimplePublicObjectBatchInputForCreate {
|
|
394
|
+
associations: PublicAssociationsForObject[];
|
|
395
|
+
/**
|
|
396
|
+
* An identifier used for tracing the creation or update request of the object.
|
|
397
|
+
*/
|
|
398
|
+
objectWriteTraceId?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Key value pairs representing the properties of the object.
|
|
401
|
+
*/
|
|
402
|
+
properties: Record<string, string>;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* 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.
|
|
406
|
+
*/
|
|
407
|
+
interface SimplePublicObjectBatchInputUpsert {
|
|
408
|
+
/**
|
|
409
|
+
* The unique ID of the object.
|
|
410
|
+
*/
|
|
411
|
+
id: string;
|
|
412
|
+
/**
|
|
413
|
+
* The name of a property whose values are unique for this object
|
|
414
|
+
*/
|
|
415
|
+
idProperty?: string;
|
|
416
|
+
/**
|
|
417
|
+
* An identifier for tracing the creation request.
|
|
418
|
+
*/
|
|
419
|
+
objectWriteTraceId?: string;
|
|
420
|
+
/**
|
|
421
|
+
* Key value pairs representing the properties of the object.
|
|
422
|
+
*/
|
|
423
|
+
properties: Record<string, string>;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Contains the Id of a Public Object
|
|
427
|
+
*/
|
|
428
|
+
interface SimplePublicObjectId {
|
|
429
|
+
/**
|
|
430
|
+
* The unique ID of the object.
|
|
431
|
+
*/
|
|
432
|
+
id: string;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Represents the input required to create or update a CRM object, containing an object with property names and their corresponding values.
|
|
436
|
+
*/
|
|
437
|
+
interface SimplePublicObjectInput {
|
|
438
|
+
/**
|
|
439
|
+
* Key value pairs representing the properties of the object.
|
|
440
|
+
*/
|
|
441
|
+
properties: Record<string, string>;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* 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.
|
|
445
|
+
*/
|
|
446
|
+
interface SimplePublicObjectInputForCreate {
|
|
447
|
+
associations: PublicAssociationsForObject[];
|
|
448
|
+
/**
|
|
449
|
+
* Key-value pairs for setting properties for the new object.
|
|
450
|
+
*/
|
|
451
|
+
properties: Record<string, string>;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Represents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type.
|
|
455
|
+
*/
|
|
456
|
+
interface SimplePublicObjectWithAssociations {
|
|
457
|
+
/**
|
|
458
|
+
* Whether the object is archived.
|
|
459
|
+
*/
|
|
460
|
+
archived: boolean;
|
|
461
|
+
/**
|
|
462
|
+
* The timestamp when the object was archived, in ISO 8601 format.
|
|
463
|
+
*/
|
|
464
|
+
archivedAt?: string;
|
|
465
|
+
/**
|
|
466
|
+
* A list defining relationships with other objects.
|
|
467
|
+
*/
|
|
468
|
+
associations?: Record<string, CollectionResponseAssociatedId>;
|
|
469
|
+
/**
|
|
470
|
+
* The timestamp when the object was created, in ISO 8601 format.
|
|
471
|
+
*/
|
|
472
|
+
createdAt: string;
|
|
473
|
+
/**
|
|
474
|
+
* The unique ID of the object.
|
|
475
|
+
*/
|
|
476
|
+
id: string;
|
|
477
|
+
/**
|
|
478
|
+
* An identifier used for tracing the creation or update request of the object.
|
|
479
|
+
*/
|
|
480
|
+
objectWriteTraceId?: string;
|
|
481
|
+
/**
|
|
482
|
+
* Key value pairs representing the properties of the object.
|
|
483
|
+
*/
|
|
484
|
+
properties: Record<string, string>;
|
|
485
|
+
/**
|
|
486
|
+
* Key-value pairs representing the properties of the object along with their history.
|
|
487
|
+
*/
|
|
488
|
+
propertiesWithHistory?: Record<string, ValueWithTimestamp[]>;
|
|
489
|
+
/**
|
|
490
|
+
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
491
|
+
*/
|
|
492
|
+
updatedAt: string;
|
|
493
|
+
/**
|
|
494
|
+
* The URL on the API that provide direct navigation to the corresponding UI pages for the connectors.
|
|
495
|
+
*/
|
|
496
|
+
url?: string;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Represents a CRM object that has either been created or updated (upserted)
|
|
500
|
+
*/
|
|
501
|
+
interface SimplePublicUpsertObject {
|
|
502
|
+
/**
|
|
503
|
+
* Whether the object is archived.
|
|
504
|
+
*/
|
|
505
|
+
archived: boolean;
|
|
506
|
+
/**
|
|
507
|
+
* The timestamp when the object was archived, in ISO 8601 format.
|
|
508
|
+
*/
|
|
509
|
+
archivedAt?: string;
|
|
510
|
+
/**
|
|
511
|
+
* The timestamp when the object was created, in ISO 8601 format.
|
|
512
|
+
*/
|
|
513
|
+
createdAt: string;
|
|
514
|
+
/**
|
|
515
|
+
* The unique ID of the object.
|
|
516
|
+
*/
|
|
517
|
+
id: string;
|
|
518
|
+
/**
|
|
519
|
+
* Whether the property is new.
|
|
520
|
+
*/
|
|
521
|
+
new: boolean;
|
|
522
|
+
/**
|
|
523
|
+
* An identifier used for tracing the write request for the object.
|
|
524
|
+
*/
|
|
525
|
+
objectWriteTraceId?: string;
|
|
526
|
+
/**
|
|
527
|
+
* Key value pairs representing the properties of the object.
|
|
528
|
+
*/
|
|
529
|
+
properties: Record<string, string>;
|
|
530
|
+
/**
|
|
531
|
+
* Key-value pairs representing the properties of the object along with their history.
|
|
532
|
+
*/
|
|
533
|
+
propertiesWithHistory?: Record<string, ValueWithTimestamp[]>;
|
|
534
|
+
/**
|
|
535
|
+
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
536
|
+
*/
|
|
537
|
+
updatedAt: string;
|
|
538
|
+
/**
|
|
539
|
+
* The URL associated with the object.
|
|
540
|
+
*/
|
|
541
|
+
url?: string;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Represents a standard error response in the HubSpot API, providing detailed information about an error that occurred during an API request.
|
|
545
|
+
*/
|
|
546
|
+
interface StandardError {
|
|
547
|
+
/**
|
|
548
|
+
* The main category of the error.
|
|
549
|
+
*/
|
|
550
|
+
category: string;
|
|
551
|
+
/**
|
|
552
|
+
* Additional context-specific information related to the error.
|
|
553
|
+
*/
|
|
554
|
+
context: Record<string, string[]>;
|
|
555
|
+
/**
|
|
556
|
+
* The detailed error objects.
|
|
557
|
+
*/
|
|
558
|
+
errors: ErrorDetail[];
|
|
559
|
+
/**
|
|
560
|
+
* A unique ID for the error instance.
|
|
561
|
+
*/
|
|
562
|
+
id?: string;
|
|
563
|
+
/**
|
|
564
|
+
* URLs linking to documentation or resources associated with the error.
|
|
565
|
+
*/
|
|
566
|
+
links: Record<string, string>;
|
|
567
|
+
/**
|
|
568
|
+
* A human-readable string describing the error and possible remediation steps.
|
|
569
|
+
*/
|
|
570
|
+
message: string;
|
|
571
|
+
/**
|
|
572
|
+
* The HTTP status code associated with the error.
|
|
573
|
+
*/
|
|
574
|
+
status: string;
|
|
575
|
+
/**
|
|
576
|
+
* A more specific error category within each main category.
|
|
577
|
+
*/
|
|
578
|
+
subCategory?: Record<string, never>;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Property model that includes timestamp.
|
|
582
|
+
*/
|
|
583
|
+
interface ValueWithTimestamp {
|
|
584
|
+
/**
|
|
585
|
+
* The unique ID of the property.
|
|
586
|
+
*/
|
|
587
|
+
sourceId?: string;
|
|
588
|
+
/**
|
|
589
|
+
* A human-readable label.
|
|
590
|
+
*/
|
|
591
|
+
sourceLabel?: string;
|
|
592
|
+
/**
|
|
593
|
+
* The property type.
|
|
594
|
+
*/
|
|
595
|
+
sourceType: string;
|
|
596
|
+
/**
|
|
597
|
+
* The timestamp when the property was updated, in ISO 8601 format.
|
|
598
|
+
*/
|
|
599
|
+
timestamp: string;
|
|
600
|
+
/**
|
|
601
|
+
* The ID of the user who last updated the property.
|
|
602
|
+
*/
|
|
603
|
+
updatedByUserId?: number;
|
|
604
|
+
/**
|
|
605
|
+
* The property value.
|
|
606
|
+
*/
|
|
607
|
+
value: string;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
declare namespace CrmObjectsTickets {
|
|
611
|
+
type CreateInput = CRMTicketsSchemas.SimplePublicObjectInputForCreate;
|
|
612
|
+
type CreateOutput = CRMTicketsSchemas.SimplePublicObject;
|
|
613
|
+
interface DeleteInput {
|
|
614
|
+
ticketId: string;
|
|
615
|
+
}
|
|
616
|
+
type DeleteOutput = void;
|
|
617
|
+
interface GetInput {
|
|
618
|
+
/**
|
|
619
|
+
* Whether to return only results that have been archived.
|
|
620
|
+
*/
|
|
621
|
+
archived?: boolean;
|
|
622
|
+
/**
|
|
623
|
+
* 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.
|
|
624
|
+
*/
|
|
625
|
+
associations?: string[];
|
|
626
|
+
/**
|
|
627
|
+
* The name of a property whose values are unique for this object type
|
|
628
|
+
*/
|
|
629
|
+
idProperty?: string;
|
|
630
|
+
/**
|
|
631
|
+
* 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.
|
|
632
|
+
*/
|
|
633
|
+
properties?: string[];
|
|
634
|
+
/**
|
|
635
|
+
* 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.
|
|
636
|
+
*/
|
|
637
|
+
propertiesWithHistory?: string[];
|
|
638
|
+
ticketId: string;
|
|
639
|
+
}
|
|
640
|
+
type GetOutput = CRMTicketsSchemas.SimplePublicObjectWithAssociations;
|
|
641
|
+
interface ListInput {
|
|
642
|
+
/**
|
|
643
|
+
* 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.
|
|
644
|
+
*/
|
|
645
|
+
after?: string;
|
|
646
|
+
/**
|
|
647
|
+
* Whether to return only results that have been archived.
|
|
648
|
+
*/
|
|
649
|
+
archived?: boolean;
|
|
650
|
+
/**
|
|
651
|
+
* 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.
|
|
652
|
+
*/
|
|
653
|
+
associations?: string[];
|
|
654
|
+
/**
|
|
655
|
+
* The maximum number of results to display per page.
|
|
656
|
+
*/
|
|
657
|
+
limit?: number;
|
|
658
|
+
/**
|
|
659
|
+
* 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.
|
|
660
|
+
*/
|
|
661
|
+
properties?: string[];
|
|
662
|
+
/**
|
|
663
|
+
* 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.
|
|
664
|
+
*/
|
|
665
|
+
propertiesWithHistory?: string[];
|
|
666
|
+
}
|
|
667
|
+
type ListOutput = CRMTicketsSchemas.CollectionResponseSimplePublicObjectWithAssociationsForwardPaging;
|
|
668
|
+
type MergeInput = CRMTicketsSchemas.PublicMergeInput;
|
|
669
|
+
type MergeOutput = CRMTicketsSchemas.SimplePublicObject;
|
|
670
|
+
type SearchInput = CRMTicketsSchemas.PublicObjectSearchRequest;
|
|
671
|
+
type SearchOutput = CRMTicketsSchemas.CollectionResponseWithTotalSimplePublicObject;
|
|
672
|
+
interface UpdateInput {
|
|
673
|
+
data: CRMTicketsSchemas.SimplePublicObjectInput;
|
|
674
|
+
/**
|
|
675
|
+
* The name of a property whose values are unique for this object type
|
|
676
|
+
*/
|
|
677
|
+
idProperty?: string;
|
|
678
|
+
ticketId: string;
|
|
679
|
+
}
|
|
680
|
+
type UpdateOutput = CRMTicketsSchemas.SimplePublicObject;
|
|
743
681
|
/**
|
|
744
682
|
* Usage example:
|
|
745
683
|
* ```ts
|
|
746
|
-
* import {
|
|
747
|
-
* client.send(
|
|
684
|
+
* import { crmObjectsTickets } from '@hubspot/api-client-core';
|
|
685
|
+
* client.send(crmObjectsTickets.create(input));
|
|
748
686
|
* ```
|
|
749
687
|
*/
|
|
750
|
-
interface
|
|
688
|
+
interface API {
|
|
751
689
|
/**
|
|
752
690
|
* Create
|
|
753
691
|
* @apiPath /crm/objects/2026-03/tickets
|
|
754
692
|
* @apiMethod POST
|
|
755
693
|
* @requiredScopes tickets
|
|
756
694
|
*/
|
|
757
|
-
create: (input:
|
|
695
|
+
create: (input: CreateInput) => Operation<CreateOutput>;
|
|
758
696
|
/**
|
|
759
697
|
* Archive
|
|
760
698
|
* @apiPath /crm/objects/2026-03/tickets/{ticketId}
|
|
761
699
|
* @apiMethod DELETE
|
|
762
700
|
* @requiredScopes tickets
|
|
763
701
|
*/
|
|
764
|
-
delete: (input:
|
|
765
|
-
/**
|
|
766
|
-
* deletes all associations between two records.
|
|
767
|
-
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}
|
|
768
|
-
* @apiMethod DELETE
|
|
769
|
-
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
770
|
-
*/
|
|
771
|
-
delete2: (input: Basic.Delete2Input) => Operation<Basic.Delete2Output>;
|
|
702
|
+
delete: (input: DeleteInput) => Operation<DeleteOutput>;
|
|
772
703
|
/**
|
|
773
704
|
* Read
|
|
774
705
|
* @apiPath /crm/objects/2026-03/tickets/{ticketId}
|
|
775
706
|
* @apiMethod GET
|
|
776
707
|
* @requiredScopes tickets
|
|
777
708
|
*/
|
|
778
|
-
get: (input:
|
|
709
|
+
get: (input: GetInput) => Operation<GetOutput>;
|
|
779
710
|
/**
|
|
780
711
|
* List
|
|
781
712
|
* @apiPath /crm/objects/2026-03/tickets
|
|
782
713
|
* @apiMethod GET
|
|
783
714
|
* @requiredScopes tickets
|
|
784
715
|
*/
|
|
785
|
-
list: (input?:
|
|
716
|
+
list: (input?: ListInput) => Operation<ListOutput>;
|
|
717
|
+
/**
|
|
718
|
+
* Merge two tickets
|
|
719
|
+
* @apiPath /crm/objects/2026-03/tickets/merge
|
|
720
|
+
* @apiMethod POST
|
|
721
|
+
* @requiredScopes tickets
|
|
722
|
+
*/
|
|
723
|
+
merge: (input: MergeInput) => Operation<MergeOutput>;
|
|
724
|
+
/**
|
|
725
|
+
* Search for tickets
|
|
726
|
+
* @apiPath /crm/objects/2026-03/tickets/search
|
|
727
|
+
* @apiMethod POST
|
|
728
|
+
* @requiredScopes tickets
|
|
729
|
+
*/
|
|
730
|
+
search: (input: SearchInput) => Operation<SearchOutput>;
|
|
786
731
|
/**
|
|
787
732
|
* Update
|
|
788
733
|
* @apiPath /crm/objects/2026-03/tickets/{ticketId}
|
|
789
734
|
* @apiMethod PATCH
|
|
790
735
|
* @requiredScopes tickets
|
|
791
736
|
*/
|
|
792
|
-
update: (input:
|
|
737
|
+
update: (input: UpdateInput) => Operation<UpdateOutput>;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
declare namespace CrmObjectsTicketsBatch {
|
|
741
|
+
type CreateInput = CRMTicketsSchemas.BatchInputSimplePublicObjectBatchInputForCreate;
|
|
742
|
+
type CreateOutput = CRMTicketsSchemas.BatchResponseSimplePublicObject;
|
|
743
|
+
type DeleteInput = CRMTicketsSchemas.BatchInputSimplePublicObjectId;
|
|
744
|
+
type DeleteOutput = void;
|
|
745
|
+
interface GetInput {
|
|
793
746
|
/**
|
|
794
|
-
*
|
|
795
|
-
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}
|
|
796
|
-
* @apiMethod PUT
|
|
797
|
-
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
747
|
+
* Whether to return only results that have been archived.
|
|
798
748
|
*/
|
|
799
|
-
|
|
749
|
+
archived?: boolean;
|
|
750
|
+
data: CRMTicketsSchemas.BatchReadInputSimplePublicObjectId;
|
|
800
751
|
}
|
|
752
|
+
type GetOutput = CRMTicketsSchemas.BatchResponseSimplePublicObject;
|
|
753
|
+
type UpdateInput = CRMTicketsSchemas.BatchInputSimplePublicObjectBatchInput;
|
|
754
|
+
type UpdateOutput = CRMTicketsSchemas.BatchResponseSimplePublicObject;
|
|
755
|
+
type UpsertInput = CRMTicketsSchemas.BatchInputSimplePublicObjectBatchInputUpsert;
|
|
756
|
+
type UpsertOutput = CRMTicketsSchemas.BatchResponseSimplePublicUpsertObject;
|
|
801
757
|
/**
|
|
802
758
|
* Usage example:
|
|
803
759
|
* ```ts
|
|
804
|
-
* import {
|
|
805
|
-
* client.send(
|
|
760
|
+
* import { crmObjectsTicketsBatch } from '@hubspot/api-client-core';
|
|
761
|
+
* client.send(crmObjectsTicketsBatch.create(input));
|
|
806
762
|
* ```
|
|
807
763
|
*/
|
|
808
|
-
interface
|
|
764
|
+
interface API {
|
|
809
765
|
/**
|
|
810
766
|
* Create a batch of tickets
|
|
811
767
|
* @apiPath /crm/objects/2026-03/tickets/batch/create
|
|
812
768
|
* @apiMethod POST
|
|
813
769
|
* @requiredScopes tickets
|
|
814
770
|
*/
|
|
815
|
-
create: (input:
|
|
816
|
-
/**
|
|
817
|
-
* Create the default (most generic) association type between two object types
|
|
818
|
-
* @apiPath /crm/objects/2026-03/{fromObjectType}/{fromObjectId}/associations/default/{toObjectType}/{toObjectId}
|
|
819
|
-
* @apiMethod PUT
|
|
820
|
-
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
821
|
-
*/
|
|
822
|
-
create2: (input: Batch.Create2Input) => Operation<Batch.Create2Output>;
|
|
771
|
+
create: (input: CreateInput) => Operation<CreateOutput>;
|
|
823
772
|
/**
|
|
824
773
|
* Archive a batch of tickets by ID
|
|
825
774
|
* @apiPath /crm/objects/2026-03/tickets/batch/archive
|
|
826
775
|
* @apiMethod POST
|
|
827
776
|
* @requiredScopes tickets
|
|
828
777
|
*/
|
|
829
|
-
delete: (input:
|
|
778
|
+
delete: (input: DeleteInput) => Operation<DeleteOutput>;
|
|
830
779
|
/**
|
|
831
780
|
* Read a batch of tickets by internal ID, or unique property values
|
|
832
781
|
* @apiPath /crm/objects/2026-03/tickets/batch/read
|
|
833
782
|
* @apiMethod POST
|
|
834
783
|
* @requiredScopes tickets
|
|
835
784
|
*/
|
|
836
|
-
get: (input:
|
|
785
|
+
get: (input: GetInput) => Operation<GetOutput>;
|
|
837
786
|
/**
|
|
838
787
|
* Update a batch of tickets by internal ID, or unique property values
|
|
839
788
|
* @apiPath /crm/objects/2026-03/tickets/batch/update
|
|
840
789
|
* @apiMethod POST
|
|
841
790
|
* @requiredScopes tickets
|
|
842
791
|
*/
|
|
843
|
-
update: (input:
|
|
792
|
+
update: (input: UpdateInput) => Operation<UpdateOutput>;
|
|
844
793
|
/**
|
|
845
794
|
* Create or update a batch of tickets by unique property values
|
|
846
795
|
* @apiPath /crm/objects/2026-03/tickets/batch/upsert
|
|
847
796
|
* @apiMethod POST
|
|
848
797
|
* @requiredScopes tickets
|
|
849
798
|
*/
|
|
850
|
-
upsert: (input:
|
|
799
|
+
upsert: (input: UpsertInput) => Operation<UpsertOutput>;
|
|
851
800
|
}
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
801
|
+
}
|
|
802
|
+
declare namespace CrmTicketsCrmAssociations {
|
|
803
|
+
interface CreateInput {
|
|
804
|
+
fromObjectId: string;
|
|
805
|
+
fromObjectType: string;
|
|
806
|
+
toObjectId: string;
|
|
807
|
+
toObjectType: string;
|
|
808
|
+
}
|
|
809
|
+
type CreateOutput = CRMTicketsSchemas.BatchResponsePublicDefaultAssociation;
|
|
810
|
+
interface DeleteInput {
|
|
811
|
+
objectId: string;
|
|
812
|
+
objectType: string;
|
|
813
|
+
toObjectId: string;
|
|
814
|
+
toObjectType: string;
|
|
815
|
+
}
|
|
816
|
+
type DeleteOutput = void;
|
|
817
|
+
interface UpdateLabelsInput {
|
|
818
|
+
data: CRMTicketsSchemas.AssociationSpec[];
|
|
819
|
+
objectId: string;
|
|
820
|
+
objectType: string;
|
|
821
|
+
toObjectId: string;
|
|
822
|
+
toObjectType: string;
|
|
867
823
|
}
|
|
824
|
+
type UpdateLabelsOutput = CRMTicketsSchemas.LabelsBetweenObjectPair;
|
|
868
825
|
/**
|
|
869
826
|
* Usage example:
|
|
870
827
|
* ```ts
|
|
871
|
-
* import {
|
|
872
|
-
* client.send(
|
|
828
|
+
* import { crmTicketsCrmAssociations } from '@hubspot/api-client-core';
|
|
829
|
+
* client.send(crmTicketsCrmAssociations.create(input));
|
|
873
830
|
* ```
|
|
874
831
|
*/
|
|
875
832
|
interface API {
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
833
|
+
/**
|
|
834
|
+
* Create the default (most generic) association type between two object types
|
|
835
|
+
* @apiPath /crm/objects/2026-03/{fromObjectType}/{fromObjectId}/associations/default/{toObjectType}/{toObjectId}
|
|
836
|
+
* @apiMethod PUT
|
|
837
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
838
|
+
*/
|
|
839
|
+
create: (input: CreateInput) => Operation<CreateOutput>;
|
|
840
|
+
/**
|
|
841
|
+
* deletes all associations between two records.
|
|
842
|
+
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}
|
|
843
|
+
* @apiMethod DELETE
|
|
844
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
845
|
+
*/
|
|
846
|
+
delete: (input: DeleteInput) => Operation<DeleteOutput>;
|
|
847
|
+
/**
|
|
848
|
+
* Set association labels between two records.
|
|
849
|
+
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}
|
|
850
|
+
* @apiMethod PUT
|
|
851
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
852
|
+
*/
|
|
853
|
+
updateLabels: (input: UpdateLabelsInput) => Operation<UpdateLabelsOutput>;
|
|
880
854
|
}
|
|
881
855
|
}
|
|
882
856
|
//#endregion
|
|
883
|
-
export {
|
|
857
|
+
export { CRMTicketsSchemas, CrmObjectsTickets, CrmObjectsTicketsBatch, CrmTicketsCrmAssociations };
|
|
884
858
|
//# sourceMappingURL=tickets-types.generated.d.ts.map
|