@vario-software/types 2026.12.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/index.d.ts ADDED
@@ -0,0 +1,153 @@
1
+ /// <reference path="./scripting.d.ts" />
2
+
3
+ // -- Backend App Module Declarations (Public) --
4
+
5
+ declare module '@vario-software/vario-app-framework-backend/api/ErpApi'
6
+ {
7
+ import Api = require('./app/ErpApi');
8
+ export = Api;
9
+ }
10
+
11
+ declare module '@vario-software/vario-app-framework-backend/api/ErpApi.js'
12
+ {
13
+ import Api = require('./app/ErpApi');
14
+ export = Api;
15
+ }
16
+
17
+ declare module '@vario-software/vario-app-framework-backend/utils/context'
18
+ {
19
+ export * from './app/context';
20
+ }
21
+
22
+ declare module '@vario-software/vario-app-framework-backend/utils/context.js'
23
+ {
24
+ export * from './app/context';
25
+ }
26
+
27
+ declare module '@vario-software/vario-app-framework-backend/app'
28
+ {
29
+ const VarioCloudApp: typeof import('./app/VarioCloudApp').VarioCloudApp;
30
+ export = VarioCloudApp;
31
+ }
32
+
33
+ declare module '@vario-software/vario-app-framework-backend/app.js'
34
+ {
35
+ const VarioCloudApp: typeof import('./app/VarioCloudApp').VarioCloudApp;
36
+ export = VarioCloudApp;
37
+ }
38
+
39
+ // -- Backend Utility Module Declarations (Public) --
40
+
41
+ declare module '@vario-software/vario-app-framework-backend/utils/httpError'
42
+ {
43
+ export { HttpError as default, HttpError } from './app/HttpError';
44
+ }
45
+
46
+ declare module '@vario-software/vario-app-framework-backend/utils/httpError.js'
47
+ {
48
+ export { HttpError as default, HttpError } from './app/HttpError';
49
+ }
50
+
51
+ declare module '@vario-software/vario-app-framework-backend/utils/migrator'
52
+ {
53
+ export { Migrator as default, Migrator, MigratorMethods, MigratorCallback } from './app/Migrator';
54
+ }
55
+
56
+ declare module '@vario-software/vario-app-framework-backend/utils/migrator.js'
57
+ {
58
+ export { Migrator as default, Migrator, MigratorMethods, MigratorCallback } from './app/Migrator';
59
+ }
60
+
61
+ declare module '@vario-software/vario-app-framework-backend/utils/permission'
62
+ {
63
+ export function checkPermission(verb: string, strict?: boolean): boolean;
64
+ export function checkPermissionMiddleware(verb: string): import('express').RequestHandler;
65
+ }
66
+
67
+ declare module '@vario-software/vario-app-framework-backend/utils/permission.js'
68
+ {
69
+ export function checkPermission(verb: string, strict?: boolean): boolean;
70
+ export function checkPermissionMiddleware(verb: string): import('express').RequestHandler;
71
+ }
72
+
73
+ declare module '@vario-software/vario-app-framework-backend/utils/licenses'
74
+ {
75
+ export function checkLicense(licenseKey: string, silent?: boolean): Promise<boolean>;
76
+ export function checkLicenseMiddleware(licenseKey: string): import('express').RequestHandler;
77
+ }
78
+
79
+ declare module '@vario-software/vario-app-framework-backend/utils/licenses.js'
80
+ {
81
+ export function checkLicense(licenseKey: string, silent?: boolean): Promise<boolean>;
82
+ export function checkLicenseMiddleware(licenseKey: string): import('express').RequestHandler;
83
+ }
84
+
85
+ declare module '@vario-software/vario-app-framework-backend/utils/promiseSingletonMap'
86
+ {
87
+ export { PromiseSingletonMap as default, PromiseSingletonMap } from './app/PromiseSingletonMap';
88
+ }
89
+
90
+ declare module '@vario-software/vario-app-framework-backend/utils/promiseSingletonMap.js'
91
+ {
92
+ export { PromiseSingletonMap as default, PromiseSingletonMap } from './app/PromiseSingletonMap';
93
+ }
94
+
95
+ declare module '@vario-software/vario-app-framework-backend/utils/token'
96
+ {
97
+ export function validateOfflineToken(offlineToken: string): Promise<import('./app/context').AccessTokenPayload>;
98
+ export function validateAppToken(appToken: string): Promise<import('./app/context').AccessTokenPayload>;
99
+ export function isAppTokenExpired(): boolean;
100
+ export function refreshAppToken(): Promise<void>;
101
+ }
102
+
103
+ declare module '@vario-software/vario-app-framework-backend/utils/token.js'
104
+ {
105
+ export function validateOfflineToken(offlineToken: string): Promise<import('./app/context').AccessTokenPayload>;
106
+ export function validateAppToken(appToken: string): Promise<import('./app/context').AccessTokenPayload>;
107
+ export function isAppTokenExpired(): boolean;
108
+ export function refreshAppToken(): Promise<void>;
109
+ }
110
+
111
+ declare module '@vario-software/vario-app-framework-backend/utils/logger'
112
+ {
113
+ export function log(message: string | object, loggerName?: string, level?: string): Promise<void>;
114
+ }
115
+
116
+ declare module '@vario-software/vario-app-framework-backend/utils/logger.js'
117
+ {
118
+ export function log(message: string | object, loggerName?: string, level?: string): Promise<void>;
119
+ }
120
+
121
+ declare module '@vario-software/vario-app-framework-backend/utils/keycloak'
122
+ {
123
+ export default function refreshAccessToken(offlineToken: string, refreshUrl: string): Promise<Record<string, unknown>>;
124
+ }
125
+
126
+ declare module '@vario-software/vario-app-framework-backend/utils/keycloak.js'
127
+ {
128
+ export default function refreshAccessToken(offlineToken: string, refreshUrl: string): Promise<Record<string, unknown>>;
129
+ }
130
+
131
+ // -- Backend Setup Module Declarations (Public) --
132
+
133
+ declare module '@vario-software/vario-app-framework-backend/setup/runAsAppUser'
134
+ {
135
+ export default function runAsAppUser(value?: boolean): Promise<void>;
136
+ }
137
+
138
+ declare module '@vario-software/vario-app-framework-backend/setup/runAsAppUser.js'
139
+ {
140
+ export default function runAsAppUser(value?: boolean): Promise<void>;
141
+ }
142
+
143
+ // -- Backend API Helper Declarations (Public) --
144
+
145
+ declare module '@vario-software/vario-app-framework-backend/api/helpers/streamResponse'
146
+ {
147
+ export default function streamResponse(res: import('express').Response, handler: (onProgress?: (data: unknown) => void) => Promise<unknown>): Promise<void>;
148
+ }
149
+
150
+ declare module '@vario-software/vario-app-framework-backend/api/helpers/streamResponse.js'
151
+ {
152
+ export default function streamResponse(res: import('express').Response, handler: (onProgress?: (data: unknown) => void) => Promise<unknown>): Promise<void>;
153
+ }
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@vario-software/types",
3
+ "version": "2026.12.3",
4
+ "types": "./index.d.ts",
5
+ "dependencies": {
6
+ "@types/express": "^5.0.6"
7
+ },
8
+ "files": [
9
+ "**/*.d.ts"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "types": "./index.d.ts"
14
+ },
15
+ "./app/*": {
16
+ "types": "./app/*.d.ts"
17
+ },
18
+ "./app/modules/*": {
19
+ "types": "./app/modules/*.d.ts"
20
+ },
21
+ "./schema/*": {
22
+ "types": "./schema/*.d.ts"
23
+ },
24
+ "./scripting/*": {
25
+ "types": "./scripting/*.d.ts"
26
+ },
27
+ "./scripting": {
28
+ "types": "./scripting.d.ts"
29
+ }
30
+ }
31
+ }
package/readme.md ADDED
@@ -0,0 +1,9 @@
1
+ # VARIO Types
2
+
3
+ TypeScript type definitions for the VARIO Cloud platform. This package provides full autocompletion and type checking for VARIO Cloud Apps built with the [VARIO App Framework](https://github.com/vario-software/vario-app-framework) like our [VARIO App Demo](https://github.com/vario-software/vario-app-demo), including typed API calls, context, feature modules, OpenAPI schemas, and scripting interfaces.
4
+
5
+ For more information about VARIO and our ERP system, visit [www.vario.ag](https://www.vario.ag). For developer resources, see our [Developer Documentation](https://developer.vario-software.de/).
6
+
7
+ ```bash
8
+ npm install @vario-software/types --save-dev
9
+ ```