Browse Source

UI: Add VC support

pull/13371/head
Artem Dzhereleiko 1 year ago
parent
commit
7860f4575f
  1. 4
      ui-ngx/src/app/shared/models/ai-model.models.ts
  2. 6
      ui-ngx/src/app/shared/models/vc.models.ts

4
ui-ngx/src/app/shared/models/ai-model.models.ts

@ -14,11 +14,11 @@
/// limitations under the License. /// limitations under the License.
/// ///
import { BaseData } from '@shared/models/base-data'; import { BaseData, ExportableEntity } from '@shared/models/base-data';
import { HasTenantId } from '@shared/models/entity.models'; import { HasTenantId } from '@shared/models/entity.models';
import { AiModelId } from '@shared/models/id/ai-model-id'; import { AiModelId } from '@shared/models/id/ai-model-id';
export interface AiModel extends Omit<BaseData<AiModelId>, 'label'>, HasTenantId { export interface AiModel extends Omit<BaseData<AiModelId>, 'label'>, HasTenantId, ExportableEntity<AiModelId> {
modelType: string; modelType: string;
configuration: { configuration: {
provider: AiProvider provider: AiProvider

6
ui-ngx/src/app/shared/models/vc.models.ts

@ -35,14 +35,16 @@ export const exportableEntityTypes: Array<EntityType> = [
EntityType.TB_RESOURCE, EntityType.TB_RESOURCE,
EntityType.NOTIFICATION_TEMPLATE, EntityType.NOTIFICATION_TEMPLATE,
EntityType.NOTIFICATION_TARGET, EntityType.NOTIFICATION_TARGET,
EntityType.NOTIFICATION_RULE EntityType.NOTIFICATION_RULE,
EntityType.AI_MODEL_SETTINGS
]; ];
export const entityTypesWithoutRelatedData: Set<EntityType | AliasEntityType> = new Set([ export const entityTypesWithoutRelatedData: Set<EntityType | AliasEntityType> = new Set([
EntityType.NOTIFICATION_TEMPLATE, EntityType.NOTIFICATION_TEMPLATE,
EntityType.NOTIFICATION_TARGET, EntityType.NOTIFICATION_TARGET,
EntityType.NOTIFICATION_RULE, EntityType.NOTIFICATION_RULE,
EntityType.TB_RESOURCE EntityType.TB_RESOURCE,
EntityType.AI_MODEL_SETTINGS
]); ]);
export interface VersionCreateConfig { export interface VersionCreateConfig {

Loading…
Cancel
Save