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