@odata2ts/odata2ts 0.23.1 → 0.25.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 (78) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/lib/FactoryFunctionModel.d.ts +13 -13
  3. package/lib/FactoryFunctionModel.js +2 -2
  4. package/lib/FactoryFunctionModel.js.map +1 -1
  5. package/lib/NamingModel.d.ts +182 -182
  6. package/lib/NamingModel.js +11 -11
  7. package/lib/NamingModel.js.map +1 -1
  8. package/lib/OptionModel.d.ts +228 -223
  9. package/lib/OptionModel.js +23 -23
  10. package/lib/OptionModel.js.map +1 -1
  11. package/lib/app.d.ts +8 -8
  12. package/lib/app.js +67 -63
  13. package/lib/app.js.map +1 -1
  14. package/lib/cli.d.ts +3 -3
  15. package/lib/cli.js +153 -153
  16. package/lib/data-model/DataModel.d.ts +88 -85
  17. package/lib/data-model/DataModel.js +141 -134
  18. package/lib/data-model/DataModel.js.map +1 -1
  19. package/lib/data-model/DataModelDigestion.d.ts +48 -44
  20. package/lib/data-model/DataModelDigestion.js +299 -274
  21. package/lib/data-model/DataModelDigestion.js.map +1 -1
  22. package/lib/data-model/DataModelDigestionV2.d.ts +10 -10
  23. package/lib/data-model/DataModelDigestionV2.js +210 -200
  24. package/lib/data-model/DataModelDigestionV2.js.map +1 -1
  25. package/lib/data-model/DataModelDigestionV4.d.ts +3 -3
  26. package/lib/data-model/DataModelDigestionV4.js +197 -195
  27. package/lib/data-model/DataModelDigestionV4.js.map +1 -1
  28. package/lib/data-model/DataTypeModel.d.ts +102 -102
  29. package/lib/data-model/DataTypeModel.js +8 -8
  30. package/lib/data-model/DataTypeModel.js.map +1 -1
  31. package/lib/data-model/NamingHelper.d.ts +57 -55
  32. package/lib/data-model/NamingHelper.js +231 -214
  33. package/lib/data-model/NamingHelper.js.map +1 -1
  34. package/lib/data-model/ServiceConfigHelper.d.ts +21 -21
  35. package/lib/data-model/ServiceConfigHelper.js +113 -113
  36. package/lib/data-model/edmx/ODataEdmxModelBase.d.ts +92 -80
  37. package/lib/data-model/edmx/ODataEdmxModelBase.js +2 -2
  38. package/lib/data-model/edmx/ODataEdmxModelBase.js.map +1 -1
  39. package/lib/data-model/edmx/ODataEdmxModelV3.d.ts +63 -63
  40. package/lib/data-model/edmx/ODataEdmxModelV3.js +2 -2
  41. package/lib/data-model/edmx/ODataEdmxModelV4.d.ts +67 -67
  42. package/lib/data-model/edmx/ODataEdmxModelV4.js +2 -2
  43. package/lib/defaultConfig.d.ts +9 -9
  44. package/lib/defaultConfig.js +165 -164
  45. package/lib/defaultConfig.js.map +1 -1
  46. package/lib/evaluateConfig.d.ts +25 -25
  47. package/lib/evaluateConfig.js +82 -82
  48. package/lib/generator/ImportContainer.d.ts +16 -16
  49. package/lib/generator/ImportContainer.js +91 -91
  50. package/lib/generator/ModelGenerator.d.ts +2 -2
  51. package/lib/generator/ModelGenerator.js +211 -183
  52. package/lib/generator/ModelGenerator.js.map +1 -1
  53. package/lib/generator/QueryObjectGenerator.d.ts +2 -2
  54. package/lib/generator/QueryObjectGenerator.js +239 -239
  55. package/lib/generator/ServiceGenerator.d.ts +8 -8
  56. package/lib/generator/ServiceGenerator.js +422 -422
  57. package/lib/generator/index.d.ts +3 -3
  58. package/lib/generator/index.js +9 -9
  59. package/lib/index.d.ts +3 -3
  60. package/lib/index.js +6 -6
  61. package/lib/project/ProjectManager.d.ts +30 -30
  62. package/lib/project/ProjectManager.js +177 -175
  63. package/lib/project/ProjectManager.js.map +1 -1
  64. package/lib/project/formatter/BaseFormatter.d.ts +49 -49
  65. package/lib/project/formatter/BaseFormatter.js +30 -30
  66. package/lib/project/formatter/FileFormatter.d.ts +16 -16
  67. package/lib/project/formatter/FileFormatter.js +2 -2
  68. package/lib/project/formatter/NoopFormatter.d.ts +29 -29
  69. package/lib/project/formatter/NoopFormatter.js +42 -42
  70. package/lib/project/formatter/PrettierFormatter.d.ts +46 -46
  71. package/lib/project/formatter/PrettierFormatter.js +92 -92
  72. package/lib/project/formatter/index.d.ts +2 -2
  73. package/lib/project/formatter/index.js +14 -14
  74. package/lib/project/logger/logFilePath.d.ts +1 -1
  75. package/lib/project/logger/logFilePath.js +12 -12
  76. package/lib/run-cli.d.ts +2 -2
  77. package/lib/run-cli.js +6 -6
  78. package/package.json +27 -28
@@ -1,114 +1,114 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceConfigHelper = void 0;
4
- const tslib_1 = require("tslib");
5
- const EXCEPTION_NO_NAME = "No value for required attribute [name] specified!";
6
- const EXCEPTION_WRONG_NAME_TYPE = "Wrong type for attribute [name]! You have to supply either a plain string or a RegExp.";
7
- class ServiceConfigHelper {
8
- constructor(options) {
9
- this.propMapping = new Map();
10
- this.entityMapping = new Map();
11
- this.propRegExps = [];
12
- this.entityRegExps = [];
13
- this.findConfigPropByName = (name) => {
14
- const stringProp = this.getPropByName(name);
15
- const reProp = this.getPropByRegExp(name);
16
- return stringProp && reProp ? Object.assign(Object.assign({}, reProp), stringProp) : stringProp || reProp;
17
- };
18
- this.findConfigEntityByName = (name) => {
19
- const stringEnt = this.getEntityByName(name);
20
- const reEnt = this.getEntityByRegExp(name);
21
- return stringEnt && reEnt ? Object.assign(Object.assign({}, reEnt), stringEnt) : stringEnt || reEnt;
22
- };
23
- this.evaluateProps(options);
24
- this.evaluateEntities(options);
25
- }
26
- evaluateProps(options) {
27
- options.propertiesByName.forEach((prop) => {
28
- if (!prop.name) {
29
- throw new Error(EXCEPTION_NO_NAME);
30
- }
31
- switch (typeof prop.name) {
32
- case "string":
33
- // TODO: check for existing prop.name and throw?
34
- this.propMapping.set(prop.name, prop);
35
- break;
36
- case "object":
37
- const { source, ignoreCase } = prop.name;
38
- if (!source) {
39
- throw new Error(EXCEPTION_WRONG_NAME_TYPE);
40
- }
41
- this.propRegExps.push([new RegExp(`^${source}$`, ignoreCase ? "i" : ""), prop]);
42
- break;
43
- default:
44
- throw new Error(EXCEPTION_WRONG_NAME_TYPE);
45
- }
46
- });
47
- }
48
- getPropByName(nameToMap) {
49
- const stringProp = this.propMapping.get(nameToMap);
50
- if (!stringProp) {
51
- return;
52
- }
53
- const { name } = stringProp, attrs = tslib_1.__rest(stringProp, ["name"]);
54
- return Object.assign({}, attrs);
55
- }
56
- getPropByRegExp(nameToMap) {
57
- const resultList = this.propRegExps
58
- .filter(([regExp]) => regExp.test(nameToMap))
59
- .map((_a) => {
60
- var [regExp, _b] = _a, { name, mappedName } = _b, attrs = tslib_1.__rest(_b, ["name", "mappedName"]);
61
- return (Object.assign({ mappedName: mappedName ? nameToMap.replace(regExp, mappedName) : undefined }, attrs));
62
- });
63
- return !resultList.length
64
- ? undefined
65
- : resultList.reduce((result, prop) => {
66
- return Object.assign(Object.assign({}, result), prop);
67
- }, {});
68
- }
69
- evaluateEntities(options) {
70
- options.entitiesByName.forEach((ent) => {
71
- if (!ent.name) {
72
- throw new Error(EXCEPTION_NO_NAME);
73
- }
74
- switch (typeof ent.name) {
75
- case "string":
76
- // TODO: check for existing prop.name and throw?
77
- this.entityMapping.set(ent.name, ent);
78
- break;
79
- case "object":
80
- const { source, ignoreCase } = ent.name;
81
- if (!source) {
82
- throw new Error(EXCEPTION_WRONG_NAME_TYPE);
83
- }
84
- this.entityRegExps.push([new RegExp(`^${source}$`, ignoreCase ? "i" : ""), ent]);
85
- break;
86
- default:
87
- throw new Error(EXCEPTION_WRONG_NAME_TYPE);
88
- }
89
- });
90
- }
91
- getEntityByName(nameToMap) {
92
- const stringProp = this.entityMapping.get(nameToMap);
93
- if (!stringProp) {
94
- return;
95
- }
96
- const { name } = stringProp, attrs = tslib_1.__rest(stringProp, ["name"]);
97
- return Object.assign({}, attrs);
98
- }
99
- getEntityByRegExp(nameToMap) {
100
- const resultList = this.entityRegExps
101
- .filter(([regExp]) => regExp.test(nameToMap))
102
- .map((_a) => {
103
- var [regExp, _b] = _a, { name, mappedName } = _b, attrs = tslib_1.__rest(_b, ["name", "mappedName"]);
104
- return (Object.assign({ mappedName: mappedName ? nameToMap.replace(regExp, mappedName) : undefined }, attrs));
105
- });
106
- return !resultList.length
107
- ? undefined
108
- : resultList.reduce((result, prop) => {
109
- return Object.assign(Object.assign({}, result), prop);
110
- }, {});
111
- }
112
- }
113
- exports.ServiceConfigHelper = ServiceConfigHelper;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceConfigHelper = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const EXCEPTION_NO_NAME = "No value for required attribute [name] specified!";
6
+ const EXCEPTION_WRONG_NAME_TYPE = "Wrong type for attribute [name]! You have to supply either a plain string or a RegExp.";
7
+ class ServiceConfigHelper {
8
+ constructor(options) {
9
+ this.propMapping = new Map();
10
+ this.entityMapping = new Map();
11
+ this.propRegExps = [];
12
+ this.entityRegExps = [];
13
+ this.findConfigPropByName = (name) => {
14
+ const stringProp = this.getPropByName(name);
15
+ const reProp = this.getPropByRegExp(name);
16
+ return stringProp && reProp ? Object.assign(Object.assign({}, reProp), stringProp) : stringProp || reProp;
17
+ };
18
+ this.findConfigEntityByName = (name) => {
19
+ const stringEnt = this.getEntityByName(name);
20
+ const reEnt = this.getEntityByRegExp(name);
21
+ return stringEnt && reEnt ? Object.assign(Object.assign({}, reEnt), stringEnt) : stringEnt || reEnt;
22
+ };
23
+ this.evaluateProps(options);
24
+ this.evaluateEntities(options);
25
+ }
26
+ evaluateProps(options) {
27
+ options.propertiesByName.forEach((prop) => {
28
+ if (!prop.name) {
29
+ throw new Error(EXCEPTION_NO_NAME);
30
+ }
31
+ switch (typeof prop.name) {
32
+ case "string":
33
+ // TODO: check for existing prop.name and throw?
34
+ this.propMapping.set(prop.name, prop);
35
+ break;
36
+ case "object":
37
+ const { source, ignoreCase } = prop.name;
38
+ if (!source) {
39
+ throw new Error(EXCEPTION_WRONG_NAME_TYPE);
40
+ }
41
+ this.propRegExps.push([new RegExp(`^${source}$`, ignoreCase ? "i" : ""), prop]);
42
+ break;
43
+ default:
44
+ throw new Error(EXCEPTION_WRONG_NAME_TYPE);
45
+ }
46
+ });
47
+ }
48
+ getPropByName(nameToMap) {
49
+ const stringProp = this.propMapping.get(nameToMap);
50
+ if (!stringProp) {
51
+ return;
52
+ }
53
+ const { name } = stringProp, attrs = tslib_1.__rest(stringProp, ["name"]);
54
+ return Object.assign({}, attrs);
55
+ }
56
+ getPropByRegExp(nameToMap) {
57
+ const resultList = this.propRegExps
58
+ .filter(([regExp]) => regExp.test(nameToMap))
59
+ .map((_a) => {
60
+ var [regExp, _b] = _a, { name, mappedName } = _b, attrs = tslib_1.__rest(_b, ["name", "mappedName"]);
61
+ return (Object.assign({ mappedName: mappedName ? nameToMap.replace(regExp, mappedName) : undefined }, attrs));
62
+ });
63
+ return !resultList.length
64
+ ? undefined
65
+ : resultList.reduce((result, prop) => {
66
+ return Object.assign(Object.assign({}, result), prop);
67
+ }, {});
68
+ }
69
+ evaluateEntities(options) {
70
+ options.entitiesByName.forEach((ent) => {
71
+ if (!ent.name) {
72
+ throw new Error(EXCEPTION_NO_NAME);
73
+ }
74
+ switch (typeof ent.name) {
75
+ case "string":
76
+ // TODO: check for existing prop.name and throw?
77
+ this.entityMapping.set(ent.name, ent);
78
+ break;
79
+ case "object":
80
+ const { source, ignoreCase } = ent.name;
81
+ if (!source) {
82
+ throw new Error(EXCEPTION_WRONG_NAME_TYPE);
83
+ }
84
+ this.entityRegExps.push([new RegExp(`^${source}$`, ignoreCase ? "i" : ""), ent]);
85
+ break;
86
+ default:
87
+ throw new Error(EXCEPTION_WRONG_NAME_TYPE);
88
+ }
89
+ });
90
+ }
91
+ getEntityByName(nameToMap) {
92
+ const stringProp = this.entityMapping.get(nameToMap);
93
+ if (!stringProp) {
94
+ return;
95
+ }
96
+ const { name } = stringProp, attrs = tslib_1.__rest(stringProp, ["name"]);
97
+ return Object.assign({}, attrs);
98
+ }
99
+ getEntityByRegExp(nameToMap) {
100
+ const resultList = this.entityRegExps
101
+ .filter(([regExp]) => regExp.test(nameToMap))
102
+ .map((_a) => {
103
+ var [regExp, _b] = _a, { name, mappedName } = _b, attrs = tslib_1.__rest(_b, ["name", "mappedName"]);
104
+ return (Object.assign({ mappedName: mappedName ? nameToMap.replace(regExp, mappedName) : undefined }, attrs));
105
+ });
106
+ return !resultList.length
107
+ ? undefined
108
+ : resultList.reduce((result, prop) => {
109
+ return Object.assign(Object.assign({}, result), prop);
110
+ }, {});
111
+ }
112
+ }
113
+ exports.ServiceConfigHelper = ServiceConfigHelper;
114
114
  //# sourceMappingURL=ServiceConfigHelper.js.map
@@ -1,80 +1,92 @@
1
- export interface ODataEdmxModelBase<VersionedSchema> {
2
- "edmx:Edmx": {
3
- $: {
4
- Version: string;
5
- "xmlns:edmx": string;
6
- };
7
- "edmx:DataServices": Array<DataService<VersionedSchema>>;
8
- };
9
- }
10
- export interface DataService<VersionedSchema> {
11
- Schema: Array<VersionedSchema>;
12
- }
13
- export interface Schema<ET extends EntityType, CT extends ComplexType> {
14
- $: {
15
- Namespace: string;
16
- xmlns: string;
17
- };
18
- EntityType?: Array<ET>;
19
- ComplexType?: Array<CT>;
20
- EnumType?: Array<EnumType>;
21
- EntityContainer?: Array<any>;
22
- }
23
- export interface EntityContainer<ES = EntitySet> {
24
- $: {
25
- Name: string;
26
- };
27
- EntitySet?: Array<ES>;
28
- }
29
- export interface EntitySet {
30
- $: {
31
- Name: string;
32
- EntityType: string;
33
- };
34
- }
35
- export interface EntityType {
36
- $: {
37
- Name: string;
38
- BaseType?: string;
39
- };
40
- Key: Array<PropertyRef>;
41
- Property: Array<Property>;
42
- }
43
- export interface ComplexType extends Omit<EntityType, "Key"> {
44
- }
45
- export interface PropertyRef {
46
- PropertyRef: Array<{
47
- $: {
48
- Name: string;
49
- };
50
- }>;
51
- }
52
- export interface Property {
53
- $: {
54
- Name: string;
55
- Type: string;
56
- MaxLength?: number;
57
- Nullable?: "true" | "false";
58
- Precision?: number;
59
- };
60
- }
61
- export interface EnumType {
62
- $: {
63
- Name: string;
64
- };
65
- Member: Array<Member>;
66
- }
67
- export interface Member {
68
- $: {
69
- Name: string;
70
- Value: number;
71
- };
72
- }
73
- export interface Parameter extends Property {
74
- Unicode?: boolean;
75
- }
76
- export interface ReturnType {
77
- $: {
78
- Type: string;
79
- };
80
- }
1
+ export interface ODataEdmxModelBase<VersionedSchema> {
2
+ "edmx:Edmx": {
3
+ $: {
4
+ Version: string;
5
+ "xmlns:edmx": string;
6
+ };
7
+ "edmx:DataServices": Array<DataService<VersionedSchema>>;
8
+ };
9
+ }
10
+ export interface DataService<VersionedSchema> {
11
+ Schema: Array<VersionedSchema>;
12
+ }
13
+ export interface Schema<ET extends EntityType, CT extends ComplexType> {
14
+ $: {
15
+ Namespace: string;
16
+ xmlns: string;
17
+ Alias?: string;
18
+ };
19
+ EntityType?: Array<ET>;
20
+ ComplexType?: Array<CT>;
21
+ EnumType?: Array<EnumType>;
22
+ EntityContainer?: Array<any>;
23
+ TypeDefinition?: Array<TypeDefinition>;
24
+ }
25
+ export interface EntityContainer<ES = EntitySet> {
26
+ $: {
27
+ Name: string;
28
+ };
29
+ EntitySet?: Array<ES>;
30
+ }
31
+ export interface EntitySet {
32
+ $: {
33
+ Name: string;
34
+ EntityType: string;
35
+ };
36
+ }
37
+ export interface EntityType {
38
+ $: {
39
+ Name: string;
40
+ BaseType?: string;
41
+ };
42
+ Key: Array<PropertyRef>;
43
+ Property: Array<Property>;
44
+ }
45
+ export interface ComplexType extends Omit<EntityType, "Key"> {
46
+ }
47
+ export interface PropertyRef {
48
+ PropertyRef: Array<{
49
+ $: {
50
+ Name: string;
51
+ };
52
+ }>;
53
+ }
54
+ export interface Property {
55
+ $: {
56
+ Name: string;
57
+ Type: string;
58
+ Nullable?: "true" | "false";
59
+ MaxLength?: number;
60
+ Precision?: number;
61
+ Scale?: number;
62
+ };
63
+ }
64
+ export interface EnumType {
65
+ $: {
66
+ Name: string;
67
+ };
68
+ Member: Array<Member>;
69
+ }
70
+ export interface Member {
71
+ $: {
72
+ Name: string;
73
+ Value: number;
74
+ };
75
+ }
76
+ export interface Parameter extends Property {
77
+ Unicode?: boolean;
78
+ }
79
+ export interface ReturnType {
80
+ $: {
81
+ Type: string;
82
+ };
83
+ }
84
+ export interface TypeDefinition {
85
+ $: {
86
+ Name: string;
87
+ UnderlyingType: string;
88
+ MaxLength?: number;
89
+ Precision?: number;
90
+ Scale?: number;
91
+ };
92
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=ODataEdmxModelBase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ODataEdmxModelBase.js","sourceRoot":"","sources":["../../../src/data-model/edmx/ODataEdmxModelBase.ts"],"names":[],"mappings":"","sourcesContent":["export interface ODataEdmxModelBase<VersionedSchema> {\n \"edmx:Edmx\": {\n $: {\n Version: string;\n \"xmlns:edmx\": string;\n };\n // \"edmx:Reference\": Array<any>;\n \"edmx:DataServices\": Array<DataService<VersionedSchema>>;\n };\n}\n\nexport interface DataService<VersionedSchema> {\n Schema: Array<VersionedSchema>;\n}\n\nexport interface Schema<ET extends EntityType, CT extends ComplexType> {\n $: {\n Namespace: string;\n xmlns: string;\n };\n EntityType?: Array<ET>;\n ComplexType?: Array<CT>;\n EnumType?: Array<EnumType>;\n EntityContainer?: Array<any>;\n}\n\nexport interface EntityContainer<ES = EntitySet> {\n $: {\n Name: string;\n };\n EntitySet?: Array<ES>;\n}\n\nexport interface EntitySet {\n $: {\n Name: string;\n EntityType: string;\n };\n}\n\nexport interface EntityType {\n $: {\n Name: string;\n BaseType?: string;\n };\n Key: Array<PropertyRef>;\n Property: Array<Property>;\n}\n\nexport interface ComplexType extends Omit<EntityType, \"Key\"> {}\n\nexport interface PropertyRef {\n PropertyRef: Array<{ $: { Name: string } }>;\n}\n\nexport interface Property {\n $: {\n Name: string;\n Type: string;\n MaxLength?: number;\n Nullable?: \"true\" | \"false\";\n Precision?: number;\n };\n}\n\nexport interface EnumType {\n $: {\n Name: string;\n };\n Member: Array<Member>;\n}\n\nexport interface Member {\n $: {\n Name: string;\n Value: number;\n };\n}\n\nexport interface Parameter extends Property {\n Unicode?: boolean;\n}\n\nexport interface ReturnType {\n $: {\n Type: string;\n };\n}\n"]}
1
+ {"version":3,"file":"ODataEdmxModelBase.js","sourceRoot":"","sources":["../../../src/data-model/edmx/ODataEdmxModelBase.ts"],"names":[],"mappings":"","sourcesContent":["export interface ODataEdmxModelBase<VersionedSchema> {\r\n \"edmx:Edmx\": {\r\n $: {\r\n Version: string;\r\n \"xmlns:edmx\": string;\r\n };\r\n // \"edmx:Reference\": Array<any>;\r\n \"edmx:DataServices\": Array<DataService<VersionedSchema>>;\r\n };\r\n}\r\n\r\nexport interface DataService<VersionedSchema> {\r\n Schema: Array<VersionedSchema>;\r\n}\r\n\r\nexport interface Schema<ET extends EntityType, CT extends ComplexType> {\r\n $: {\r\n Namespace: string;\r\n xmlns: string;\r\n Alias?: string;\r\n };\r\n EntityType?: Array<ET>;\r\n ComplexType?: Array<CT>;\r\n EnumType?: Array<EnumType>;\r\n EntityContainer?: Array<any>;\r\n TypeDefinition?: Array<TypeDefinition>;\r\n}\r\n\r\nexport interface EntityContainer<ES = EntitySet> {\r\n $: {\r\n Name: string;\r\n };\r\n EntitySet?: Array<ES>;\r\n}\r\n\r\nexport interface EntitySet {\r\n $: {\r\n Name: string;\r\n EntityType: string;\r\n };\r\n}\r\n\r\nexport interface EntityType {\r\n $: {\r\n Name: string;\r\n BaseType?: string;\r\n };\r\n Key: Array<PropertyRef>;\r\n Property: Array<Property>;\r\n}\r\n\r\nexport interface ComplexType extends Omit<EntityType, \"Key\"> {}\r\n\r\nexport interface PropertyRef {\r\n PropertyRef: Array<{ $: { Name: string } }>;\r\n}\r\n\r\nexport interface Property {\r\n $: {\r\n Name: string;\r\n Type: string;\r\n Nullable?: \"true\" | \"false\";\r\n MaxLength?: number;\r\n Precision?: number;\r\n Scale?: number;\r\n };\r\n}\r\n\r\nexport interface EnumType {\r\n $: {\r\n Name: string;\r\n };\r\n Member: Array<Member>;\r\n}\r\n\r\nexport interface Member {\r\n $: {\r\n Name: string;\r\n Value: number;\r\n };\r\n}\r\n\r\nexport interface Parameter extends Property {\r\n Unicode?: boolean;\r\n}\r\n\r\nexport interface ReturnType {\r\n $: {\r\n Type: string;\r\n };\r\n}\r\n\r\nexport interface TypeDefinition {\r\n $: {\r\n Name: string;\r\n UnderlyingType: string;\r\n MaxLength?: number;\r\n Precision?: number;\r\n Scale?: number;\r\n };\r\n}\r\n"]}
@@ -1,63 +1,63 @@
1
- import { ComplexType, EntityContainer, EntityType, ODataEdmxModelBase, Property, ReturnType, Schema } from "./ODataEdmxModelBase";
2
- export interface ODataEdmxModelV3 extends ODataEdmxModelBase<SchemaV3> {
3
- }
4
- export interface SchemaV3 extends Schema<EntityTypeV3, ComplexTypeV3> {
5
- EntityContainer?: Array<EntityContainerV3>;
6
- Association?: Array<Association>;
7
- }
8
- export interface EntityTypeV3 extends EntityType {
9
- NavigationProperty?: Array<NavigationProperty>;
10
- }
11
- export interface ComplexTypeV3 extends ComplexType {
12
- }
13
- export interface NavigationProperty {
14
- $: {
15
- Name: string;
16
- Relationship: string;
17
- FromRole: string;
18
- ToRole: string;
19
- };
20
- }
21
- export interface EntityContainerV3 extends EntityContainer {
22
- AssociationSet?: Array<AssociationSet>;
23
- FunctionImport?: Array<FunctionImport>;
24
- }
25
- export interface AssociationSet {
26
- $: {
27
- Name: string;
28
- Association: string;
29
- };
30
- End: Array<AssociationSetEnd>;
31
- }
32
- export interface AssociationSetEnd {
33
- $: {
34
- Role: string;
35
- EntitySet: string;
36
- };
37
- }
38
- export interface FunctionImport {
39
- $: {
40
- Name: string;
41
- EntitySet?: string;
42
- ReturnType?: string;
43
- "m:HttpMethod"?: "POST" | "GET";
44
- };
45
- ReturnType?: Array<ReturnType>;
46
- Parameter?: Array<Parameter>;
47
- }
48
- export interface Parameter extends Property {
49
- Mode?: "In" | "Out" | "InOut";
50
- }
51
- export interface Association {
52
- $: {
53
- Name: string;
54
- };
55
- End: Array<AssociationEnd>;
56
- }
57
- export interface AssociationEnd {
58
- $: {
59
- Type: string;
60
- Multiplicity: string;
61
- Role?: string;
62
- };
63
- }
1
+ import { ComplexType, EntityContainer, EntityType, ODataEdmxModelBase, Property, ReturnType, Schema } from "./ODataEdmxModelBase";
2
+ export interface ODataEdmxModelV3 extends ODataEdmxModelBase<SchemaV3> {
3
+ }
4
+ export interface SchemaV3 extends Schema<EntityTypeV3, ComplexTypeV3> {
5
+ EntityContainer?: Array<EntityContainerV3>;
6
+ Association?: Array<Association>;
7
+ }
8
+ export interface EntityTypeV3 extends EntityType {
9
+ NavigationProperty?: Array<NavigationProperty>;
10
+ }
11
+ export interface ComplexTypeV3 extends ComplexType {
12
+ }
13
+ export interface NavigationProperty {
14
+ $: {
15
+ Name: string;
16
+ Relationship: string;
17
+ FromRole: string;
18
+ ToRole: string;
19
+ };
20
+ }
21
+ export interface EntityContainerV3 extends EntityContainer {
22
+ AssociationSet?: Array<AssociationSet>;
23
+ FunctionImport?: Array<FunctionImport>;
24
+ }
25
+ export interface AssociationSet {
26
+ $: {
27
+ Name: string;
28
+ Association: string;
29
+ };
30
+ End: Array<AssociationSetEnd>;
31
+ }
32
+ export interface AssociationSetEnd {
33
+ $: {
34
+ Role: string;
35
+ EntitySet: string;
36
+ };
37
+ }
38
+ export interface FunctionImport {
39
+ $: {
40
+ Name: string;
41
+ EntitySet?: string;
42
+ ReturnType?: string;
43
+ "m:HttpMethod"?: "POST" | "GET";
44
+ };
45
+ ReturnType?: Array<ReturnType>;
46
+ Parameter?: Array<Parameter>;
47
+ }
48
+ export interface Parameter extends Property {
49
+ Mode?: "In" | "Out" | "InOut";
50
+ }
51
+ export interface Association {
52
+ $: {
53
+ Name: string;
54
+ };
55
+ End: Array<AssociationEnd>;
56
+ }
57
+ export interface AssociationEnd {
58
+ $: {
59
+ Type: string;
60
+ Multiplicity: string;
61
+ Role?: string;
62
+ };
63
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=ODataEdmxModelV3.js.map