angular-odata 0.130.0 → 0.140.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 (247) hide show
  1. package/fesm2022/angular-odata.mjs +2469 -2600
  2. package/fesm2022/angular-odata.mjs.map +1 -1
  3. package/index.d.ts +6403 -3
  4. package/package.json +3 -5
  5. package/schematics/apigen/angular/base.js +2 -6
  6. package/schematics/apigen/angular/base.js.map +1 -1
  7. package/schematics/apigen/angular/entity.js +1 -2
  8. package/schematics/apigen/angular/entity.js.map +1 -1
  9. package/schematics/apigen/files/api-config/__fileName__.ts +4 -4
  10. package/schematics/apigen/index.js +2 -6
  11. package/schematics/apigen/index.js.map +1 -1
  12. package/schematics/apigen/metadata/csdl/csdl-annotation.js +1 -2
  13. package/schematics/apigen/metadata/csdl/csdl-annotation.js.map +1 -1
  14. package/schematics/apigen/metadata/csdl/csdl-entity-container.js.map +1 -1
  15. package/schematics/apigen/metadata/csdl/csdl-entity-set.js.map +1 -1
  16. package/schematics/apigen/metadata/csdl/csdl-enum-type.d.ts +1 -1
  17. package/schematics/apigen/metadata/csdl/csdl-enum-type.js +1 -1
  18. package/schematics/apigen/metadata/csdl/csdl-enum-type.js.map +1 -1
  19. package/schematics/apigen/metadata/csdl/csdl-function-action.d.ts +1 -1
  20. package/schematics/apigen/metadata/csdl/csdl-reference.js +1 -2
  21. package/schematics/apigen/metadata/csdl/csdl-reference.js.map +1 -1
  22. package/schematics/apigen/metadata/csdl/csdl-schema.js +1 -2
  23. package/schematics/apigen/metadata/csdl/csdl-schema.js.map +1 -1
  24. package/schematics/apigen/metadata/csdl/csdl-singleton.js.map +1 -1
  25. package/schematics/apigen/metadata/csdl/csdl-structural-property.d.ts +1 -1
  26. package/schematics/apigen/metadata/csdl/csdl-structural-property.js +2 -3
  27. package/schematics/apigen/metadata/csdl/csdl-structural-property.js.map +1 -1
  28. package/schematics/apigen/metadata/csdl/csdl-structured-type.d.ts +1 -1
  29. package/schematics/apigen/metadata/csdl/csdl-structured-type.js +1 -2
  30. package/schematics/apigen/metadata/csdl/csdl-structured-type.js.map +1 -1
  31. package/schematics/apigen/metadata/parser.js +1 -3
  32. package/schematics/apigen/metadata/parser.js.map +1 -1
  33. package/schematics/apigen/utils.js +2 -4
  34. package/schematics/apigen/utils.js.map +1 -1
  35. package/esm2022/angular-odata.mjs +0 -5
  36. package/esm2022/lib/annotations.mjs +0 -146
  37. package/esm2022/lib/api.mjs +0 -439
  38. package/esm2022/lib/cache/cache.mjs +0 -177
  39. package/esm2022/lib/cache/index.mjs +0 -4
  40. package/esm2022/lib/cache/memory.mjs +0 -30
  41. package/esm2022/lib/cache/storage.mjs +0 -57
  42. package/esm2022/lib/client.mjs +0 -215
  43. package/esm2022/lib/constants.mjs +0 -95
  44. package/esm2022/lib/helper.mjs +0 -288
  45. package/esm2022/lib/index.mjs +0 -22
  46. package/esm2022/lib/loaders.mjs +0 -43
  47. package/esm2022/lib/metadata/csdl/csdl-annotation.mjs +0 -273
  48. package/esm2022/lib/metadata/csdl/csdl-entity-container.mjs +0 -59
  49. package/esm2022/lib/metadata/csdl/csdl-entity-set.mjs +0 -50
  50. package/esm2022/lib/metadata/csdl/csdl-enum-type.mjs +0 -74
  51. package/esm2022/lib/metadata/csdl/csdl-function-action.mjs +0 -204
  52. package/esm2022/lib/metadata/csdl/csdl-navigation-property-binding.mjs +0 -15
  53. package/esm2022/lib/metadata/csdl/csdl-reference.mjs +0 -76
  54. package/esm2022/lib/metadata/csdl/csdl-schema.mjs +0 -87
  55. package/esm2022/lib/metadata/csdl/csdl-singleton.mjs +0 -37
  56. package/esm2022/lib/metadata/csdl/csdl-structural-property.mjs +0 -145
  57. package/esm2022/lib/metadata/csdl/csdl-structured-type.mjs +0 -159
  58. package/esm2022/lib/metadata/csdl/csdl-type-definition.mjs +0 -46
  59. package/esm2022/lib/metadata/index.mjs +0 -3
  60. package/esm2022/lib/metadata/metadata.mjs +0 -41
  61. package/esm2022/lib/metadata/parser.mjs +0 -564
  62. package/esm2022/lib/models/collection.mjs +0 -816
  63. package/esm2022/lib/models/index.mjs +0 -4
  64. package/esm2022/lib/models/model.mjs +0 -577
  65. package/esm2022/lib/models/options.mjs +0 -1227
  66. package/esm2022/lib/module.mjs +0 -55
  67. package/esm2022/lib/options.mjs +0 -91
  68. package/esm2022/lib/resources/index.mjs +0 -7
  69. package/esm2022/lib/resources/options.mjs +0 -66
  70. package/esm2022/lib/resources/path/handlers.mjs +0 -81
  71. package/esm2022/lib/resources/path/index.mjs +0 -3
  72. package/esm2022/lib/resources/path/segments.mjs +0 -149
  73. package/esm2022/lib/resources/query/builder.mjs +0 -645
  74. package/esm2022/lib/resources/query/expressions/apply.mjs +0 -238
  75. package/esm2022/lib/resources/query/expressions/base.mjs +0 -26
  76. package/esm2022/lib/resources/query/expressions/compute.mjs +0 -55
  77. package/esm2022/lib/resources/query/expressions/count.mjs +0 -118
  78. package/esm2022/lib/resources/query/expressions/expand.mjs +0 -154
  79. package/esm2022/lib/resources/query/expressions/filter.mjs +0 -180
  80. package/esm2022/lib/resources/query/expressions/index.mjs +0 -10
  81. package/esm2022/lib/resources/query/expressions/orderby.mjs +0 -81
  82. package/esm2022/lib/resources/query/expressions/search.mjs +0 -144
  83. package/esm2022/lib/resources/query/expressions/select.mjs +0 -49
  84. package/esm2022/lib/resources/query/expressions/syntax.mjs +0 -770
  85. package/esm2022/lib/resources/query/handlers.mjs +0 -423
  86. package/esm2022/lib/resources/query/index.mjs +0 -5
  87. package/esm2022/lib/resources/query/options.mjs +0 -140
  88. package/esm2022/lib/resources/request.mjs +0 -210
  89. package/esm2022/lib/resources/resource.mjs +0 -316
  90. package/esm2022/lib/resources/response.mjs +0 -180
  91. package/esm2022/lib/resources/types/action.mjs +0 -118
  92. package/esm2022/lib/resources/types/batch.mjs +0 -428
  93. package/esm2022/lib/resources/types/count.mjs +0 -33
  94. package/esm2022/lib/resources/types/entity-set.mjs +0 -131
  95. package/esm2022/lib/resources/types/entity.mjs +0 -112
  96. package/esm2022/lib/resources/types/function.mjs +0 -149
  97. package/esm2022/lib/resources/types/index.mjs +0 -15
  98. package/esm2022/lib/resources/types/media.mjs +0 -44
  99. package/esm2022/lib/resources/types/metadata.mjs +0 -35
  100. package/esm2022/lib/resources/types/navigation-property.mjs +0 -246
  101. package/esm2022/lib/resources/types/options.mjs +0 -2
  102. package/esm2022/lib/resources/types/property.mjs +0 -187
  103. package/esm2022/lib/resources/types/reference.mjs +0 -87
  104. package/esm2022/lib/resources/types/singleton.mjs +0 -125
  105. package/esm2022/lib/resources/types/value.mjs +0 -48
  106. package/esm2022/lib/schema/annotation.mjs +0 -44
  107. package/esm2022/lib/schema/callable.mjs +0 -69
  108. package/esm2022/lib/schema/element.mjs +0 -70
  109. package/esm2022/lib/schema/entity-container.mjs +0 -13
  110. package/esm2022/lib/schema/entity-set.mjs +0 -11
  111. package/esm2022/lib/schema/enum-type.mjs +0 -69
  112. package/esm2022/lib/schema/index.mjs +0 -9
  113. package/esm2022/lib/schema/parsers/callable.mjs +0 -123
  114. package/esm2022/lib/schema/parsers/edm.mjs +0 -101
  115. package/esm2022/lib/schema/parsers/enum-type.mjs +0 -148
  116. package/esm2022/lib/schema/parsers/index.mjs +0 -5
  117. package/esm2022/lib/schema/parsers/structured-type.mjs +0 -548
  118. package/esm2022/lib/schema/schema.mjs +0 -52
  119. package/esm2022/lib/schema/singleton.mjs +0 -11
  120. package/esm2022/lib/schema/structured-type.mjs +0 -220
  121. package/esm2022/lib/services/base.mjs +0 -32
  122. package/esm2022/lib/services/entity-set.mjs +0 -161
  123. package/esm2022/lib/services/entity.mjs +0 -12
  124. package/esm2022/lib/services/factory.mjs +0 -39
  125. package/esm2022/lib/services/index.mjs +0 -5
  126. package/esm2022/lib/services/singleton.mjs +0 -55
  127. package/esm2022/lib/settings.mjs +0 -113
  128. package/esm2022/lib/types.mjs +0 -118
  129. package/esm2022/lib/utils/arraybuffers.mjs +0 -46
  130. package/esm2022/lib/utils/arrays.mjs +0 -10
  131. package/esm2022/lib/utils/dates.mjs +0 -18
  132. package/esm2022/lib/utils/durations.mjs +0 -40
  133. package/esm2022/lib/utils/enums.mjs +0 -61
  134. package/esm2022/lib/utils/http.mjs +0 -95
  135. package/esm2022/lib/utils/index.mjs +0 -10
  136. package/esm2022/lib/utils/objects.mjs +0 -204
  137. package/esm2022/lib/utils/odata.mjs +0 -22
  138. package/esm2022/lib/utils/strings.mjs +0 -20
  139. package/esm2022/lib/utils/types.mjs +0 -136
  140. package/esm2022/lib/utils/urls.mjs +0 -24
  141. package/esm2022/public-api.mjs +0 -5
  142. package/lib/annotations.d.ts +0 -75
  143. package/lib/api.d.ts +0 -108
  144. package/lib/cache/cache.d.ts +0 -104
  145. package/lib/cache/index.d.ts +0 -3
  146. package/lib/cache/memory.d.ts +0 -19
  147. package/lib/cache/storage.d.ts +0 -35
  148. package/lib/client.d.ts +0 -613
  149. package/lib/constants.d.ts +0 -70
  150. package/lib/helper.d.ts +0 -75
  151. package/lib/index.d.ts +0 -14
  152. package/lib/loaders.d.ts +0 -21
  153. package/lib/metadata/csdl/csdl-annotation.d.ts +0 -159
  154. package/lib/metadata/csdl/csdl-entity-container.d.ts +0 -31
  155. package/lib/metadata/csdl/csdl-entity-set.d.ts +0 -25
  156. package/lib/metadata/csdl/csdl-enum-type.d.ts +0 -37
  157. package/lib/metadata/csdl/csdl-function-action.d.ts +0 -148
  158. package/lib/metadata/csdl/csdl-navigation-property-binding.d.ts +0 -12
  159. package/lib/metadata/csdl/csdl-reference.d.ts +0 -53
  160. package/lib/metadata/csdl/csdl-schema.d.ts +0 -37
  161. package/lib/metadata/csdl/csdl-singleton.d.ts +0 -21
  162. package/lib/metadata/csdl/csdl-structural-property.d.ts +0 -86
  163. package/lib/metadata/csdl/csdl-structured-type.d.ts +0 -94
  164. package/lib/metadata/csdl/csdl-type-definition.d.ts +0 -25
  165. package/lib/metadata/index.d.ts +0 -2
  166. package/lib/metadata/metadata.d.ts +0 -23
  167. package/lib/metadata/parser.d.ts +0 -110
  168. package/lib/models/collection.d.ts +0 -183
  169. package/lib/models/index.d.ts +0 -3
  170. package/lib/models/model.d.ts +0 -176
  171. package/lib/models/options.d.ts +0 -368
  172. package/lib/module.d.ts +0 -19
  173. package/lib/options.d.ts +0 -101
  174. package/lib/resources/index.d.ts +0 -6
  175. package/lib/resources/options.d.ts +0 -18
  176. package/lib/resources/path/handlers.d.ts +0 -29
  177. package/lib/resources/path/index.d.ts +0 -2
  178. package/lib/resources/path/segments.d.ts +0 -54
  179. package/lib/resources/query/builder.d.ts +0 -103
  180. package/lib/resources/query/expressions/apply.d.ts +0 -125
  181. package/lib/resources/query/expressions/base.d.ts +0 -25
  182. package/lib/resources/query/expressions/compute.d.ts +0 -39
  183. package/lib/resources/query/expressions/count.d.ts +0 -58
  184. package/lib/resources/query/expressions/expand.d.ts +0 -68
  185. package/lib/resources/query/expressions/filter.d.ts +0 -76
  186. package/lib/resources/query/expressions/index.d.ts +0 -9
  187. package/lib/resources/query/expressions/orderby.d.ts +0 -54
  188. package/lib/resources/query/expressions/search.d.ts +0 -62
  189. package/lib/resources/query/expressions/select.d.ts +0 -33
  190. package/lib/resources/query/expressions/syntax.d.ts +0 -313
  191. package/lib/resources/query/handlers.d.ts +0 -258
  192. package/lib/resources/query/index.d.ts +0 -4
  193. package/lib/resources/query/options.d.ts +0 -60
  194. package/lib/resources/request.d.ts +0 -64
  195. package/lib/resources/resource.d.ts +0 -161
  196. package/lib/resources/response.d.ts +0 -82
  197. package/lib/resources/types/action.d.ts +0 -84
  198. package/lib/resources/types/batch.d.ts +0 -62
  199. package/lib/resources/types/count.d.ts +0 -20
  200. package/lib/resources/types/entity-set.d.ts +0 -79
  201. package/lib/resources/types/entity.d.ts +0 -54
  202. package/lib/resources/types/function.d.ts +0 -108
  203. package/lib/resources/types/index.d.ts +0 -14
  204. package/lib/resources/types/media.d.ts +0 -28
  205. package/lib/resources/types/metadata.d.ts +0 -13
  206. package/lib/resources/types/navigation-property.d.ts +0 -157
  207. package/lib/resources/types/options.d.ts +0 -32
  208. package/lib/resources/types/property.d.ts +0 -115
  209. package/lib/resources/types/reference.d.ts +0 -74
  210. package/lib/resources/types/singleton.d.ts +0 -87
  211. package/lib/resources/types/value.d.ts +0 -19
  212. package/lib/schema/annotation.d.ts +0 -28
  213. package/lib/schema/callable.d.ts +0 -41
  214. package/lib/schema/element.d.ts +0 -52
  215. package/lib/schema/entity-container.d.ts +0 -10
  216. package/lib/schema/entity-set.d.ts +0 -10
  217. package/lib/schema/enum-type.d.ts +0 -55
  218. package/lib/schema/index.d.ts +0 -8
  219. package/lib/schema/parsers/callable.d.ts +0 -47
  220. package/lib/schema/parsers/edm.d.ts +0 -4
  221. package/lib/schema/parsers/enum-type.d.ts +0 -56
  222. package/lib/schema/parsers/index.d.ts +0 -4
  223. package/lib/schema/parsers/structured-type.d.ts +0 -172
  224. package/lib/schema/schema.d.ts +0 -26
  225. package/lib/schema/singleton.d.ts +0 -10
  226. package/lib/schema/structured-type.d.ts +0 -152
  227. package/lib/services/base.d.ts +0 -20
  228. package/lib/services/entity-set.d.ts +0 -120
  229. package/lib/services/entity.d.ts +0 -11
  230. package/lib/services/factory.d.ts +0 -33
  231. package/lib/services/index.d.ts +0 -4
  232. package/lib/services/singleton.d.ts +0 -44
  233. package/lib/settings.d.ts +0 -26
  234. package/lib/types.d.ts +0 -283
  235. package/lib/utils/arraybuffers.d.ts +0 -4
  236. package/lib/utils/arrays.d.ts +0 -3
  237. package/lib/utils/dates.d.ts +0 -3
  238. package/lib/utils/durations.d.ts +0 -14
  239. package/lib/utils/enums.d.ts +0 -23
  240. package/lib/utils/http.d.ts +0 -22
  241. package/lib/utils/index.d.ts +0 -9
  242. package/lib/utils/objects.d.ts +0 -37
  243. package/lib/utils/odata.d.ts +0 -4
  244. package/lib/utils/strings.d.ts +0 -7
  245. package/lib/utils/types.d.ts +0 -11
  246. package/lib/utils/urls.d.ts +0 -4
  247. package/public-api.d.ts +0 -1
package/lib/types.d.ts DELETED
@@ -1,283 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- export type ODataVersion = '2.0' | '3.0' | '4.0';
3
- export type FetchPolicy = 'cache-first' | 'cache-and-network' | 'network-only' | 'no-cache' | 'cache-only';
4
- export type ODataMetadataType = 'minimal' | 'full' | 'none';
5
- export type CacheCacheability = 'public' | 'private' | 'no-cache' | 'no-store';
6
- export declare enum PathSegment {
7
- batch = "batch",
8
- metadata = "metadata",
9
- entitySet = "entitySet",
10
- singleton = "singleton",
11
- type = "type",
12
- property = "property",
13
- navigationProperty = "navigationProperty",
14
- reference = "reference",
15
- value = "value",
16
- count = "count",
17
- function = "function",
18
- action = "action"
19
- }
20
- export declare enum QueryOption {
21
- select = "select",
22
- expand = "expand",
23
- compute = "compute",
24
- apply = "apply",
25
- filter = "filter",
26
- search = "search",
27
- transform = "transform",
28
- orderBy = "orderBy",
29
- top = "top",
30
- skip = "skip",
31
- skiptoken = "skiptoken",
32
- format = "format",
33
- levels = "levels",
34
- count = "count"
35
- }
36
- export declare enum EdmType {
37
- Guid = "Edm.Guid",
38
- Int16 = "Edm.Int16",
39
- String = "Edm.String",
40
- Boolean = "Edm.Boolean",
41
- Byte = "Edm.Byte",
42
- SByte = "Edm.SByte",
43
- Int32 = "Edm.Int32",
44
- Int64 = "Edm.Int64",
45
- Date = "Edm.Date",
46
- TimeOfDay = "Edm.TimeOfDay",
47
- DateTimeOffset = "Edm.DateTimeOffset",
48
- Duration = "Edm.Duration",
49
- Decimal = "Edm.Decimal",
50
- Double = "Edm.Double",
51
- Single = "Edm.Single",
52
- Binary = "Edm.Binary",
53
- Stream = "Edm.Stream",
54
- Geography = "Edm.Geography",
55
- GeographyPoint = "Edm.GeographyPoint",
56
- GeographyLineString = "Edm.GeographyLineString",
57
- GeographyPolygon = "Edm.GeographyPolygon",
58
- GeographyMultiPoint = "Edm.GeographyMultiPoint",
59
- GeographyMultiLineString = "Edm.GeographyMultiLineString",
60
- GeographyMultiPolygon = "Edm.GeographyMultiPolygon",
61
- GeographyCollection = "Edm.GeographyCollection",
62
- Geometry = "Edm.Geometry",
63
- GeometryPoint = "Edm.GeometryPoint",
64
- GeometryLineString = "Edm.GeometryLineString",
65
- GeometryPolygon = "Edm.GeometryPolygon",
66
- GeometryMultiPoint = "Edm.GeometryMultiPoint",
67
- GeometryMultiLineString = "Edm.GeometryMultiLineString",
68
- GeometryMultiPolygon = "Edm.GeometryMultiPolygon",
69
- GeometryCollection = "Edm.GeometryCollection"
70
- }
71
- export declare enum JsonType {
72
- string = "string",
73
- number = "number",
74
- integer = "integer",
75
- object = "object",
76
- array = "array",
77
- boolean = "boolean",
78
- null = "null"
79
- }
80
- export interface ApiOptions {
81
- version?: ODataVersion;
82
- params?: {
83
- [param: string]: string | string[];
84
- };
85
- headers?: {
86
- [param: string]: string | string[];
87
- };
88
- withCredentials?: boolean;
89
- accept?: {
90
- exponentialDecimals?: boolean;
91
- metadata?: ODataMetadataType;
92
- ieee754Compatible?: boolean;
93
- streaming?: boolean;
94
- };
95
- etag?: {
96
- ifMatch?: boolean;
97
- ifNoneMatch?: boolean;
98
- };
99
- prefer?: {
100
- maxPageSize?: number;
101
- return?: 'representation' | 'minimal';
102
- continueOnError?: boolean;
103
- includeAnnotations?: string;
104
- };
105
- stripMetadata?: ODataMetadataType;
106
- fetchPolicy?: FetchPolicy;
107
- bodyQueryOptions?: QueryOption[];
108
- stringAsEnum?: boolean;
109
- deleteRefBy?: 'path' | 'id';
110
- nonParenthesisForEmptyParameterFunction?: boolean;
111
- jsonBatchFormat?: boolean;
112
- relativeUrls?: boolean;
113
- }
114
- export interface ParserOptions {
115
- version?: ODataVersion;
116
- exponentialDecimals?: boolean;
117
- metadata?: ODataMetadataType;
118
- ieee754Compatible?: boolean;
119
- streaming?: boolean;
120
- stringAsEnum?: boolean;
121
- deleteRefBy?: 'path' | 'id';
122
- nonParenthesisForEmptyParameterFunction?: boolean;
123
- }
124
- export interface ResponseOptions extends ParserOptions {
125
- cacheability?: CacheCacheability;
126
- maxAge?: number;
127
- }
128
- export interface StructuredTypeFieldOptions extends ParserOptions {
129
- field: StructuredTypeFieldConfig;
130
- }
131
- export interface Parser<T> {
132
- deserialize(value: any, options?: ParserOptions | StructuredTypeFieldOptions): T;
133
- serialize(value: any, options?: ParserOptions | StructuredTypeFieldOptions): any;
134
- encode(value: any, options?: ParserOptions | StructuredTypeFieldOptions): any;
135
- }
136
- export interface FieldParser<T> extends Parser<T> {
137
- nullable?: boolean;
138
- default?: any;
139
- maxLength?: number;
140
- precision?: number;
141
- scale?: number | 'variable';
142
- }
143
- export declare const NONE_PARSER: Parser<any>;
144
- export interface Cache {
145
- put<T>(key: string, payload: T, ...opts: any[]): void;
146
- get<T>(key: string, ...opts: any[]): T | undefined;
147
- }
148
- export type ApiConfig = {
149
- serviceRootUrl: string;
150
- metadataUrl?: string;
151
- name?: string;
152
- version?: ODataVersion;
153
- default?: boolean;
154
- creation?: Date;
155
- cache?: Cache;
156
- errorHandler?: (error: any, caught: Observable<any>) => Observable<never>;
157
- options?: ApiOptions;
158
- parsers?: {
159
- [type: string]: Parser<any>;
160
- };
161
- schemas?: SchemaConfig[];
162
- references?: ReferenceConfig[];
163
- };
164
- export type AnnotationConfig = {
165
- term: string;
166
- string?: string;
167
- bool?: boolean;
168
- int?: number;
169
- permissions?: string[];
170
- properties?: string[];
171
- };
172
- export type ReferenceConfig = {
173
- uri: string;
174
- includes?: string;
175
- annotations?: AnnotationConfig[];
176
- enums?: EnumTypeConfig[];
177
- entities?: StructuredTypeConfig[];
178
- callables?: CallableConfig[];
179
- containers?: EntityContainerConfig[];
180
- };
181
- export type SchemaConfig = {
182
- namespace: string;
183
- alias?: string;
184
- annotations?: AnnotationConfig[];
185
- enums?: EnumTypeConfig[];
186
- entities?: StructuredTypeConfig[];
187
- callables?: CallableConfig[];
188
- containers?: EntityContainerConfig[];
189
- };
190
- export type EntityContainerConfig = {
191
- name: string;
192
- annotations?: AnnotationConfig[];
193
- entitySets?: EntitySetConfig[];
194
- singletons?: SingletonConfig[];
195
- };
196
- export type EnumTypeFieldConfig = {
197
- value: number;
198
- annotations?: AnnotationConfig[];
199
- };
200
- export type EnumTypeConfig = {
201
- name: string;
202
- flags?: boolean;
203
- annotations?: AnnotationConfig[];
204
- members: {
205
- [name: string]: number;
206
- } | {
207
- [value: number]: string;
208
- };
209
- fields: {
210
- [member: string]: EnumTypeFieldConfig;
211
- };
212
- };
213
- export type StructuredTypeFieldConfig = {
214
- type: string;
215
- default?: any;
216
- maxLength?: number;
217
- key?: boolean;
218
- collection?: boolean;
219
- nullable?: boolean;
220
- navigation?: boolean;
221
- precision?: number;
222
- annotations?: AnnotationConfig[];
223
- scale?: number | 'variable';
224
- referentials?: {
225
- property: string;
226
- referencedProperty: string;
227
- }[];
228
- referential?: string;
229
- referenced?: string;
230
- };
231
- export type StructuredTypeConfig = {
232
- name: string;
233
- base?: string;
234
- open?: boolean;
235
- model?: {
236
- new (...params: any[]): any;
237
- };
238
- collection?: {
239
- new (...params: any[]): any;
240
- };
241
- annotations?: AnnotationConfig[];
242
- keys?: {
243
- name: string;
244
- alias?: string;
245
- }[];
246
- fields?: {
247
- [name: string]: StructuredTypeFieldConfig;
248
- };
249
- };
250
- export type ParameterConfig = {
251
- type: string;
252
- nullable?: boolean;
253
- collection?: boolean;
254
- };
255
- export type CallableConfig = {
256
- name: string;
257
- entitySetPath?: string;
258
- bound?: boolean;
259
- composable?: boolean;
260
- parameters?: {
261
- [name: string]: ParameterConfig;
262
- };
263
- return?: {
264
- type: string;
265
- collection?: boolean;
266
- };
267
- };
268
- export type EntitySetConfig = {
269
- name: string;
270
- entityType: string;
271
- service: {
272
- new (...params: any[]): any;
273
- };
274
- annotations?: AnnotationConfig[];
275
- };
276
- export type SingletonConfig = {
277
- name: string;
278
- type: string;
279
- service: {
280
- new (...params: any[]): any;
281
- };
282
- annotations?: AnnotationConfig[];
283
- };
@@ -1,4 +0,0 @@
1
- export declare const ArrayBuffers: {
2
- toArrayBuffer(v: string): ArrayBuffer;
3
- toString(v: ArrayBuffer): string;
4
- };
@@ -1,3 +0,0 @@
1
- export declare const Arrays: {
2
- zip: (...arrays: any[][]) => any[][];
3
- };
@@ -1,3 +0,0 @@
1
- export declare const Dates: {
2
- isoStringToDate(value: any): any;
3
- };
@@ -1,14 +0,0 @@
1
- export type Duration = {
2
- sign?: 1 | -1;
3
- years?: number;
4
- months?: number;
5
- weeks?: number;
6
- days?: number;
7
- hours?: number;
8
- minutes?: number;
9
- seconds?: number;
10
- };
11
- export declare const Durations: {
12
- toDuration(v: string): Duration;
13
- toString(v: Duration): string;
14
- };
@@ -1,23 +0,0 @@
1
- export declare const Enums: {
2
- names<E extends {
3
- [name: string]: any;
4
- }>(enums: E): string[];
5
- values<E extends {
6
- [name: string]: any;
7
- }>(enums: E): number[];
8
- toValue<E extends {
9
- [name: string]: any;
10
- }>(enums: E, value: any): number | undefined;
11
- toValues<E extends {
12
- [name: string]: any;
13
- }>(enums: E, value: any): number[];
14
- toName<E extends {
15
- [name: string]: any;
16
- }>(enums: E, value: any): string | undefined;
17
- toNames<E extends {
18
- [name: string]: any;
19
- }>(enums: E, value: any): string[];
20
- toFlags<E extends {
21
- [name: string]: any;
22
- }>(enums: E, value: any): string[];
23
- };
@@ -1,22 +0,0 @@
1
- import { HttpHeaders, HttpParams } from '@angular/common/http';
2
- export declare const Http: {
3
- mergeHttpHeaders(...values: (HttpHeaders | {
4
- [header: string]: string | string[];
5
- })[]): HttpHeaders;
6
- mergeHttpParams(...values: (HttpParams | {
7
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
8
- })[]): HttpParams;
9
- splitHttpParams(params: HttpParams, keys: string[]): [HttpParams, HttpParams];
10
- withoutHttpParams(params: HttpParams, keys: string[]): HttpParams;
11
- resolveHeaderKey(headers: HttpHeaders | {
12
- [param: string]: string | string[];
13
- }, options: string[]): string | undefined;
14
- headerValue(header: string): string;
15
- parseResponseStatus(line: string): {
16
- status: string;
17
- code: number;
18
- message: string;
19
- };
20
- boundaryDelimiter(contentType: string): string;
21
- boundaryEnd(boundaryDelimiter: string): string;
22
- };
@@ -1,9 +0,0 @@
1
- export * from './dates';
2
- export * from './durations';
3
- export * from './enums';
4
- export * from './http';
5
- export * from './objects';
6
- export * from './odata';
7
- export * from './strings';
8
- export * from './types';
9
- export * from './urls';
@@ -1,37 +0,0 @@
1
- export declare const Objects: {
2
- set(obj: {
3
- [attr: string]: any;
4
- }, path: string, value: any): void;
5
- get(obj: {
6
- [attr: string]: any;
7
- }, path: string, def?: any): any;
8
- unset(obj: {
9
- [attr: string]: any;
10
- }, path: string): void;
11
- has(obj: {
12
- [attr: string]: any;
13
- }, path: string): boolean;
14
- merge(target: {
15
- [attr: string]: any;
16
- }, source: {
17
- [attr: string]: any;
18
- }): {
19
- [attr: string]: any;
20
- };
21
- equal(object1: {
22
- [attr: string]: any;
23
- }, object2: {
24
- [attr: string]: any;
25
- }): boolean;
26
- difference(object1: {
27
- [attr: string]: any;
28
- }, object2: {
29
- [attr: string]: any;
30
- }): {
31
- [attr: string]: any;
32
- };
33
- resolveKey(key: any, { single }?: {
34
- single?: boolean;
35
- }): any;
36
- clone(target: any, map?: WeakMap<object, any>): any;
37
- };
@@ -1,4 +0,0 @@
1
- import { CallableConfig } from '../types';
2
- export declare const OData: {
3
- mergeCallableParameters(callables: CallableConfig[]): CallableConfig[];
4
- };
@@ -1,7 +0,0 @@
1
- export declare const Strings: {
2
- uniqueId({ prefix, suffix, }?: {
3
- prefix?: string;
4
- suffix?: string;
5
- }): string;
6
- titleCase(text: string): string;
7
- };
@@ -1,11 +0,0 @@
1
- export declare const Types: {
2
- rawType(value: any): string;
3
- isObject(value: any): boolean;
4
- isPlainObject(value: any): boolean;
5
- isFunction(value: any): boolean;
6
- isArray(value: any): boolean;
7
- isMap(value: any): boolean;
8
- isEmpty(value: any): boolean;
9
- isEqual(value1: any, value2: any): boolean;
10
- clone(target: any): any;
11
- };
@@ -1,4 +0,0 @@
1
- export declare const Urls: {
2
- parseQueryString(query: string): {};
3
- escapeIllegalChars(string: string): string;
4
- };
package/public-api.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './lib';