/
ECSchemaProps.ts
40 lines (37 loc) · 1.22 KB
/
ECSchemaProps.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module ECSQL
*/
/** @public */
export interface ECSchemaReferenceProps {
readonly name: string;
readonly version: string;
}
/** @public */
export interface ECSchemaItemProps {
readonly $schema?: string;
readonly schema?: string;
readonly schemaVersion?: string;
readonly name?: string;
readonly schemaItemType?: string;
readonly label?: string;
readonly description?: string;
readonly customAttributes?: Array<{ [value: string]: any }>;
}
/** Properties of an ECSchema
* @public
*/
export interface ECSchemaProps {
readonly $schema: string;
readonly name: string;
readonly version: string;
readonly alias: string;
readonly label?: string;
readonly description?: string;
readonly references?: ECSchemaReferenceProps[];
readonly items?: { [name: string]: ECSchemaItemProps };
readonly customAttributes?: Array<{ [value: string]: any }>;
}