From 4a4a05ec4b6cb7c489abfb6281adfc0236af0651 Mon Sep 17 00:00:00 2001 From: cgalvinbullhorn <87441206+cgalvinbullhorn@users.noreply.github.com> Date: Thu, 12 Sep 2024 08:10:40 -0400 Subject: [PATCH] feat(typings): Add Copilot Entities (#192) * feat(typings): Add Copilot Entities * feat(typings): Tweaks * feat(typings): Strings -> string --- src/index.ts | 104 +++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 92 insertions(+), 12 deletions(-) diff --git a/src/index.ts b/src/index.ts index 324d58f..8f09b3e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -211,6 +211,19 @@ export class EntityTypes { static ClientCorporationTask: 'ClientCorporationTask' = 'ClientCorporationTask'; static ClientCorporationTaxExemptionStatusLookup: 'ClientCorporationTaxExemptionStatusLookup' = 'ClientCorporationTaxExemptionStatusLookup'; static ComposeMessage: 'ComposeMessage' = 'ComposeMessage'; + static CopilotEntityType: 'CopilotEntityType' = 'CopilotEntityType'; + static CopilotFilteredFieldMaps: 'CopilotFilteredFieldMaps' = 'CopilotFilteredFieldMaps'; + static CopilotGenerativeConfig: 'CopilotGenerativeConfig' = 'CopilotGenerativeConfig'; + static CopilotGenerativeModel: 'CopilotGenerativeModel' = 'CopilotGenerativeModel'; + static CopilotLanguage: 'CopilotLanguage' = 'CopilotLanguage'; + static CopilotLength: 'CopilotLength' = 'CopilotLength'; + static CopilotPrompt: 'CopilotPrompt' = 'CopilotPrompt'; + static CopilotPromptDataPoint: 'CopilotPromptDataPoint' = 'CopilotPromptDataPoint'; + static CopilotPromptLocation: 'CopilotPromptLocation' = 'CopilotPromptLocation'; + static CopilotProvider: 'CopilotProvider' = 'CopilotProvider'; + static CopilotRole: 'CopilotRole' = 'CopilotRole'; + static CopilotTask: 'CopilotTask' = 'CopilotTask'; + static CopilotTone: 'CopilotTone' = 'CopilotTone'; static CorpFile: 'CorpFile' = 'CorpFile'; static CorporateUser: 'CorporateUser' = 'CorporateUser'; static Corporation: 'Corporation' = 'Corporation'; @@ -4647,24 +4660,91 @@ export interface ClientCorporationTaxExemptionStatusLookup { isDeleted?: boolean; label?: Strings; } - +export interface CopilotEntityType { + id?: number; + entityTypeLookupID?: { + id?: number; + label?: string; + schemaName?: string; + tableName?: string; + }; +} +export interface CopilotFilteredFieldMaps { + fieldMaps?: [{ + name?: string; + label?: string; + }]; +} +export interface CopilotGenerativeConfig { + copilotGenerativeProviderLookup?: CopilotGenerativeProvider; + apiKey?: string; + defaultCopilotGenerativeModel?: CopilotGenerativeModel; +} +export interface CopilotGenerativeModel { + modelName?: string; + tokenLimit?: number; + instanceName?: string; + apiVersion?: string; +} +export interface CopilotGenerativeProvider { + id?: number; + label?: string; +} +export interface CopilotLanguage { + id?: number; + abbreviation?: string; + label?: string; + languageCodeWithLocale?: string; +} +export interface CopilotLength { + id?: number; + label?: string; + prompt?: string; +} export interface CopilotPrompt { id?: number; privateLabelID?: number; - label?: Strings; - copilotRoleID?: number; - copilotTaskID?: number; - copilotToneID?: number; - copilotLengthID?: number; - copilotLanguageID?: number; + label?: string; + labelTranslationKey?: string; + copilotRole?: CopilotRole; + copilotTask?: CopilotTask; + copilotTone?: CopilotTone; + copilotLength?: CopilotLength; + copilotLanguage?: CopilotLanguage; isSecondaryEntityRequired?: boolean; - customAction?: Strings; + customAction?: string; isEnabled?: boolean; - copilotPromptLocationID?: number; - copilotPrimaryEntityTypeID?: number; - copilotSecondaryEntityTypeID?: number; + copilotPromptLocation?: CopilotPromptLocation; + copilotPrimaryEntityType?: CopilotEntityType; + copilotSecondaryEntityType?: CopilotEntityType; + copilotPromptDataPoints?: CopilotPromptDataPoint[]; +} +export interface CopilotPromptDataPoint { + id?: number; + copilotEntityType?: CopilotEntityType; + field?: string; +} +export interface CopilotPromptLocation { + id?: number; + label?: string; + value?: string; +} +export interface CopilotRole { + id?: number; + label?: string; + prompt?: string; + isHidden?: boolean; +} +export interface CopilotTask { + id?: number; + label?: string; + prompt?: any; +} +export interface CopilotTone { + id?: number; + label?: string; + prompt?: string; } - export interface CorpFile { id?: number; contentSubType?: Strings;