@xpert-ai/contracts 3.15.18 → 3.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/index.cjs.js +301 -472
  2. package/index.esm.js +270 -465
  3. package/package.json +1 -1
  4. package/src/agent/ai-model.d.ts +4 -1
  5. package/src/agent/graph.d.ts +2 -0
  6. package/src/ai/ai-model.model.d.ts +2 -1
  7. package/src/ai/assistant-binding.model.d.ts +0 -1
  8. package/src/ai/evolution/candidate.d.ts +67 -0
  9. package/src/ai/evolution/capability-version.d.ts +45 -0
  10. package/src/ai/evolution/evaluation.d.ts +93 -0
  11. package/src/ai/evolution/example.d.ts +42 -0
  12. package/src/ai/evolution/experience.d.ts +21 -0
  13. package/src/ai/evolution/governance.d.ts +87 -0
  14. package/src/ai/evolution/index.d.ts +11 -0
  15. package/src/ai/evolution/learning-event.d.ts +69 -0
  16. package/src/ai/evolution/provider.d.ts +30 -0
  17. package/src/ai/evolution/release.d.ts +144 -0
  18. package/src/ai/evolution/runtime.d.ts +81 -0
  19. package/src/ai/evolution/target.d.ts +83 -0
  20. package/src/ai/feature.model.d.ts +3 -1
  21. package/src/ai/index.d.ts +5 -0
  22. package/src/ai/knowledge-doc-chunk.model.d.ts +143 -0
  23. package/src/ai/knowledge-doc.model.d.ts +53 -4
  24. package/src/ai/knowledge-filter.model.d.ts +92 -0
  25. package/src/ai/knowledge-retrieval-log.model.d.ts +18 -2
  26. package/src/ai/knowledgebase-task.model.d.ts +3 -1
  27. package/src/ai/knowledgebase.model.d.ts +6 -0
  28. package/src/ai/membership.model.d.ts +224 -7
  29. package/src/ai/model-access.model.d.ts +229 -0
  30. package/src/ai/model-gateway.model.d.ts +164 -0
  31. package/src/ai/model-usage.model.d.ts +163 -0
  32. package/src/ai/role-permissions.d.ts +11 -1
  33. package/src/ai/sandbox-terminal.model.d.ts +4 -0
  34. package/src/ai/xpert-agent-execution.model.d.ts +2 -0
  35. package/src/ai/xpert.model.d.ts +31 -11
  36. package/src/{analytics/data-source-type.d.ts → data-source-type.model.d.ts} +1 -1
  37. package/src/{analytics/data-source.d.ts → data-source.model.d.ts} +4 -7
  38. package/src/feature.model.d.ts +3 -1
  39. package/src/index.d.ts +4 -1
  40. package/src/plugin.d.ts +4 -0
  41. package/src/referral.model.d.ts +36 -0
  42. package/src/role-permission.model.d.ts +5 -3
  43. package/src/role.model.d.ts +0 -1
  44. package/src/tenant.model.d.ts +5 -0
  45. package/src/user.model.d.ts +1 -0
  46. package/src/utils.d.ts +5 -0
  47. package/src/view-extension/model.d.ts +12 -1
  48. package/src/analytics/ai.d.ts +0 -73
  49. package/src/analytics/approval-policy.model.d.ts +0 -30
  50. package/src/analytics/business-area-user.model.d.ts +0 -35
  51. package/src/analytics/business-area.d.ts +0 -17
  52. package/src/analytics/certification.model.d.ts +0 -11
  53. package/src/analytics/chatbi-conversation.model.d.ts +0 -15
  54. package/src/analytics/chatbi-model.model.d.ts +0 -18
  55. package/src/analytics/collection.model.d.ts +0 -6
  56. package/src/analytics/comment.model.d.ts +0 -10
  57. package/src/analytics/favorite.d.ts +0 -14
  58. package/src/analytics/features.d.ts +0 -23
  59. package/src/analytics/feed-model.d.ts +0 -13
  60. package/src/analytics/gateway.d.ts +0 -28
  61. package/src/analytics/index.d.ts +0 -38
  62. package/src/analytics/indicator-app.d.ts +0 -44
  63. package/src/analytics/indicator-market.d.ts +0 -4
  64. package/src/analytics/indicator.d.ts +0 -105
  65. package/src/analytics/model-query-log.model.d.ts +0 -41
  66. package/src/analytics/model-query.d.ts +0 -21
  67. package/src/analytics/notification-destination.d.ts +0 -10
  68. package/src/analytics/permission-approval-user.model.d.ts +0 -10
  69. package/src/analytics/permission-approval.model.d.ts +0 -47
  70. package/src/analytics/project.model.d.ts +0 -50
  71. package/src/analytics/role-permissions.d.ts +0 -28
  72. package/src/analytics/schema.d.ts +0 -262
  73. package/src/analytics/screenshot.model.d.ts +0 -24
  74. package/src/analytics/semantic-model-entity.d.ts +0 -38
  75. package/src/analytics/semantic-model-member.d.ts +0 -27
  76. package/src/analytics/semantic-model.d.ts +0 -183
  77. package/src/analytics/story-point.d.ts +0 -11
  78. package/src/analytics/story-template.model.d.ts +0 -28
  79. package/src/analytics/story-widget.d.ts +0 -12
  80. package/src/analytics/story.d.ts +0 -93
  81. package/src/analytics/subscription.d.ts +0 -38
  82. package/src/analytics/visit.model.d.ts +0 -34
  83. package/src/analytics/webSocket.d.ts +0 -48
@@ -254,6 +254,7 @@ export declare const WORKBENCH_FILE_OPEN_COMMAND = "workbench.file.open";
254
254
  export declare const WORKBENCH_NAVIGATION_OPEN_COMMAND = "workbench.navigation.open";
255
255
  export declare const WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
256
256
  export declare const WORKBENCH_ASSISTANT_CONVERSATION_TARGET = "assistant.conversation";
257
+ export declare const WORKBENCH_EXTENSION_VIEW_TARGET = "workbench.view";
257
258
  export declare const XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = "invokeClientCommand";
258
259
  export interface WorkbenchOpenFileEvidenceBox {
259
260
  x: number;
@@ -291,19 +292,29 @@ export interface WorkbenchOpenFile {
291
292
  previewUrl?: string;
292
293
  evidence?: WorkbenchOpenFileEvidence;
293
294
  }
294
- export type WorkbenchNavigationOpenTarget = typeof WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET | typeof WORKBENCH_ASSISTANT_CONVERSATION_TARGET;
295
+ export type WorkbenchNavigationOpenTarget = typeof WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET | typeof WORKBENCH_ASSISTANT_CONVERSATION_TARGET | typeof WORKBENCH_EXTENSION_VIEW_TARGET;
295
296
  export interface WorkbenchNavigationOpenPayload {
296
297
  target: WorkbenchNavigationOpenTarget;
297
298
  knowledgebaseId?: string;
299
+ documentId?: string;
300
+ parentId?: string;
298
301
  conversationId?: string;
299
302
  threadId?: string;
300
303
  executionId?: string;
304
+ viewKey?: string;
305
+ selectionId?: string;
306
+ parameters?: Record<string, XpertViewScalar | XpertViewScalar[]>;
301
307
  }
302
308
  export interface WorkbenchAssistantConversationOpenRequest {
303
309
  conversationId: string;
304
310
  threadId?: string;
305
311
  executionId?: string;
306
312
  }
313
+ export interface WorkbenchExtensionViewOpenRequest {
314
+ viewKey: string;
315
+ selectionId?: string;
316
+ parameters?: Record<string, XpertViewScalar | XpertViewScalar[]>;
317
+ }
307
318
  export interface XpertRemoteComponentInvokeClientCommandRequest {
308
319
  type: typeof XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE;
309
320
  requestId: string;
@@ -1,73 +0,0 @@
1
- export declare enum ChatDashboardMessageType {
2
- /**
3
- * Display data preview using analytical card event
4
- */
5
- AnalyticalCard = "AnalyticalCard",
6
- /**
7
- * Create or edit a cube event
8
- */
9
- Cube = "Cube",
10
- /**
11
- * Edit a virtual cube event
12
- */
13
- VirtualCube = "VirtualCube",
14
- /**
15
- * Create or edit members (calculated members or dimension sets) event
16
- */
17
- Members = "Members",
18
- /**
19
- * List indicators event
20
- */
21
- ListIndicators = "ListIndicators",
22
- /**
23
- * Create or edit an indicator event
24
- */
25
- Indicator = "Indicator",
26
- Indicators = "Indicators"
27
- }
28
- export declare enum BIInterruptMessageType {
29
- SwitchProject = "switch_project",
30
- SwitchSemanticModel = "switch_semantic_model",
31
- DeleteArtifact = "delete_artifact"
32
- }
33
- export type TMessageContentCube = {
34
- type: ChatDashboardMessageType.Cube;
35
- data: {
36
- modelId: string;
37
- cubeName: string;
38
- };
39
- };
40
- export type TMessageContentVirtualCube = {
41
- type: ChatDashboardMessageType.VirtualCube;
42
- data: {
43
- modelId: string;
44
- cubeName: string;
45
- };
46
- };
47
- export type TMessageContentMembers = {
48
- type: ChatDashboardMessageType.Members;
49
- data: {
50
- modelId: string;
51
- cubeName: string;
52
- members: {
53
- __id__: string;
54
- name: string;
55
- label?: string;
56
- caption?: string;
57
- description?: string;
58
- formula: string;
59
- formatting?: {
60
- unit?: string;
61
- decimal?: number;
62
- };
63
- }[];
64
- };
65
- };
66
- export type TMessageContentIndicator = {
67
- type: ChatDashboardMessageType.Indicator;
68
- data: {
69
- modelId?: string;
70
- cubeName?: string;
71
- indicatorId: string;
72
- };
73
- };
@@ -1,30 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from "../base-entity.model";
2
- export interface IApprovalPolicy extends IBasePerTenantAndOrganizationEntityModel {
3
- name: string;
4
- description: string;
5
- approvalType: string;
6
- }
7
- export interface IApprovalPolicyFindInput extends IBasePerTenantAndOrganizationEntityModel {
8
- name?: string;
9
- description?: string;
10
- approvalType?: string;
11
- }
12
- export interface IApprovalPolicyCreateInput extends IApprovalPolicyFindInput {
13
- name?: string;
14
- }
15
- export interface IApprovalPolicyUpdateInput extends IApprovalPolicyCreateInput {
16
- id?: string;
17
- }
18
- export declare enum ApprovalPolicyTypesEnum {
19
- TIME_OFF = 1,
20
- EQUIPMENT_SHARING = 2,
21
- BUSINESS_TRIP = 3
22
- }
23
- export declare enum ApprovalPolicyTypesStringEnum {
24
- TIME_OFF = "TIME_OFF",
25
- EQUIPMENT_SHARING = "EQUIPMENT_SHARING",
26
- BUSINESS_TRIP = "BUSINESS_TRIP",
27
- INDICATOR = "INDICATOR",
28
- STORY = "STORY",
29
- BUSINESS_AREA = "BUSINESS_AREA"
30
- }
@@ -1,35 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- import { LanguagesEnum, IUser } from '../user.model';
3
- import { IBusinessArea } from './business-area';
4
- export declare enum BusinessAreaRole {
5
- Adminer = 0,
6
- Modeler = 1,
7
- Viewer = 2
8
- }
9
- export interface IBusinessAreaUser extends IBasePerTenantAndOrganizationEntityModel {
10
- businessAreaId: string;
11
- businessArea?: IBusinessArea;
12
- userId: string;
13
- isDefault: boolean;
14
- isActive: boolean;
15
- user?: IUser;
16
- role: BusinessAreaRole;
17
- }
18
- export interface IBusinessAreaUserFindInput extends IBasePerTenantAndOrganizationEntityModel {
19
- businessAreaId?: string;
20
- id?: string;
21
- userId?: string;
22
- isDefault?: boolean;
23
- isActive?: boolean;
24
- }
25
- export interface IBusinessAreaUserCreateInput extends IBasePerTenantAndOrganizationEntityModel {
26
- businessAreaId: string;
27
- userId: string;
28
- isDefault?: boolean;
29
- isActive?: boolean;
30
- }
31
- export interface IBusinessAreaUserDeleteInput {
32
- userbusinessAreaId: string;
33
- requestingUser: IUser;
34
- language?: LanguagesEnum;
35
- }
@@ -1,17 +0,0 @@
1
- import { IBasePerTenantEntityModel } from "../base-entity.model";
2
- import { ITag } from "../tag-entity.model";
3
- import { IStory } from "./story";
4
- export interface IBusinessArea extends IBasePerTenantEntityModel {
5
- type?: BusinessType;
6
- name?: string;
7
- parentId?: string;
8
- level?: number;
9
- tags?: ITag[];
10
- stories?: Array<IStory>;
11
- children?: Array<IBusinessArea>;
12
- }
13
- export declare enum BusinessType {
14
- SEMANTIC_MODEL = "SEMANTIC_MODEL",
15
- STORY = "STORY",
16
- INDICATOR = "INDICATOR"
17
- }
@@ -1,11 +0,0 @@
1
- import { IBasePerTenantEntityModel } from '../base-entity.model';
2
- import { IUser } from '../user.model';
3
- export interface ICertification extends IBasePerTenantEntityModel {
4
- name?: string;
5
- description?: string;
6
- /**
7
- * Certification owner
8
- */
9
- owner?: IUser;
10
- ownerId?: string;
11
- }
@@ -1,15 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- import { IIndicator } from './indicator';
3
- export interface IChatBIConversation extends IBasePerTenantAndOrganizationEntityModel {
4
- key: string;
5
- name?: string;
6
- modelId?: string;
7
- entity?: string;
8
- command?: string;
9
- options?: {
10
- messages: any[];
11
- indicators?: IIndicator;
12
- answer?: any;
13
- examples: string[];
14
- };
15
- }
@@ -1,18 +0,0 @@
1
- import { IXpert } from '../ai';
2
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
3
- import { IIntegration } from '../integration.model';
4
- import { ISemanticModel } from './semantic-model';
5
- export interface IChatBIModel extends IBasePerTenantAndOrganizationEntityModel {
6
- modelId: string;
7
- model?: ISemanticModel;
8
- entity: string;
9
- entityCaption?: string;
10
- entityDescription?: string;
11
- visits?: number;
12
- options?: ChatBIModelOptions;
13
- xperts?: IXpert[];
14
- integrations?: IIntegration[];
15
- }
16
- export type ChatBIModelOptions = {
17
- suggestions: string[];
18
- };
@@ -1,6 +0,0 @@
1
- import { IBasePerProjectEntityModel } from './project.model';
2
- export interface ICollection extends IBasePerProjectEntityModel {
3
- name?: string;
4
- parentId?: string;
5
- level?: number;
6
- }
@@ -1,10 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- import { IIndicator } from './indicator';
3
- export interface IComment extends IBasePerTenantAndOrganizationEntityModel {
4
- content?: string;
5
- parentId?: string;
6
- level?: number;
7
- options?: any;
8
- indicatorId?: string;
9
- indicator?: IIndicator;
10
- }
@@ -1,14 +0,0 @@
1
- import { BusinessType } from './business-area';
2
- import { IIndicator } from './indicator';
3
- import { IBasePerProjectEntityModel } from './project.model';
4
- import { ISemanticModel } from './semantic-model';
5
- import { IStory } from './story';
6
- export interface IFavorite extends IBasePerProjectEntityModel {
7
- type?: BusinessType;
8
- modelId?: string;
9
- model?: ISemanticModel;
10
- storyId?: string;
11
- story?: IStory;
12
- indicatorId?: string;
13
- indicator?: IIndicator;
14
- }
@@ -1,23 +0,0 @@
1
- export declare enum AnalyticsFeatures {
2
- FEATURE_BUSINESS_AREA = "FEATURE_BUSINESS_AREA",
3
- FEATURE_INDICATOR = "FEATURE_INDICATOR",
4
- FEATURE_INDICATOR_MARKET = "FEATURE_INDICATOR_MARKET",
5
- FEATURE_INDICATOR_REGISTER = "FEATURE_INDICATOR_REGISTER",
6
- /**
7
- * @deprecated Indicator App is no longer exposed in the system menu.
8
- */
9
- FEATURE_INDICATOR_APP = "FEATURE_INDICATOR_APP",
10
- FEATURE_STORY = "FEATURE_STORY",
11
- FEATURE_STORY_CREATION = "FEATURE_STORY_CREATION",
12
- FEATURE_STORY_VIEWER = "FEATURE_STORY_VIEWER",
13
- FEATURE_STORY_MARKET = "FEATURE_STORY_MARKET",
14
- FEATURE_DATA_SOURCE = "FEATURE_DATA_SOURCE",
15
- FEATURE_MODEL = "FEATURE_MODEL",
16
- FEATURE_MODEL_CREATION = "FEATURE_MODEL_CREATION",
17
- FEATURE_MODEL_VIEWER = "FEATURE_MODEL_VIEWER",
18
- FEATURE_SUBSCRIPTION = "FEATURE_SUBSCRIPTION",
19
- FEATURE_HOME_TREND = "FEATURE_HOME_TREND",
20
- FEATURE_HOME_CATALOG = "FEATURE_HOME_CATALOG",
21
- FEATURE_PROJECT = "FEATURE_PROJECT",
22
- FEATURE_DATA_FACTORY = "FEATURE_DATA_FACTORY"
23
- }
@@ -1,13 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- export interface IFeed extends IBasePerTenantAndOrganizationEntityModel {
3
- type: FeedTypeEnum;
4
- entityId?: string;
5
- hidden?: boolean;
6
- options?: any;
7
- }
8
- export declare enum FeedTypeEnum {
9
- StoryWidget = "StoryWidget",
10
- IndicatorWidget = "IndicatorWidget",
11
- Recents = "Recents",
12
- Ranking = "Ranking"
13
- }
@@ -1,28 +0,0 @@
1
- import { TQueryOptions } from './model-query-log.model';
2
- export type TGatewayQueryEvent = {
3
- id: string;
4
- organizationId: string;
5
- dataSourceId: string;
6
- tenantId?: string;
7
- modelId?: string;
8
- isDraft: boolean;
9
- body: {
10
- /**
11
- * @deprecated use statement
12
- */
13
- mdx?: string;
14
- statement?: string;
15
- query?: TQueryOptions;
16
- /**
17
- * Is use indicators draft, corresponding to `DataSourceOptions['isIndicatorsDraft']` in the ocap framework.
18
- */
19
- isIndicatorsDraft?: boolean;
20
- };
21
- acceptLanguage?: string;
22
- forceRefresh: boolean;
23
- };
24
- export type TGatewayRespEvent = any;
25
- export type TGatewayRespError = {
26
- message: string;
27
- status: number;
28
- };
@@ -1,38 +0,0 @@
1
- import * as MDX from './schema';
2
- export * from './ai';
3
- export * from './business-area';
4
- export * from './business-area-user.model';
5
- export * from './collection.model';
6
- export * from './data-source';
7
- export * from './data-source-type';
8
- export * from './favorite';
9
- export * from './features';
10
- export * from './feed-model';
11
- export * from './indicator';
12
- export * from './indicator-app';
13
- export * from './indicator-market';
14
- export * from './model-query';
15
- export * from './notification-destination';
16
- export * from './role-permissions';
17
- export * from './semantic-model';
18
- export * from './semantic-model-entity';
19
- export * from './semantic-model-member';
20
- export * from './story';
21
- export * from './story-point';
22
- export * from './story-widget';
23
- export * from './subscription';
24
- export * from './visit.model';
25
- export * from './webSocket';
26
- export * from './approval-policy.model';
27
- export * from './permission-approval.model';
28
- export * from './permission-approval-user.model';
29
- export * from './project.model';
30
- export * from './comment.model';
31
- export * from './story-template.model';
32
- export * from './screenshot.model';
33
- export * from './certification.model';
34
- export * from './chatbi-conversation.model';
35
- export * from './chatbi-model.model';
36
- export * from './model-query-log.model';
37
- export * from './gateway';
38
- export { MDX };
@@ -1,44 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- /**
3
- * Store user states for the indicator app
4
- */
5
- export interface IIndicatorApp extends IBasePerTenantAndOrganizationEntityModel {
6
- options?: {
7
- /**
8
- * The indicators user favorited
9
- */
10
- favorites?: string[];
11
- /**
12
- * The order of the indicators user sorted
13
- */
14
- order?: string[];
15
- /**
16
- * Time granularity
17
- */
18
- timeGranularity?: TimeGranularity;
19
- /**
20
- * Limit the lookback period in trend analysis for every time granularity
21
- */
22
- lookback?: Record<TimeGranularity, number>;
23
- /**
24
- * Tag type show in indicator list
25
- */
26
- tagType?: IndicatorTagEnum;
27
- /**
28
- * Periods for detail view
29
- */
30
- detailPeriods?: string;
31
- };
32
- }
33
- export declare enum TimeGranularity {
34
- Year = "Year",
35
- Quarter = "Quarter",
36
- Month = "Month",
37
- Week = "Week",
38
- Day = "Day"
39
- }
40
- export declare enum IndicatorTagEnum {
41
- UNIT = 0,
42
- MOM = 1,
43
- YOY = 2
44
- }
@@ -1,4 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- export interface IIndicatorMarket extends IBasePerTenantAndOrganizationEntityModel {
3
- options?: Record<string, unknown>;
4
- }
@@ -1,105 +0,0 @@
1
- import { EmbeddingStatusEnum } from '../ai';
2
- import { ITag } from '../tag-entity.model';
3
- import { ChecklistItem } from '../types';
4
- import { Visibility } from '../visibility.model';
5
- import { IBusinessArea } from './business-area';
6
- import { ICertification } from './certification.model';
7
- import { IComment } from './comment.model';
8
- import { IPermissionApproval } from './permission-approval.model';
9
- import { IBasePerProjectEntityModel } from './project.model';
10
- import { ISemanticModel } from './semantic-model';
11
- /**
12
- * Common fields of Indicator (draft and entity)
13
- */
14
- export type TIndicator = {
15
- code?: string;
16
- name?: string;
17
- /**
18
- * Indicator Type
19
- */
20
- type?: IndicatorType;
21
- /**
22
- * Visible in model
23
- */
24
- visible?: boolean;
25
- /**
26
- * Available in indicator market app
27
- */
28
- isApplication?: boolean;
29
- modelId?: string;
30
- entity?: string;
31
- unit?: string;
32
- principal?: string;
33
- /**
34
- * @deprecated use certificationId
35
- */
36
- authentication?: string;
37
- certificationId?: string;
38
- validity?: string;
39
- business?: string;
40
- options?: {
41
- dimensions?: Array<string>;
42
- filters?: Array<any>;
43
- formula?: string;
44
- measure?: string;
45
- aggregator?: string;
46
- calendar?: string;
47
- };
48
- businessAreaId?: string;
49
- };
50
- /**
51
- * Fields included in the draft of Indicator, please keep it in sync with TIndicator type
52
- */
53
- export declare const IndicatorDraftFields: Array<keyof IIndicator>;
54
- export type TIndicatorDraft = TIndicator & {
55
- checklist?: ChecklistItem[];
56
- version?: number;
57
- savedAt?: Date;
58
- };
59
- export interface IIndicator extends IBasePerProjectEntityModel, TIndicator {
60
- draft?: TIndicatorDraft;
61
- /**
62
- * Visibilty in public or secret or private
63
- */
64
- visibility?: Visibility;
65
- model?: ISemanticModel;
66
- /**
67
- * Quality Certification
68
- */
69
- certification?: ICertification;
70
- status?: IndicatorStatusEnum;
71
- embeddingStatus?: EmbeddingStatusEnum;
72
- error?: string;
73
- publishedAt?: Date;
74
- businessArea?: IBusinessArea;
75
- permissionApprovals?: IPermissionApproval[];
76
- tags?: ITag[];
77
- comments?: IComment[];
78
- }
79
- export declare const IndicatorOptionFields: string[];
80
- /**
81
- * Indicator Type:
82
- * * Basic indicators
83
- * * Derivative Indicators
84
- */
85
- export declare enum IndicatorType {
86
- BASIC = "BASIC",
87
- DERIVE = "DERIVE"
88
- }
89
- /**
90
- * Status of the indicator
91
- */
92
- export declare enum IndicatorStatusEnum {
93
- /**
94
- * draft
95
- */
96
- DRAFT = "DRAFT",
97
- /**
98
- * Published
99
- */
100
- RELEASED = "RELEASED",
101
- /**
102
- * Offline Archive
103
- */
104
- ARCHIVED = "ARCHIVED"
105
- }
@@ -1,41 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- import { IIndicator } from './indicator';
3
- import { ISemanticModel } from './semantic-model';
4
- export type TQueryOptions = {
5
- rows?: any;
6
- columns?: any;
7
- cube?: string;
8
- /**
9
- * Indicators modified by the client
10
- */
11
- indicators?: IIndicator[];
12
- calculatedMeasures?: any[];
13
- } & Record<string, any>;
14
- export declare enum QueryStatusEnum {
15
- PENDING = "pending",// Query submitted, waiting for execution
16
- RUNNING = "running",// Query is executing
17
- SUCCESS = "success",// Query succeeded
18
- FAILED = "failed"
19
- }
20
- export interface ISemanticModelQueryLog extends IBasePerTenantAndOrganizationEntityModel {
21
- /**
22
- * Unique ID of the client query
23
- */
24
- key?: string;
25
- modelId: string;
26
- model?: ISemanticModel;
27
- cube?: string;
28
- status: QueryStatusEnum;
29
- /**
30
- * Structural parameters for query
31
- */
32
- params: TQueryOptions;
33
- /**
34
- * Statement of query
35
- */
36
- query?: string;
37
- result: any;
38
- executionTime: number;
39
- waitingTime: number;
40
- error?: string;
41
- }
@@ -1,21 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- import { ISemanticModel } from './semantic-model';
3
- export interface IModelQuery extends IBasePerTenantAndOrganizationEntityModel {
4
- key: string;
5
- modelId: string;
6
- model?: ISemanticModel;
7
- name: string;
8
- /**
9
- * Index of the query in the list of queries in model
10
- */
11
- index?: number;
12
- /**
13
- * The details
14
- */
15
- options?: {
16
- type?: 'sql' | 'mdx';
17
- entities?: string[];
18
- statement?: string;
19
- conversations?: any[];
20
- };
21
- }
@@ -1,10 +0,0 @@
1
- import { IBasePerTenantEntityModel } from "../base-entity.model";
2
- export interface INotificationDestinationType {
3
- name: string;
4
- type: string;
5
- icon?: string;
6
- schema?: Record<string, unknown>;
7
- }
8
- export interface INotificationDestination extends IBasePerTenantEntityModel, INotificationDestinationType {
9
- options?: Record<string, unknown>;
10
- }
@@ -1,10 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- import { IUser } from '../user.model';
3
- import { IPermissionApproval } from './permission-approval.model';
4
- export interface IPermissionApprovalUser extends IBasePerTenantAndOrganizationEntityModel {
5
- permissionApprovalId: string;
6
- userId: string;
7
- status: number;
8
- permissionApproval: IPermissionApproval;
9
- user: IUser;
10
- }
@@ -1,47 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- import { ITag } from '../tag-entity.model';
3
- import { IUser } from '../user.model';
4
- import { ApprovalPolicyTypesStringEnum, IApprovalPolicy } from './approval-policy.model';
5
- import { IIndicator } from './indicator';
6
- import { IPermissionApprovalUser } from './permission-approval-user.model';
7
- export interface IPermissionApproval extends IBasePerTenantAndOrganizationEntityModel {
8
- status: number;
9
- createdByName: string;
10
- min_count: number;
11
- permissionId: string;
12
- permissionType: ApprovalPolicyTypesStringEnum;
13
- approvalPolicy: IApprovalPolicy;
14
- approvalPolicyId: string;
15
- indicator: IIndicator;
16
- indicatorId: string;
17
- userApprovals?: IPermissionApprovalUser[];
18
- tags?: ITag[];
19
- }
20
- export interface IPermissionApprovalCreateInput extends IBasePerTenantAndOrganizationEntityModel {
21
- id?: string;
22
- userApprovals?: IPermissionApprovalUser[];
23
- users?: IUser[];
24
- permissionType?: ApprovalPolicyTypesStringEnum;
25
- permissionId?: string;
26
- indicatorId?: string;
27
- status?: number;
28
- approvalPolicyId?: string;
29
- tags?: ITag[];
30
- }
31
- export declare enum PermissionApprovalStatusTypesEnum {
32
- REQUESTED = 1,
33
- APPROVED = 2,
34
- REFUSED = 3
35
- }
36
- export declare const PermissionApprovalStatus: {
37
- REQUESTED: number;
38
- APPROVED: number;
39
- REFUSED: number;
40
- };
41
- export interface IPermissionApprovalFindInput extends IBasePerTenantAndOrganizationEntityModel {
42
- id?: string;
43
- }
44
- export interface IApprovalsData {
45
- icon: string;
46
- title: string;
47
- }