From a330774893d8b4cff5644d69fc4ee7685fb46ef2 Mon Sep 17 00:00:00 2001 From: Nagendra Date: Fri, 19 Apr 2024 13:39:14 +0200 Subject: [PATCH] fix [inleads-3267] Updated generated types --- .../inleads-ai/generated-types.ts | 11 +- .../inleads-ai/group/generated-types.ts | 110 ++++++++++++++++ .../destinations/inleads-ai/group/index.ts | 3 +- .../inleads-ai/identify/generated-types.ts | 118 ++++++++++++++++++ .../destinations/inleads-ai/identify/index.ts | 3 +- .../inleads-ai/track/generated-types.ts | 108 ++++++++++++++++ .../destinations/inleads-ai/track/index.ts | 3 +- 7 files changed, 343 insertions(+), 13 deletions(-) create mode 100644 packages/destination-actions/src/destinations/inleads-ai/group/generated-types.ts create mode 100644 packages/destination-actions/src/destinations/inleads-ai/identify/generated-types.ts create mode 100644 packages/destination-actions/src/destinations/inleads-ai/track/generated-types.ts diff --git a/packages/destination-actions/src/destinations/inleads-ai/generated-types.ts b/packages/destination-actions/src/destinations/inleads-ai/generated-types.ts index 8dac8c93b1..5580e8b308 100644 --- a/packages/destination-actions/src/destinations/inleads-ai/generated-types.ts +++ b/packages/destination-actions/src/destinations/inleads-ai/generated-types.ts @@ -2,16 +2,7 @@ export interface Settings { /** - * Your InLeads API Key. You can find your API Key in your inleads.ai settings. + * Your Inleads AI API Key. You can find your API Key in your inleads.ai settings. */ apiKey: string } - -export interface Payload { - /** - * Segment Event Payload - */ - segmentEventData: { - [k: string]: unknown - } -} diff --git a/packages/destination-actions/src/destinations/inleads-ai/group/generated-types.ts b/packages/destination-actions/src/destinations/inleads-ai/group/generated-types.ts new file mode 100644 index 0000000000..62e2e5871b --- /dev/null +++ b/packages/destination-actions/src/destinations/inleads-ai/group/generated-types.ts @@ -0,0 +1,110 @@ +// Generated file. DO NOT MODIFY IT BY HAND. + +export interface Payload { + /** + * The External ID of the account to send properties for + */ + account_id: string + /** + * The ID associated with the user + */ + user_id?: string + /** + * The Account name + */ + name: string + /** + * The timestamp when the account was created, represented in the ISO-8601 date format. For instance, "2023-09-26T15:30:00Z". + */ + created_at?: string + /** + * The properties of the account + */ + traits?: { + [k: string]: unknown + } + /** + * The account website + */ + website?: string + /** + * User metadata including IP, Location, etc. + */ + userMeta?: { + [k: string]: unknown + } + /** + * User Anonymous id + */ + anonymous_id?: string | null + /** + * The ID of the event. + */ + event_id?: string + /** + * The URL of the page where the event occurred. + */ + url?: string + /** + * The referrer of the page where the event occurred. + */ + referer?: string + /** + * The language of the browser. + */ + user_language?: string + /** + * The time of the event in UTC. + */ + utc_time: string + /** + * Information about the UTM parameters. + */ + utm?: { + /** + * The source of the campaign. + */ + source?: string + /** + * The medium of the campaign. + */ + medium?: string + /** + * The name of the campaign. + */ + name?: string + /** + * The term of the campaign. + */ + term?: string + /** + * The content of the campaign. + */ + content?: string + } + /** + * Information about the screen. + */ + screen?: { + /** + * The height of the screen. + */ + height?: number + /** + * The width of the screen. + */ + width?: number + /** + * The density of the screen. + */ + density?: number + } + /** + * The timezone of the browser. + */ + timezone?: string + /** + * The IP address of the user. + */ + source_ip?: string +} diff --git a/packages/destination-actions/src/destinations/inleads-ai/group/index.ts b/packages/destination-actions/src/destinations/inleads-ai/group/index.ts index eab9c4626d..626c8129c7 100644 --- a/packages/destination-actions/src/destinations/inleads-ai/group/index.ts +++ b/packages/destination-actions/src/destinations/inleads-ai/group/index.ts @@ -1,5 +1,6 @@ import type { ActionDefinition } from '@segment/actions-core' -import type { Settings,Payload } from '../generated-types' +import type { Settings } from '../generated-types' +import type { Payload } from './generated-types' import { commonFields } from '../common-fields' import { IntegrationBaseUrl, IntegrationName } from '../contants' diff --git a/packages/destination-actions/src/destinations/inleads-ai/identify/generated-types.ts b/packages/destination-actions/src/destinations/inleads-ai/identify/generated-types.ts new file mode 100644 index 0000000000..1489be7ad0 --- /dev/null +++ b/packages/destination-actions/src/destinations/inleads-ai/identify/generated-types.ts @@ -0,0 +1,118 @@ +// Generated file. DO NOT MODIFY IT BY HAND. + +export interface Payload { + /** + * The External ID of the user + */ + user_id: string + /** + * The user's name + */ + name?: string | null + /** + * The user's first name. This field is mandatory if you're not providing a name field + */ + first_name?: string | null + /** + * The user's last name. This field is mandatory if you're not providing a name field + */ + last_name?: string | null + /** + * The user's email address + */ + email?: string + /** + * The account id, to uniquely identify the account associated with the user + */ + account_id?: string + /** + * The timestamp when the user was created, represented in the ISO-8601 date format. For instance, "2023-09-26T15:30:00Z". + */ + created_at?: string + /** + * Properties to associate with the user + */ + traits?: { + [k: string]: unknown + } + /** + * User metadata including IP, Location, etc. + */ + userMeta?: { + [k: string]: unknown + } + /** + * User Anonymous id + */ + anonymous_id?: string | null + /** + * The ID of the event. + */ + event_id?: string + /** + * The URL of the page where the event occurred. + */ + url?: string + /** + * The referrer of the page where the event occurred. + */ + referer?: string + /** + * The language of the browser. + */ + user_language?: string + /** + * The time of the event in UTC. + */ + utc_time: string + /** + * Information about the UTM parameters. + */ + utm?: { + /** + * The source of the campaign. + */ + source?: string + /** + * The medium of the campaign. + */ + medium?: string + /** + * The name of the campaign. + */ + name?: string + /** + * The term of the campaign. + */ + term?: string + /** + * The content of the campaign. + */ + content?: string + } + /** + * Information about the screen. + */ + screen?: { + /** + * The height of the screen. + */ + height?: number + /** + * The width of the screen. + */ + width?: number + /** + * The density of the screen. + */ + density?: number + } + /** + * The timezone of the browser. + */ + timezone?: string + /** + * The IP address of the user. + */ + source_ip?: string +} diff --git a/packages/destination-actions/src/destinations/inleads-ai/identify/index.ts b/packages/destination-actions/src/destinations/inleads-ai/identify/index.ts index b0399ea821..4175249af1 100644 --- a/packages/destination-actions/src/destinations/inleads-ai/identify/index.ts +++ b/packages/destination-actions/src/destinations/inleads-ai/identify/index.ts @@ -1,5 +1,6 @@ import type { ActionDefinition } from '@segment/actions-core' -import type { Settings, Payload } from '../generated-types' +import type { Settings } from '../generated-types' +import type { Payload } from './generated-types' import { commonFields } from '../common-fields' import { IntegrationBaseUrl, IntegrationName } from '../contants' diff --git a/packages/destination-actions/src/destinations/inleads-ai/track/generated-types.ts b/packages/destination-actions/src/destinations/inleads-ai/track/generated-types.ts new file mode 100644 index 0000000000..804bd4d88e --- /dev/null +++ b/packages/destination-actions/src/destinations/inleads-ai/track/generated-types.ts @@ -0,0 +1,108 @@ +// Generated file. DO NOT MODIFY IT BY HAND. + +export interface Payload { + /** + * The name of the event + */ + eventName: string + /** + * The user id, to uniquely identify the user associated with the event + */ + user_id: string + /** + * The account id, to uniquely identify the account associated with the user + */ + account_id?: string + /** + * The properties of the track call + */ + properties?: { + [k: string]: unknown + } + /** + * The Traits of the track call + */ + traits?: { + [k: string]: unknown + } + /** + * User metadata including IP, Location, etc. + */ + userMeta?: { + [k: string]: unknown + } + /** + * User Anonymous id + */ + anonymous_id?: string | null + /** + * The ID of the event. + */ + event_id?: string + /** + * The URL of the page where the event occurred. + */ + url?: string + /** + * The referrer of the page where the event occurred. + */ + referer?: string + /** + * The language of the browser. + */ + user_language?: string + /** + * The time of the event in UTC. + */ + utc_time: string + /** + * Information about the UTM parameters. + */ + utm?: { + /** + * The source of the campaign. + */ + source?: string + /** + * The medium of the campaign. + */ + medium?: string + /** + * The name of the campaign. + */ + name?: string + /** + * The term of the campaign. + */ + term?: string + /** + * The content of the campaign. + */ + content?: string + } + /** + * Information about the screen. + */ + screen?: { + /** + * The height of the screen. + */ + height?: number + /** + * The width of the screen. + */ + width?: number + /** + * The density of the screen. + */ + density?: number + } + /** + * The timezone of the browser. + */ + timezone?: string + /** + * The IP address of the user. + */ + source_ip?: string +} diff --git a/packages/destination-actions/src/destinations/inleads-ai/track/index.ts b/packages/destination-actions/src/destinations/inleads-ai/track/index.ts index a8d587c3ff..3917f3cdfc 100644 --- a/packages/destination-actions/src/destinations/inleads-ai/track/index.ts +++ b/packages/destination-actions/src/destinations/inleads-ai/track/index.ts @@ -1,5 +1,6 @@ import type { ActionDefinition } from '@segment/actions-core' -import type { Settings, Payload } from '../generated-types' +import type { Settings } from '../generated-types' +import type { Payload } from './generated-types' import { commonFields } from '../common-fields' import { IntegrationBaseUrl, IntegrationName } from '../contants'