@metad/contracts 0.0.1 → 3.6.0-beta.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 (204) hide show
  1. package/.babelrc +5 -0
  2. package/.eslintrc.json +18 -0
  3. package/README.md +3 -1
  4. package/babel.config.json +1 -0
  5. package/jest.config.ts +16 -0
  6. package/package.json +5 -5
  7. package/project.json +46 -0
  8. package/src/agent/ai-model.ts +9 -0
  9. package/src/agent/graph.ts +272 -0
  10. package/src/agent/index.ts +5 -0
  11. package/src/agent/token.ts +23 -0
  12. package/src/agent/utils.spec.ts +283 -0
  13. package/src/agent/utils.ts +122 -0
  14. package/src/agent/variables.ts +21 -0
  15. package/src/ai/ai-model.model.ts +228 -0
  16. package/src/ai/ai-provider.model.ts +53 -0
  17. package/src/ai/ai.model.ts +87 -0
  18. package/src/ai/chat-message-feedback.model.ts +31 -0
  19. package/src/ai/chat-message.model.ts +277 -0
  20. package/src/ai/chat.model.ts +207 -0
  21. package/src/ai/copilot-checkpoint.model.ts +25 -0
  22. package/src/ai/copilot-example.model.ts +23 -0
  23. package/src/ai/copilot-model.model.ts +31 -0
  24. package/src/ai/copilot-organization.model.ts +21 -0
  25. package/src/ai/copilot-provider.model.ts +46 -0
  26. package/src/ai/copilot-role.model.ts +48 -0
  27. package/src/ai/copilot-store.model.ts +34 -0
  28. package/src/ai/copilot-user.model.ts +24 -0
  29. package/src/ai/copilot.model.ts +47 -0
  30. package/src/ai/environment.model.ts +18 -0
  31. package/src/ai/feature.model.ts +6 -0
  32. package/src/ai/index.ts +37 -0
  33. package/src/ai/knowledge-doc-page.model.ts +20 -0
  34. package/src/ai/knowledge-doc.model.ts +217 -0
  35. package/src/ai/knowledge-pipeline.ts +106 -0
  36. package/src/ai/knowledge-retrieval-log.model.ts +19 -0
  37. package/src/ai/knowledgebase-task.model.ts +42 -0
  38. package/src/ai/knowledgebase.model.ts +173 -0
  39. package/src/ai/rag-web.ts +54 -0
  40. package/src/ai/rag.ts +24 -0
  41. package/src/ai/role-permissions.ts +13 -0
  42. package/src/ai/types.ts +83 -0
  43. package/src/ai/xpert-agent-execution.model.ts +115 -0
  44. package/src/ai/xpert-agent.model.ts +258 -0
  45. package/src/ai/xpert-project.model.ts +103 -0
  46. package/src/ai/xpert-task.model.ts +32 -0
  47. package/src/ai/xpert-template.model.ts +53 -0
  48. package/src/ai/xpert-tool-mcp.model.ts +72 -0
  49. package/src/ai/xpert-tool.model.ts +211 -0
  50. package/src/ai/xpert-toolset.model.ts +220 -0
  51. package/src/ai/xpert-workflow-task.prompt.ts +71 -0
  52. package/src/ai/xpert-workflow.model.ts +449 -0
  53. package/src/ai/xpert-workspace.model.ts +42 -0
  54. package/src/ai/xpert.model.ts +781 -0
  55. package/src/analytics/ai.ts +79 -0
  56. package/src/analytics/approval-policy.model.ts +40 -0
  57. package/src/analytics/business-area-user.model.ts +43 -0
  58. package/src/analytics/business-area.ts +20 -0
  59. package/src/analytics/certification.model.ts +12 -0
  60. package/src/analytics/chatbi-conversation.model.ts +16 -0
  61. package/src/analytics/chatbi-model.model.ts +22 -0
  62. package/src/analytics/collection.model.ts +8 -0
  63. package/src/analytics/comment.model.ts +14 -0
  64. package/src/analytics/data-source-type.ts +19 -0
  65. package/src/analytics/data-source.ts +72 -0
  66. package/src/analytics/favorite.ts +18 -0
  67. package/src/analytics/features.ts +19 -0
  68. package/src/analytics/feed-model.ts +15 -0
  69. package/src/analytics/gateway.ts +30 -0
  70. package/src/analytics/index.ts +39 -0
  71. package/src/analytics/indicator-app.ts +49 -0
  72. package/{analytics/indicator-market.d.ts → src/analytics/indicator-market.ts} +8 -4
  73. package/src/analytics/indicator.ts +127 -0
  74. package/src/analytics/model-query-log.model.ts +46 -0
  75. package/src/analytics/model-query.ts +22 -0
  76. package/{analytics/notification-destination.d.ts → src/analytics/notification-destination.ts} +14 -10
  77. package/src/analytics/permission-approval-user.model.ts +12 -0
  78. package/src/analytics/permission-approval.model.ts +58 -0
  79. package/src/analytics/project.model.ts +56 -0
  80. package/src/analytics/role-permissions.ts +36 -0
  81. package/src/analytics/schema.ts +300 -0
  82. package/src/analytics/screenshot.model.ts +28 -0
  83. package/src/analytics/semantic-model-entity.ts +49 -0
  84. package/src/analytics/semantic-model-member.ts +45 -0
  85. package/src/analytics/semantic-model.ts +228 -0
  86. package/{analytics/story-point.d.ts → src/analytics/story-point.ts} +16 -10
  87. package/src/analytics/story-template.model.ts +34 -0
  88. package/src/analytics/story-widget.ts +15 -0
  89. package/src/analytics/story.ts +109 -0
  90. package/src/analytics/subscription.ts +43 -0
  91. package/src/analytics/visit.model.ts +39 -0
  92. package/src/analytics/webSocket.ts +53 -0
  93. package/src/api-key.model.ts +11 -0
  94. package/src/base-entity.model.ts +33 -0
  95. package/src/contact.model.ts +45 -0
  96. package/src/core.model.ts +103 -0
  97. package/{country.model.d.ts → src/country.model.ts} +6 -5
  98. package/src/currency.model.ts +582 -0
  99. package/src/custom-smtp.model.ts +27 -0
  100. package/src/date-picker.model.ts +5 -0
  101. package/src/email-template.model.ts +50 -0
  102. package/src/email.model.ts +46 -0
  103. package/src/employee.model.ts +199 -0
  104. package/src/entity-with-members.model.ts +16 -0
  105. package/src/feature.model.ts +108 -0
  106. package/src/file-provider.ts +37 -0
  107. package/src/help-center-article.model.ts +35 -0
  108. package/src/help-center.model.ts +33 -0
  109. package/src/http-status.enum.ts +58 -0
  110. package/src/import-export.model.ts +42 -0
  111. package/src/index.ts +60 -0
  112. package/src/integration/dify.ts +31 -0
  113. package/src/integration/dingtalk.ts +16 -0
  114. package/src/integration/fastgpt.ts +32 -0
  115. package/src/integration/firecrawl.ts +46 -0
  116. package/src/integration/github.ts +149 -0
  117. package/src/integration/index.ts +19 -0
  118. package/src/integration/lark.ts +79 -0
  119. package/src/integration/ragflow.ts +32 -0
  120. package/src/integration/wecom.ts +16 -0
  121. package/src/integration.model.ts +118 -0
  122. package/src/invite.model.ts +144 -0
  123. package/src/language.model.ts +22 -0
  124. package/src/organization-contact.model.ts +84 -0
  125. package/src/organization-department.model.ts +26 -0
  126. package/src/organization-language.model.ts +24 -0
  127. package/src/organization-projects.model.ts +99 -0
  128. package/src/organization-team-employee-model.ts +14 -0
  129. package/src/organization-team-model.ts +25 -0
  130. package/src/organization.model.ts +266 -0
  131. package/src/password-reset.model.ts +24 -0
  132. package/src/plain-object.model.ts +13 -0
  133. package/src/plugin.ts +15 -0
  134. package/src/role-permission.model.ts +123 -0
  135. package/src/role.model.ts +31 -0
  136. package/src/schedule.ts +71 -0
  137. package/src/secret-token.model.ts +15 -0
  138. package/src/seed.model.ts +50 -0
  139. package/src/storage-file.model.ts +46 -0
  140. package/src/tag-entity.model.ts +23 -0
  141. package/src/tenant.model.ts +52 -0
  142. package/src/tools/index.ts +1 -0
  143. package/src/tools/sandbox.ts +5 -0
  144. package/src/translation.model.ts +37 -0
  145. package/src/types.ts +276 -0
  146. package/src/user-organization.model.ts +31 -0
  147. package/src/user.model.ts +147 -0
  148. package/src/visibility.model.ts +6 -0
  149. package/tsconfig.json +22 -0
  150. package/tsconfig.lib.json +10 -0
  151. package/tsconfig.spec.json +9 -0
  152. package/analytics/business-area-user.model.d.ts +0 -29
  153. package/analytics/business-area.d.ts +0 -16
  154. package/analytics/business-group.d.ts +0 -12
  155. package/analytics/data-source-type.d.ts +0 -12
  156. package/analytics/data-source.d.ts +0 -43
  157. package/analytics/favorite.d.ts +0 -14
  158. package/analytics/features.d.ts +0 -19
  159. package/analytics/feed-model.d.ts +0 -13
  160. package/analytics/index.d.ts +0 -20
  161. package/analytics/indicator.d.ts +0 -31
  162. package/analytics/insight-model.d.ts +0 -14
  163. package/analytics/model-query.d.ts +0 -12
  164. package/analytics/role-permissions.d.ts +0 -19
  165. package/analytics/semantic-model.d.ts +0 -42
  166. package/analytics/story-widget.d.ts +0 -11
  167. package/analytics/story.d.ts +0 -18
  168. package/analytics/subscription.d.ts +0 -38
  169. package/analytics/user-business-group.model.d.ts +0 -29
  170. package/analytics/visit.model.d.ts +0 -27
  171. package/analytics/webSocket.d.ts +0 -40
  172. package/base-entity.model.d.ts +0 -21
  173. package/contact.model.d.ts +0 -41
  174. package/core.model.d.ts +0 -25
  175. package/currency.model.d.ts +0 -579
  176. package/email-template.model.d.ts +0 -47
  177. package/email.model.d.ts +0 -36
  178. package/employee.model.d.ts +0 -128
  179. package/entity-with-members.model.d.ts +0 -13
  180. package/feature.model.d.ts +0 -134
  181. package/file-provider.d.ts +0 -31
  182. package/help-center-article.model.d.ts +0 -27
  183. package/help-center.model.d.ts +0 -28
  184. package/http-status.enum.d.ts +0 -57
  185. package/import-export.model.d.ts +0 -36
  186. package/index.cjs +0 -1283
  187. package/index.d.ts +0 -33
  188. package/index.js +0 -1272
  189. package/language.model.d.ts +0 -19
  190. package/organization-contact.model.d.ts +0 -73
  191. package/organization-department.model.d.ts +0 -20
  192. package/organization-language.model.d.ts +0 -18
  193. package/organization-team-employee-model.d.ts +0 -12
  194. package/organization-team-model.d.ts +0 -19
  195. package/organization.model.d.ts +0 -227
  196. package/role-permission.model.d.ts +0 -63
  197. package/role.model.d.ts +0 -21
  198. package/seed.model.d.ts +0 -38
  199. package/tag-entity.model.d.ts +0 -10
  200. package/tenant.model.d.ts +0 -24
  201. package/translation.model.d.ts +0 -20
  202. package/user-organization.model.d.ts +0 -24
  203. package/user.model.d.ts +0 -117
  204. package/visibility.model.d.ts +0 -5
@@ -1,31 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- import { ITag } from '../tag-entity.model';
3
- import { IBusinessArea } from './business-area';
4
- import { ISemanticModel } from './semantic-model';
5
- export interface IIndicator extends IBasePerTenantAndOrganizationEntityModel {
6
- code?: string;
7
- name?: string;
8
- type?: IndicatorType;
9
- modelId?: string;
10
- model?: ISemanticModel;
11
- entity?: string;
12
- unit?: string;
13
- principal?: string;
14
- authentication?: string;
15
- validity?: string;
16
- business?: string;
17
- status?: string;
18
- options?: {
19
- dimensions?: Array<string>;
20
- filters?: Array<any>;
21
- formula?: string;
22
- measure?: string;
23
- };
24
- businessAreaId?: string;
25
- businessArea?: IBusinessArea;
26
- tags?: ITag[];
27
- }
28
- export declare enum IndicatorType {
29
- BASIC = "BASIC",
30
- DERIVE = "DERIVE"
31
- }
@@ -1,14 +0,0 @@
1
- import { IBasePerTenantEntityModel } from '../base-entity.model';
2
- import { ITag } from '../tag-entity.model';
3
- import { IBusinessArea } from './business-area';
4
- import { ISemanticModel } from './semantic-model';
5
- export interface IInsightModel extends IBasePerTenantEntityModel {
6
- name?: string;
7
- entity?: string;
8
- options?: Record<string, unknown>;
9
- modelId?: string;
10
- model?: ISemanticModel;
11
- businessAreaId?: string;
12
- businessArea?: IBusinessArea;
13
- tags?: ITag[];
14
- }
@@ -1,12 +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
- options: {
9
- entities: string[];
10
- statement?: string;
11
- };
12
- }
@@ -1,19 +0,0 @@
1
- export declare enum AnalyticsPermissionsEnum {
2
- DATA_SOURCE_VIEW = "DATA_SOURCE_VIEW",
3
- DATA_SOURCE_EDIT = "DATA_SOURCE_EDIT",
4
- NOTIFICATION_DESTINATION_VIEW = "NOTIFICATION_DESTINATION_VIEW",
5
- NOTIFICATION_DESTINATION_EDIT = "NOTIFICATION_DESTINATION_EDIT",
6
- SUBSCRIPTION_VIEW = "SUBSCRIPTION_VIEW",
7
- SUBSCRIPTION_EDIT = "SUBSCRIPTION_EDIT",
8
- MODELS_VIEW = "MODELS_VIEW",
9
- MODELS_EDIT = "MODELS_EDIT",
10
- STORIES_VIEW = "STORIES_VIEW",
11
- STORIES_EDIT = "STORIES_EDIT",
12
- BUSINESS_GROUP_VIEW = "BUSINESS_GROUP_VIEW",
13
- BUSINESS_GROUP_EDIT = "BUSINESS_GROUP_EDIT",
14
- INDICATOR_VIEW = "INDICATOR_VIEW",
15
- INDICATOR_MARTKET_VIEW = "INDICATOR_MARTKET_VIEW",
16
- INDICATOR_EDIT = "INDICATOR_EDIT",
17
- INSIGHT_VIEW = "INSIGHT_VIEW",
18
- INSIGHT_EDIT = "INSIGHT_EDIT"
19
- }
@@ -1,42 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- import { ITag } from '../tag-entity.model';
3
- import { IBusinessArea } from './business-area';
4
- import { IDataSource } from './data-source';
5
- import { IIndicator } from './indicator';
6
- import { IModelQuery } from './model-query';
7
- import { IStory } from './story';
8
- export declare enum AgentType {
9
- Local = "local",
10
- Browser = "browser",
11
- Server = "server",
12
- Wasm = "wasm"
13
- }
14
- export interface ISemanticModelPreferences {
15
- enableCache?: boolean;
16
- expires?: number;
17
- language?: string;
18
- }
19
- export interface ISemanticModel extends IBasePerTenantAndOrganizationEntityModel {
20
- name?: string;
21
- type?: string;
22
- agentType?: AgentType;
23
- tags?: ITag[];
24
- dataSourceId?: string;
25
- dataSource?: IDataSource;
26
- businessAreaId?: string;
27
- businessArea?: IBusinessArea;
28
- catalog?: string;
29
- cube?: string;
30
- options?: Record<string, unknown>;
31
- preferences?: ISemanticModelPreferences;
32
- stories?: Array<IStory>;
33
- indicators?: Array<IIndicator>;
34
- queries?: Array<IModelQuery>;
35
- }
36
- export declare enum ModelTypeEnum {
37
- NONE = "NONE",
38
- BI_WEEKLY = "BI_WEEKLY",
39
- WEEKLY = "WEEKLY",
40
- TWICE_PER_MONTH = "TWICE_PER_MONTH",
41
- MONTHLY = "MONTHLY"
42
- }
@@ -1,11 +0,0 @@
1
- import { IBasePerTenantEntityModel } from '../base-entity.model';
2
- import { IStory } from './story';
3
- import { IStoryPoint } from './story-point';
4
- export interface IStoryWidget extends IBasePerTenantEntityModel {
5
- name?: string;
6
- storyId: string;
7
- story?: IStory;
8
- pointId: string;
9
- point?: IStoryPoint;
10
- options?: Record<string, unknown>;
11
- }
@@ -1,18 +0,0 @@
1
- import { IBasePerTenantEntityModel } from '../base-entity.model';
2
- import { ITag } from '../tag-entity.model';
3
- import { Visibility } from '../visibility.model';
4
- import { IBusinessArea } from './business-area';
5
- import { ISemanticModel } from './semantic-model';
6
- import { IStoryPoint } from './story-point';
7
- export interface IStory extends IBasePerTenantEntityModel {
8
- name?: string;
9
- description?: string;
10
- tags?: ITag[];
11
- businessAreaId?: string;
12
- businessArea?: IBusinessArea;
13
- modelId?: string;
14
- model?: ISemanticModel;
15
- visibility?: Visibility;
16
- points?: IStoryPoint[];
17
- options?: Record<string, unknown>;
18
- }
@@ -1,38 +0,0 @@
1
- import { IBasePerTenantEntityModel } from "../base-entity.model";
2
- import { INotificationDestination } from "./notification-destination";
3
- import { IStory } from "./story";
4
- export interface ISubscription extends IBasePerTenantEntityModel {
5
- name: string;
6
- type: SubscriptionType;
7
- description?: string;
8
- /**
9
- * 启动订阅
10
- */
11
- enable?: boolean;
12
- storyId?: string;
13
- story?: IStory;
14
- pointId?: string;
15
- widgetId?: string;
16
- destinationId?: string;
17
- /**
18
- * 目的地
19
- */
20
- destination?: INotificationDestination;
21
- selectedDateType?: string;
22
- sendDate?: string;
23
- sendTime?: string;
24
- miOffice?: boolean;
25
- selectedUser?: string;
26
- selectedGroup?: string;
27
- notifyEveryone?: boolean;
28
- subscriptionDetail?: string;
29
- navigationButton?: boolean;
30
- buttonDesc?: string;
31
- linkSetting?: string;
32
- linkUrl?: string;
33
- options?: Record<string, unknown>;
34
- }
35
- export declare enum SubscriptionType {
36
- CHART = "CHART",
37
- INDICATOR = "INDICATOR"
38
- }
@@ -1,29 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- import { LanguagesEnum, IUser } from '../user.model';
3
- import { IBusinessGroup1 } from './business-group';
4
- export interface IUserBusinessGroup1 extends IBasePerTenantAndOrganizationEntityModel {
5
- businessGroupId: string;
6
- businessGroup?: IBusinessGroup1;
7
- userId: string;
8
- isDefault: boolean;
9
- isActive: boolean;
10
- user?: IUser;
11
- }
12
- export interface IUserBusinessGroupFindInput extends IBasePerTenantAndOrganizationEntityModel {
13
- businessGroupId?: string;
14
- id?: string;
15
- userId?: string;
16
- isDefault?: boolean;
17
- isActive?: boolean;
18
- }
19
- export interface IUserBusinessGroupCreateInput extends IBasePerTenantAndOrganizationEntityModel {
20
- businessGroupId: string;
21
- userId: string;
22
- isDefault?: boolean;
23
- isActive?: boolean;
24
- }
25
- export interface IUserBusinessGroupDeleteInput {
26
- userBusinessGroupId: string;
27
- requestingUser: IUser;
28
- language?: LanguagesEnum;
29
- }
@@ -1,27 +0,0 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- export interface IVisit extends IBasePerTenantAndOrganizationEntityModel {
3
- type: VisitTypeEnum;
4
- entity: VisitEntityEnum;
5
- entityId: string;
6
- entityName?: string;
7
- businessAreaId?: string;
8
- visitAt?: number;
9
- visits?: number;
10
- }
11
- export declare enum VisitEntityEnum {
12
- DataSource = "DataSource",
13
- SemanticModel = "SemanticModel",
14
- Story = "Story",
15
- Widget = "Widget"
16
- }
17
- export declare enum VisitTypeEnum {
18
- View = "View",
19
- Data = "Data"
20
- }
21
- export interface IEntityVisits {
22
- entity?: VisitEntityEnum;
23
- entityId: string;
24
- entityName: string;
25
- pv?: number;
26
- uv?: number;
27
- }
@@ -1,40 +0,0 @@
1
- export interface AgentEventRequest {
2
- url?: string;
3
- headers: {
4
- [key: string]: string[];
5
- };
6
- body?: any;
7
- catalog?: string;
8
- table?: string;
9
- forceRefresh?: boolean;
10
- }
11
- export interface AgentEventResponse extends AgentEventRequest {
12
- status: number;
13
- statusText: string;
14
- }
15
- export declare enum AgentEventType {
16
- request = "request",
17
- response = "response",
18
- error = "error"
19
- }
20
- export interface AgentEvent {
21
- id: string;
22
- event: AgentEventType;
23
- data: {
24
- organizationId?: string;
25
- dataSource?: {
26
- id: string;
27
- type: string;
28
- updatedAt?: Date;
29
- };
30
- modelId?: string;
31
- request: AgentEventRequest;
32
- response?: AgentEventResponse;
33
- error?: string;
34
- };
35
- }
36
- export declare enum LocalAgentType {
37
- TENANT = 0,
38
- USER = 1
39
- }
40
- export declare const TENANT_AGENT_LOCAL_URL = "agent-local-url";
@@ -1,21 +0,0 @@
1
- import { ITenant } from './tenant.model';
2
- import { IOrganization } from './organization.model';
3
- import { IUser } from './user.model';
4
- export declare type ID = string;
5
- export interface IBaseEntityModel {
6
- id?: ID;
7
- createdById?: ID;
8
- createdBy?: IUser;
9
- updatedById?: ID;
10
- updatedBy?: IUser;
11
- readonly createdAt?: Date;
12
- readonly updatedAt?: Date;
13
- }
14
- export interface IBasePerTenantEntityModel extends IBaseEntityModel {
15
- tenantId?: string;
16
- tenant?: ITenant;
17
- }
18
- export interface IBasePerTenantAndOrganizationEntityModel extends IBasePerTenantEntityModel {
19
- organizationId?: string;
20
- organization?: IOrganization;
21
- }
@@ -1,41 +0,0 @@
1
- import { IOrganizationContact } from './organization-contact.model';
2
- import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
3
- import { IEmployee } from './employee.model';
4
- export interface IContact extends IBasePerTenantAndOrganizationEntityModel {
5
- id?: string;
6
- name?: string;
7
- firstName?: string;
8
- lastName?: string;
9
- country?: string;
10
- city?: string;
11
- address?: string;
12
- address2?: string;
13
- postcode?: string;
14
- latitude?: number;
15
- longitude?: number;
16
- regionCode?: string;
17
- fax?: string;
18
- fiscalInformation?: string;
19
- website?: string;
20
- organization_contacts?: IOrganizationContact[];
21
- employees?: IEmployee[];
22
- }
23
- export interface IContactFindInput extends IContactCreateInput {
24
- id?: string;
25
- }
26
- export interface IContactCreateInput extends IBasePerTenantAndOrganizationEntityModel {
27
- name?: string;
28
- firstName?: string;
29
- lastName?: string;
30
- country?: string;
31
- city?: string;
32
- address?: string;
33
- address2?: string;
34
- postcode?: string;
35
- latitude?: number;
36
- longitude?: number;
37
- regionCode?: string;
38
- fax?: string;
39
- fiscalInformation?: string;
40
- website?: string;
41
- }
package/core.model.d.ts DELETED
@@ -1,25 +0,0 @@
1
- export interface IPaginationInput {
2
- limit?: number;
3
- page?: number;
4
- }
5
- /**
6
- * Generic pagination interface
7
- */
8
- export interface IPagination<T> {
9
- /**
10
- * Items included in the current listing
11
- */
12
- readonly items: T[];
13
- /**
14
- * Total number of available items
15
- */
16
- readonly total: number;
17
- }
18
- export interface IListQueryInput<T> {
19
- /**
20
- * Model entity defined relations
21
- */
22
- readonly relations?: string[];
23
- readonly findInput?: T | any;
24
- readonly where?: any;
25
- }