Skip to content

Commit ee730b3

Browse files
Fix type definitions for APIEndpointConfiguration related enums
1 parent 199897a commit ee730b3

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

src/ui/ManagementPortal/js/types.ts

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@ export type ResourceProviderGetResult<T> = {
2929
};
3030

3131
export type ResourceProviderUpsertResult = {
32-
/**
33-
* The id of the object that was created or updated.
34-
*/
35-
objectId: string;
36-
37-
/**
38-
* A flag denoting whether the upserted resource already exists.
39-
*/
40-
resourceExists: boolean;
41-
42-
/**
43-
* Gets or sets the resource resulting from the upsert operation.
44-
* Each resource provider will decide whether to return the resource in the upsert result or not.
45-
*/
46-
resource?: any;
32+
/**
33+
* The id of the object that was created or updated.
34+
*/
35+
objectId: string;
36+
37+
/**
38+
* A flag denoting whether the upserted resource already exists.
39+
*/
40+
resourceExists: boolean;
41+
42+
/**
43+
* Gets or sets the resource resulting from the upsert operation.
44+
* Each resource provider will decide whether to return the resource in the upsert result or not.
45+
*/
46+
resource?: any;
4747
};
4848

4949
export type ResourceProviderActionResult = {
@@ -114,7 +114,7 @@ export type Agent = ResourceBase & {
114114
export type AgentAccessToken = ResourceBase & {
115115
id: string;
116116
active: boolean;
117-
}
117+
};
118118

119119
export type Prompt = ResourceBase & {
120120
object_id: string;
@@ -565,49 +565,49 @@ export function convertToAppConfigKeyVault(baseConfig: AppConfigUnion): AppConfi
565565
};
566566
}
567567

568-
export type APIEndpointConfiguration = ResourceBase & {
569-
type: string;
570-
category: APIEndpointCategory;
571-
subcategory?: APIEndpointSubcategory;
572-
authenticationType: AuthenticationTypes;
573-
url: string;
574-
statusUrl?: string;
575-
urlExceptions: UrlException[];
576-
authenticationParameters: { [key: string]: any };
577-
timeoutSeconds: number;
578-
retryStrategyName: string;
579-
provider?: string;
580-
apiVersion?: string;
581-
operationType?: string;
582-
}
583-
584-
export type UrlException = {
585-
userPrincipalName: string;
586-
url: string;
587-
enabled: boolean;
588-
}
589-
590568
export enum APIEndpointCategory {
591-
Orchestration,
592-
ExternalOrchestration,
593-
LLM,
594-
Gatekeeper,
595-
AzureAIDirect,
596-
AzureOpenAIDirect,
597-
FileStoreConnector,
598-
General
569+
Orchestration = 'Orchestration',
570+
ExternalOrchestration = 'ExternalOrchestration',
571+
LLM = 'LLM',
572+
Gatekeeper = 'Gatekeeper',
573+
AzureAIDirect = 'AzureAIDirect',
574+
AzureOpenAIDirect = 'AzureOpenAIDirect',
575+
FileStoreConnector = 'FileStoreConnector',
576+
General = 'General',
599577
}
600578

601579
export enum APIEndpointSubcategory {
602-
OneDriveWorkSchool,
603-
Indexing,
604-
AIModel
580+
OneDriveWorkSchool = 'OneDriveWorkSchool',
581+
Indexing = 'Indexing',
582+
AIModel = 'AIModel',
605583
}
606584

607585
export enum AuthenticationTypes {
608-
Unknown = -1,
609-
AzureIdentity,
610-
APIKey,
611-
ConnectionString,
612-
AccountKey
586+
Unknown = -1,
587+
AzureIdentity = 'AzureIdentity',
588+
APIKey = 'APIKey',
589+
ConnectionString = 'ConnectionString',
590+
AccountKey = 'AccountKey',
613591
}
592+
593+
export type UrlException = {
594+
userPrincipalName: string;
595+
url: string;
596+
enabled: boolean;
597+
};
598+
599+
export type APIEndpointConfiguration = ResourceBase & {
600+
type: string;
601+
category: APIEndpointCategory;
602+
subcategory?: APIEndpointSubcategory;
603+
authenticationType: AuthenticationTypes;
604+
url: string;
605+
statusUrl?: string;
606+
urlExceptions: UrlException[];
607+
authenticationParameters: { [key: string]: any };
608+
timeoutSeconds: number;
609+
retryStrategyName: string;
610+
provider?: string;
611+
apiVersion?: string;
612+
operationType?: string;
613+
};

0 commit comments

Comments
 (0)