@odatano/core 1.11.0 → 2.0.0-rc.1

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 (111) hide show
  1. package/@cds-models/CardanoIndexerService/index.d.ts +142 -0
  2. package/@cds-models/CardanoIndexerService/index.js +23 -0
  3. package/@cds-models/CardanoODataService/index.d.ts +693 -2172
  4. package/@cds-models/CardanoODataService/index.js +88 -390
  5. package/@cds-models/CardanoSignService/index.d.ts +443 -1574
  6. package/@cds-models/CardanoSignService/index.js +62 -293
  7. package/@cds-models/CardanoTransactionService/index.d.ts +431 -1488
  8. package/@cds-models/CardanoTransactionService/index.js +60 -271
  9. package/@cds-models/CardanoWorkerService/index.d.ts +224 -0
  10. package/@cds-models/CardanoWorkerService/index.js +32 -0
  11. package/@cds-models/_/index.d.ts +70 -40
  12. package/@cds-models/_/index.js +17 -32
  13. package/@cds-models/cds/outbox/index.d.ts +28 -0
  14. package/@cds-models/index.d.ts +225 -522
  15. package/@cds-models/index.js +35 -218
  16. package/@cds-models/odatano/cardano/index.d.ts +896 -2947
  17. package/@cds-models/odatano/cardano/index.js +109 -536
  18. package/@cds-models/sap/common/index.d.ts +196 -600
  19. package/@cds-models/sap/common/index.js +28 -269
  20. package/README.md +136 -102
  21. package/db/schema.cds +283 -1
  22. package/db/types.cds +48 -0
  23. package/package.json +41 -32
  24. package/src/index.d.ts +1 -1
  25. package/src/index.js +10 -2
  26. package/src/plugin.js +12 -2
  27. package/srv/blockchain/backends/blockfrost-backend.d.ts +21 -2
  28. package/srv/blockchain/backends/blockfrost-backend.js +68 -15
  29. package/srv/blockchain/backends/cardano-backend.d.ts +69 -0
  30. package/srv/blockchain/backends/cardano-backend.js +13 -0
  31. package/srv/blockchain/backends/koios-backend.d.ts +26 -2
  32. package/srv/blockchain/backends/koios-backend.js +147 -15
  33. package/srv/blockchain/backends/ogmios-backend.d.ts +37 -6
  34. package/srv/blockchain/backends/ogmios-backend.js +254 -5
  35. package/srv/blockchain/cardano-client.d.ts +19 -0
  36. package/srv/blockchain/cardano-client.js +36 -0
  37. package/srv/blockchain/cardano-indexer.d.ts +50 -1
  38. package/srv/blockchain/cardano-indexer.js +191 -0
  39. package/srv/blockchain/crawler/crawler.d.ts +151 -0
  40. package/srv/blockchain/crawler/crawler.js +677 -0
  41. package/srv/blockchain/crawler/hooks.d.ts +43 -0
  42. package/srv/blockchain/crawler/hooks.js +62 -0
  43. package/srv/blockchain/crawler/index.d.ts +26 -0
  44. package/srv/blockchain/crawler/index.js +135 -0
  45. package/srv/blockchain/crawler/sync-state.d.ts +94 -0
  46. package/srv/blockchain/crawler/sync-state.js +265 -0
  47. package/srv/blockchain/signing/hsm-signer.d.ts +45 -0
  48. package/srv/blockchain/signing/hsm-signer.js +8 -1
  49. package/srv/blockchain/wallet-worker/build-request.d.ts +26 -0
  50. package/srv/blockchain/wallet-worker/build-request.js +341 -0
  51. package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +86 -0
  52. package/srv/blockchain/wallet-worker/confirmation-tracker.js +228 -0
  53. package/srv/blockchain/wallet-worker/index.d.ts +14 -0
  54. package/srv/blockchain/wallet-worker/index.js +80 -0
  55. package/srv/blockchain/wallet-worker/job-store.d.ts +261 -0
  56. package/srv/blockchain/wallet-worker/job-store.js +564 -0
  57. package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +43 -0
  58. package/srv/blockchain/wallet-worker/lease-heartbeat.js +99 -0
  59. package/srv/blockchain/wallet-worker/signers.d.ts +57 -0
  60. package/srv/blockchain/wallet-worker/signers.js +131 -0
  61. package/srv/blockchain/wallet-worker/wallet-worker.d.ts +145 -0
  62. package/srv/blockchain/wallet-worker/wallet-worker.js +542 -0
  63. package/srv/cardano-indexer-service.cds +73 -0
  64. package/srv/cardano-indexer-service.d.ts +2 -0
  65. package/srv/cardano-indexer-service.js +76 -0
  66. package/srv/cardano-service.js +22 -1
  67. package/srv/cardano-tx-service.d.ts +1 -11
  68. package/srv/cardano-tx-service.js +11 -162
  69. package/srv/cardano-worker-service.cds +125 -0
  70. package/srv/cardano-worker-service.d.ts +2 -0
  71. package/srv/cardano-worker-service.js +199 -0
  72. package/srv/server.d.ts +32 -1
  73. package/srv/server.js +228 -2
  74. package/srv/utils/collections.d.ts +13 -0
  75. package/srv/utils/collections.js +24 -0
  76. package/srv/utils/crypto.d.ts +16 -0
  77. package/srv/utils/crypto.js +75 -0
  78. package/srv/utils/error-codes.d.ts +6 -0
  79. package/srv/utils/error-codes.js +6 -0
  80. package/srv/utils/errors.d.ts +12 -0
  81. package/srv/utils/errors.js +45 -0
  82. package/srv/utils/mappers.js +13 -3
  83. package/srv/utils/service-events.d.ts +26 -0
  84. package/srv/utils/service-events.js +46 -0
  85. package/srv/utils/tx-request-parsers.d.ts +58 -0
  86. package/srv/utils/tx-request-parsers.js +170 -0
  87. package/srv/utils/tx-utils.d.ts +2 -1
  88. package/srv/utils/tx-utils.js +3 -2
  89. package/srv/utils/types.d.ts +2 -1
  90. package/@cds-models/CardanoODataService/index.d.ts.map +0 -1
  91. package/@cds-models/CardanoODataService/index.js.map +0 -1
  92. package/@cds-models/CardanoODataService/index.ts +0 -776
  93. package/@cds-models/CardanoSignService/index.d.ts.map +0 -1
  94. package/@cds-models/CardanoSignService/index.js.map +0 -1
  95. package/@cds-models/CardanoSignService/index.ts +0 -569
  96. package/@cds-models/CardanoTransactionService/index.d.ts.map +0 -1
  97. package/@cds-models/CardanoTransactionService/index.js.map +0 -1
  98. package/@cds-models/CardanoTransactionService/index.ts +0 -526
  99. package/@cds-models/_/index.d.ts.map +0 -1
  100. package/@cds-models/_/index.js.map +0 -1
  101. package/@cds-models/_/index.ts +0 -96
  102. package/@cds-models/cds/outbox/index.ts +0 -27
  103. package/@cds-models/index.d.ts.map +0 -1
  104. package/@cds-models/index.js.map +0 -1
  105. package/@cds-models/index.ts +0 -245
  106. package/@cds-models/odatano/cardano/index.d.ts.map +0 -1
  107. package/@cds-models/odatano/cardano/index.js.map +0 -1
  108. package/@cds-models/odatano/cardano/index.ts +0 -789
  109. package/@cds-models/sap/common/index.d.ts.map +0 -1
  110. package/@cds-models/sap/common/index.js.map +0 -1
  111. package/@cds-models/sap/common/index.ts +0 -249
@@ -1,678 +1,274 @@
1
+ // This is an automatically generated file. Please do not change its contents manually!
1
2
  import * as __ from './../../_';
2
3
  import * as _ from './../..';
4
+
3
5
  export type Locale = string;
6
+ // the following represents the CDS aspect 'CodeList'
4
7
  export declare function _CodeListAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
5
- new (...args: any[]): {
6
- name?: string | null;
7
- descr?: string | null;
8
- };
9
- readonly kind: "entity" | "type" | "aspect";
10
- readonly keys: __.KeysOf<{
11
- name?: string | null;
12
- descr?: string | null;
13
- }>;
14
- readonly elements: __.ElementsOf<{
15
- name?: string | null;
16
- descr?: string | null;
17
- }>;
18
- readonly actions: globalThis.Record<never, never>;
19
- } & TBase;
20
- declare const CodeList_base: {
21
- new (...args: any[]): {
22
- name?: string | null;
23
- descr?: string | null;
24
- };
25
- readonly kind: "entity" | "type" | "aspect";
26
- readonly keys: __.KeysOf<{
27
- name?: string | null;
28
- descr?: string | null;
29
- }>;
30
- readonly elements: __.ElementsOf<{
31
- name?: string | null;
32
- descr?: string | null;
33
- }>;
8
+ new (...args: any[]): {
9
+ name?: string | null
10
+ descr?: string | null
11
+ } & InstanceType<TBase>
12
+ readonly kind: 'aspect';
13
+ readonly keys: __.KeysOf<CodeList>;
14
+ readonly elements: __.ElementsOf<CodeList>;
34
15
  readonly actions: globalThis.Record<never, never>;
35
- } & typeof __.Entity;
16
+ };
36
17
  /**
37
18
  * Aspect for a code list with name and description
38
- *
19
+ *
39
20
  * See https://cap.cloud.sap/docs/cds/common#aspect-codelist
40
21
  */
41
- export declare class CodeList extends CodeList_base {
22
+ export class CodeList extends _CodeListAspect(__.Entity) {
42
23
  }
43
24
  /**
44
25
  * Aspect for a code list with name and description
45
- *
26
+ *
46
27
  * See https://cap.cloud.sap/docs/cds/common#aspect-codelist
47
28
  */
48
- export declare class CodeList_ extends Array<CodeList> {
49
- $count?: number;
29
+ export class CodeList_ extends Array<CodeList> {
30
+ $count?: number
50
31
  }
32
+ // the following represents the CDS aspect 'TextsAspect'
51
33
  export declare function _TextsAspectAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
52
- new (...args: any[]): {
53
- /** Type for a language code */
54
- locale?: __.Key<Locale>;
55
- };
56
- readonly kind: "entity" | "type" | "aspect";
57
- readonly keys: __.KeysOf<{
58
- /** Type for a language code */
59
- locale?: __.Key<Locale>;
60
- }>;
61
- readonly elements: __.ElementsOf<{
62
- /** Type for a language code */
63
- locale?: __.Key<Locale>;
64
- }>;
65
- readonly actions: globalThis.Record<never, never>;
66
- } & TBase;
67
- declare const TextsAspect_base: {
68
- new (...args: any[]): {
69
- /** Type for a language code */
70
- locale?: __.Key<Locale>;
71
- };
72
- readonly kind: "entity" | "type" | "aspect";
73
- readonly keys: __.KeysOf<{
74
- /** Type for a language code */
75
- locale?: __.Key<Locale>;
76
- }>;
77
- readonly elements: __.ElementsOf<{
78
- /** Type for a language code */
79
- locale?: __.Key<Locale>;
80
- }>;
34
+ new (...args: any[]): {
35
+ /** Type for a language code */
36
+ locale?: __.Key<Locale>
37
+ } & InstanceType<TBase>
38
+ readonly kind: 'aspect';
39
+ readonly keys: __.KeysOf<TextsAspect>;
40
+ readonly elements: __.ElementsOf<TextsAspect>;
81
41
  readonly actions: globalThis.Record<never, never>;
82
- } & typeof __.Entity;
83
- export declare class TextsAspect extends TextsAspect_base {
42
+ };
43
+ export class TextsAspect extends _TextsAspectAspect(__.Entity) {
84
44
  }
85
- export declare class TextsAspect_ extends Array<TextsAspect> {
86
- $count?: number;
45
+ export class TextsAspect_ extends Array<TextsAspect> {
46
+ $count?: number
87
47
  }
48
+ // the following represents the CDS aspect 'FlowHistory'
88
49
  export declare function _FlowHistoryAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
89
- new (...args: any[]): {
90
- transitions_?: __.Composition.of.many<Array<{
91
- timestamp?: __.Key<__.DeepRequired<_.managed>["createdAt"]>;
92
- user?: __.DeepRequired<_.managed>["createdBy"] | null;
93
- status?: string | null;
94
- comment?: string | null;
95
- }>>;
96
- };
97
- readonly kind: "entity" | "type" | "aspect";
98
- readonly keys: __.KeysOf<{
99
- transitions_?: __.Composition.of.many<Array<{
100
- timestamp?: __.Key<__.DeepRequired<_.managed>["createdAt"]>;
101
- user?: __.DeepRequired<_.managed>["createdBy"] | null;
102
- status?: string | null;
103
- comment?: string | null;
104
- }>>;
105
- }>;
106
- readonly elements: __.ElementsOf<{
107
- transitions_?: __.Composition.of.many<Array<{
108
- timestamp?: __.Key<__.DeepRequired<_.managed>["createdAt"]>;
109
- user?: __.DeepRequired<_.managed>["createdBy"] | null;
110
- status?: string | null;
111
- comment?: string | null;
112
- }>>;
113
- }>;
114
- readonly actions: globalThis.Record<never, never>;
115
- } & TBase;
116
- declare const FlowHistory_base: {
117
- new (...args: any[]): {
118
- transitions_?: {
119
- timestamp?: __.Key<__.DeepRequired<_.managed>["createdAt"]>;
120
- user?: __.DeepRequired<_.managed>["createdBy"] | null;
121
- status?: string | null;
122
- comment?: string | null;
123
- }[] | undefined;
124
- };
125
- readonly kind: "entity" | "type" | "aspect";
126
- readonly keys: __.KeysOf<{
127
- transitions_?: {
128
- timestamp?: __.Key<__.DeepRequired<_.managed>["createdAt"]>;
129
- user?: __.DeepRequired<_.managed>["createdBy"] | null;
130
- status?: string | null;
131
- comment?: string | null;
132
- }[] | undefined;
133
- }>;
134
- readonly elements: __.ElementsOf<{
135
- transitions_?: {
136
- timestamp?: __.Key<__.DeepRequired<_.managed>["createdAt"]>;
137
- user?: __.DeepRequired<_.managed>["createdBy"] | null;
138
- status?: string | null;
139
- comment?: string | null;
140
- }[] | undefined;
141
- }>;
50
+ new (...args: any[]): {
51
+ transitions_?: __.Composition.of.many<Array<{ timestamp?: __.Key<__.DeepRequired<_.managed>['createdAt']>, user?: __.DeepRequired<_.managed>['createdBy'] | null, status?: string | null, comment?: string | null, }>>
52
+ } & InstanceType<TBase>
53
+ readonly kind: 'aspect';
54
+ readonly keys: __.KeysOf<FlowHistory>;
55
+ readonly elements: __.ElementsOf<FlowHistory>;
142
56
  readonly actions: globalThis.Record<never, never>;
143
- } & typeof __.Entity;
144
- export declare class FlowHistory extends FlowHistory_base {
57
+ };
58
+ export class FlowHistory extends _FlowHistoryAspect(__.Entity) {
145
59
  }
146
- export declare class FlowHistory_ extends Array<FlowHistory> {
147
- $count?: number;
60
+ export class FlowHistory_ extends Array<FlowHistory> {
61
+ $count?: number
148
62
  }
63
+ // entity 'Language'
149
64
  export declare function _LanguageAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
150
- new (...args: any[]): {
151
- /** Type for a language code */
152
- code?: __.Key<Locale>;
153
- texts?: __.Composition.of.many<Languages.texts>;
154
- localized?: __.Association.to<Languages.text> | null;
155
- name?: string | null;
156
- descr?: string | null;
157
- };
158
- readonly kind: "entity" | "type" | "aspect";
159
- readonly keys: __.KeysOf<{
160
- /** Type for a language code */
161
- code?: __.Key<Locale>;
162
- texts?: __.Composition.of.many<Languages.texts>;
163
- localized?: __.Association.to<Languages.text> | null;
164
- name?: string | null;
165
- descr?: string | null;
166
- }>;
167
- readonly elements: __.ElementsOf<{
168
- /** Type for a language code */
169
- code?: __.Key<Locale>;
170
- texts?: __.Composition.of.many<Languages.texts>;
171
- localized?: __.Association.to<Languages.text> | null;
172
- name?: string | null;
173
- descr?: string | null;
174
- }>;
175
- readonly actions: typeof CodeList.actions & globalThis.Record<never, never>;
176
- } & TBase;
177
- declare const Language_base: {
178
- new (...args: any[]): {
179
- /** Type for a language code */
180
- code?: __.Key<Locale>;
181
- texts?: __.Composition.of.many<Languages.texts>;
182
- localized?: __.Association.to<Languages.text> | null;
183
- name?: string | null;
184
- descr?: string | null;
185
- };
186
- readonly kind: "entity" | "type" | "aspect";
187
- readonly keys: __.KeysOf<{
188
- /** Type for a language code */
189
- code?: __.Key<Locale>;
190
- texts?: __.Composition.of.many<Languages.texts>;
191
- localized?: __.Association.to<Languages.text> | null;
192
- name?: string | null;
193
- descr?: string | null;
194
- }>;
195
- readonly elements: __.ElementsOf<{
196
- /** Type for a language code */
197
- code?: __.Key<Locale>;
198
- texts?: __.Composition.of.many<Languages.texts>;
199
- localized?: __.Association.to<Languages.text> | null;
200
- name?: string | null;
201
- descr?: string | null;
202
- }>;
65
+ new (...args: any[]): {
66
+ name?: string | null
67
+ descr?: string | null
68
+ /** Type for a language code */
69
+ code?: __.Key<Locale>
70
+ texts?: __.Composition.of.many<Languages.texts>
71
+ localized?: __.Association.to<Languages.text> | null
72
+ } & InstanceType<ReturnType<typeof _CodeListAspect<TBase>>>
73
+ readonly kind: 'entity';
74
+ readonly keys: __.KeysOf<Language>;
75
+ readonly elements: __.ElementsOf<Language>;
203
76
  readonly actions: typeof CodeList.actions & globalThis.Record<never, never>;
204
- } & typeof __.Entity;
77
+ };
205
78
  /**
206
79
  * Code list for languages
207
- *
80
+ *
208
81
  * See https://cap.cloud.sap/docs/cds/common#entity-languages
209
82
  */
210
- export declare class Language extends Language_base {
83
+ export class Language extends _LanguageAspect(__.Entity) {
211
84
  }
212
85
  /**
213
86
  * Code list for languages
214
- *
87
+ *
215
88
  * See https://cap.cloud.sap/docs/cds/common#entity-languages
216
89
  */
217
- export declare class Languages extends Array<Language> {
218
- $count?: number;
90
+ export class Languages extends Array<Language> {
91
+ $count?: number
219
92
  }
93
+
94
+ // entity 'Country'
220
95
  export declare function _CountryAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
221
- new (...args: any[]): {
222
- code?: __.Key<string>;
223
- texts?: __.Composition.of.many<Countries.texts>;
224
- localized?: __.Association.to<Countries.text> | null;
225
- name?: string | null;
226
- descr?: string | null;
227
- };
228
- readonly kind: "entity" | "type" | "aspect";
229
- readonly keys: __.KeysOf<{
230
- code?: __.Key<string>;
231
- texts?: __.Composition.of.many<Countries.texts>;
232
- localized?: __.Association.to<Countries.text> | null;
233
- name?: string | null;
234
- descr?: string | null;
235
- }>;
236
- readonly elements: __.ElementsOf<{
237
- code?: __.Key<string>;
238
- texts?: __.Composition.of.many<Countries.texts>;
239
- localized?: __.Association.to<Countries.text> | null;
240
- name?: string | null;
241
- descr?: string | null;
242
- }>;
243
- readonly actions: typeof CodeList.actions & globalThis.Record<never, never>;
244
- } & TBase;
245
- declare const Country_base: {
246
- new (...args: any[]): {
247
- code?: __.Key<string>;
248
- texts?: __.Composition.of.many<Countries.texts>;
249
- localized?: __.Association.to<Countries.text> | null;
250
- name?: string | null;
251
- descr?: string | null;
252
- };
253
- readonly kind: "entity" | "type" | "aspect";
254
- readonly keys: __.KeysOf<{
255
- code?: __.Key<string>;
256
- texts?: __.Composition.of.many<Countries.texts>;
257
- localized?: __.Association.to<Countries.text> | null;
258
- name?: string | null;
259
- descr?: string | null;
260
- }>;
261
- readonly elements: __.ElementsOf<{
262
- code?: __.Key<string>;
263
- texts?: __.Composition.of.many<Countries.texts>;
264
- localized?: __.Association.to<Countries.text> | null;
265
- name?: string | null;
266
- descr?: string | null;
267
- }>;
96
+ new (...args: any[]): {
97
+ name?: string | null
98
+ descr?: string | null
99
+ code?: __.Key<string>
100
+ texts?: __.Composition.of.many<Countries.texts>
101
+ localized?: __.Association.to<Countries.text> | null
102
+ } & InstanceType<ReturnType<typeof _CodeListAspect<TBase>>>
103
+ readonly kind: 'entity';
104
+ readonly keys: __.KeysOf<Country>;
105
+ readonly elements: __.ElementsOf<Country>;
268
106
  readonly actions: typeof CodeList.actions & globalThis.Record<never, never>;
269
- } & typeof __.Entity;
107
+ };
270
108
  /**
271
109
  * Code list for countries
272
- *
110
+ *
273
111
  * See https://cap.cloud.sap/docs/cds/common#entity-countries
274
112
  */
275
- export declare class Country extends Country_base {
113
+ export class Country extends _CountryAspect(__.Entity) {
276
114
  }
277
115
  /**
278
116
  * Code list for countries
279
- *
117
+ *
280
118
  * See https://cap.cloud.sap/docs/cds/common#entity-countries
281
119
  */
282
- export declare class Countries extends Array<Country> {
283
- $count?: number;
120
+ export class Countries extends Array<Country> {
121
+ $count?: number
284
122
  }
123
+
124
+ // entity 'Currency'
285
125
  export declare function _CurrencyAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
286
- new (...args: any[]): {
287
- code?: __.Key<string>;
288
- symbol?: string | null;
289
- minorUnit?: number | null;
290
- texts?: __.Composition.of.many<Currencies.texts>;
291
- localized?: __.Association.to<Currencies.text> | null;
292
- name?: string | null;
293
- descr?: string | null;
294
- };
295
- readonly kind: "entity" | "type" | "aspect";
296
- readonly keys: __.KeysOf<{
297
- code?: __.Key<string>;
298
- symbol?: string | null;
299
- minorUnit?: number | null;
300
- texts?: __.Composition.of.many<Currencies.texts>;
301
- localized?: __.Association.to<Currencies.text> | null;
302
- name?: string | null;
303
- descr?: string | null;
304
- }>;
305
- readonly elements: __.ElementsOf<{
306
- code?: __.Key<string>;
307
- symbol?: string | null;
308
- minorUnit?: number | null;
309
- texts?: __.Composition.of.many<Currencies.texts>;
310
- localized?: __.Association.to<Currencies.text> | null;
311
- name?: string | null;
312
- descr?: string | null;
313
- }>;
314
- readonly actions: typeof CodeList.actions & globalThis.Record<never, never>;
315
- } & TBase;
316
- declare const Currency_base: {
317
- new (...args: any[]): {
318
- code?: __.Key<string>;
319
- symbol?: string | null;
320
- minorUnit?: number | null;
321
- texts?: __.Composition.of.many<Currencies.texts>;
322
- localized?: __.Association.to<Currencies.text> | null;
323
- name?: string | null;
324
- descr?: string | null;
325
- };
326
- readonly kind: "entity" | "type" | "aspect";
327
- readonly keys: __.KeysOf<{
328
- code?: __.Key<string>;
329
- symbol?: string | null;
330
- minorUnit?: number | null;
331
- texts?: __.Composition.of.many<Currencies.texts>;
332
- localized?: __.Association.to<Currencies.text> | null;
333
- name?: string | null;
334
- descr?: string | null;
335
- }>;
336
- readonly elements: __.ElementsOf<{
337
- code?: __.Key<string>;
338
- symbol?: string | null;
339
- minorUnit?: number | null;
340
- texts?: __.Composition.of.many<Currencies.texts>;
341
- localized?: __.Association.to<Currencies.text> | null;
342
- name?: string | null;
343
- descr?: string | null;
344
- }>;
126
+ new (...args: any[]): {
127
+ name?: string | null
128
+ descr?: string | null
129
+ code?: __.Key<string>
130
+ symbol?: string | null
131
+ minorUnit?: number | null
132
+ texts?: __.Composition.of.many<Currencies.texts>
133
+ localized?: __.Association.to<Currencies.text> | null
134
+ } & InstanceType<ReturnType<typeof _CodeListAspect<TBase>>>
135
+ readonly kind: 'entity';
136
+ readonly keys: __.KeysOf<Currency>;
137
+ readonly elements: __.ElementsOf<Currency>;
345
138
  readonly actions: typeof CodeList.actions & globalThis.Record<never, never>;
346
- } & typeof __.Entity;
139
+ };
347
140
  /**
348
141
  * Code list for currencies
349
- *
142
+ *
350
143
  * See https://cap.cloud.sap/docs/cds/common#entity-currencies
351
144
  */
352
- export declare class Currency extends Currency_base {
145
+ export class Currency extends _CurrencyAspect(__.Entity) {
353
146
  }
354
147
  /**
355
148
  * Code list for currencies
356
- *
149
+ *
357
150
  * See https://cap.cloud.sap/docs/cds/common#entity-currencies
358
151
  */
359
- export declare class Currencies extends Array<Currency> {
360
- $count?: number;
152
+ export class Currencies extends Array<Currency> {
153
+ $count?: number
361
154
  }
155
+
156
+ // entity 'Timezone'
362
157
  export declare function _TimezoneAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
363
- new (...args: any[]): {
364
- code?: __.Key<string>;
365
- texts?: __.Composition.of.many<Timezones.texts>;
366
- localized?: __.Association.to<Timezones.text> | null;
367
- name?: string | null;
368
- descr?: string | null;
369
- };
370
- readonly kind: "entity" | "type" | "aspect";
371
- readonly keys: __.KeysOf<{
372
- code?: __.Key<string>;
373
- texts?: __.Composition.of.many<Timezones.texts>;
374
- localized?: __.Association.to<Timezones.text> | null;
375
- name?: string | null;
376
- descr?: string | null;
377
- }>;
378
- readonly elements: __.ElementsOf<{
379
- code?: __.Key<string>;
380
- texts?: __.Composition.of.many<Timezones.texts>;
381
- localized?: __.Association.to<Timezones.text> | null;
382
- name?: string | null;
383
- descr?: string | null;
384
- }>;
385
- readonly actions: typeof CodeList.actions & globalThis.Record<never, never>;
386
- } & TBase;
387
- declare const Timezone_base: {
388
- new (...args: any[]): {
389
- code?: __.Key<string>;
390
- texts?: __.Composition.of.many<Timezones.texts>;
391
- localized?: __.Association.to<Timezones.text> | null;
392
- name?: string | null;
393
- descr?: string | null;
394
- };
395
- readonly kind: "entity" | "type" | "aspect";
396
- readonly keys: __.KeysOf<{
397
- code?: __.Key<string>;
398
- texts?: __.Composition.of.many<Timezones.texts>;
399
- localized?: __.Association.to<Timezones.text> | null;
400
- name?: string | null;
401
- descr?: string | null;
402
- }>;
403
- readonly elements: __.ElementsOf<{
404
- code?: __.Key<string>;
405
- texts?: __.Composition.of.many<Timezones.texts>;
406
- localized?: __.Association.to<Timezones.text> | null;
407
- name?: string | null;
408
- descr?: string | null;
409
- }>;
158
+ new (...args: any[]): {
159
+ name?: string | null
160
+ descr?: string | null
161
+ code?: __.Key<string>
162
+ texts?: __.Composition.of.many<Timezones.texts>
163
+ localized?: __.Association.to<Timezones.text> | null
164
+ } & InstanceType<ReturnType<typeof _CodeListAspect<TBase>>>
165
+ readonly kind: 'entity';
166
+ readonly keys: __.KeysOf<Timezone>;
167
+ readonly elements: __.ElementsOf<Timezone>;
410
168
  readonly actions: typeof CodeList.actions & globalThis.Record<never, never>;
411
- } & typeof __.Entity;
169
+ };
412
170
  /**
413
171
  * Code list for time zones
414
- *
172
+ *
415
173
  * See https://cap.cloud.sap/docs/cds/common#entity-timezones
416
174
  */
417
- export declare class Timezone extends Timezone_base {
175
+ export class Timezone extends _TimezoneAspect(__.Entity) {
418
176
  }
419
177
  /**
420
178
  * Code list for time zones
421
- *
179
+ *
422
180
  * See https://cap.cloud.sap/docs/cds/common#entity-timezones
423
181
  */
424
- export declare class Timezones extends Array<Timezone> {
425
- $count?: number;
182
+ export class Timezones extends Array<Timezone> {
183
+ $count?: number
426
184
  }
427
- export declare namespace Languages {
428
- export function _textAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
429
- new (...args: any[]): {
430
- name?: string | null;
431
- descr?: string | null;
432
- /** Type for a language code */
433
- code?: __.Key<Locale>;
434
- /** Type for a language code */
435
- locale?: __.Key<Locale>;
436
- };
437
- readonly kind: "entity" | "type" | "aspect";
438
- readonly keys: __.KeysOf<{
439
- name?: string | null;
440
- descr?: string | null;
441
- /** Type for a language code */
442
- code?: __.Key<Locale>;
443
- /** Type for a language code */
444
- locale?: __.Key<Locale>;
445
- }> & typeof TextsAspect.keys;
446
- readonly elements: __.ElementsOf<{
447
- name?: string | null;
448
- descr?: string | null;
449
- /** Type for a language code */
450
- code?: __.Key<Locale>;
451
- /** Type for a language code */
452
- locale?: __.Key<Locale>;
453
- }>;
454
- readonly actions: typeof TextsAspect.actions & globalThis.Record<never, never>;
455
- } & TBase;
456
- const text_base: {
457
- new (...args: any[]): {
458
- name?: string | null;
459
- descr?: string | null;
460
- /** Type for a language code */
461
- code?: __.Key<Locale>;
462
- /** Type for a language code */
463
- locale?: __.Key<Locale>;
464
- };
465
- readonly kind: "entity" | "type" | "aspect";
466
- readonly keys: __.KeysOf<{
467
- name?: string | null;
468
- descr?: string | null;
469
- /** Type for a language code */
470
- code?: __.Key<Locale>;
471
- /** Type for a language code */
472
- locale?: __.Key<Locale>;
473
- }> & __.KeysOf<{
474
- /** Type for a language code */
475
- locale?: __.Key<Locale>;
476
- }>;
477
- readonly elements: __.ElementsOf<{
478
- name?: string | null;
479
- descr?: string | null;
480
- /** Type for a language code */
481
- code?: __.Key<Locale>;
482
- /** Type for a language code */
483
- locale?: __.Key<Locale>;
484
- }>;
185
+
186
+ export namespace Languages {
187
+ // entity 'text'
188
+ export function _textAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
189
+ new (...args: any[]): {
190
+ /** Type for a language code */
191
+ locale?: __.Key<Locale>
192
+ name?: string | null
193
+ descr?: string | null
194
+ /** Type for a language code */
195
+ code?: __.Key<Locale>
196
+ } & InstanceType<ReturnType<typeof _TextsAspectAspect<TBase>>>
197
+ readonly kind: 'entity';
198
+ readonly keys: __.KeysOf<text> & typeof TextsAspect.keys;
199
+ readonly elements: __.ElementsOf<text>;
485
200
  readonly actions: typeof TextsAspect.actions & globalThis.Record<never, never>;
486
- } & typeof __.Entity;
487
- export class text extends text_base {
488
- }
489
- export class texts extends Array<text> {
490
- $count?: number;
491
- }
492
- export {};
201
+ };
202
+ export class text extends _textAspect(__.Entity) {
203
+ }
204
+ export class texts extends Array<text> {
205
+ $count?: number
206
+ }
207
+
493
208
  }
494
- export declare namespace Countries {
495
- export function _textAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
496
- new (...args: any[]): {
497
- name?: string | null;
498
- descr?: string | null;
499
- code?: __.Key<string>;
500
- /** Type for a language code */
501
- locale?: __.Key<Locale>;
502
- };
503
- readonly kind: "entity" | "type" | "aspect";
504
- readonly keys: __.KeysOf<{
505
- name?: string | null;
506
- descr?: string | null;
507
- code?: __.Key<string>;
508
- /** Type for a language code */
509
- locale?: __.Key<Locale>;
510
- }> & typeof TextsAspect.keys;
511
- readonly elements: __.ElementsOf<{
512
- name?: string | null;
513
- descr?: string | null;
514
- code?: __.Key<string>;
515
- /** Type for a language code */
516
- locale?: __.Key<Locale>;
517
- }>;
518
- readonly actions: typeof TextsAspect.actions & globalThis.Record<never, never>;
519
- } & TBase;
520
- const text_base_1: {
521
- new (...args: any[]): {
522
- name?: string | null;
523
- descr?: string | null;
524
- code?: __.Key<string>;
525
- /** Type for a language code */
526
- locale?: __.Key<Locale>;
527
- };
528
- readonly kind: "entity" | "type" | "aspect";
529
- readonly keys: __.KeysOf<{
530
- name?: string | null;
531
- descr?: string | null;
532
- code?: __.Key<string>;
533
- /** Type for a language code */
534
- locale?: __.Key<Locale>;
535
- }> & __.KeysOf<{
536
- /** Type for a language code */
537
- locale?: __.Key<Locale>;
538
- }>;
539
- readonly elements: __.ElementsOf<{
540
- name?: string | null;
541
- descr?: string | null;
542
- code?: __.Key<string>;
543
- /** Type for a language code */
544
- locale?: __.Key<Locale>;
545
- }>;
209
+ export namespace Countries {
210
+ // entity 'text'
211
+ export function _textAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
212
+ new (...args: any[]): {
213
+ /** Type for a language code */
214
+ locale?: __.Key<Locale>
215
+ name?: string | null
216
+ descr?: string | null
217
+ code?: __.Key<string>
218
+ } & InstanceType<ReturnType<typeof _TextsAspectAspect<TBase>>>
219
+ readonly kind: 'entity';
220
+ readonly keys: __.KeysOf<text> & typeof TextsAspect.keys;
221
+ readonly elements: __.ElementsOf<text>;
546
222
  readonly actions: typeof TextsAspect.actions & globalThis.Record<never, never>;
547
- } & typeof __.Entity;
548
- export class text extends text_base_1 {
549
- }
550
- export class texts extends Array<text> {
551
- $count?: number;
552
- }
553
- export {};
223
+ };
224
+ export class text extends _textAspect(__.Entity) {
225
+ }
226
+ export class texts extends Array<text> {
227
+ $count?: number
228
+ }
229
+
554
230
  }
555
- export declare namespace Currencies {
556
- export function _textAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
557
- new (...args: any[]): {
558
- name?: string | null;
559
- descr?: string | null;
560
- code?: __.Key<string>;
561
- /** Type for a language code */
562
- locale?: __.Key<Locale>;
563
- };
564
- readonly kind: "entity" | "type" | "aspect";
565
- readonly keys: __.KeysOf<{
566
- name?: string | null;
567
- descr?: string | null;
568
- code?: __.Key<string>;
569
- /** Type for a language code */
570
- locale?: __.Key<Locale>;
571
- }> & typeof TextsAspect.keys;
572
- readonly elements: __.ElementsOf<{
573
- name?: string | null;
574
- descr?: string | null;
575
- code?: __.Key<string>;
576
- /** Type for a language code */
577
- locale?: __.Key<Locale>;
578
- }>;
579
- readonly actions: typeof TextsAspect.actions & globalThis.Record<never, never>;
580
- } & TBase;
581
- const text_base_2: {
582
- new (...args: any[]): {
583
- name?: string | null;
584
- descr?: string | null;
585
- code?: __.Key<string>;
586
- /** Type for a language code */
587
- locale?: __.Key<Locale>;
588
- };
589
- readonly kind: "entity" | "type" | "aspect";
590
- readonly keys: __.KeysOf<{
591
- name?: string | null;
592
- descr?: string | null;
593
- code?: __.Key<string>;
594
- /** Type for a language code */
595
- locale?: __.Key<Locale>;
596
- }> & __.KeysOf<{
597
- /** Type for a language code */
598
- locale?: __.Key<Locale>;
599
- }>;
600
- readonly elements: __.ElementsOf<{
601
- name?: string | null;
602
- descr?: string | null;
603
- code?: __.Key<string>;
604
- /** Type for a language code */
605
- locale?: __.Key<Locale>;
606
- }>;
231
+ export namespace Currencies {
232
+ // entity 'text'
233
+ export function _textAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
234
+ new (...args: any[]): {
235
+ /** Type for a language code */
236
+ locale?: __.Key<Locale>
237
+ name?: string | null
238
+ descr?: string | null
239
+ code?: __.Key<string>
240
+ } & InstanceType<ReturnType<typeof _TextsAspectAspect<TBase>>>
241
+ readonly kind: 'entity';
242
+ readonly keys: __.KeysOf<text> & typeof TextsAspect.keys;
243
+ readonly elements: __.ElementsOf<text>;
607
244
  readonly actions: typeof TextsAspect.actions & globalThis.Record<never, never>;
608
- } & typeof __.Entity;
609
- export class text extends text_base_2 {
610
- }
611
- export class texts extends Array<text> {
612
- $count?: number;
613
- }
614
- export {};
245
+ };
246
+ export class text extends _textAspect(__.Entity) {
247
+ }
248
+ export class texts extends Array<text> {
249
+ $count?: number
250
+ }
251
+
615
252
  }
616
- export declare namespace Timezones {
617
- export function _textAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
618
- new (...args: any[]): {
619
- name?: string | null;
620
- descr?: string | null;
621
- code?: __.Key<string>;
622
- /** Type for a language code */
623
- locale?: __.Key<Locale>;
624
- };
625
- readonly kind: "entity" | "type" | "aspect";
626
- readonly keys: __.KeysOf<{
627
- name?: string | null;
628
- descr?: string | null;
629
- code?: __.Key<string>;
630
- /** Type for a language code */
631
- locale?: __.Key<Locale>;
632
- }> & typeof TextsAspect.keys;
633
- readonly elements: __.ElementsOf<{
634
- name?: string | null;
635
- descr?: string | null;
636
- code?: __.Key<string>;
637
- /** Type for a language code */
638
- locale?: __.Key<Locale>;
639
- }>;
640
- readonly actions: typeof TextsAspect.actions & globalThis.Record<never, never>;
641
- } & TBase;
642
- const text_base_3: {
643
- new (...args: any[]): {
644
- name?: string | null;
645
- descr?: string | null;
646
- code?: __.Key<string>;
647
- /** Type for a language code */
648
- locale?: __.Key<Locale>;
649
- };
650
- readonly kind: "entity" | "type" | "aspect";
651
- readonly keys: __.KeysOf<{
652
- name?: string | null;
653
- descr?: string | null;
654
- code?: __.Key<string>;
655
- /** Type for a language code */
656
- locale?: __.Key<Locale>;
657
- }> & __.KeysOf<{
658
- /** Type for a language code */
659
- locale?: __.Key<Locale>;
660
- }>;
661
- readonly elements: __.ElementsOf<{
662
- name?: string | null;
663
- descr?: string | null;
664
- code?: __.Key<string>;
665
- /** Type for a language code */
666
- locale?: __.Key<Locale>;
667
- }>;
253
+ export namespace Timezones {
254
+ // entity 'text'
255
+ export function _textAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
256
+ new (...args: any[]): {
257
+ /** Type for a language code */
258
+ locale?: __.Key<Locale>
259
+ name?: string | null
260
+ descr?: string | null
261
+ code?: __.Key<string>
262
+ } & InstanceType<ReturnType<typeof _TextsAspectAspect<TBase>>>
263
+ readonly kind: 'entity';
264
+ readonly keys: __.KeysOf<text> & typeof TextsAspect.keys;
265
+ readonly elements: __.ElementsOf<text>;
668
266
  readonly actions: typeof TextsAspect.actions & globalThis.Record<never, never>;
669
- } & typeof __.Entity;
670
- export class text extends text_base_3 {
671
- }
672
- export class texts extends Array<text> {
673
- $count?: number;
674
- }
675
- export {};
676
- }
677
- export {};
678
- //# sourceMappingURL=index.d.ts.map
267
+ };
268
+ export class text extends _textAspect(__.Entity) {
269
+ }
270
+ export class texts extends Array<text> {
271
+ $count?: number
272
+ }
273
+
274
+ }