@odatano/core 0.3.2 → 0.3.3
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.
- package/@cds-models/CardanoODataService/index.d.ts +1969 -0
- package/@cds-models/CardanoODataService/index.d.ts.map +1 -0
- package/@cds-models/CardanoODataService/index.js +329 -0
- package/@cds-models/CardanoODataService/index.js.map +1 -0
- package/@cds-models/CardanoODataService/index.ts +646 -0
- package/@cds-models/CardanoTransactionService/index.d.ts +1860 -0
- package/@cds-models/CardanoTransactionService/index.d.ts.map +1 -0
- package/@cds-models/CardanoTransactionService/index.js +328 -0
- package/@cds-models/CardanoTransactionService/index.js.map +1 -0
- package/@cds-models/CardanoTransactionService/index.ts +602 -0
- package/@cds-models/CardanoWatcherAdminService/index.js +113 -0
- package/@cds-models/CardanoWatcherAdminService/index.js.map +1 -0
- package/@cds-models/CardanoWatcherAdminService/index.ts +263 -0
- package/@cds-models/_/index.d.ts +66 -0
- package/@cds-models/_/index.d.ts.map +1 -0
- package/@cds-models/_/index.js +42 -0
- package/@cds-models/_/index.js.map +1 -0
- package/@cds-models/_/index.ts +96 -0
- package/@cds-models/cds/outbox/index.js +8 -0
- package/@cds-models/cds/outbox/index.js.map +1 -0
- package/@cds-models/cds/outbox/index.ts +27 -0
- package/@cds-models/cds/xt/MTXServices/index.js +8 -0
- package/@cds-models/cds/xt/MTXServices/index.js.map +1 -0
- package/@cds-models/cds/xt/MTXServices/index.ts +4 -0
- package/@cds-models/index.d.ts +168 -0
- package/@cds-models/index.d.ts.map +1 -0
- package/@cds-models/index.js +113 -0
- package/@cds-models/index.js.map +1 -0
- package/@cds-models/index.ts +84 -0
- package/@cds-models/odatano/cardano/index.d.ts +2882 -0
- package/@cds-models/odatano/cardano/index.d.ts.map +1 -0
- package/@cds-models/odatano/cardano/index.js +554 -0
- package/@cds-models/odatano/cardano/index.js.map +1 -0
- package/@cds-models/odatano/cardano/index.ts +802 -0
- package/@cds-models/odatano/reeve/index.js +83 -0
- package/@cds-models/odatano/reeve/index.js.map +1 -0
- package/@cds-models/odatano/reeve/index.ts +57 -0
- package/@cds-models/odatano/transactions/index.js +56 -0
- package/@cds-models/odatano/transactions/index.js.map +1 -0
- package/@cds-models/odatano/transactions/index.ts +18 -0
- package/@cds-models/odatano/watch/index.js +120 -0
- package/@cds-models/odatano/watch/index.js.map +1 -0
- package/@cds-models/odatano/watch/index.ts +110 -0
- package/@cds-models/sap/common/index.d.ts +678 -0
- package/@cds-models/sap/common/index.d.ts.map +1 -0
- package/@cds-models/sap/common/index.js +270 -0
- package/@cds-models/sap/common/index.js.map +1 -0
- package/@cds-models/sap/common/index.ts +249 -0
- package/package.json +1 -1
- package/src/plugin.d.ts.map +1 -1
- package/src/plugin.js +5 -0
- package/src/plugin.js.map +1 -1
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import * as _sap_common from './sap/common';
|
|
2
|
+
import * as __ from './_';
|
|
3
|
+
export type Language = __.Association.to<_sap_common.Language>;
|
|
4
|
+
export type Currency = __.Association.to<_sap_common.Currency>;
|
|
5
|
+
export type Country = __.Association.to<_sap_common.Country>;
|
|
6
|
+
export type Timezone = __.Association.to<_sap_common.Timezone>;
|
|
7
|
+
export type User = string;
|
|
8
|
+
export declare function _cuidAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
9
|
+
new (...args: any[]): {
|
|
10
|
+
ID?: __.Key<string>;
|
|
11
|
+
};
|
|
12
|
+
readonly kind: "entity" | "type" | "aspect";
|
|
13
|
+
readonly keys: __.KeysOf<{
|
|
14
|
+
ID?: __.Key<string>;
|
|
15
|
+
}>;
|
|
16
|
+
readonly elements: __.ElementsOf<{
|
|
17
|
+
ID?: __.Key<string>;
|
|
18
|
+
}>;
|
|
19
|
+
readonly actions: globalThis.Record<never, never>;
|
|
20
|
+
} & TBase;
|
|
21
|
+
declare const cuid_base: {
|
|
22
|
+
new (...args: any[]): {
|
|
23
|
+
ID?: __.Key<string>;
|
|
24
|
+
};
|
|
25
|
+
readonly kind: "entity" | "type" | "aspect";
|
|
26
|
+
readonly keys: __.KeysOf<{
|
|
27
|
+
ID?: __.Key<string>;
|
|
28
|
+
}>;
|
|
29
|
+
readonly elements: __.ElementsOf<{
|
|
30
|
+
ID?: __.Key<string>;
|
|
31
|
+
}>;
|
|
32
|
+
readonly actions: globalThis.Record<never, never>;
|
|
33
|
+
} & typeof __.Entity;
|
|
34
|
+
/**
|
|
35
|
+
* Aspect for entities with canonical universal IDs
|
|
36
|
+
*
|
|
37
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-cuid
|
|
38
|
+
*/
|
|
39
|
+
export declare class cuid extends cuid_base {
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Aspect for entities with canonical universal IDs
|
|
43
|
+
*
|
|
44
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-cuid
|
|
45
|
+
*/
|
|
46
|
+
export declare class cuid_ extends Array<cuid> {
|
|
47
|
+
$count?: number;
|
|
48
|
+
}
|
|
49
|
+
export declare function _managedAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
50
|
+
new (...args: any[]): {
|
|
51
|
+
createdAt?: __.CdsTimestamp | null;
|
|
52
|
+
/** Canonical user ID */
|
|
53
|
+
createdBy?: User | null;
|
|
54
|
+
modifiedAt?: __.CdsTimestamp | null;
|
|
55
|
+
/** Canonical user ID */
|
|
56
|
+
modifiedBy?: User | null;
|
|
57
|
+
};
|
|
58
|
+
readonly kind: "entity" | "type" | "aspect";
|
|
59
|
+
readonly keys: __.KeysOf<{
|
|
60
|
+
createdAt?: __.CdsTimestamp | null;
|
|
61
|
+
/** Canonical user ID */
|
|
62
|
+
createdBy?: User | null;
|
|
63
|
+
modifiedAt?: __.CdsTimestamp | null;
|
|
64
|
+
/** Canonical user ID */
|
|
65
|
+
modifiedBy?: User | null;
|
|
66
|
+
}>;
|
|
67
|
+
readonly elements: __.ElementsOf<{
|
|
68
|
+
createdAt?: __.CdsTimestamp | null;
|
|
69
|
+
/** Canonical user ID */
|
|
70
|
+
createdBy?: User | null;
|
|
71
|
+
modifiedAt?: __.CdsTimestamp | null;
|
|
72
|
+
/** Canonical user ID */
|
|
73
|
+
modifiedBy?: User | null;
|
|
74
|
+
}>;
|
|
75
|
+
readonly actions: globalThis.Record<never, never>;
|
|
76
|
+
} & TBase;
|
|
77
|
+
declare const managed_base: {
|
|
78
|
+
new (...args: any[]): {
|
|
79
|
+
createdAt?: __.CdsTimestamp | null;
|
|
80
|
+
/** Canonical user ID */
|
|
81
|
+
createdBy?: User | null;
|
|
82
|
+
modifiedAt?: __.CdsTimestamp | null;
|
|
83
|
+
/** Canonical user ID */
|
|
84
|
+
modifiedBy?: User | null;
|
|
85
|
+
};
|
|
86
|
+
readonly kind: "entity" | "type" | "aspect";
|
|
87
|
+
readonly keys: __.KeysOf<{
|
|
88
|
+
createdAt?: __.CdsTimestamp | null;
|
|
89
|
+
/** Canonical user ID */
|
|
90
|
+
createdBy?: User | null;
|
|
91
|
+
modifiedAt?: __.CdsTimestamp | null;
|
|
92
|
+
/** Canonical user ID */
|
|
93
|
+
modifiedBy?: User | null;
|
|
94
|
+
}>;
|
|
95
|
+
readonly elements: __.ElementsOf<{
|
|
96
|
+
createdAt?: __.CdsTimestamp | null;
|
|
97
|
+
/** Canonical user ID */
|
|
98
|
+
createdBy?: User | null;
|
|
99
|
+
modifiedAt?: __.CdsTimestamp | null;
|
|
100
|
+
/** Canonical user ID */
|
|
101
|
+
modifiedBy?: User | null;
|
|
102
|
+
}>;
|
|
103
|
+
readonly actions: globalThis.Record<never, never>;
|
|
104
|
+
} & typeof __.Entity;
|
|
105
|
+
/**
|
|
106
|
+
* Aspect to capture changes by user and name
|
|
107
|
+
*
|
|
108
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-managed
|
|
109
|
+
*/
|
|
110
|
+
export declare class managed extends managed_base {
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Aspect to capture changes by user and name
|
|
114
|
+
*
|
|
115
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-managed
|
|
116
|
+
*/
|
|
117
|
+
export declare class managed_ extends Array<managed> {
|
|
118
|
+
$count?: number;
|
|
119
|
+
}
|
|
120
|
+
export declare function _temporalAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
121
|
+
new (...args: any[]): {
|
|
122
|
+
validFrom?: __.CdsTimestamp | null;
|
|
123
|
+
validTo?: __.CdsTimestamp | null;
|
|
124
|
+
};
|
|
125
|
+
readonly kind: "entity" | "type" | "aspect";
|
|
126
|
+
readonly keys: __.KeysOf<{
|
|
127
|
+
validFrom?: __.CdsTimestamp | null;
|
|
128
|
+
validTo?: __.CdsTimestamp | null;
|
|
129
|
+
}>;
|
|
130
|
+
readonly elements: __.ElementsOf<{
|
|
131
|
+
validFrom?: __.CdsTimestamp | null;
|
|
132
|
+
validTo?: __.CdsTimestamp | null;
|
|
133
|
+
}>;
|
|
134
|
+
readonly actions: globalThis.Record<never, never>;
|
|
135
|
+
} & TBase;
|
|
136
|
+
declare const temporal_base: {
|
|
137
|
+
new (...args: any[]): {
|
|
138
|
+
validFrom?: __.CdsTimestamp | null;
|
|
139
|
+
validTo?: __.CdsTimestamp | null;
|
|
140
|
+
};
|
|
141
|
+
readonly kind: "entity" | "type" | "aspect";
|
|
142
|
+
readonly keys: __.KeysOf<{
|
|
143
|
+
validFrom?: __.CdsTimestamp | null;
|
|
144
|
+
validTo?: __.CdsTimestamp | null;
|
|
145
|
+
}>;
|
|
146
|
+
readonly elements: __.ElementsOf<{
|
|
147
|
+
validFrom?: __.CdsTimestamp | null;
|
|
148
|
+
validTo?: __.CdsTimestamp | null;
|
|
149
|
+
}>;
|
|
150
|
+
readonly actions: globalThis.Record<never, never>;
|
|
151
|
+
} & typeof __.Entity;
|
|
152
|
+
/**
|
|
153
|
+
* Aspect for entities with temporal data
|
|
154
|
+
*
|
|
155
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-temporal
|
|
156
|
+
*/
|
|
157
|
+
export declare class temporal extends temporal_base {
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Aspect for entities with temporal data
|
|
161
|
+
*
|
|
162
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-temporal
|
|
163
|
+
*/
|
|
164
|
+
export declare class temporal_ extends Array<temporal> {
|
|
165
|
+
$count?: number;
|
|
166
|
+
}
|
|
167
|
+
export {};
|
|
168
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;AAC/D,MAAM,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;AAC/D,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAC7D,MAAM,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;AAC/D,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAE1B,wBAAgB,WAAW,CAAC,KAAK,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,EAAE,IAAI,EAAE,KAAK;kBAA7B,GAAG,EAAE;aAE5C,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC;;mBACL,QAAQ,GAAG,MAAM,GAAG,QAAQ;mBACpB,EAAE,CAAC,MAAM;aAF1B,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC;MAEkB;uBACX,EAAE,CAAC,UAAU;aAHl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CAAC,YAAY,GAAG,IAAI;MAGiB;sBACxB,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;UAEnE;;kBAT2D,GAAG,EAAE;oBAEzC,EAAE,CAAC,YAAY,GAAG,IAAI;kBACxB,EAAE,CAAC,YAAY,GAAG,IAAI;;mBAClB,QAAQ,GAAG,MAAM,GAAG,QAAQ;;oBAF9B,EAAE,CAAC,YAAY,GAAG,IAAI;kBACxB,EAAE,CAAC,YAAY,GAAG,IAAI;;;oBADpB,EAAE,CAAC,YAAY,GAAG,IAAI;kBACxB,EAAE,CAAC,YAAY,GAAG,IAAI;;sBAIP,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;;AAGpE;;;;EAIE;AACF,qBAAa,QAAS,SAAQ,aAA0B;CAAG;AAC3D;;;;EAIE;AACF,qBAAa,SAAU,SAAQ,KAAK,CAAC,QAAQ,CAAC;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.temporal_ = exports.temporal = exports.managed_ = exports.managed = exports.cuid_ = exports.cuid = void 0;
|
|
37
|
+
exports._cuidAspect = _cuidAspect;
|
|
38
|
+
exports._managedAspect = _managedAspect;
|
|
39
|
+
exports._temporalAspect = _temporalAspect;
|
|
40
|
+
const __ = __importStar(require("./_"));
|
|
41
|
+
// the following represents the CDS aspect 'cuid'
|
|
42
|
+
function _cuidAspect(Base) {
|
|
43
|
+
return class cuid extends Base {
|
|
44
|
+
static kind = 'aspect';
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Aspect for entities with canonical universal IDs
|
|
49
|
+
*
|
|
50
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-cuid
|
|
51
|
+
*/
|
|
52
|
+
class cuid extends _cuidAspect(__.Entity) {
|
|
53
|
+
}
|
|
54
|
+
exports.cuid = cuid;
|
|
55
|
+
/**
|
|
56
|
+
* Aspect for entities with canonical universal IDs
|
|
57
|
+
*
|
|
58
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-cuid
|
|
59
|
+
*/
|
|
60
|
+
class cuid_ extends Array {
|
|
61
|
+
$count;
|
|
62
|
+
}
|
|
63
|
+
exports.cuid_ = cuid_;
|
|
64
|
+
Object.defineProperty(cuid_, 'name', { value: 'cuid' });
|
|
65
|
+
// the following represents the CDS aspect 'managed'
|
|
66
|
+
function _managedAspect(Base) {
|
|
67
|
+
return class managed extends Base {
|
|
68
|
+
static kind = 'aspect';
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Aspect to capture changes by user and name
|
|
73
|
+
*
|
|
74
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-managed
|
|
75
|
+
*/
|
|
76
|
+
class managed extends _managedAspect(__.Entity) {
|
|
77
|
+
}
|
|
78
|
+
exports.managed = managed;
|
|
79
|
+
/**
|
|
80
|
+
* Aspect to capture changes by user and name
|
|
81
|
+
*
|
|
82
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-managed
|
|
83
|
+
*/
|
|
84
|
+
class managed_ extends Array {
|
|
85
|
+
$count;
|
|
86
|
+
}
|
|
87
|
+
exports.managed_ = managed_;
|
|
88
|
+
Object.defineProperty(managed_, 'name', { value: 'managed' });
|
|
89
|
+
// the following represents the CDS aspect 'temporal'
|
|
90
|
+
function _temporalAspect(Base) {
|
|
91
|
+
return class temporal extends Base {
|
|
92
|
+
static kind = 'aspect';
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Aspect for entities with temporal data
|
|
97
|
+
*
|
|
98
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-temporal
|
|
99
|
+
*/
|
|
100
|
+
class temporal extends _temporalAspect(__.Entity) {
|
|
101
|
+
}
|
|
102
|
+
exports.temporal = temporal;
|
|
103
|
+
/**
|
|
104
|
+
* Aspect for entities with temporal data
|
|
105
|
+
*
|
|
106
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-temporal
|
|
107
|
+
*/
|
|
108
|
+
class temporal_ extends Array {
|
|
109
|
+
$count;
|
|
110
|
+
}
|
|
111
|
+
exports.temporal_ = temporal_;
|
|
112
|
+
Object.defineProperty(temporal_, 'name', { value: 'temporal' });
|
|
113
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,kCAQC;AAeD,wCAaC;AAeD,0CASC;AApED,wCAA0B;AAO1B,iDAAiD;AACjD,SAAgB,WAAW,CAA+C,IAAW;IACnF,OAAO,MAAM,IAAK,SAAQ,IAAI;QAE5B,MAAM,CAAU,IAAI,GAAiC,QAAQ,CAAC;KAI/D,CAAC;AACJ,CAAC;AACD;;;;EAIE;AACF,MAAa,IAAK,SAAQ,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC;CAAG;AAAnD,oBAAmD;AACnD;;;;EAIE;AACF,MAAa,KAAM,SAAQ,KAAW;IAAE,MAAM,CAAS;CAAC;AAAxD,sBAAwD;AACxD,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA;AACvD,oDAAoD;AACpD,SAAgB,cAAc,CAA+C,IAAW;IACtF,OAAO,MAAM,OAAQ,SAAQ,IAAI;QAO/B,MAAM,CAAU,IAAI,GAAiC,QAAQ,CAAC;KAI/D,CAAC;AACJ,CAAC;AACD;;;;EAIE;AACF,MAAa,OAAQ,SAAQ,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC;CAAG;AAAzD,0BAAyD;AACzD;;;;EAIE;AACF,MAAa,QAAS,SAAQ,KAAc;IAAE,MAAM,CAAS;CAAC;AAA9D,4BAA8D;AAC9D,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAA;AAC7D,qDAAqD;AACrD,SAAgB,eAAe,CAA+C,IAAW;IACvF,OAAO,MAAM,QAAS,SAAQ,IAAI;QAGhC,MAAM,CAAU,IAAI,GAAiC,QAAQ,CAAC;KAI/D,CAAC;AACJ,CAAC;AACD;;;;EAIE;AACF,MAAa,QAAS,SAAQ,eAAe,CAAC,EAAE,CAAC,MAAM,CAAC;CAAG;AAA3D,4BAA2D;AAC3D;;;;EAIE;AACF,MAAa,SAAU,SAAQ,KAAe;IAAE,MAAM,CAAS;CAAC;AAAhE,8BAAgE;AAChE,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// This is an automatically generated file. Please do not change its contents manually!
|
|
2
|
+
import * as _sap_common from './sap/common';
|
|
3
|
+
import * as __ from './_';
|
|
4
|
+
|
|
5
|
+
export type Language = __.Association.to<_sap_common.Language>;
|
|
6
|
+
export type Currency = __.Association.to<_sap_common.Currency>;
|
|
7
|
+
export type Country = __.Association.to<_sap_common.Country>;
|
|
8
|
+
export type Timezone = __.Association.to<_sap_common.Timezone>;
|
|
9
|
+
export type User = string;
|
|
10
|
+
// the following represents the CDS aspect 'cuid'
|
|
11
|
+
export function _cuidAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
12
|
+
return class cuid extends Base {
|
|
13
|
+
declare ID?: __.Key<string>
|
|
14
|
+
static readonly kind: 'entity' | 'type' | 'aspect' = 'aspect';
|
|
15
|
+
declare static readonly keys: __.KeysOf<cuid>;
|
|
16
|
+
declare static readonly elements: __.ElementsOf<cuid>;
|
|
17
|
+
declare static readonly actions: globalThis.Record<never, never>;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Aspect for entities with canonical universal IDs
|
|
22
|
+
*
|
|
23
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-cuid
|
|
24
|
+
*/
|
|
25
|
+
export class cuid extends _cuidAspect(__.Entity) {}
|
|
26
|
+
/**
|
|
27
|
+
* Aspect for entities with canonical universal IDs
|
|
28
|
+
*
|
|
29
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-cuid
|
|
30
|
+
*/
|
|
31
|
+
export class cuid_ extends Array<cuid> {$count?: number}
|
|
32
|
+
Object.defineProperty(cuid_, 'name', { value: 'cuid' })
|
|
33
|
+
// the following represents the CDS aspect 'managed'
|
|
34
|
+
export function _managedAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
35
|
+
return class managed extends Base {
|
|
36
|
+
declare createdAt?: __.CdsTimestamp | null
|
|
37
|
+
/** Canonical user ID */
|
|
38
|
+
declare createdBy?: User | null
|
|
39
|
+
declare modifiedAt?: __.CdsTimestamp | null
|
|
40
|
+
/** Canonical user ID */
|
|
41
|
+
declare modifiedBy?: User | null
|
|
42
|
+
static readonly kind: 'entity' | 'type' | 'aspect' = 'aspect';
|
|
43
|
+
declare static readonly keys: __.KeysOf<managed>;
|
|
44
|
+
declare static readonly elements: __.ElementsOf<managed>;
|
|
45
|
+
declare static readonly actions: globalThis.Record<never, never>;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Aspect to capture changes by user and name
|
|
50
|
+
*
|
|
51
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-managed
|
|
52
|
+
*/
|
|
53
|
+
export class managed extends _managedAspect(__.Entity) {}
|
|
54
|
+
/**
|
|
55
|
+
* Aspect to capture changes by user and name
|
|
56
|
+
*
|
|
57
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-managed
|
|
58
|
+
*/
|
|
59
|
+
export class managed_ extends Array<managed> {$count?: number}
|
|
60
|
+
Object.defineProperty(managed_, 'name', { value: 'managed' })
|
|
61
|
+
// the following represents the CDS aspect 'temporal'
|
|
62
|
+
export function _temporalAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
63
|
+
return class temporal extends Base {
|
|
64
|
+
declare validFrom?: __.CdsTimestamp | null
|
|
65
|
+
declare validTo?: __.CdsTimestamp | null
|
|
66
|
+
static readonly kind: 'entity' | 'type' | 'aspect' = 'aspect';
|
|
67
|
+
declare static readonly keys: __.KeysOf<temporal>;
|
|
68
|
+
declare static readonly elements: __.ElementsOf<temporal>;
|
|
69
|
+
declare static readonly actions: globalThis.Record<never, never>;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Aspect for entities with temporal data
|
|
74
|
+
*
|
|
75
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-temporal
|
|
76
|
+
*/
|
|
77
|
+
export class temporal extends _temporalAspect(__.Entity) {}
|
|
78
|
+
/**
|
|
79
|
+
* Aspect for entities with temporal data
|
|
80
|
+
*
|
|
81
|
+
* See https://cap.cloud.sap/docs/cds/common#aspect-temporal
|
|
82
|
+
*/
|
|
83
|
+
export class temporal_ extends Array<temporal> {$count?: number}
|
|
84
|
+
Object.defineProperty(temporal_, 'name', { value: 'temporal' })
|