@hubspot/app-connect-sdk 1.0.0-alpha.2 → 1.0.0-alpha.20
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 +93 -52
- package/.turbo/turbo-tsdown.log +475 -472
- package/build/tsconfig.browser.tsbuildinfo +1 -1
- package/build/tsconfig.server.tsbuildinfo +1 -1
- package/dist/browser/{HubSpotAppConnect-BW45gyDs.js → HubSpotAppConnect-DFe9b90e.js} +4 -3
- package/dist/browser/HubSpotAppConnect-DFe9b90e.js.map +1 -0
- package/dist/browser/{create-vctOhpX9.js → create-BNQazCF-.js} +277 -86
- package/dist/browser/create-BNQazCF-.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-DkAmHcZt.d.ts} +22 -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 +155 -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/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 +16 -22
- package/src/browser/app-connect-controller/README.md +5 -2
- package/src/browser/app-connect-controller/connect-start.test.ts +156 -0
- package/src/browser/app-connect-controller/connect-start.ts +18 -3
- package/src/browser/app-connect-controller/disconnect.ts +4 -7
- package/src/browser/app-connect-controller/init.test.ts +260 -0
- package/src/browser/app-connect-controller/init.ts +44 -19
- package/src/browser/app-connect-controller/oauth-complete.test.ts +106 -0
- package/src/browser/app-connect-controller/oauth-complete.ts +53 -0
- package/src/browser/app-connect-controller/oauth-popup.test.ts +238 -0
- package/src/browser/app-connect-controller/oauth-popup.ts +160 -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/index.ts +1 -0
- package/src/browser/react/components/AppConnectHeader/AppConnectHeader.tsx +3 -5
- package/src/browser/react/components/ConnectButton/ConnectButton.tsx +1 -1
- package/src/browser/react/lovable/LovableHubSpotAppConnect.tsx +12 -2
- package/src/browser/types.ts +21 -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 +285 -0
- package/src/server/hono/hubspot-connect-routes/{auth-callback.ts → auth-complete.ts} +74 -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/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 +19 -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
|
@@ -3,1060 +3,870 @@
|
|
|
3
3
|
import type { BinaryData } from '../../binary-data.ts';
|
|
4
4
|
import type { Operation } from '../../types.ts';
|
|
5
5
|
|
|
6
|
-
export namespace
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
data: Schemas.BatchInputHubDbTableRowBatchCloneRequest;
|
|
10
|
-
tableIdOrName: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type CloneBatchOutput = Schemas.BatchResponseHubDbTableRowV3;
|
|
14
|
-
|
|
15
|
-
export interface CloneDraftInput {
|
|
16
|
-
name?: string;
|
|
17
|
-
rowId: string;
|
|
18
|
-
tableIdOrName: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type CloneDraftOutput = Schemas.HubDbTableRowV3;
|
|
22
|
-
|
|
23
|
-
export interface CreateBatchInput {
|
|
24
|
-
data: Schemas.BatchInputHubDbTableRowV3Request;
|
|
25
|
-
tableIdOrName: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type CreateBatchOutput = Schemas.BatchResponseHubDbTableRowV3;
|
|
29
|
-
|
|
30
|
-
export interface CreateInput {
|
|
31
|
-
data: Schemas.HubDbTableRowV3Request;
|
|
32
|
-
tableIdOrName: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type CreateOutput = Schemas.HubDbTableRowV3;
|
|
36
|
-
|
|
37
|
-
export interface DeleteDraftInput {
|
|
38
|
-
rowId: string;
|
|
39
|
-
tableIdOrName: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type DeleteDraftOutput = void;
|
|
43
|
-
|
|
44
|
-
export interface GetBatchInput {
|
|
45
|
-
data: Schemas.BatchInputString;
|
|
46
|
-
tableIdOrName: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export type GetBatchOutput = Schemas.BatchResponseHubDbTableRowV3;
|
|
50
|
-
|
|
51
|
-
export interface GetDraftBatchInput {
|
|
52
|
-
data: Schemas.BatchInputString;
|
|
53
|
-
tableIdOrName: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export type GetDraftBatchOutput = Schemas.BatchResponseHubDbTableRowV3;
|
|
57
|
-
|
|
58
|
-
export interface GetDraftInput {
|
|
59
|
-
/**
|
|
60
|
-
* Whether to return only results that have been archived.
|
|
61
|
-
*/
|
|
62
|
-
archived?: boolean;
|
|
63
|
-
rowId: string;
|
|
64
|
-
tableIdOrName: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export type GetDraftOutput = Schemas.HubDbTableRowV3;
|
|
68
|
-
|
|
69
|
-
export interface GetInput {
|
|
70
|
-
/**
|
|
71
|
-
* Whether to return only results that have been archived.
|
|
72
|
-
*/
|
|
73
|
-
archived?: boolean;
|
|
74
|
-
rowId: string;
|
|
75
|
-
tableIdOrName: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export type GetOutput = Schemas.HubDbTableRowV3;
|
|
79
|
-
|
|
80
|
-
export interface ListInput {
|
|
81
|
-
/**
|
|
82
|
-
* 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.
|
|
83
|
-
*/
|
|
84
|
-
after?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Whether to return only results that have been archived.
|
|
87
|
-
*/
|
|
88
|
-
archived?: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* The maximum number of results to display per page.
|
|
91
|
-
*/
|
|
92
|
-
limit?: number;
|
|
93
|
-
offset?: number;
|
|
94
|
-
properties?: string[];
|
|
95
|
-
sort?: string[];
|
|
96
|
-
tableIdOrName: string;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export type ListOutput =
|
|
100
|
-
Schemas.UnifiedCollectionResponseWithTotalBaseHubDbTableRowV3;
|
|
101
|
-
|
|
102
|
-
export interface PurgeBatchInput {
|
|
103
|
-
data: Schemas.BatchInputString;
|
|
104
|
-
tableIdOrName: string;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export type PurgeBatchOutput = void;
|
|
108
|
-
|
|
109
|
-
export interface ReplaceBatchInput {
|
|
110
|
-
data: Schemas.BatchInputHubDbTableRowV3BatchUpdateRequest;
|
|
111
|
-
tableIdOrName: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export type ReplaceBatchOutput = Schemas.BatchResponseHubDbTableRowV3;
|
|
115
|
-
|
|
116
|
-
export interface ReplaceDraftInput {
|
|
117
|
-
data: Schemas.HubDbTableRowV3Request;
|
|
118
|
-
rowId: string;
|
|
119
|
-
tableIdOrName: string;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export type ReplaceDraftOutput = Schemas.HubDbTableRowV3;
|
|
123
|
-
|
|
124
|
-
export interface UpdateBatchInput {
|
|
125
|
-
data: Schemas.BatchInputHubDbTableRowV3BatchUpdateRequest;
|
|
126
|
-
tableIdOrName: string;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export type UpdateBatchOutput = Schemas.BatchResponseHubDbTableRowV3;
|
|
130
|
-
|
|
131
|
-
export interface UpdateDraftInput {
|
|
132
|
-
data: Schemas.HubDbTableRowV3Request;
|
|
133
|
-
rowId: string;
|
|
134
|
-
tableIdOrName: string;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export type UpdateDraftOutput = Schemas.HubDbTableRowV3;
|
|
6
|
+
export namespace CMSHubdbSchemas {
|
|
7
|
+
export interface BatchInputHubDbTableRowBatchCloneRequest {
|
|
8
|
+
inputs: HubDbTableRowBatchCloneRequest[];
|
|
138
9
|
}
|
|
139
10
|
|
|
140
|
-
export
|
|
141
|
-
|
|
142
|
-
inputs: Schemas.HubDbTableRowBatchCloneRequest[];
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export interface BatchInputHubDbTableRowV3BatchUpdateRequest {
|
|
146
|
-
inputs: Schemas.HubDbTableRowV3BatchUpdateRequest[];
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export interface BatchInputHubDbTableRowV3Request {
|
|
150
|
-
inputs: Schemas.HubDbTableRowV3Request[];
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export interface BatchInputString {
|
|
154
|
-
inputs: string[];
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export interface BatchResponseHubDbTableRowV3 {
|
|
158
|
-
/**
|
|
159
|
-
* The timestamp indicating when the batch processing was completed.
|
|
160
|
-
*/
|
|
161
|
-
completedAt: string;
|
|
162
|
-
/**
|
|
163
|
-
* A collection of related links associated with the batch response.
|
|
164
|
-
*/
|
|
165
|
-
links?: Record<string, string>;
|
|
166
|
-
/**
|
|
167
|
-
* The timestamp indicating when the batch request was made.
|
|
168
|
-
*/
|
|
169
|
-
requestedAt?: string;
|
|
170
|
-
results: Schemas.HubDbTableRowV3[];
|
|
171
|
-
/**
|
|
172
|
-
* The timestamp indicating when the batch processing began.
|
|
173
|
-
*/
|
|
174
|
-
startedAt: string;
|
|
175
|
-
/**
|
|
176
|
-
* The current status of the batch operation, with possible values: CANCELED, COMPLETE, PENDING, PROCESSING.
|
|
177
|
-
*/
|
|
178
|
-
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export interface BoundedNextPage {
|
|
182
|
-
/**
|
|
183
|
-
* A URL that can be used to retrieve the next set of results.
|
|
184
|
-
*/
|
|
185
|
-
link?: string;
|
|
186
|
-
/**
|
|
187
|
-
* The offset value indicating the starting point for the next set of results.
|
|
188
|
-
*/
|
|
189
|
-
offset: number;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export interface BoundedPaging {
|
|
193
|
-
next?: Schemas.BoundedNextPage;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export interface CollectionResponseWithTotalHubDbTableV3 {
|
|
197
|
-
paging?: Schemas.Paging;
|
|
198
|
-
results: Schemas.HubDbTableV3[];
|
|
199
|
-
total: number;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export interface Column {
|
|
203
|
-
/**
|
|
204
|
-
* The timestamp when the column was created.
|
|
205
|
-
*/
|
|
206
|
-
createdAt?: string;
|
|
207
|
-
createdBy?: Schemas.SimpleUser;
|
|
208
|
-
/**
|
|
209
|
-
* The ID of the user who created the column.
|
|
210
|
-
*/
|
|
211
|
-
createdByUserId?: number;
|
|
212
|
-
/**
|
|
213
|
-
* Indicates whether the column has been deleted.
|
|
214
|
-
*/
|
|
215
|
-
deleted: boolean;
|
|
216
|
-
/**
|
|
217
|
-
* The description of the column.
|
|
218
|
-
*/
|
|
219
|
-
description: string;
|
|
220
|
-
/**
|
|
221
|
-
* Foreign Column id
|
|
222
|
-
*/
|
|
223
|
-
foreignColumnId?: number;
|
|
224
|
-
/**
|
|
225
|
-
* Foreign Ids
|
|
226
|
-
*/
|
|
227
|
-
foreignIds?: Schemas.ForeignId[];
|
|
228
|
-
/**
|
|
229
|
-
* Foreign ids
|
|
230
|
-
*/
|
|
231
|
-
foreignIdsById?: Record<string, Schemas.ForeignId>;
|
|
232
|
-
/**
|
|
233
|
-
* Foreign ids by name
|
|
234
|
-
*/
|
|
235
|
-
foreignIdsByName?: Record<string, Schemas.ForeignId>;
|
|
236
|
-
/**
|
|
237
|
-
* Foreign table id referenced
|
|
238
|
-
*/
|
|
239
|
-
foreignTableId?: number;
|
|
240
|
-
/**
|
|
241
|
-
* Column Id
|
|
242
|
-
*/
|
|
243
|
-
id: string;
|
|
244
|
-
/**
|
|
245
|
-
* Label of the column
|
|
246
|
-
*/
|
|
247
|
-
label: string;
|
|
248
|
-
/**
|
|
249
|
-
* Name of the column
|
|
250
|
-
*/
|
|
251
|
-
name: string;
|
|
252
|
-
/**
|
|
253
|
-
* Number of options available
|
|
254
|
-
*/
|
|
255
|
-
optionCount?: number;
|
|
256
|
-
/**
|
|
257
|
-
* Options to choose for select and multi-select columns
|
|
258
|
-
*/
|
|
259
|
-
options?: Schemas.Option[];
|
|
260
|
-
/**
|
|
261
|
-
* Type of the column
|
|
262
|
-
*/
|
|
263
|
-
type:
|
|
264
|
-
| 'BOOLEAN'
|
|
265
|
-
| 'CODE'
|
|
266
|
-
| 'COMPOSITE'
|
|
267
|
-
| 'CTA'
|
|
268
|
-
| 'CURRENCY'
|
|
269
|
-
| 'DATE'
|
|
270
|
-
| 'DATETIME'
|
|
271
|
-
| 'EMBED'
|
|
272
|
-
| 'FILE'
|
|
273
|
-
| 'FOREIGN_ID'
|
|
274
|
-
| 'HUBSPOT_VIDEO'
|
|
275
|
-
| 'IMAGE'
|
|
276
|
-
| 'JSON'
|
|
277
|
-
| 'LOCATION'
|
|
278
|
-
| 'MULTISELECT'
|
|
279
|
-
| 'NULL'
|
|
280
|
-
| 'NUMBER'
|
|
281
|
-
| 'RICHTEXT'
|
|
282
|
-
| 'SELECT'
|
|
283
|
-
| 'TEXT'
|
|
284
|
-
| 'URL'
|
|
285
|
-
| 'VIDEO';
|
|
286
|
-
/**
|
|
287
|
-
* The timestamp when the column was last updated.
|
|
288
|
-
*/
|
|
289
|
-
updatedAt?: string;
|
|
290
|
-
updatedBy?: Schemas.SimpleUser;
|
|
291
|
-
/**
|
|
292
|
-
* The ID of the user who last updated the column.
|
|
293
|
-
*/
|
|
294
|
-
updatedByUserId?: number;
|
|
295
|
-
/**
|
|
296
|
-
* Column width for HubDB UI
|
|
297
|
-
*/
|
|
298
|
-
width?: number;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export interface ColumnRequest {
|
|
302
|
-
/**
|
|
303
|
-
* The id of the column from another table to which the column refers/points to.
|
|
304
|
-
*/
|
|
305
|
-
foreignColumnId?: number;
|
|
306
|
-
/**
|
|
307
|
-
* The id of another table to which the column refers/points to.
|
|
308
|
-
*/
|
|
309
|
-
foreignTableId?: number;
|
|
310
|
-
/**
|
|
311
|
-
* Column Id
|
|
312
|
-
*/
|
|
313
|
-
id: number;
|
|
314
|
-
/**
|
|
315
|
-
* Label of the column
|
|
316
|
-
*/
|
|
317
|
-
label: string;
|
|
318
|
-
/**
|
|
319
|
-
* Defines the maximum number of characters allowed in the column.
|
|
320
|
-
*/
|
|
321
|
-
maxNumberOfCharacters?: number;
|
|
322
|
-
/**
|
|
323
|
-
* Specifies the maximum number of options that can be set for select and multi-select columns.
|
|
324
|
-
*/
|
|
325
|
-
maxNumberOfOptions?: number;
|
|
326
|
-
/**
|
|
327
|
-
* Name of the column
|
|
328
|
-
*/
|
|
329
|
-
name: string;
|
|
330
|
-
/**
|
|
331
|
-
* Options to choose for select and multi-select columns
|
|
332
|
-
*/
|
|
333
|
-
options: Schemas.Option[];
|
|
334
|
-
/**
|
|
335
|
-
* Type of the column
|
|
336
|
-
*/
|
|
337
|
-
type:
|
|
338
|
-
| 'BOOLEAN'
|
|
339
|
-
| 'CODE'
|
|
340
|
-
| 'COMPOSITE'
|
|
341
|
-
| 'CTA'
|
|
342
|
-
| 'CURRENCY'
|
|
343
|
-
| 'DATE'
|
|
344
|
-
| 'DATETIME'
|
|
345
|
-
| 'EMBED'
|
|
346
|
-
| 'FILE'
|
|
347
|
-
| 'FOREIGN_ID'
|
|
348
|
-
| 'HUBSPOT_VIDEO'
|
|
349
|
-
| 'IMAGE'
|
|
350
|
-
| 'JSON'
|
|
351
|
-
| 'LOCATION'
|
|
352
|
-
| 'MULTISELECT'
|
|
353
|
-
| 'NULL'
|
|
354
|
-
| 'NUMBER'
|
|
355
|
-
| 'RICHTEXT'
|
|
356
|
-
| 'SELECT'
|
|
357
|
-
| 'TEXT'
|
|
358
|
-
| 'URL'
|
|
359
|
-
| 'VIDEO';
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
export interface Error {
|
|
363
|
-
/**
|
|
364
|
-
* The error category
|
|
365
|
-
*/
|
|
366
|
-
category: string;
|
|
367
|
-
/**
|
|
368
|
-
* Context about the error condition
|
|
369
|
-
*/
|
|
370
|
-
context?: Record<string, string[]>;
|
|
371
|
-
/**
|
|
372
|
-
* A unique identifier for the request. Include this value with any error reports or support tickets
|
|
373
|
-
*/
|
|
374
|
-
correlationId: string;
|
|
375
|
-
/**
|
|
376
|
-
* further information about the error
|
|
377
|
-
*/
|
|
378
|
-
errors?: Schemas.ErrorDetail[];
|
|
379
|
-
/**
|
|
380
|
-
* A map of link names to associated URIs containing documentation about the error or recommended remediation steps
|
|
381
|
-
*/
|
|
382
|
-
links?: Record<string, string>;
|
|
383
|
-
/**
|
|
384
|
-
* A human readable message describing the error along with remediation steps where appropriate
|
|
385
|
-
*/
|
|
386
|
-
message: string;
|
|
387
|
-
/**
|
|
388
|
-
* A specific category that contains more specific detail about the error
|
|
389
|
-
*/
|
|
390
|
-
subCategory?: string;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
export interface ErrorDetail {
|
|
394
|
-
/**
|
|
395
|
-
* The status code associated with the error detail
|
|
396
|
-
*/
|
|
397
|
-
code?: string;
|
|
398
|
-
/**
|
|
399
|
-
* Context about the error condition
|
|
400
|
-
*/
|
|
401
|
-
context?: Record<string, string[]>;
|
|
402
|
-
/**
|
|
403
|
-
* The name of the field or parameter in which the error was found.
|
|
404
|
-
*/
|
|
405
|
-
in?: string;
|
|
406
|
-
/**
|
|
407
|
-
* A human readable message describing the error along with remediation steps where appropriate
|
|
408
|
-
*/
|
|
409
|
-
message: string;
|
|
410
|
-
/**
|
|
411
|
-
* A specific category that contains more specific detail about the error
|
|
412
|
-
*/
|
|
413
|
-
subCategory?: string;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
export interface ForeignId {
|
|
417
|
-
/**
|
|
418
|
-
* Unique identifier for the foreign ID.
|
|
419
|
-
*/
|
|
420
|
-
id: string;
|
|
421
|
-
/**
|
|
422
|
-
* Name of the foreign ID.
|
|
423
|
-
*/
|
|
424
|
-
name: string;
|
|
425
|
-
/**
|
|
426
|
-
* Type of the foreign ID.
|
|
427
|
-
*/
|
|
428
|
-
type: string;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
export interface HubDbTableCloneRequest {
|
|
432
|
-
/**
|
|
433
|
-
* Specifies whether to copy the rows during clone
|
|
434
|
-
*/
|
|
435
|
-
copyRows: boolean;
|
|
436
|
-
/**
|
|
437
|
-
* Indicates whether the table is defined by HubSpot.
|
|
438
|
-
*/
|
|
439
|
-
isHubspotDefined: boolean;
|
|
440
|
-
/**
|
|
441
|
-
* The new label for the cloned table
|
|
442
|
-
*/
|
|
443
|
-
newLabel?: string;
|
|
444
|
-
/**
|
|
445
|
-
* The new name for the cloned table
|
|
446
|
-
*/
|
|
447
|
-
newName?: string;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
export interface HubDbTableRowBatchCloneRequest {
|
|
451
|
-
/**
|
|
452
|
-
* The ID of the row to be cloned.
|
|
453
|
-
*/
|
|
454
|
-
id: string;
|
|
455
|
-
/**
|
|
456
|
-
* The name for the cloned row.
|
|
457
|
-
*/
|
|
458
|
-
name?: string;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
export interface HubDbTableRowV3 {
|
|
462
|
-
/**
|
|
463
|
-
* Specifies the value for the column child table id
|
|
464
|
-
*/
|
|
465
|
-
childTableId: string;
|
|
466
|
-
/**
|
|
467
|
-
* Timestamp at which the row is created
|
|
468
|
-
*/
|
|
469
|
-
createdAt: string;
|
|
470
|
-
/**
|
|
471
|
-
* The id of the table row
|
|
472
|
-
*/
|
|
473
|
-
id: string;
|
|
474
|
-
/**
|
|
475
|
-
* Specifies the value for `hs_name` column, which will be used as title in the dynamic pages
|
|
476
|
-
*/
|
|
477
|
-
name: string;
|
|
478
|
-
/**
|
|
479
|
-
* Specifies the value for `hs_path` column, which will be used as slug in the dynamic pages
|
|
480
|
-
*/
|
|
481
|
-
path: string;
|
|
482
|
-
/**
|
|
483
|
-
* The timestamp indicating when the row was last published, in date-time format.
|
|
484
|
-
*/
|
|
485
|
-
publishedAt: string;
|
|
486
|
-
/**
|
|
487
|
-
* Timestamp at which the row is updated last time
|
|
488
|
-
*/
|
|
489
|
-
updatedAt: string;
|
|
490
|
-
/**
|
|
491
|
-
* List of key value pairs with the column name and column value
|
|
492
|
-
*/
|
|
493
|
-
values: Record<string, Record<string, never>>;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
export interface HubDbTableRowV3BatchUpdateRequest {
|
|
497
|
-
/**
|
|
498
|
-
* Specifies the value for the column child table id
|
|
499
|
-
*/
|
|
500
|
-
childTableId: number;
|
|
501
|
-
/**
|
|
502
|
-
* The index position for displaying the row within the table.
|
|
503
|
-
*/
|
|
504
|
-
displayIndex: number;
|
|
505
|
-
/**
|
|
506
|
-
* The id of the table row
|
|
507
|
-
*/
|
|
508
|
-
id?: string;
|
|
509
|
-
/**
|
|
510
|
-
* Specifies the value for `hs_name` column, which will be used as title in the dynamic pages
|
|
511
|
-
*/
|
|
512
|
-
name?: string;
|
|
513
|
-
/**
|
|
514
|
-
* Specifies the value for `hs_path` column, which will be used as slug in the dynamic pages
|
|
515
|
-
*/
|
|
516
|
-
path?: string;
|
|
517
|
-
/**
|
|
518
|
-
* List of key value pairs with the column name and column value
|
|
519
|
-
*/
|
|
520
|
-
values: Record<string, Schemas.Variant>;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
export interface HubDbTableRowV3Request {
|
|
524
|
-
/**
|
|
525
|
-
* Specifies the value for the column child table id
|
|
526
|
-
*/
|
|
527
|
-
childTableId: number;
|
|
528
|
-
/**
|
|
529
|
-
* The index position for displaying the row within the table.
|
|
530
|
-
*/
|
|
531
|
-
displayIndex: number;
|
|
532
|
-
/**
|
|
533
|
-
* Specifies the value for `hs_name` column, which will be used as title in the dynamic pages
|
|
534
|
-
*/
|
|
535
|
-
name?: string;
|
|
536
|
-
/**
|
|
537
|
-
* Specifies the value for `hs_path` column, which will be used as slug in the dynamic pages
|
|
538
|
-
*/
|
|
539
|
-
path?: string;
|
|
540
|
-
/**
|
|
541
|
-
* List of key value pairs with the column name and column value
|
|
542
|
-
*/
|
|
543
|
-
values: Record<string, Schemas.Variant>;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
export type HubDbTableRowV3Wrapper = unknown;
|
|
547
|
-
|
|
548
|
-
export interface HubDbTableV3 {
|
|
549
|
-
/**
|
|
550
|
-
* Specifies whether child tables can be created
|
|
551
|
-
*/
|
|
552
|
-
allowChildTables: boolean;
|
|
553
|
-
/**
|
|
554
|
-
* Specifies whether the table can be read by public without authorization
|
|
555
|
-
*/
|
|
556
|
-
allowPublicApiAccess: boolean;
|
|
557
|
-
/**
|
|
558
|
-
* Number of columns including deleted
|
|
559
|
-
*/
|
|
560
|
-
columnCount: number;
|
|
561
|
-
/**
|
|
562
|
-
* List of columns in the table
|
|
563
|
-
*/
|
|
564
|
-
columns: Schemas.Column[];
|
|
565
|
-
/**
|
|
566
|
-
* Timestamp at which the table is created
|
|
567
|
-
*/
|
|
568
|
-
createdAt: string;
|
|
569
|
-
createdBy?: Schemas.SimpleUser;
|
|
570
|
-
/**
|
|
571
|
-
* Specifies whether the table is marked as deleted.
|
|
572
|
-
*/
|
|
573
|
-
deleted: boolean;
|
|
574
|
-
/**
|
|
575
|
-
* The timestamp indicating when the table was deleted.
|
|
576
|
-
*/
|
|
577
|
-
deletedAt: string;
|
|
578
|
-
/**
|
|
579
|
-
* Specifies the key value pairs of the [metadata fields](https://developers.hubspot.com/docs/cms/guides/dynamic-pages/hubdb#dynamic-pages) with the associated column IDs.
|
|
580
|
-
*/
|
|
581
|
-
dynamicMetaTags: Record<string, number>;
|
|
582
|
-
/**
|
|
583
|
-
* Specifies creation of multi-level dynamic pages using child tables
|
|
584
|
-
*/
|
|
585
|
-
enableChildTablePages: boolean;
|
|
586
|
-
/**
|
|
587
|
-
* Id of the table
|
|
588
|
-
*/
|
|
589
|
-
id: string;
|
|
590
|
-
/**
|
|
591
|
-
* Indicates whether the table rows are ordered manually.
|
|
592
|
-
*/
|
|
593
|
-
isOrderedManually?: boolean;
|
|
594
|
-
/**
|
|
595
|
-
* Label of the table
|
|
596
|
-
*/
|
|
597
|
-
label: string;
|
|
598
|
-
/**
|
|
599
|
-
* Name of the table
|
|
600
|
-
*/
|
|
601
|
-
name: string;
|
|
602
|
-
/**
|
|
603
|
-
* Indicates whether the table is currently published.
|
|
604
|
-
*/
|
|
605
|
-
published: boolean;
|
|
606
|
-
/**
|
|
607
|
-
* Timestamp at which the table is published recently
|
|
608
|
-
*/
|
|
609
|
-
publishedAt: string;
|
|
610
|
-
/**
|
|
611
|
-
* Number of rows in the table
|
|
612
|
-
*/
|
|
613
|
-
rowCount: number;
|
|
614
|
-
/**
|
|
615
|
-
* Timestamp at which the table is updated recently
|
|
616
|
-
*/
|
|
617
|
-
updatedAt: string;
|
|
618
|
-
updatedBy?: Schemas.SimpleUser;
|
|
619
|
-
/**
|
|
620
|
-
* Specifies whether the table can be used for creation of dynamic pages
|
|
621
|
-
*/
|
|
622
|
-
useForPages: boolean;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
export interface HubDbTableV3Request {
|
|
626
|
-
/**
|
|
627
|
-
* Specifies whether child tables can be created
|
|
628
|
-
*/
|
|
629
|
-
allowChildTables: boolean;
|
|
630
|
-
/**
|
|
631
|
-
* Specifies whether the table can be read by public without authorization
|
|
632
|
-
*/
|
|
633
|
-
allowPublicApiAccess: boolean;
|
|
634
|
-
/**
|
|
635
|
-
* List of columns in the table
|
|
636
|
-
*/
|
|
637
|
-
columns: Schemas.ColumnRequest[];
|
|
638
|
-
/**
|
|
639
|
-
* Specifies the key value pairs of the [metadata fields](https://developers.hubspot.com/docs/cms/guides/dynamic-pages/hubdb#dynamic-pages) with the associated column IDs.
|
|
640
|
-
*/
|
|
641
|
-
dynamicMetaTags: Record<string, number>;
|
|
642
|
-
/**
|
|
643
|
-
* Specifies creation of multi-level dynamic pages using child tables
|
|
644
|
-
*/
|
|
645
|
-
enableChildTablePages: boolean;
|
|
646
|
-
/**
|
|
647
|
-
* Label of the table
|
|
648
|
-
*/
|
|
649
|
-
label: string;
|
|
650
|
-
/**
|
|
651
|
-
* Name of the table
|
|
652
|
-
*/
|
|
653
|
-
name: string;
|
|
654
|
-
/**
|
|
655
|
-
* Specifies whether the table can be used for creation of dynamic pages
|
|
656
|
-
*/
|
|
657
|
-
useForPages: boolean;
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
export interface ImportResult {
|
|
661
|
-
/**
|
|
662
|
-
* Specifies number of duplicate rows
|
|
663
|
-
*/
|
|
664
|
-
duplicateRows: number;
|
|
665
|
-
/**
|
|
666
|
-
* List of errors during import
|
|
667
|
-
*/
|
|
668
|
-
errors: Schemas.Error[];
|
|
669
|
-
/**
|
|
670
|
-
* Specifies whether row limit exceeded during import
|
|
671
|
-
*/
|
|
672
|
-
rowLimitExceeded: boolean;
|
|
673
|
-
/**
|
|
674
|
-
* Specifies number of rows imported
|
|
675
|
-
*/
|
|
676
|
-
rowsImported: number;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* Specifies the paging information needed to retrieve the next set of results in a paginated API response
|
|
681
|
-
*/
|
|
682
|
-
export interface NextPage {
|
|
683
|
-
/**
|
|
684
|
-
* A paging cursor token for retrieving subsequent pages.
|
|
685
|
-
*/
|
|
686
|
-
after: string;
|
|
687
|
-
/**
|
|
688
|
-
* A URL that can be used to retrieve the next page results.
|
|
689
|
-
*/
|
|
690
|
-
link?: string;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* A HubSpot property option
|
|
695
|
-
*/
|
|
696
|
-
export interface Option {
|
|
697
|
-
/**
|
|
698
|
-
* The timestamp when the option was created, in ISO 8601 format.
|
|
699
|
-
*/
|
|
700
|
-
createdAt: string;
|
|
701
|
-
createdBy?: Schemas.SimpleUser;
|
|
702
|
-
/**
|
|
703
|
-
* The ID of the user who created the option.
|
|
704
|
-
*/
|
|
705
|
-
createdByUserId?: number;
|
|
706
|
-
/**
|
|
707
|
-
* The unique ID of the option.
|
|
708
|
-
*/
|
|
709
|
-
id: string;
|
|
710
|
-
/**
|
|
711
|
-
* A user-friendly label that identifies the option.
|
|
712
|
-
*/
|
|
713
|
-
label: string;
|
|
714
|
-
/**
|
|
715
|
-
* An internal name assigned to the option, distinct from the label.
|
|
716
|
-
*/
|
|
717
|
-
name: string;
|
|
718
|
-
/**
|
|
719
|
-
* The order in which the option appears, represented as an integer.
|
|
720
|
-
*/
|
|
721
|
-
order: number;
|
|
722
|
-
/**
|
|
723
|
-
* Indicates the category or data type of the option (e.g., string, number).
|
|
724
|
-
*/
|
|
725
|
-
type: string;
|
|
726
|
-
/**
|
|
727
|
-
* The timestamp when the option was last updated, in ISO 8601 format.
|
|
728
|
-
*/
|
|
729
|
-
updatedAt: string;
|
|
730
|
-
updatedBy?: Schemas.SimpleUser;
|
|
731
|
-
/**
|
|
732
|
-
* The ID of the user who last updated the option.
|
|
733
|
-
*/
|
|
734
|
-
updatedByUserId?: number;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
export interface Paging {
|
|
738
|
-
next?: Schemas.NextPage;
|
|
739
|
-
prev?: Schemas.PreviousPage;
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* specifies the paging information needed to retrieve the previous set of results in a paginated API response
|
|
744
|
-
*/
|
|
745
|
-
export interface PreviousPage {
|
|
746
|
-
/**
|
|
747
|
-
* A paging cursor token for retrieving previous pages.
|
|
748
|
-
*/
|
|
749
|
-
before: string;
|
|
750
|
-
/**
|
|
751
|
-
* A URL that can be used to retrieve the previous pages' results.
|
|
752
|
-
*/
|
|
753
|
-
link?: string;
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
export interface RandomAccessCollectionResponseWithTotalHubDbTableRowV3 {
|
|
757
|
-
paging?: Schemas.BoundedPaging;
|
|
758
|
-
results: Schemas.HubDbTableRowV3Wrapper[];
|
|
759
|
-
/**
|
|
760
|
-
* The total number of rows available in the collection.
|
|
761
|
-
*/
|
|
762
|
-
total: number;
|
|
763
|
-
/**
|
|
764
|
-
* Indicates the type of response, which is 'RANDOM_ACCESS' by default.
|
|
765
|
-
*/
|
|
766
|
-
type: 'RANDOM_ACCESS';
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
export interface SimpleUser {
|
|
770
|
-
/**
|
|
771
|
-
* The email address of the user.
|
|
772
|
-
*/
|
|
773
|
-
email: string;
|
|
774
|
-
/**
|
|
775
|
-
* The first name of the user.
|
|
776
|
-
*/
|
|
777
|
-
firstName: string;
|
|
778
|
-
/**
|
|
779
|
-
* The unique identifier for the user.
|
|
780
|
-
*/
|
|
781
|
-
id: string;
|
|
782
|
-
/**
|
|
783
|
-
* The last name of the user.
|
|
784
|
-
*/
|
|
785
|
-
lastName: string;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
export interface StreamingCollectionResponseWithTotalHubDbTableRowV3 {
|
|
789
|
-
paging?: Schemas.Paging;
|
|
790
|
-
results: Schemas.HubDbTableRowV3Wrapper[];
|
|
791
|
-
/**
|
|
792
|
-
* The total number of rows available in the collection.
|
|
793
|
-
*/
|
|
794
|
-
total: number;
|
|
795
|
-
/**
|
|
796
|
-
* Indicates the type of response, which is 'STREAMING' by default.
|
|
797
|
-
*/
|
|
798
|
-
type: 'STREAMING';
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
export type UnifiedCollectionResponseWithTotalBaseHubDbTableRowV3 =
|
|
802
|
-
| Schemas.RandomAccessCollectionResponseWithTotalHubDbTableRowV3
|
|
803
|
-
| Schemas.StreamingCollectionResponseWithTotalHubDbTableRowV3;
|
|
804
|
-
|
|
805
|
-
export interface Variant {}
|
|
11
|
+
export interface BatchInputHubDbTableRowV3BatchUpdateRequest {
|
|
12
|
+
inputs: HubDbTableRowV3BatchUpdateRequest[];
|
|
806
13
|
}
|
|
807
14
|
|
|
808
|
-
export
|
|
809
|
-
|
|
810
|
-
data: Schemas.HubDbTableCloneRequest;
|
|
811
|
-
tableIdOrName: string;
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
export type CloneDraftOutput = Schemas.HubDbTableV3;
|
|
815
|
-
|
|
816
|
-
export type CreateInput = Schemas.HubDbTableV3Request;
|
|
817
|
-
|
|
818
|
-
export type CreateOutput = Schemas.HubDbTableV3;
|
|
819
|
-
|
|
820
|
-
export interface DeleteInput {
|
|
821
|
-
tableIdOrName: string;
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
export type DeleteOutput = void;
|
|
825
|
-
|
|
826
|
-
export interface DeleteVersionInput {
|
|
827
|
-
tableIdOrName: string;
|
|
828
|
-
versionId: number;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
export type DeleteVersionOutput = void;
|
|
832
|
-
|
|
833
|
-
export interface ExportDraftInput {
|
|
834
|
-
format?: string;
|
|
835
|
-
tableIdOrName: string;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
export type ExportDraftOutput = void;
|
|
839
|
-
|
|
840
|
-
export interface ExportInput {
|
|
841
|
-
format?: string;
|
|
842
|
-
tableIdOrName: string;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
export type ExportOutput = void;
|
|
846
|
-
|
|
847
|
-
export interface GetDraftInput {
|
|
848
|
-
/**
|
|
849
|
-
* Whether to return only results that have been archived.
|
|
850
|
-
*/
|
|
851
|
-
archived?: boolean;
|
|
852
|
-
includeForeignIds?: boolean;
|
|
853
|
-
isGetLocalizedSchema?: boolean;
|
|
854
|
-
tableIdOrName: string;
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
export type GetDraftOutput = Schemas.HubDbTableV3;
|
|
858
|
-
|
|
859
|
-
export interface GetInput {
|
|
860
|
-
/**
|
|
861
|
-
* Whether to return only results that have been archived.
|
|
862
|
-
*/
|
|
863
|
-
archived?: boolean;
|
|
864
|
-
includeForeignIds?: boolean;
|
|
865
|
-
isGetLocalizedSchema?: boolean;
|
|
866
|
-
tableIdOrName: string;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
export type GetOutput = Schemas.HubDbTableV3;
|
|
870
|
-
|
|
871
|
-
export interface ImportDraftInput {
|
|
872
|
-
data?: { config?: string; file?: BinaryData };
|
|
873
|
-
tableIdOrName: string;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
export type ImportDraftOutput = Schemas.ImportResult;
|
|
877
|
-
|
|
878
|
-
export interface ListDraft2Input {
|
|
879
|
-
/**
|
|
880
|
-
* 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.
|
|
881
|
-
*/
|
|
882
|
-
after?: string;
|
|
883
|
-
/**
|
|
884
|
-
* Whether to return only results that have been archived.
|
|
885
|
-
*/
|
|
886
|
-
archived?: boolean;
|
|
887
|
-
/**
|
|
888
|
-
* The maximum number of results to display per page.
|
|
889
|
-
*/
|
|
890
|
-
limit?: number;
|
|
891
|
-
offset?: number;
|
|
892
|
-
properties?: string[];
|
|
893
|
-
sort?: string[];
|
|
894
|
-
tableIdOrName: string;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
export type ListDraft2Output =
|
|
898
|
-
Schemas.UnifiedCollectionResponseWithTotalBaseHubDbTableRowV3;
|
|
899
|
-
|
|
900
|
-
export interface ListDraftInput {
|
|
901
|
-
/**
|
|
902
|
-
* 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.
|
|
903
|
-
*/
|
|
904
|
-
after?: string;
|
|
905
|
-
/**
|
|
906
|
-
* Whether to return only results that have been archived.
|
|
907
|
-
*/
|
|
908
|
-
archived?: boolean;
|
|
909
|
-
contentType?: string;
|
|
910
|
-
createdAfter?: string;
|
|
911
|
-
createdAt?: string;
|
|
912
|
-
createdBefore?: string;
|
|
913
|
-
isGetLocalizedSchema?: boolean;
|
|
914
|
-
/**
|
|
915
|
-
* The maximum number of results to display per page.
|
|
916
|
-
*/
|
|
917
|
-
limit?: number;
|
|
918
|
-
sort?: string[];
|
|
919
|
-
updatedAfter?: string;
|
|
920
|
-
updatedAt?: string;
|
|
921
|
-
updatedBefore?: string;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
export type ListDraftOutput =
|
|
925
|
-
Schemas.CollectionResponseWithTotalHubDbTableV3;
|
|
926
|
-
|
|
927
|
-
export interface ListInput {
|
|
928
|
-
/**
|
|
929
|
-
* 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.
|
|
930
|
-
*/
|
|
931
|
-
after?: string;
|
|
932
|
-
/**
|
|
933
|
-
* Whether to return only results that have been archived.
|
|
934
|
-
*/
|
|
935
|
-
archived?: boolean;
|
|
936
|
-
contentType?: string;
|
|
937
|
-
createdAfter?: string;
|
|
938
|
-
createdAt?: string;
|
|
939
|
-
createdBefore?: string;
|
|
940
|
-
isGetLocalizedSchema?: boolean;
|
|
941
|
-
/**
|
|
942
|
-
* The maximum number of results to display per page.
|
|
943
|
-
*/
|
|
944
|
-
limit?: number;
|
|
945
|
-
sort?: string[];
|
|
946
|
-
updatedAfter?: string;
|
|
947
|
-
updatedAt?: string;
|
|
948
|
-
updatedBefore?: string;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
export type ListOutput = Schemas.CollectionResponseWithTotalHubDbTableV3;
|
|
952
|
-
|
|
953
|
-
export interface PublishDraftInput {
|
|
954
|
-
includeForeignIds?: boolean;
|
|
955
|
-
tableIdOrName: string;
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
export type PublishDraftOutput = Schemas.HubDbTableV3;
|
|
959
|
-
|
|
960
|
-
export interface ResetDraftInput {
|
|
961
|
-
includeForeignIds?: boolean;
|
|
962
|
-
tableIdOrName: string;
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
export type ResetDraftOutput = Schemas.HubDbTableV3;
|
|
966
|
-
|
|
967
|
-
export interface UnpublishInput {
|
|
968
|
-
includeForeignIds?: boolean;
|
|
969
|
-
tableIdOrName: string;
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
export type UnpublishOutput = Schemas.HubDbTableV3;
|
|
973
|
-
|
|
974
|
-
export interface UpdateDraftInput {
|
|
975
|
-
/**
|
|
976
|
-
* Whether to return only results that have been archived.
|
|
977
|
-
*/
|
|
978
|
-
archived?: boolean;
|
|
979
|
-
data: Schemas.HubDbTableV3Request;
|
|
980
|
-
includeForeignIds?: boolean;
|
|
981
|
-
isGetLocalizedSchema?: boolean;
|
|
982
|
-
tableIdOrName: string;
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
export type UpdateDraftOutput = Schemas.HubDbTableV3;
|
|
15
|
+
export interface BatchInputHubDbTableRowV3Request {
|
|
16
|
+
inputs: HubDbTableRowV3Request[];
|
|
986
17
|
}
|
|
987
18
|
|
|
19
|
+
export interface BatchInputString {
|
|
20
|
+
inputs: string[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface BatchResponseHubDbTableRowV3 {
|
|
24
|
+
/**
|
|
25
|
+
* The timestamp indicating when the batch processing was completed.
|
|
26
|
+
*/
|
|
27
|
+
completedAt: string;
|
|
28
|
+
/**
|
|
29
|
+
* A collection of related links associated with the batch response.
|
|
30
|
+
*/
|
|
31
|
+
links?: Record<string, string>;
|
|
32
|
+
/**
|
|
33
|
+
* The timestamp indicating when the batch request was made.
|
|
34
|
+
*/
|
|
35
|
+
requestedAt?: string;
|
|
36
|
+
results: HubDbTableRowV3[];
|
|
37
|
+
/**
|
|
38
|
+
* The timestamp indicating when the batch processing began.
|
|
39
|
+
*/
|
|
40
|
+
startedAt: string;
|
|
41
|
+
/**
|
|
42
|
+
* The current status of the batch operation, with possible values: CANCELED, COMPLETE, PENDING, PROCESSING.
|
|
43
|
+
*/
|
|
44
|
+
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface BoundedNextPage {
|
|
48
|
+
/**
|
|
49
|
+
* A URL that can be used to retrieve the next set of results.
|
|
50
|
+
*/
|
|
51
|
+
link?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The offset value indicating the starting point for the next set of results.
|
|
54
|
+
*/
|
|
55
|
+
offset: number;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface BoundedPaging {
|
|
59
|
+
next?: BoundedNextPage;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface CollectionResponseWithTotalHubDbTableV3 {
|
|
63
|
+
paging?: Paging;
|
|
64
|
+
results: HubDbTableV3[];
|
|
65
|
+
total: number;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface Column {
|
|
69
|
+
/**
|
|
70
|
+
* The timestamp when the column was created.
|
|
71
|
+
*/
|
|
72
|
+
createdAt?: string;
|
|
73
|
+
createdBy?: SimpleUser;
|
|
74
|
+
/**
|
|
75
|
+
* The ID of the user who created the column.
|
|
76
|
+
*/
|
|
77
|
+
createdByUserId?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Indicates whether the column has been deleted.
|
|
80
|
+
*/
|
|
81
|
+
deleted: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* The description of the column.
|
|
84
|
+
*/
|
|
85
|
+
description: string;
|
|
86
|
+
/**
|
|
87
|
+
* Foreign Column id
|
|
88
|
+
*/
|
|
89
|
+
foreignColumnId?: number;
|
|
90
|
+
/**
|
|
91
|
+
* Foreign Ids
|
|
92
|
+
*/
|
|
93
|
+
foreignIds?: ForeignId[];
|
|
94
|
+
/**
|
|
95
|
+
* Foreign ids
|
|
96
|
+
*/
|
|
97
|
+
foreignIdsById?: Record<string, ForeignId>;
|
|
98
|
+
/**
|
|
99
|
+
* Foreign ids by name
|
|
100
|
+
*/
|
|
101
|
+
foreignIdsByName?: Record<string, ForeignId>;
|
|
102
|
+
/**
|
|
103
|
+
* Foreign table id referenced
|
|
104
|
+
*/
|
|
105
|
+
foreignTableId?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Column Id
|
|
108
|
+
*/
|
|
109
|
+
id: string;
|
|
110
|
+
/**
|
|
111
|
+
* Label of the column
|
|
112
|
+
*/
|
|
113
|
+
label: string;
|
|
114
|
+
/**
|
|
115
|
+
* Name of the column
|
|
116
|
+
*/
|
|
117
|
+
name: string;
|
|
118
|
+
/**
|
|
119
|
+
* Number of options available
|
|
120
|
+
*/
|
|
121
|
+
optionCount?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Options to choose for select and multi-select columns
|
|
124
|
+
*/
|
|
125
|
+
options?: Option[];
|
|
126
|
+
/**
|
|
127
|
+
* Type of the column
|
|
128
|
+
*/
|
|
129
|
+
type:
|
|
130
|
+
| 'BOOLEAN'
|
|
131
|
+
| 'CODE'
|
|
132
|
+
| 'COMPOSITE'
|
|
133
|
+
| 'CTA'
|
|
134
|
+
| 'CURRENCY'
|
|
135
|
+
| 'DATE'
|
|
136
|
+
| 'DATETIME'
|
|
137
|
+
| 'EMBED'
|
|
138
|
+
| 'FILE'
|
|
139
|
+
| 'FOREIGN_ID'
|
|
140
|
+
| 'HUBSPOT_VIDEO'
|
|
141
|
+
| 'IMAGE'
|
|
142
|
+
| 'JSON'
|
|
143
|
+
| 'LOCATION'
|
|
144
|
+
| 'MULTISELECT'
|
|
145
|
+
| 'NULL'
|
|
146
|
+
| 'NUMBER'
|
|
147
|
+
| 'RICHTEXT'
|
|
148
|
+
| 'SELECT'
|
|
149
|
+
| 'TEXT'
|
|
150
|
+
| 'URL'
|
|
151
|
+
| 'VIDEO';
|
|
152
|
+
/**
|
|
153
|
+
* The timestamp when the column was last updated.
|
|
154
|
+
*/
|
|
155
|
+
updatedAt?: string;
|
|
156
|
+
updatedBy?: SimpleUser;
|
|
157
|
+
/**
|
|
158
|
+
* The ID of the user who last updated the column.
|
|
159
|
+
*/
|
|
160
|
+
updatedByUserId?: number;
|
|
161
|
+
/**
|
|
162
|
+
* Column width for HubDB UI
|
|
163
|
+
*/
|
|
164
|
+
width?: number;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface ColumnRequest {
|
|
168
|
+
/**
|
|
169
|
+
* The id of the column from another table to which the column refers/points to.
|
|
170
|
+
*/
|
|
171
|
+
foreignColumnId?: number;
|
|
172
|
+
/**
|
|
173
|
+
* The id of another table to which the column refers/points to.
|
|
174
|
+
*/
|
|
175
|
+
foreignTableId?: number;
|
|
176
|
+
/**
|
|
177
|
+
* Column Id
|
|
178
|
+
*/
|
|
179
|
+
id: number;
|
|
180
|
+
/**
|
|
181
|
+
* Label of the column
|
|
182
|
+
*/
|
|
183
|
+
label: string;
|
|
184
|
+
/**
|
|
185
|
+
* Defines the maximum number of characters allowed in the column.
|
|
186
|
+
*/
|
|
187
|
+
maxNumberOfCharacters?: number;
|
|
188
|
+
/**
|
|
189
|
+
* Specifies the maximum number of options that can be set for select and multi-select columns.
|
|
190
|
+
*/
|
|
191
|
+
maxNumberOfOptions?: number;
|
|
192
|
+
/**
|
|
193
|
+
* Name of the column
|
|
194
|
+
*/
|
|
195
|
+
name: string;
|
|
196
|
+
/**
|
|
197
|
+
* Options to choose for select and multi-select columns
|
|
198
|
+
*/
|
|
199
|
+
options: Option[];
|
|
200
|
+
/**
|
|
201
|
+
* Type of the column
|
|
202
|
+
*/
|
|
203
|
+
type:
|
|
204
|
+
| 'BOOLEAN'
|
|
205
|
+
| 'CODE'
|
|
206
|
+
| 'COMPOSITE'
|
|
207
|
+
| 'CTA'
|
|
208
|
+
| 'CURRENCY'
|
|
209
|
+
| 'DATE'
|
|
210
|
+
| 'DATETIME'
|
|
211
|
+
| 'EMBED'
|
|
212
|
+
| 'FILE'
|
|
213
|
+
| 'FOREIGN_ID'
|
|
214
|
+
| 'HUBSPOT_VIDEO'
|
|
215
|
+
| 'IMAGE'
|
|
216
|
+
| 'JSON'
|
|
217
|
+
| 'LOCATION'
|
|
218
|
+
| 'MULTISELECT'
|
|
219
|
+
| 'NULL'
|
|
220
|
+
| 'NUMBER'
|
|
221
|
+
| 'RICHTEXT'
|
|
222
|
+
| 'SELECT'
|
|
223
|
+
| 'TEXT'
|
|
224
|
+
| 'URL'
|
|
225
|
+
| 'VIDEO';
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface Error {
|
|
229
|
+
/**
|
|
230
|
+
* The error category
|
|
231
|
+
*/
|
|
232
|
+
category: string;
|
|
233
|
+
/**
|
|
234
|
+
* Context about the error condition
|
|
235
|
+
*/
|
|
236
|
+
context?: Record<string, string[]>;
|
|
237
|
+
/**
|
|
238
|
+
* A unique identifier for the request. Include this value with any error reports or support tickets
|
|
239
|
+
*/
|
|
240
|
+
correlationId: string;
|
|
241
|
+
/**
|
|
242
|
+
* further information about the error
|
|
243
|
+
*/
|
|
244
|
+
errors?: ErrorDetail[];
|
|
245
|
+
/**
|
|
246
|
+
* A map of link names to associated URIs containing documentation about the error or recommended remediation steps
|
|
247
|
+
*/
|
|
248
|
+
links?: Record<string, string>;
|
|
249
|
+
/**
|
|
250
|
+
* A human readable message describing the error along with remediation steps where appropriate
|
|
251
|
+
*/
|
|
252
|
+
message: string;
|
|
253
|
+
/**
|
|
254
|
+
* A specific category that contains more specific detail about the error
|
|
255
|
+
*/
|
|
256
|
+
subCategory?: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export interface ErrorDetail {
|
|
260
|
+
/**
|
|
261
|
+
* The status code associated with the error detail
|
|
262
|
+
*/
|
|
263
|
+
code?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Context about the error condition
|
|
266
|
+
*/
|
|
267
|
+
context?: Record<string, string[]>;
|
|
268
|
+
/**
|
|
269
|
+
* The name of the field or parameter in which the error was found.
|
|
270
|
+
*/
|
|
271
|
+
in?: string;
|
|
272
|
+
/**
|
|
273
|
+
* A human readable message describing the error along with remediation steps where appropriate
|
|
274
|
+
*/
|
|
275
|
+
message: string;
|
|
276
|
+
/**
|
|
277
|
+
* A specific category that contains more specific detail about the error
|
|
278
|
+
*/
|
|
279
|
+
subCategory?: string;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export interface ForeignId {
|
|
283
|
+
/**
|
|
284
|
+
* Unique identifier for the foreign ID.
|
|
285
|
+
*/
|
|
286
|
+
id: string;
|
|
287
|
+
/**
|
|
288
|
+
* Name of the foreign ID.
|
|
289
|
+
*/
|
|
290
|
+
name: string;
|
|
291
|
+
/**
|
|
292
|
+
* Type of the foreign ID.
|
|
293
|
+
*/
|
|
294
|
+
type: string;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export interface HubDbTableCloneRequest {
|
|
298
|
+
/**
|
|
299
|
+
* Specifies whether to copy the rows during clone
|
|
300
|
+
*/
|
|
301
|
+
copyRows: boolean;
|
|
302
|
+
/**
|
|
303
|
+
* Indicates whether the table is defined by HubSpot.
|
|
304
|
+
*/
|
|
305
|
+
isHubspotDefined: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* The new label for the cloned table
|
|
308
|
+
*/
|
|
309
|
+
newLabel?: string;
|
|
310
|
+
/**
|
|
311
|
+
* The new name for the cloned table
|
|
312
|
+
*/
|
|
313
|
+
newName?: string;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export interface HubDbTableRowBatchCloneRequest {
|
|
317
|
+
/**
|
|
318
|
+
* The ID of the row to be cloned.
|
|
319
|
+
*/
|
|
320
|
+
id: string;
|
|
321
|
+
/**
|
|
322
|
+
* The name for the cloned row.
|
|
323
|
+
*/
|
|
324
|
+
name?: string;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export interface HubDbTableRowV3 {
|
|
328
|
+
/**
|
|
329
|
+
* Specifies the value for the column child table id
|
|
330
|
+
*/
|
|
331
|
+
childTableId: string;
|
|
332
|
+
/**
|
|
333
|
+
* Timestamp at which the row is created
|
|
334
|
+
*/
|
|
335
|
+
createdAt: string;
|
|
336
|
+
/**
|
|
337
|
+
* The id of the table row
|
|
338
|
+
*/
|
|
339
|
+
id: string;
|
|
340
|
+
/**
|
|
341
|
+
* Specifies the value for `hs_name` column, which will be used as title in the dynamic pages
|
|
342
|
+
*/
|
|
343
|
+
name: string;
|
|
344
|
+
/**
|
|
345
|
+
* Specifies the value for `hs_path` column, which will be used as slug in the dynamic pages
|
|
346
|
+
*/
|
|
347
|
+
path: string;
|
|
348
|
+
/**
|
|
349
|
+
* The timestamp indicating when the row was last published, in date-time format.
|
|
350
|
+
*/
|
|
351
|
+
publishedAt: string;
|
|
352
|
+
/**
|
|
353
|
+
* Timestamp at which the row is updated last time
|
|
354
|
+
*/
|
|
355
|
+
updatedAt: string;
|
|
356
|
+
/**
|
|
357
|
+
* List of key value pairs with the column name and column value
|
|
358
|
+
*/
|
|
359
|
+
values: Record<string, Record<string, never>>;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export interface HubDbTableRowV3BatchUpdateRequest {
|
|
363
|
+
/**
|
|
364
|
+
* Specifies the value for the column child table id
|
|
365
|
+
*/
|
|
366
|
+
childTableId: number;
|
|
367
|
+
/**
|
|
368
|
+
* The index position for displaying the row within the table.
|
|
369
|
+
*/
|
|
370
|
+
displayIndex: number;
|
|
371
|
+
/**
|
|
372
|
+
* The id of the table row
|
|
373
|
+
*/
|
|
374
|
+
id?: string;
|
|
375
|
+
/**
|
|
376
|
+
* Specifies the value for `hs_name` column, which will be used as title in the dynamic pages
|
|
377
|
+
*/
|
|
378
|
+
name?: string;
|
|
379
|
+
/**
|
|
380
|
+
* Specifies the value for `hs_path` column, which will be used as slug in the dynamic pages
|
|
381
|
+
*/
|
|
382
|
+
path?: string;
|
|
383
|
+
/**
|
|
384
|
+
* List of key value pairs with the column name and column value
|
|
385
|
+
*/
|
|
386
|
+
values: Record<string, Variant>;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export interface HubDbTableRowV3Request {
|
|
390
|
+
/**
|
|
391
|
+
* Specifies the value for the column child table id
|
|
392
|
+
*/
|
|
393
|
+
childTableId: number;
|
|
394
|
+
/**
|
|
395
|
+
* The index position for displaying the row within the table.
|
|
396
|
+
*/
|
|
397
|
+
displayIndex: number;
|
|
398
|
+
/**
|
|
399
|
+
* Specifies the value for `hs_name` column, which will be used as title in the dynamic pages
|
|
400
|
+
*/
|
|
401
|
+
name?: string;
|
|
402
|
+
/**
|
|
403
|
+
* Specifies the value for `hs_path` column, which will be used as slug in the dynamic pages
|
|
404
|
+
*/
|
|
405
|
+
path?: string;
|
|
406
|
+
/**
|
|
407
|
+
* List of key value pairs with the column name and column value
|
|
408
|
+
*/
|
|
409
|
+
values: Record<string, Variant>;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export type HubDbTableRowV3Wrapper = unknown;
|
|
413
|
+
|
|
414
|
+
export interface HubDbTableV3 {
|
|
415
|
+
/**
|
|
416
|
+
* Specifies whether child tables can be created
|
|
417
|
+
*/
|
|
418
|
+
allowChildTables: boolean;
|
|
419
|
+
/**
|
|
420
|
+
* Specifies whether the table can be read by public without authorization
|
|
421
|
+
*/
|
|
422
|
+
allowPublicApiAccess: boolean;
|
|
423
|
+
/**
|
|
424
|
+
* Number of columns including deleted
|
|
425
|
+
*/
|
|
426
|
+
columnCount: number;
|
|
427
|
+
/**
|
|
428
|
+
* List of columns in the table
|
|
429
|
+
*/
|
|
430
|
+
columns: Column[];
|
|
431
|
+
/**
|
|
432
|
+
* Timestamp at which the table is created
|
|
433
|
+
*/
|
|
434
|
+
createdAt: string;
|
|
435
|
+
createdBy?: SimpleUser;
|
|
436
|
+
/**
|
|
437
|
+
* Specifies whether the table is marked as deleted.
|
|
438
|
+
*/
|
|
439
|
+
deleted: boolean;
|
|
440
|
+
/**
|
|
441
|
+
* The timestamp indicating when the table was deleted.
|
|
442
|
+
*/
|
|
443
|
+
deletedAt: string;
|
|
444
|
+
/**
|
|
445
|
+
* Specifies the key value pairs of the [metadata fields](https://developers.hubspot.com/docs/cms/guides/dynamic-pages/hubdb#dynamic-pages) with the associated column IDs.
|
|
446
|
+
*/
|
|
447
|
+
dynamicMetaTags: Record<string, number>;
|
|
448
|
+
/**
|
|
449
|
+
* Specifies creation of multi-level dynamic pages using child tables
|
|
450
|
+
*/
|
|
451
|
+
enableChildTablePages: boolean;
|
|
452
|
+
/**
|
|
453
|
+
* Id of the table
|
|
454
|
+
*/
|
|
455
|
+
id: string;
|
|
456
|
+
/**
|
|
457
|
+
* Indicates whether the table rows are ordered manually.
|
|
458
|
+
*/
|
|
459
|
+
isOrderedManually?: boolean;
|
|
460
|
+
/**
|
|
461
|
+
* Label of the table
|
|
462
|
+
*/
|
|
463
|
+
label: string;
|
|
464
|
+
/**
|
|
465
|
+
* Name of the table
|
|
466
|
+
*/
|
|
467
|
+
name: string;
|
|
468
|
+
/**
|
|
469
|
+
* Indicates whether the table is currently published.
|
|
470
|
+
*/
|
|
471
|
+
published: boolean;
|
|
472
|
+
/**
|
|
473
|
+
* Timestamp at which the table is published recently
|
|
474
|
+
*/
|
|
475
|
+
publishedAt: string;
|
|
476
|
+
/**
|
|
477
|
+
* Number of rows in the table
|
|
478
|
+
*/
|
|
479
|
+
rowCount: number;
|
|
480
|
+
/**
|
|
481
|
+
* Timestamp at which the table is updated recently
|
|
482
|
+
*/
|
|
483
|
+
updatedAt: string;
|
|
484
|
+
updatedBy?: SimpleUser;
|
|
485
|
+
/**
|
|
486
|
+
* Specifies whether the table can be used for creation of dynamic pages
|
|
487
|
+
*/
|
|
488
|
+
useForPages: boolean;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export interface HubDbTableV3Request {
|
|
492
|
+
/**
|
|
493
|
+
* Specifies whether child tables can be created
|
|
494
|
+
*/
|
|
495
|
+
allowChildTables: boolean;
|
|
496
|
+
/**
|
|
497
|
+
* Specifies whether the table can be read by public without authorization
|
|
498
|
+
*/
|
|
499
|
+
allowPublicApiAccess: boolean;
|
|
500
|
+
/**
|
|
501
|
+
* List of columns in the table
|
|
502
|
+
*/
|
|
503
|
+
columns: ColumnRequest[];
|
|
504
|
+
/**
|
|
505
|
+
* Specifies the key value pairs of the [metadata fields](https://developers.hubspot.com/docs/cms/guides/dynamic-pages/hubdb#dynamic-pages) with the associated column IDs.
|
|
506
|
+
*/
|
|
507
|
+
dynamicMetaTags: Record<string, number>;
|
|
508
|
+
/**
|
|
509
|
+
* Specifies creation of multi-level dynamic pages using child tables
|
|
510
|
+
*/
|
|
511
|
+
enableChildTablePages: boolean;
|
|
512
|
+
/**
|
|
513
|
+
* Label of the table
|
|
514
|
+
*/
|
|
515
|
+
label: string;
|
|
516
|
+
/**
|
|
517
|
+
* Name of the table
|
|
518
|
+
*/
|
|
519
|
+
name: string;
|
|
520
|
+
/**
|
|
521
|
+
* Specifies whether the table can be used for creation of dynamic pages
|
|
522
|
+
*/
|
|
523
|
+
useForPages: boolean;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export interface ImportResult {
|
|
527
|
+
/**
|
|
528
|
+
* Specifies number of duplicate rows
|
|
529
|
+
*/
|
|
530
|
+
duplicateRows: number;
|
|
531
|
+
/**
|
|
532
|
+
* List of errors during import
|
|
533
|
+
*/
|
|
534
|
+
errors: Error[];
|
|
535
|
+
/**
|
|
536
|
+
* Specifies whether row limit exceeded during import
|
|
537
|
+
*/
|
|
538
|
+
rowLimitExceeded: boolean;
|
|
539
|
+
/**
|
|
540
|
+
* Specifies number of rows imported
|
|
541
|
+
*/
|
|
542
|
+
rowsImported: number;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Specifies the paging information needed to retrieve the next set of results in a paginated API response
|
|
547
|
+
*/
|
|
548
|
+
export interface NextPage {
|
|
549
|
+
/**
|
|
550
|
+
* A paging cursor token for retrieving subsequent pages.
|
|
551
|
+
*/
|
|
552
|
+
after: string;
|
|
553
|
+
/**
|
|
554
|
+
* A URL that can be used to retrieve the next page results.
|
|
555
|
+
*/
|
|
556
|
+
link?: string;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* A HubSpot property option
|
|
561
|
+
*/
|
|
562
|
+
export interface Option {
|
|
563
|
+
/**
|
|
564
|
+
* The timestamp when the option was created, in ISO 8601 format.
|
|
565
|
+
*/
|
|
566
|
+
createdAt: string;
|
|
567
|
+
createdBy?: SimpleUser;
|
|
568
|
+
/**
|
|
569
|
+
* The ID of the user who created the option.
|
|
570
|
+
*/
|
|
571
|
+
createdByUserId?: number;
|
|
572
|
+
/**
|
|
573
|
+
* The unique ID of the option.
|
|
574
|
+
*/
|
|
575
|
+
id: string;
|
|
576
|
+
/**
|
|
577
|
+
* A user-friendly label that identifies the option.
|
|
578
|
+
*/
|
|
579
|
+
label: string;
|
|
580
|
+
/**
|
|
581
|
+
* An internal name assigned to the option, distinct from the label.
|
|
582
|
+
*/
|
|
583
|
+
name: string;
|
|
584
|
+
/**
|
|
585
|
+
* The order in which the option appears, represented as an integer.
|
|
586
|
+
*/
|
|
587
|
+
order: number;
|
|
588
|
+
/**
|
|
589
|
+
* Indicates the category or data type of the option (e.g., string, number).
|
|
590
|
+
*/
|
|
591
|
+
type: string;
|
|
592
|
+
/**
|
|
593
|
+
* The timestamp when the option was last updated, in ISO 8601 format.
|
|
594
|
+
*/
|
|
595
|
+
updatedAt: string;
|
|
596
|
+
updatedBy?: SimpleUser;
|
|
597
|
+
/**
|
|
598
|
+
* The ID of the user who last updated the option.
|
|
599
|
+
*/
|
|
600
|
+
updatedByUserId?: number;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
export interface Paging {
|
|
604
|
+
next?: NextPage;
|
|
605
|
+
prev?: PreviousPage;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* specifies the paging information needed to retrieve the previous set of results in a paginated API response
|
|
610
|
+
*/
|
|
611
|
+
export interface PreviousPage {
|
|
612
|
+
/**
|
|
613
|
+
* A paging cursor token for retrieving previous pages.
|
|
614
|
+
*/
|
|
615
|
+
before: string;
|
|
616
|
+
/**
|
|
617
|
+
* A URL that can be used to retrieve the previous pages' results.
|
|
618
|
+
*/
|
|
619
|
+
link?: string;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export interface RandomAccessCollectionResponseWithTotalHubDbTableRowV3 {
|
|
623
|
+
paging?: BoundedPaging;
|
|
624
|
+
results: HubDbTableRowV3Wrapper[];
|
|
625
|
+
/**
|
|
626
|
+
* The total number of rows available in the collection.
|
|
627
|
+
*/
|
|
628
|
+
total: number;
|
|
629
|
+
/**
|
|
630
|
+
* Indicates the type of response, which is 'RANDOM_ACCESS' by default.
|
|
631
|
+
*/
|
|
632
|
+
type: 'RANDOM_ACCESS';
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
export interface SimpleUser {
|
|
636
|
+
/**
|
|
637
|
+
* The email address of the user.
|
|
638
|
+
*/
|
|
639
|
+
email: string;
|
|
640
|
+
/**
|
|
641
|
+
* The first name of the user.
|
|
642
|
+
*/
|
|
643
|
+
firstName: string;
|
|
644
|
+
/**
|
|
645
|
+
* The unique identifier for the user.
|
|
646
|
+
*/
|
|
647
|
+
id: string;
|
|
648
|
+
/**
|
|
649
|
+
* The last name of the user.
|
|
650
|
+
*/
|
|
651
|
+
lastName: string;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export interface StreamingCollectionResponseWithTotalHubDbTableRowV3 {
|
|
655
|
+
paging?: Paging;
|
|
656
|
+
results: HubDbTableRowV3Wrapper[];
|
|
657
|
+
/**
|
|
658
|
+
* The total number of rows available in the collection.
|
|
659
|
+
*/
|
|
660
|
+
total: number;
|
|
661
|
+
/**
|
|
662
|
+
* Indicates the type of response, which is 'STREAMING' by default.
|
|
663
|
+
*/
|
|
664
|
+
type: 'STREAMING';
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
export type UnifiedCollectionResponseWithTotalBaseHubDbTableRowV3 =
|
|
668
|
+
| RandomAccessCollectionResponseWithTotalHubDbTableRowV3
|
|
669
|
+
| StreamingCollectionResponseWithTotalHubDbTableRowV3;
|
|
670
|
+
|
|
671
|
+
export interface Variant {}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
export namespace CmsHubdbRows {
|
|
675
|
+
export interface CloneBatchInput {
|
|
676
|
+
data: CMSHubdbSchemas.BatchInputHubDbTableRowBatchCloneRequest;
|
|
677
|
+
tableIdOrName: string;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
export type CloneBatchOutput = CMSHubdbSchemas.BatchResponseHubDbTableRowV3;
|
|
681
|
+
|
|
682
|
+
export interface CloneDraftInput {
|
|
683
|
+
name?: string;
|
|
684
|
+
rowId: string;
|
|
685
|
+
tableIdOrName: string;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
export type CloneDraftOutput = CMSHubdbSchemas.HubDbTableRowV3;
|
|
689
|
+
|
|
690
|
+
export interface CreateBatchInput {
|
|
691
|
+
data: CMSHubdbSchemas.BatchInputHubDbTableRowV3Request;
|
|
692
|
+
tableIdOrName: string;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
export type CreateBatchOutput = CMSHubdbSchemas.BatchResponseHubDbTableRowV3;
|
|
696
|
+
|
|
697
|
+
export interface CreateInput {
|
|
698
|
+
data: CMSHubdbSchemas.HubDbTableRowV3Request;
|
|
699
|
+
tableIdOrName: string;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
export type CreateOutput = CMSHubdbSchemas.HubDbTableRowV3;
|
|
703
|
+
|
|
704
|
+
export interface DeleteDraftInput {
|
|
705
|
+
rowId: string;
|
|
706
|
+
tableIdOrName: string;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
export type DeleteDraftOutput = void;
|
|
710
|
+
|
|
711
|
+
export interface GetBatchInput {
|
|
712
|
+
data: CMSHubdbSchemas.BatchInputString;
|
|
713
|
+
tableIdOrName: string;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
export type GetBatchOutput = CMSHubdbSchemas.BatchResponseHubDbTableRowV3;
|
|
717
|
+
|
|
718
|
+
export interface GetDraftBatchInput {
|
|
719
|
+
data: CMSHubdbSchemas.BatchInputString;
|
|
720
|
+
tableIdOrName: string;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
export type GetDraftBatchOutput =
|
|
724
|
+
CMSHubdbSchemas.BatchResponseHubDbTableRowV3;
|
|
725
|
+
|
|
726
|
+
export interface GetDraftInput {
|
|
727
|
+
/**
|
|
728
|
+
* Whether to return only results that have been archived.
|
|
729
|
+
*/
|
|
730
|
+
archived?: boolean;
|
|
731
|
+
rowId: string;
|
|
732
|
+
tableIdOrName: string;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
export type GetDraftOutput = CMSHubdbSchemas.HubDbTableRowV3;
|
|
736
|
+
|
|
737
|
+
export interface GetInput {
|
|
738
|
+
/**
|
|
739
|
+
* Whether to return only results that have been archived.
|
|
740
|
+
*/
|
|
741
|
+
archived?: boolean;
|
|
742
|
+
rowId: string;
|
|
743
|
+
tableIdOrName: string;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export type GetOutput = CMSHubdbSchemas.HubDbTableRowV3;
|
|
747
|
+
|
|
748
|
+
export interface ListInput {
|
|
749
|
+
/**
|
|
750
|
+
* 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.
|
|
751
|
+
*/
|
|
752
|
+
after?: string;
|
|
753
|
+
/**
|
|
754
|
+
* Whether to return only results that have been archived.
|
|
755
|
+
*/
|
|
756
|
+
archived?: boolean;
|
|
757
|
+
/**
|
|
758
|
+
* The maximum number of results to display per page.
|
|
759
|
+
*/
|
|
760
|
+
limit?: number;
|
|
761
|
+
offset?: number;
|
|
762
|
+
properties?: string[];
|
|
763
|
+
sort?: string[];
|
|
764
|
+
tableIdOrName: string;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
export type ListOutput =
|
|
768
|
+
CMSHubdbSchemas.UnifiedCollectionResponseWithTotalBaseHubDbTableRowV3;
|
|
769
|
+
|
|
770
|
+
export interface PurgeBatchInput {
|
|
771
|
+
data: CMSHubdbSchemas.BatchInputString;
|
|
772
|
+
tableIdOrName: string;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
export type PurgeBatchOutput = void;
|
|
776
|
+
|
|
777
|
+
export interface ReplaceBatchInput {
|
|
778
|
+
data: CMSHubdbSchemas.BatchInputHubDbTableRowV3BatchUpdateRequest;
|
|
779
|
+
tableIdOrName: string;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
export type ReplaceBatchOutput = CMSHubdbSchemas.BatchResponseHubDbTableRowV3;
|
|
783
|
+
|
|
784
|
+
export interface ReplaceDraftInput {
|
|
785
|
+
data: CMSHubdbSchemas.HubDbTableRowV3Request;
|
|
786
|
+
rowId: string;
|
|
787
|
+
tableIdOrName: string;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
export type ReplaceDraftOutput = CMSHubdbSchemas.HubDbTableRowV3;
|
|
791
|
+
|
|
792
|
+
export interface UpdateBatchInput {
|
|
793
|
+
data: CMSHubdbSchemas.BatchInputHubDbTableRowV3BatchUpdateRequest;
|
|
794
|
+
tableIdOrName: string;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
export type UpdateBatchOutput = CMSHubdbSchemas.BatchResponseHubDbTableRowV3;
|
|
798
|
+
|
|
799
|
+
export interface UpdateDraftInput {
|
|
800
|
+
data: CMSHubdbSchemas.HubDbTableRowV3Request;
|
|
801
|
+
rowId: string;
|
|
802
|
+
tableIdOrName: string;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
export type UpdateDraftOutput = CMSHubdbSchemas.HubDbTableRowV3;
|
|
988
806
|
/**
|
|
989
807
|
* Usage example:
|
|
990
808
|
* ```ts
|
|
991
|
-
* import {
|
|
992
|
-
* client.send(
|
|
809
|
+
* import { cmsHubdbRows } from '@hubspot/api-client-core';
|
|
810
|
+
* client.send(cmsHubdbRows.cloneBatch(input));
|
|
993
811
|
* ```
|
|
994
812
|
*/
|
|
995
|
-
export interface
|
|
813
|
+
export interface API {
|
|
996
814
|
/**
|
|
997
815
|
* Clone rows in batch
|
|
998
816
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft/batch/clone
|
|
999
817
|
* @apiMethod POST
|
|
1000
818
|
* @requiredScopes hubdb-data-append, hubdb-data-write
|
|
1001
819
|
*/
|
|
1002
|
-
cloneBatch: (
|
|
1003
|
-
input: Rows.CloneBatchInput
|
|
1004
|
-
) => Operation<Rows.CloneBatchOutput>;
|
|
820
|
+
cloneBatch: (input: CloneBatchInput) => Operation<CloneBatchOutput>;
|
|
1005
821
|
/**
|
|
1006
822
|
* Clone a row
|
|
1007
823
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}/draft/clone
|
|
1008
824
|
* @apiMethod POST
|
|
1009
825
|
* @requiredScopes hubdb-data-append, hubdb-data-write
|
|
1010
826
|
*/
|
|
1011
|
-
cloneDraft: (
|
|
1012
|
-
input: Rows.CloneDraftInput
|
|
1013
|
-
) => Operation<Rows.CloneDraftOutput>;
|
|
827
|
+
cloneDraft: (input: CloneDraftInput) => Operation<CloneDraftOutput>;
|
|
1014
828
|
/**
|
|
1015
829
|
* Add a row to a table
|
|
1016
830
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows
|
|
1017
831
|
* @apiMethod POST
|
|
1018
832
|
* @requiredScopes hubdb-data-append, hubdb-data-write
|
|
1019
833
|
*/
|
|
1020
|
-
create: (input:
|
|
834
|
+
create: (input: CreateInput) => Operation<CreateOutput>;
|
|
1021
835
|
/**
|
|
1022
836
|
* Create rows in batch
|
|
1023
837
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft/batch/create
|
|
1024
838
|
* @apiMethod POST
|
|
1025
839
|
* @requiredScopes hubdb-data-append, hubdb-data-write
|
|
1026
840
|
*/
|
|
1027
|
-
createBatch: (
|
|
1028
|
-
input: Rows.CreateBatchInput
|
|
1029
|
-
) => Operation<Rows.CreateBatchOutput>;
|
|
841
|
+
createBatch: (input: CreateBatchInput) => Operation<CreateBatchOutput>;
|
|
1030
842
|
/**
|
|
1031
843
|
* Permanently deletes a row
|
|
1032
844
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}/draft
|
|
1033
845
|
* @apiMethod DELETE
|
|
1034
846
|
* @requiredScopes hubdb-data-write
|
|
1035
847
|
*/
|
|
1036
|
-
deleteDraft: (
|
|
1037
|
-
input: Rows.DeleteDraftInput
|
|
1038
|
-
) => Operation<Rows.DeleteDraftOutput>;
|
|
848
|
+
deleteDraft: (input: DeleteDraftInput) => Operation<DeleteDraftOutput>;
|
|
1039
849
|
/**
|
|
1040
850
|
* Get a table row
|
|
1041
851
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}
|
|
1042
852
|
* @apiMethod GET
|
|
1043
853
|
* @requiredScopes hubdb-data-read
|
|
1044
854
|
*/
|
|
1045
|
-
get: (input:
|
|
855
|
+
get: (input: GetInput) => Operation<GetOutput>;
|
|
1046
856
|
/**
|
|
1047
857
|
* Get a set of rows
|
|
1048
858
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/batch/read
|
|
1049
859
|
* @apiMethod POST
|
|
1050
860
|
* @requiredScopes hubdb-data-read
|
|
1051
861
|
*/
|
|
1052
|
-
getBatch: (input:
|
|
862
|
+
getBatch: (input: GetBatchInput) => Operation<GetBatchOutput>;
|
|
1053
863
|
/**
|
|
1054
864
|
* Get a row from the draft table
|
|
1055
865
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}/draft
|
|
1056
866
|
* @apiMethod GET
|
|
1057
867
|
* @requiredScopes hubdb-data-read
|
|
1058
868
|
*/
|
|
1059
|
-
getDraft: (input:
|
|
869
|
+
getDraft: (input: GetDraftInput) => Operation<GetDraftOutput>;
|
|
1060
870
|
/**
|
|
1061
871
|
* Get a set of rows from draft table
|
|
1062
872
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft/batch/read
|
|
@@ -1064,93 +874,261 @@ export namespace CMSHubdb {
|
|
|
1064
874
|
* @requiredScopes hubdb-data-read
|
|
1065
875
|
*/
|
|
1066
876
|
getDraftBatch: (
|
|
1067
|
-
input:
|
|
1068
|
-
) => Operation<
|
|
877
|
+
input: GetDraftBatchInput
|
|
878
|
+
) => Operation<GetDraftBatchOutput>;
|
|
1069
879
|
/**
|
|
1070
880
|
* Get rows for a table
|
|
1071
881
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows
|
|
1072
882
|
* @apiMethod GET
|
|
1073
883
|
* @requiredScopes hubdb-data-read
|
|
1074
884
|
*/
|
|
1075
|
-
list: (input:
|
|
885
|
+
list: (input: ListInput) => Operation<ListOutput>;
|
|
1076
886
|
/**
|
|
1077
887
|
* Delete rows
|
|
1078
888
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft/batch/purge
|
|
1079
889
|
* @apiMethod POST
|
|
1080
890
|
* @requiredScopes hubdb-data-write
|
|
1081
891
|
*/
|
|
1082
|
-
purgeBatch: (
|
|
1083
|
-
input: Rows.PurgeBatchInput
|
|
1084
|
-
) => Operation<Rows.PurgeBatchOutput>;
|
|
892
|
+
purgeBatch: (input: PurgeBatchInput) => Operation<PurgeBatchOutput>;
|
|
1085
893
|
/**
|
|
1086
894
|
* Replace rows in batch in draft table
|
|
1087
895
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft/batch/replace
|
|
1088
896
|
* @apiMethod POST
|
|
1089
897
|
* @requiredScopes hubdb-data-append, hubdb-data-write
|
|
1090
898
|
*/
|
|
1091
|
-
replaceBatch: (
|
|
1092
|
-
input: Rows.ReplaceBatchInput
|
|
1093
|
-
) => Operation<Rows.ReplaceBatchOutput>;
|
|
899
|
+
replaceBatch: (input: ReplaceBatchInput) => Operation<ReplaceBatchOutput>;
|
|
1094
900
|
/**
|
|
1095
901
|
* Replace an existing row
|
|
1096
902
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}/draft
|
|
1097
903
|
* @apiMethod PUT
|
|
1098
904
|
* @requiredScopes hubdb-data-append, hubdb-data-write
|
|
1099
905
|
*/
|
|
1100
|
-
replaceDraft: (
|
|
1101
|
-
input: Rows.ReplaceDraftInput
|
|
1102
|
-
) => Operation<Rows.ReplaceDraftOutput>;
|
|
906
|
+
replaceDraft: (input: ReplaceDraftInput) => Operation<ReplaceDraftOutput>;
|
|
1103
907
|
/**
|
|
1104
908
|
* Update rows in batch in draft table
|
|
1105
909
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft/batch/update
|
|
1106
910
|
* @apiMethod POST
|
|
1107
911
|
* @requiredScopes hubdb-data-append, hubdb-data-write
|
|
1108
912
|
*/
|
|
1109
|
-
updateBatch: (
|
|
1110
|
-
input: Rows.UpdateBatchInput
|
|
1111
|
-
) => Operation<Rows.UpdateBatchOutput>;
|
|
913
|
+
updateBatch: (input: UpdateBatchInput) => Operation<UpdateBatchOutput>;
|
|
1112
914
|
/**
|
|
1113
915
|
* Update a row
|
|
1114
916
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}/draft
|
|
1115
917
|
* @apiMethod PATCH
|
|
1116
918
|
* @requiredScopes hubdb-data-append, hubdb-data-write
|
|
1117
919
|
*/
|
|
1118
|
-
updateDraft: (
|
|
1119
|
-
|
|
1120
|
-
|
|
920
|
+
updateDraft: (input: UpdateDraftInput) => Operation<UpdateDraftOutput>;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
export namespace CmsHubdbTables {
|
|
925
|
+
export interface CloneDraftInput {
|
|
926
|
+
data: CMSHubdbSchemas.HubDbTableCloneRequest;
|
|
927
|
+
tableIdOrName: string;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
export type CloneDraftOutput = CMSHubdbSchemas.HubDbTableV3;
|
|
931
|
+
|
|
932
|
+
export type CreateInput = CMSHubdbSchemas.HubDbTableV3Request;
|
|
933
|
+
|
|
934
|
+
export type CreateOutput = CMSHubdbSchemas.HubDbTableV3;
|
|
935
|
+
|
|
936
|
+
export interface DeleteInput {
|
|
937
|
+
tableIdOrName: string;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
export type DeleteOutput = void;
|
|
941
|
+
|
|
942
|
+
export interface DeleteVersionInput {
|
|
943
|
+
tableIdOrName: string;
|
|
944
|
+
versionId: number;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
export type DeleteVersionOutput = void;
|
|
948
|
+
|
|
949
|
+
export interface ExportDraftInput {
|
|
950
|
+
format?: string;
|
|
951
|
+
tableIdOrName: string;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
export type ExportDraftOutput = void;
|
|
955
|
+
|
|
956
|
+
export interface ExportInput {
|
|
957
|
+
format?: string;
|
|
958
|
+
tableIdOrName: string;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
export type ExportOutput = void;
|
|
962
|
+
|
|
963
|
+
export interface GetDraftInput {
|
|
964
|
+
/**
|
|
965
|
+
* Whether to return only results that have been archived.
|
|
966
|
+
*/
|
|
967
|
+
archived?: boolean;
|
|
968
|
+
includeForeignIds?: boolean;
|
|
969
|
+
isGetLocalizedSchema?: boolean;
|
|
970
|
+
tableIdOrName: string;
|
|
1121
971
|
}
|
|
1122
972
|
|
|
973
|
+
export type GetDraftOutput = CMSHubdbSchemas.HubDbTableV3;
|
|
974
|
+
|
|
975
|
+
export interface GetInput {
|
|
976
|
+
/**
|
|
977
|
+
* Whether to return only results that have been archived.
|
|
978
|
+
*/
|
|
979
|
+
archived?: boolean;
|
|
980
|
+
includeForeignIds?: boolean;
|
|
981
|
+
isGetLocalizedSchema?: boolean;
|
|
982
|
+
tableIdOrName: string;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
export type GetOutput = CMSHubdbSchemas.HubDbTableV3;
|
|
986
|
+
|
|
987
|
+
export interface ImportDraftInput {
|
|
988
|
+
data?: { config?: string; file?: BinaryData };
|
|
989
|
+
tableIdOrName: string;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
export type ImportDraftOutput = CMSHubdbSchemas.ImportResult;
|
|
993
|
+
|
|
994
|
+
export interface ListDraft2Input {
|
|
995
|
+
/**
|
|
996
|
+
* 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.
|
|
997
|
+
*/
|
|
998
|
+
after?: string;
|
|
999
|
+
/**
|
|
1000
|
+
* Whether to return only results that have been archived.
|
|
1001
|
+
*/
|
|
1002
|
+
archived?: boolean;
|
|
1003
|
+
/**
|
|
1004
|
+
* The maximum number of results to display per page.
|
|
1005
|
+
*/
|
|
1006
|
+
limit?: number;
|
|
1007
|
+
offset?: number;
|
|
1008
|
+
properties?: string[];
|
|
1009
|
+
sort?: string[];
|
|
1010
|
+
tableIdOrName: string;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
export type ListDraft2Output =
|
|
1014
|
+
CMSHubdbSchemas.UnifiedCollectionResponseWithTotalBaseHubDbTableRowV3;
|
|
1015
|
+
|
|
1016
|
+
export interface ListDraftInput {
|
|
1017
|
+
/**
|
|
1018
|
+
* 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.
|
|
1019
|
+
*/
|
|
1020
|
+
after?: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* Whether to return only results that have been archived.
|
|
1023
|
+
*/
|
|
1024
|
+
archived?: boolean;
|
|
1025
|
+
contentType?: string;
|
|
1026
|
+
createdAfter?: string;
|
|
1027
|
+
createdAt?: string;
|
|
1028
|
+
createdBefore?: string;
|
|
1029
|
+
isGetLocalizedSchema?: boolean;
|
|
1030
|
+
/**
|
|
1031
|
+
* The maximum number of results to display per page.
|
|
1032
|
+
*/
|
|
1033
|
+
limit?: number;
|
|
1034
|
+
sort?: string[];
|
|
1035
|
+
updatedAfter?: string;
|
|
1036
|
+
updatedAt?: string;
|
|
1037
|
+
updatedBefore?: string;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
export type ListDraftOutput =
|
|
1041
|
+
CMSHubdbSchemas.CollectionResponseWithTotalHubDbTableV3;
|
|
1042
|
+
|
|
1043
|
+
export interface ListInput {
|
|
1044
|
+
/**
|
|
1045
|
+
* 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.
|
|
1046
|
+
*/
|
|
1047
|
+
after?: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* Whether to return only results that have been archived.
|
|
1050
|
+
*/
|
|
1051
|
+
archived?: boolean;
|
|
1052
|
+
contentType?: string;
|
|
1053
|
+
createdAfter?: string;
|
|
1054
|
+
createdAt?: string;
|
|
1055
|
+
createdBefore?: string;
|
|
1056
|
+
isGetLocalizedSchema?: boolean;
|
|
1057
|
+
/**
|
|
1058
|
+
* The maximum number of results to display per page.
|
|
1059
|
+
*/
|
|
1060
|
+
limit?: number;
|
|
1061
|
+
sort?: string[];
|
|
1062
|
+
updatedAfter?: string;
|
|
1063
|
+
updatedAt?: string;
|
|
1064
|
+
updatedBefore?: string;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
export type ListOutput =
|
|
1068
|
+
CMSHubdbSchemas.CollectionResponseWithTotalHubDbTableV3;
|
|
1069
|
+
|
|
1070
|
+
export interface PublishDraftInput {
|
|
1071
|
+
includeForeignIds?: boolean;
|
|
1072
|
+
tableIdOrName: string;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
export type PublishDraftOutput = CMSHubdbSchemas.HubDbTableV3;
|
|
1076
|
+
|
|
1077
|
+
export interface ResetDraftInput {
|
|
1078
|
+
includeForeignIds?: boolean;
|
|
1079
|
+
tableIdOrName: string;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
export type ResetDraftOutput = CMSHubdbSchemas.HubDbTableV3;
|
|
1083
|
+
|
|
1084
|
+
export interface UnpublishInput {
|
|
1085
|
+
includeForeignIds?: boolean;
|
|
1086
|
+
tableIdOrName: string;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
export type UnpublishOutput = CMSHubdbSchemas.HubDbTableV3;
|
|
1090
|
+
|
|
1091
|
+
export interface UpdateDraftInput {
|
|
1092
|
+
/**
|
|
1093
|
+
* Whether to return only results that have been archived.
|
|
1094
|
+
*/
|
|
1095
|
+
archived?: boolean;
|
|
1096
|
+
data: CMSHubdbSchemas.HubDbTableV3Request;
|
|
1097
|
+
includeForeignIds?: boolean;
|
|
1098
|
+
isGetLocalizedSchema?: boolean;
|
|
1099
|
+
tableIdOrName: string;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
export type UpdateDraftOutput = CMSHubdbSchemas.HubDbTableV3;
|
|
1123
1103
|
/**
|
|
1124
1104
|
* Usage example:
|
|
1125
1105
|
* ```ts
|
|
1126
|
-
* import {
|
|
1127
|
-
* client.send(
|
|
1106
|
+
* import { cmsHubdbTables } from '@hubspot/api-client-core';
|
|
1107
|
+
* client.send(cmsHubdbTables.cloneDraft(input));
|
|
1128
1108
|
* ```
|
|
1129
1109
|
*/
|
|
1130
|
-
export interface
|
|
1110
|
+
export interface API {
|
|
1131
1111
|
/**
|
|
1132
1112
|
* Clone a table
|
|
1133
1113
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/draft/clone
|
|
1134
1114
|
* @apiMethod POST
|
|
1135
1115
|
* @requiredScopes hubdb-schemas-write
|
|
1136
1116
|
*/
|
|
1137
|
-
cloneDraft: (
|
|
1138
|
-
input: Tables.CloneDraftInput
|
|
1139
|
-
) => Operation<Tables.CloneDraftOutput>;
|
|
1117
|
+
cloneDraft: (input: CloneDraftInput) => Operation<CloneDraftOutput>;
|
|
1140
1118
|
/**
|
|
1141
1119
|
* Create a table
|
|
1142
1120
|
* @apiPath /cms/hubdb/2026-03/tables
|
|
1143
1121
|
* @apiMethod POST
|
|
1144
1122
|
* @requiredScopes hubdb-schemas-write
|
|
1145
1123
|
*/
|
|
1146
|
-
create: (input:
|
|
1124
|
+
create: (input: CreateInput) => Operation<CreateOutput>;
|
|
1147
1125
|
/**
|
|
1148
1126
|
* Archive a table
|
|
1149
1127
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}
|
|
1150
1128
|
* @apiMethod DELETE
|
|
1151
1129
|
* @requiredScopes hubdb-schemas-write
|
|
1152
1130
|
*/
|
|
1153
|
-
delete: (input:
|
|
1131
|
+
delete: (input: DeleteInput) => Operation<DeleteOutput>;
|
|
1154
1132
|
/**
|
|
1155
1133
|
* Delete a table version
|
|
1156
1134
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/versions/{versionId}
|
|
@@ -1158,119 +1136,91 @@ export namespace CMSHubdb {
|
|
|
1158
1136
|
* @requiredScopes hubdb-schemas-write
|
|
1159
1137
|
*/
|
|
1160
1138
|
deleteVersion: (
|
|
1161
|
-
input:
|
|
1162
|
-
) => Operation<
|
|
1139
|
+
input: DeleteVersionInput
|
|
1140
|
+
) => Operation<DeleteVersionOutput>;
|
|
1163
1141
|
/**
|
|
1164
1142
|
* Export a published version of a table
|
|
1165
1143
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/export
|
|
1166
1144
|
* @apiMethod GET
|
|
1167
1145
|
* @requiredScopes hubdb-data-read
|
|
1168
1146
|
*/
|
|
1169
|
-
export: (input:
|
|
1147
|
+
export: (input: ExportInput) => Operation<ExportOutput>;
|
|
1170
1148
|
/**
|
|
1171
1149
|
* Export a draft table
|
|
1172
1150
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/draft/export
|
|
1173
1151
|
* @apiMethod GET
|
|
1174
1152
|
* @requiredScopes hubdb-data-read
|
|
1175
1153
|
*/
|
|
1176
|
-
exportDraft: (
|
|
1177
|
-
input: Tables.ExportDraftInput
|
|
1178
|
-
) => Operation<Tables.ExportDraftOutput>;
|
|
1154
|
+
exportDraft: (input: ExportDraftInput) => Operation<ExportDraftOutput>;
|
|
1179
1155
|
/**
|
|
1180
1156
|
* Get details of a published table
|
|
1181
1157
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}
|
|
1182
1158
|
* @apiMethod GET
|
|
1183
1159
|
* @requiredScopes hubdb-schemas-read
|
|
1184
1160
|
*/
|
|
1185
|
-
get: (input:
|
|
1161
|
+
get: (input: GetInput) => Operation<GetOutput>;
|
|
1186
1162
|
/**
|
|
1187
1163
|
* Get details for a draft table
|
|
1188
1164
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/draft
|
|
1189
1165
|
* @apiMethod GET
|
|
1190
1166
|
* @requiredScopes hubdb-schemas-read
|
|
1191
1167
|
*/
|
|
1192
|
-
getDraft: (input:
|
|
1168
|
+
getDraft: (input: GetDraftInput) => Operation<GetDraftOutput>;
|
|
1193
1169
|
/**
|
|
1194
1170
|
* Import data into draft table
|
|
1195
1171
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/draft/import
|
|
1196
1172
|
* @apiMethod POST
|
|
1197
1173
|
* @requiredScopes hubdb-data-append, hubdb-data-write
|
|
1198
1174
|
*/
|
|
1199
|
-
importDraft: (
|
|
1200
|
-
input: Tables.ImportDraftInput
|
|
1201
|
-
) => Operation<Tables.ImportDraftOutput>;
|
|
1175
|
+
importDraft: (input: ImportDraftInput) => Operation<ImportDraftOutput>;
|
|
1202
1176
|
/**
|
|
1203
1177
|
* Get all published tables
|
|
1204
1178
|
* @apiPath /cms/hubdb/2026-03/tables
|
|
1205
1179
|
* @apiMethod GET
|
|
1206
1180
|
* @requiredScopes hubdb-schemas-read
|
|
1207
1181
|
*/
|
|
1208
|
-
list: (input?:
|
|
1182
|
+
list: (input?: ListInput) => Operation<ListOutput>;
|
|
1209
1183
|
/**
|
|
1210
1184
|
* Return all draft tables
|
|
1211
1185
|
* @apiPath /cms/hubdb/2026-03/tables/draft
|
|
1212
1186
|
* @apiMethod GET
|
|
1213
1187
|
* @requiredScopes hubdb-schemas-read
|
|
1214
1188
|
*/
|
|
1215
|
-
listDraft: (
|
|
1216
|
-
input?: Tables.ListDraftInput
|
|
1217
|
-
) => Operation<Tables.ListDraftOutput>;
|
|
1189
|
+
listDraft: (input?: ListDraftInput) => Operation<ListDraftOutput>;
|
|
1218
1190
|
/**
|
|
1219
1191
|
* Get rows from draft table
|
|
1220
1192
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft
|
|
1221
1193
|
* @apiMethod GET
|
|
1222
1194
|
* @requiredScopes hubdb-data-read
|
|
1223
1195
|
*/
|
|
1224
|
-
listDraft2: (
|
|
1225
|
-
input: Tables.ListDraft2Input
|
|
1226
|
-
) => Operation<Tables.ListDraft2Output>;
|
|
1196
|
+
listDraft2: (input: ListDraft2Input) => Operation<ListDraft2Output>;
|
|
1227
1197
|
/**
|
|
1228
1198
|
* Publish a table from draft
|
|
1229
1199
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/draft/publish
|
|
1230
1200
|
* @apiMethod POST
|
|
1231
1201
|
* @requiredScopes hubdb-publish
|
|
1232
1202
|
*/
|
|
1233
|
-
publishDraft: (
|
|
1234
|
-
input: Tables.PublishDraftInput
|
|
1235
|
-
) => Operation<Tables.PublishDraftOutput>;
|
|
1203
|
+
publishDraft: (input: PublishDraftInput) => Operation<PublishDraftOutput>;
|
|
1236
1204
|
/**
|
|
1237
1205
|
* Reset a table draft
|
|
1238
1206
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/draft/reset
|
|
1239
1207
|
* @apiMethod POST
|
|
1240
1208
|
* @requiredScopes hubdb-data-write
|
|
1241
1209
|
*/
|
|
1242
|
-
resetDraft: (
|
|
1243
|
-
input: Tables.ResetDraftInput
|
|
1244
|
-
) => Operation<Tables.ResetDraftOutput>;
|
|
1210
|
+
resetDraft: (input: ResetDraftInput) => Operation<ResetDraftOutput>;
|
|
1245
1211
|
/**
|
|
1246
1212
|
* Unpublish a table
|
|
1247
1213
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/unpublish
|
|
1248
1214
|
* @apiMethod POST
|
|
1249
1215
|
* @requiredScopes hubdb-publish, hubdb-unpublish
|
|
1250
1216
|
*/
|
|
1251
|
-
unpublish: (
|
|
1252
|
-
input: Tables.UnpublishInput
|
|
1253
|
-
) => Operation<Tables.UnpublishOutput>;
|
|
1217
|
+
unpublish: (input: UnpublishInput) => Operation<UnpublishOutput>;
|
|
1254
1218
|
/**
|
|
1255
1219
|
* Update an existing table
|
|
1256
1220
|
* @apiPath /cms/hubdb/2026-03/tables/{tableIdOrName}/draft
|
|
1257
1221
|
* @apiMethod PATCH
|
|
1258
1222
|
* @requiredScopes hubdb-schemas-write
|
|
1259
1223
|
*/
|
|
1260
|
-
updateDraft: (
|
|
1261
|
-
input: Tables.UpdateDraftInput
|
|
1262
|
-
) => Operation<Tables.UpdateDraftOutput>;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
/**
|
|
1266
|
-
* Usage example:
|
|
1267
|
-
* ```ts
|
|
1268
|
-
* import { cmsHubdb } from '@hubspot/api-client-core';
|
|
1269
|
-
* client.send(cmsHubdb.rows.cloneBatch(input));
|
|
1270
|
-
* ```
|
|
1271
|
-
*/
|
|
1272
|
-
export interface API {
|
|
1273
|
-
rows: RowsAPI;
|
|
1274
|
-
tables: TablesAPI;
|
|
1224
|
+
updateDraft: (input: UpdateDraftInput) => Operation<UpdateDraftOutput>;
|
|
1275
1225
|
}
|
|
1276
1226
|
}
|