@cap-js/cds-types 0.12.0 → 0.13.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.
@@ -2108,6 +2108,24 @@ export function on (event: 'connect', listener: (srv: Service) => void): _cds
2108
2108
  */
2109
2109
  export function on (event: 'bootstrap', listener: (app: import('express').Application) => void): _cds
2110
2110
 
2111
+ /**
2112
+ * Emitted before the model is compiled for usage in Node.js or Java runtime.
2113
+ * @beta
2114
+ */
2115
+ export function on (event: 'compile.for.runtime', listener: (model: CSN) => void): _cds
2116
+
2117
+ /**
2118
+ * Emitted before database-specific artifacts, i.e. SQL DDL scripts, are generated from the model.
2119
+ * @beta
2120
+ */
2121
+ export function on (event: 'compile.to.dbx', listener: (model: CSN) => void): _cds
2122
+
2123
+ /**
2124
+ * Emitted immediately before the model is compiled to edmx.
2125
+ * @beta
2126
+ */
2127
+ export function on (event: 'compile.to.edmx', listener: (model: CSN) => void): _cds
2128
+
2111
2129
  /**
2112
2130
  * Emitted for each service served by cds.serve().
2113
2131
  */
@@ -2133,6 +2151,12 @@ export function on (event: 'shutdown', listener: () => void): _cds
2133
2151
 
2134
2152
  export function once (event: 'bootstrap', listener: (app: import('express').Application) => void): _cds
2135
2153
 
2154
+ export function once (event: 'compile.for.runtime', listener: (model: CSN) => void): _cds
2155
+
2156
+ export function once (event: 'compile.to.dbx', listener: (model: CSN) => void): _cds
2157
+
2158
+ export function once (event: 'compile.to.edmx', listener: (model: CSN) => void): _cds
2159
+
2136
2160
  export function once (event: 'served', listener: (all: cds_services) => void): _cds
2137
2161
 
2138
2162
  export function once (event: 'listening', listener: (args: { server: import('http').Server, url: string }) => void): _cds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js/cds-types",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Type definitions for main packages of CAP, like `@sap/cds`",
5
5
  "repository": "github:cap-js/cds-types",
6
6
  "homepage": "https://cap.cloud.sap/",
@@ -44,9 +44,15 @@
44
44
  "@sap/cds-dk": "^9",
45
45
  "@types/express": ">=4"
46
46
  },
47
+ "peerDependenciesMeta": {
48
+ "@sap/cds-dk": {
49
+ "optional": true
50
+ }
51
+ },
47
52
  "devDependencies": {
48
53
  "@cap-js/cds-test": "^0",
49
54
  "@microsoft/api-extractor": "^7.52.8",
55
+ "@sap/cds-dk": "^9",
50
56
  "@stylistic/eslint-plugin-js": "^4.0.1",
51
57
  "@stylistic/eslint-plugin-ts": "^4.0.1",
52
58
  "axios": "^1.6.2",