From b4fbc23015f2dc86b54c38ae4f1eadc4872caa33 Mon Sep 17 00:00:00 2001 From: Colin Galvin Date: Tue, 10 Sep 2024 06:05:26 -0400 Subject: [PATCH 1/3] feat(typings): Add Copilot Entities --- src/index.ts | 100 +++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 90 insertions(+), 10 deletions(-) diff --git a/src/index.ts b/src/index.ts index 324d58f..9c323ef 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?: Strings; + schemaName?: Strings; + tableName?: Strings; + }; +} +export interface CopilotFilteredFieldMaps { + fieldMaps?: [{ + name?: Strings; + label?: Strings; + }]; +} +export interface CopilotGenerativeConfig { + copilotGenerativeProviderLookup?: CopilotProvider; + apiKey?: Strings; + defaultCopilotGenerativeModel?: CopilotGenerativeModel; +} +export interface CopilotGenerativeModel { + modelName?: Strings; + tokenLimit?: number; + instanceName?: Strings; + apiVersion?: Strings; +} +export interface CopilotLanguage { + id?: number; + abbreviation?: Strings; + label?: Strings; + languageCodeWithLocale?: Strings; +} +export interface CopilotLength { + id?: number; + label?: Strings; + prompt?: Strings; +} export interface CopilotPrompt { id?: number; privateLabelID?: number; label?: Strings; - copilotRoleID?: number; - copilotTaskID?: number; - copilotToneID?: number; - copilotLengthID?: number; - copilotLanguageID?: number; + labelTranslationKey?: Strings; + copilotRole?: CopilotRole; + copilotTask?: CopilotTask; + copilotTone?: CopilotTone; + copilotLength?: CopilotLength; + copilotLanguage?: CopilotLanguage; isSecondaryEntityRequired?: boolean; customAction?: Strings; isEnabled?: boolean; - copilotPromptLocationID?: number; - copilotPrimaryEntityTypeID?: number; - copilotSecondaryEntityTypeID?: number; + copilotPromptLocation?: CopilotPromptLocation; + copilotPrimaryEntityType?: CopilotEntityType; + copilotSecondaryEntityType?: CopilotEntityType; + copilotPromptDataPoints?: CopilotPromptDataPoint[]; +} +export interface CopilotPromptDataPoint { + id?: number; + copilotEntityType?: CopilotEntityType; + field?: Strings; +} +export interface CopilotPromptLocation { + id?: number; + label?: Strings; + value?: Strings; +} +export interface CopilotProvider { + copilotGenerativeProviderLookupID?: number; + label?: Strings; +} +export interface CopilotRole { + id?: number; + label?: Strings; + prompt?: Strings; + isHidden?: boolean; +} +export interface CopilotTask { + id?: number; + label?: Strings; + prompt?: any; +} +export interface CopilotTone { + id?: number; + label?: Strings; + prompt?: Strings; } - export interface CorpFile { id?: number; contentSubType?: Strings; From 8045d120ce7f46f27bb6c22ed57f2245a061e829 Mon Sep 17 00:00:00 2001 From: Colin Galvin Date: Wed, 11 Sep 2024 12:38:49 -0400 Subject: [PATCH 2/3] feat(typings): Tweaks --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 9c323ef..487916d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4676,7 +4676,7 @@ export interface CopilotFilteredFieldMaps { }]; } export interface CopilotGenerativeConfig { - copilotGenerativeProviderLookup?: CopilotProvider; + copilotGenerativeProviderLookup?: CopilotGenerativeProvider; apiKey?: Strings; defaultCopilotGenerativeModel?: CopilotGenerativeModel; } @@ -4725,8 +4725,8 @@ export interface CopilotPromptLocation { label?: Strings; value?: Strings; } -export interface CopilotProvider { - copilotGenerativeProviderLookupID?: number; +export interface CopilotGenerativeProvider { + id?: number; label?: Strings; } export interface CopilotRole { From cb87bfc16acca4b9a1060da419be959d35fc51b1 Mon Sep 17 00:00:00 2001 From: Colin Galvin Date: Wed, 11 Sep 2024 17:01:13 -0400 Subject: [PATCH 3/3] feat(typings): Strings -> string --- src/index.ts | 58 ++++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/index.ts b/src/index.ts index 487916d..8f09b3e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4664,51 +4664,55 @@ export interface CopilotEntityType { id?: number; entityTypeLookupID?: { id?: number; - label?: Strings; - schemaName?: Strings; - tableName?: Strings; + label?: string; + schemaName?: string; + tableName?: string; }; } export interface CopilotFilteredFieldMaps { fieldMaps?: [{ - name?: Strings; - label?: Strings; + name?: string; + label?: string; }]; } export interface CopilotGenerativeConfig { copilotGenerativeProviderLookup?: CopilotGenerativeProvider; - apiKey?: Strings; + apiKey?: string; defaultCopilotGenerativeModel?: CopilotGenerativeModel; } export interface CopilotGenerativeModel { - modelName?: Strings; + modelName?: string; tokenLimit?: number; - instanceName?: Strings; - apiVersion?: Strings; + instanceName?: string; + apiVersion?: string; +} +export interface CopilotGenerativeProvider { + id?: number; + label?: string; } export interface CopilotLanguage { id?: number; - abbreviation?: Strings; - label?: Strings; - languageCodeWithLocale?: Strings; + abbreviation?: string; + label?: string; + languageCodeWithLocale?: string; } export interface CopilotLength { id?: number; - label?: Strings; - prompt?: Strings; + label?: string; + prompt?: string; } export interface CopilotPrompt { id?: number; privateLabelID?: number; - label?: Strings; - labelTranslationKey?: Strings; + label?: string; + labelTranslationKey?: string; copilotRole?: CopilotRole; copilotTask?: CopilotTask; copilotTone?: CopilotTone; copilotLength?: CopilotLength; copilotLanguage?: CopilotLanguage; isSecondaryEntityRequired?: boolean; - customAction?: Strings; + customAction?: string; isEnabled?: boolean; copilotPromptLocation?: CopilotPromptLocation; copilotPrimaryEntityType?: CopilotEntityType; @@ -4718,32 +4722,28 @@ export interface CopilotPrompt { export interface CopilotPromptDataPoint { id?: number; copilotEntityType?: CopilotEntityType; - field?: Strings; + field?: string; } export interface CopilotPromptLocation { id?: number; - label?: Strings; - value?: Strings; -} -export interface CopilotGenerativeProvider { - id?: number; - label?: Strings; + label?: string; + value?: string; } export interface CopilotRole { id?: number; - label?: Strings; - prompt?: Strings; + label?: string; + prompt?: string; isHidden?: boolean; } export interface CopilotTask { id?: number; - label?: Strings; + label?: string; prompt?: any; } export interface CopilotTone { id?: number; - label?: Strings; - prompt?: Strings; + label?: string; + prompt?: string; } export interface CorpFile { id?: number;