@cap-js/cds-types 0.11.0 → 0.12.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.
@@ -1,4 +1,5 @@
1
1
  declare module '@sap/cds' {
2
+ export * from "@sap/cds-dk";
2
3
 
3
4
 
4
5
  export type __any_ = classes.any_
@@ -1185,7 +1186,6 @@ export namespace env {
1185
1186
  [key: string]: MockUser | undefined
1186
1187
  }
1187
1188
 
1188
- /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
1189
1189
  export type Requires = {
1190
1190
  auth: {
1191
1191
  kind: 'dummy' | 'mocked' | 'basic' | 'xsuaa' | 'ias' | string,
@@ -1519,7 +1519,7 @@ type INSERT_2 = { INSERT: {
1519
1519
  columns: string[],
1520
1520
  values: primitive[],
1521
1521
  rows: primitive[][],
1522
- as: SELECT_2,
1522
+ from: SELECT_2,
1523
1523
  }, }
1524
1524
  export { INSERT_2 as INSERT }
1525
1525
 
@@ -1536,10 +1536,6 @@ class INSERT_3<T> extends ConstructedQuery<T> {
1536
1536
  & (<T> (entity: Constructable<T>, ...entries: T[]) => INSERT_3<T>)
1537
1537
  & (<T> (entity: Constructable<T>, entries?: T[]) => INSERT_3<T>)
1538
1538
 
1539
- /**
1540
- * @deprected
1541
- */
1542
- as (select: SELECT_3<T>): this
1543
1539
  from (select: SELECT_3<T>): this
1544
1540
  INSERT: CQN.INSERT['INSERT']
1545
1541
 
@@ -2414,7 +2410,7 @@ export class RemoteService extends Service {}
2414
2410
  */
2415
2411
  class Request_2<T = any> extends Event_2<T> {
2416
2412
 
2417
- params: (string | object)[]
2413
+ params: Record<string, any>[]
2418
2414
 
2419
2415
  method: string
2420
2416
 
@@ -2433,6 +2429,8 @@ class Request_2<T = any> extends Event_2<T> {
2433
2429
  subject: ref
2434
2430
 
2435
2431
  reply (results: any): void
2432
+ /** @beta */
2433
+ reply (results: any, options: { mimetype?: string, filename?: string, [key: string]: any }): void
2436
2434
 
2437
2435
  notify (code: number, message: string, target?: string, args?: any[]): Error
2438
2436
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js/cds-types",
3
- "version": "0.11.0",
3
+ "version": "0.12.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/",
@@ -29,7 +29,7 @@
29
29
  "test": "npm run test:setup && npm run test:rollup-on",
30
30
  "test:rollup-on": "npm run rollup && npm run rollup:on && npm run test:all --silent",
31
31
  "test:rollup-off": "npm run rollup:off && npm run test:all --silent",
32
- "rollup": "rm -rf dist/ && mkdir -p etc/ && npx -y @microsoft/api-extractor run --local --verbose && .github/rollup-patch.js",
32
+ "rollup": "rm -rf dist/ && mkdir -p etc/ && .github/api-extractor/run-api-extractor.js",
33
33
  "rollup:on": "npm pkg set typings=dist/cds-types.d.ts && [ -d 'apis' ] && mv -- apis -apis || true",
34
34
  "rollup:off": "npm pkg set typings=apis/cds.d.ts && [ -d '-apis' ] && mv -- -apis apis || true",
35
35
  "lint": "npx eslint .",
@@ -40,11 +40,13 @@
40
40
  "dependencies": "node ./scripts/postinstall.js"
41
41
  },
42
42
  "peerDependencies": {
43
- "@sap/cds": ">=8.0.0",
43
+ "@sap/cds": ">=9.0.0",
44
+ "@sap/cds-dk": "^9",
44
45
  "@types/express": ">=4"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@cap-js/cds-test": "^0",
49
+ "@microsoft/api-extractor": "^7.52.8",
48
50
  "@stylistic/eslint-plugin-js": "^4.0.1",
49
51
  "@stylistic/eslint-plugin-ts": "^4.0.1",
50
52
  "axios": "^1.6.2",