From b87fa7e65f4be8e2dcc1447f0663006743c699a3 Mon Sep 17 00:00:00 2001 From: KristapsR <15666423+KristapsR@users.noreply.github.com> Date: Wed, 13 May 2026 14:51:18 +0300 Subject: [PATCH] fix(types): allow Node Readable in HttpFile.data --- codegen/automation/actions/http/http.ts | 3 ++- codegen/cms/audit_logs/http/http.ts | 3 ++- codegen/cms/blogs/authors/http/http.ts | 3 ++- codegen/cms/blogs/blog_posts/http/http.ts | 3 ++- codegen/cms/blogs/tags/http/http.ts | 3 ++- codegen/cms/domains/http/http.ts | 3 ++- codegen/cms/hubdb/http/http.ts | 3 ++- codegen/cms/pages/http/http.ts | 3 ++- codegen/cms/site_search/http/http.ts | 3 ++- codegen/cms/source_code/http/http.ts | 3 ++- codegen/cms/url_redirects/http/http.ts | 3 ++- codegen/communication_preferences/http/http.ts | 3 ++- codegen/conversations/visitor_identification/http/http.ts | 3 ++- codegen/crm/associations/http/http.ts | 3 ++- codegen/crm/associations/schema/http/http.ts | 3 ++- codegen/crm/associations/v4/http/http.ts | 3 ++- codegen/crm/associations/v4/schema/http/http.ts | 3 ++- codegen/crm/commerce/invoices/http/http.ts | 3 ++- codegen/crm/companies/http/http.ts | 3 ++- codegen/crm/contacts/http/http.ts | 3 ++- codegen/crm/deals/http/http.ts | 3 ++- codegen/crm/exports/http/http.ts | 3 ++- codegen/crm/extensions/calling/http/http.ts | 3 ++- codegen/crm/extensions/cards/http/http.ts | 3 ++- codegen/crm/extensions/videoconferencing/http/http.ts | 3 ++- codegen/crm/imports/http/http.ts | 3 ++- codegen/crm/line_items/http/http.ts | 3 ++- codegen/crm/lists/http/http.ts | 3 ++- codegen/crm/objects/calls/http/http.ts | 3 ++- codegen/crm/objects/communications/http/http.ts | 3 ++- codegen/crm/objects/deal_splits/http/http.ts | 3 ++- codegen/crm/objects/emails/http/http.ts | 3 ++- codegen/crm/objects/feedback_submissions/http/http.ts | 3 ++- codegen/crm/objects/goals/http/http.ts | 3 ++- codegen/crm/objects/http/http.ts | 3 ++- codegen/crm/objects/leads/http/http.ts | 3 ++- codegen/crm/objects/meetings/http/http.ts | 3 ++- codegen/crm/objects/notes/http/http.ts | 3 ++- codegen/crm/objects/postal_mail/http/http.ts | 3 ++- codegen/crm/objects/tasks/http/http.ts | 3 ++- codegen/crm/objects/taxes/http/http.ts | 3 ++- codegen/crm/owners/http/http.ts | 3 ++- codegen/crm/pipelines/http/http.ts | 3 ++- codegen/crm/products/http/http.ts | 3 ++- codegen/crm/properties/http/http.ts | 3 ++- codegen/crm/quotes/http/http.ts | 3 ++- codegen/crm/schemas/http/http.ts | 3 ++- codegen/crm/tickets/http/http.ts | 3 ++- codegen/crm/timeline/http/http.ts | 3 ++- codegen/events/http/http.ts | 3 ++- codegen/events/send/http/http.ts | 3 ++- codegen/files/http/http.ts | 3 ++- codegen/marketing/emails/http/http.ts | 3 ++- codegen/marketing/events/http/http.ts | 3 ++- codegen/marketing/forms/http/http.ts | 3 ++- codegen/marketing/transactional/http/http.ts | 3 ++- codegen/oauth/http/http.ts | 3 ++- codegen/settings/business_units/http/http.ts | 3 ++- codegen/settings/users/http/http.ts | 3 ++- codegen/webhooks/http/http.ts | 3 ++- 60 files changed, 120 insertions(+), 60 deletions(-) diff --git a/codegen/automation/actions/http/http.ts b/codegen/automation/actions/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/automation/actions/http/http.ts +++ b/codegen/automation/actions/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/cms/audit_logs/http/http.ts b/codegen/cms/audit_logs/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/cms/audit_logs/http/http.ts +++ b/codegen/cms/audit_logs/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/cms/blogs/authors/http/http.ts b/codegen/cms/blogs/authors/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/cms/blogs/authors/http/http.ts +++ b/codegen/cms/blogs/authors/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/cms/blogs/blog_posts/http/http.ts b/codegen/cms/blogs/blog_posts/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/cms/blogs/blog_posts/http/http.ts +++ b/codegen/cms/blogs/blog_posts/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/cms/blogs/tags/http/http.ts b/codegen/cms/blogs/tags/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/cms/blogs/tags/http/http.ts +++ b/codegen/cms/blogs/tags/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/cms/domains/http/http.ts b/codegen/cms/domains/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/cms/domains/http/http.ts +++ b/codegen/cms/domains/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/cms/hubdb/http/http.ts b/codegen/cms/hubdb/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/cms/hubdb/http/http.ts +++ b/codegen/cms/hubdb/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/cms/pages/http/http.ts b/codegen/cms/pages/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/cms/pages/http/http.ts +++ b/codegen/cms/pages/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/cms/site_search/http/http.ts b/codegen/cms/site_search/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/cms/site_search/http/http.ts +++ b/codegen/cms/site_search/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/cms/source_code/http/http.ts b/codegen/cms/source_code/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/cms/source_code/http/http.ts +++ b/codegen/cms/source_code/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/cms/url_redirects/http/http.ts b/codegen/cms/url_redirects/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/cms/url_redirects/http/http.ts +++ b/codegen/cms/url_redirects/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/communication_preferences/http/http.ts b/codegen/communication_preferences/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/communication_preferences/http/http.ts +++ b/codegen/communication_preferences/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/conversations/visitor_identification/http/http.ts b/codegen/conversations/visitor_identification/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/conversations/visitor_identification/http/http.ts +++ b/codegen/conversations/visitor_identification/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/associations/http/http.ts b/codegen/crm/associations/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/associations/http/http.ts +++ b/codegen/crm/associations/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/associations/schema/http/http.ts b/codegen/crm/associations/schema/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/associations/schema/http/http.ts +++ b/codegen/crm/associations/schema/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/associations/v4/http/http.ts b/codegen/crm/associations/v4/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/associations/v4/http/http.ts +++ b/codegen/crm/associations/v4/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/associations/v4/schema/http/http.ts b/codegen/crm/associations/v4/schema/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/associations/v4/schema/http/http.ts +++ b/codegen/crm/associations/v4/schema/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/commerce/invoices/http/http.ts b/codegen/crm/commerce/invoices/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/commerce/invoices/http/http.ts +++ b/codegen/crm/commerce/invoices/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/companies/http/http.ts b/codegen/crm/companies/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/companies/http/http.ts +++ b/codegen/crm/companies/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/contacts/http/http.ts b/codegen/crm/contacts/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/contacts/http/http.ts +++ b/codegen/crm/contacts/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/deals/http/http.ts b/codegen/crm/deals/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/deals/http/http.ts +++ b/codegen/crm/deals/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/exports/http/http.ts b/codegen/crm/exports/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/exports/http/http.ts +++ b/codegen/crm/exports/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/extensions/calling/http/http.ts b/codegen/crm/extensions/calling/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/extensions/calling/http/http.ts +++ b/codegen/crm/extensions/calling/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/extensions/cards/http/http.ts b/codegen/crm/extensions/cards/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/extensions/cards/http/http.ts +++ b/codegen/crm/extensions/cards/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/extensions/videoconferencing/http/http.ts b/codegen/crm/extensions/videoconferencing/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/extensions/videoconferencing/http/http.ts +++ b/codegen/crm/extensions/videoconferencing/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/imports/http/http.ts b/codegen/crm/imports/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/imports/http/http.ts +++ b/codegen/crm/imports/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/line_items/http/http.ts b/codegen/crm/line_items/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/line_items/http/http.ts +++ b/codegen/crm/line_items/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/lists/http/http.ts b/codegen/crm/lists/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/lists/http/http.ts +++ b/codegen/crm/lists/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/calls/http/http.ts b/codegen/crm/objects/calls/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/calls/http/http.ts +++ b/codegen/crm/objects/calls/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/communications/http/http.ts b/codegen/crm/objects/communications/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/communications/http/http.ts +++ b/codegen/crm/objects/communications/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/deal_splits/http/http.ts b/codegen/crm/objects/deal_splits/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/deal_splits/http/http.ts +++ b/codegen/crm/objects/deal_splits/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/emails/http/http.ts b/codegen/crm/objects/emails/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/emails/http/http.ts +++ b/codegen/crm/objects/emails/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/feedback_submissions/http/http.ts b/codegen/crm/objects/feedback_submissions/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/feedback_submissions/http/http.ts +++ b/codegen/crm/objects/feedback_submissions/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/goals/http/http.ts b/codegen/crm/objects/goals/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/goals/http/http.ts +++ b/codegen/crm/objects/goals/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/http/http.ts b/codegen/crm/objects/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/http/http.ts +++ b/codegen/crm/objects/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/leads/http/http.ts b/codegen/crm/objects/leads/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/leads/http/http.ts +++ b/codegen/crm/objects/leads/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/meetings/http/http.ts b/codegen/crm/objects/meetings/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/meetings/http/http.ts +++ b/codegen/crm/objects/meetings/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/notes/http/http.ts b/codegen/crm/objects/notes/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/notes/http/http.ts +++ b/codegen/crm/objects/notes/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/postal_mail/http/http.ts b/codegen/crm/objects/postal_mail/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/postal_mail/http/http.ts +++ b/codegen/crm/objects/postal_mail/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/tasks/http/http.ts b/codegen/crm/objects/tasks/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/tasks/http/http.ts +++ b/codegen/crm/objects/tasks/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/objects/taxes/http/http.ts b/codegen/crm/objects/taxes/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/objects/taxes/http/http.ts +++ b/codegen/crm/objects/taxes/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/owners/http/http.ts b/codegen/crm/owners/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/owners/http/http.ts +++ b/codegen/crm/owners/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/pipelines/http/http.ts b/codegen/crm/pipelines/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/pipelines/http/http.ts +++ b/codegen/crm/pipelines/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/products/http/http.ts b/codegen/crm/products/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/products/http/http.ts +++ b/codegen/crm/products/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/properties/http/http.ts b/codegen/crm/properties/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/properties/http/http.ts +++ b/codegen/crm/properties/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/quotes/http/http.ts b/codegen/crm/quotes/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/quotes/http/http.ts +++ b/codegen/crm/quotes/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/schemas/http/http.ts b/codegen/crm/schemas/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/schemas/http/http.ts +++ b/codegen/crm/schemas/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/tickets/http/http.ts b/codegen/crm/tickets/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/tickets/http/http.ts +++ b/codegen/crm/tickets/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/crm/timeline/http/http.ts b/codegen/crm/timeline/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/crm/timeline/http/http.ts +++ b/codegen/crm/timeline/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/events/http/http.ts b/codegen/events/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/events/http/http.ts +++ b/codegen/events/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/events/send/http/http.ts b/codegen/events/send/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/events/send/http/http.ts +++ b/codegen/events/send/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/files/http/http.ts b/codegen/files/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/files/http/http.ts +++ b/codegen/files/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/marketing/emails/http/http.ts b/codegen/marketing/emails/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/marketing/emails/http/http.ts +++ b/codegen/marketing/emails/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/marketing/events/http/http.ts b/codegen/marketing/events/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/marketing/events/http/http.ts +++ b/codegen/marketing/events/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/marketing/forms/http/http.ts b/codegen/marketing/forms/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/marketing/forms/http/http.ts +++ b/codegen/marketing/forms/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/marketing/transactional/http/http.ts b/codegen/marketing/transactional/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/marketing/transactional/http/http.ts +++ b/codegen/marketing/transactional/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/oauth/http/http.ts b/codegen/oauth/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/oauth/http/http.ts +++ b/codegen/oauth/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/settings/business_units/http/http.ts b/codegen/settings/business_units/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/settings/business_units/http/http.ts +++ b/codegen/settings/business_units/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/settings/users/http/http.ts b/codegen/settings/users/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/settings/users/http/http.ts +++ b/codegen/settings/users/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string }; diff --git a/codegen/webhooks/http/http.ts b/codegen/webhooks/http/http.ts index 15b563c38e..f30ee3a5b1 100644 --- a/codegen/webhooks/http/http.ts +++ b/codegen/webhooks/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import type { Readable } from 'stream'; import { Observable, from } from '../rxjsStub'; export * from './isomorphic-fetch'; @@ -26,7 +27,7 @@ export enum HttpMethod { * Represents an HTTP file which will be transferred from or to a server. */ export type HttpFile = { - data: Buffer, + data: Buffer | Readable, name: string };