@vario-software/types 2026.32.6 → 2026.32.8

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/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "@vario-software/types",
3
- "version": "2026.32.6",
3
+ "version": "2026.32.8",
4
+ "description": "TypeScript type definitions for the VARIO Cloud platform: REST API schemas, app framework contexts and scripting interfaces. Provides type checking, autocompletion and IntelliSense in TypeScript and JavaScript projects.",
5
+ "homepage": "https://developer.vario-software.de/",
6
+ "bugs": "https://developer.vario-software.de/help-support",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/vario-software/types.git"
10
+ },
11
+ "author": "VARIO Software AG",
12
+ "license": "MIT",
4
13
  "types": "./index.d.ts",
5
14
  "dependencies": {
6
15
  "@types/express": "^5.0.6"
@@ -27,9 +36,5 @@
27
36
  "./scripting": {
28
37
  "types": "./scripting.d.ts"
29
38
  }
30
- },
31
- "repository": {
32
- "type": "git",
33
- "url": "git+https://github.com/vario-software/types.git"
34
39
  }
35
40
  }
package/readme.md CHANGED
@@ -1,8 +1,21 @@
1
- # VARIO Types
1
+ # VARIO Cloud TypeScript Definitions
2
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.
3
+ TypeScript type definitions for the VARIO Cloud platform.
4
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/).
5
+ The package provides type checking, autocompletion and IntelliSense for VARIO Cloud APIs, platform contexts, OpenAPI schemas and scripting interfaces.
6
+
7
+ It works in plain JavaScript projects too — no TypeScript build step is required.
8
+
9
+ ## What's included
10
+
11
+ | Area | Contents |
12
+ | ---- | -------- |
13
+ | VARIO Cloud APIs | The REST and VQL clients, and the platform modules (EAV, migrations, text enums, webhooks, permitted tokens) |
14
+ | Platform contexts | The App object, request context, migrator and error types |
15
+ | OpenAPI schemas | The generated ERP schema — every request and response shape of the REST API |
16
+ | Scripting interfaces | The script entry points (batch scripts, work items, output filters, the scripting proxy) and the service layer |
17
+
18
+ ## Installation
6
19
 
7
20
  ```bash
8
21
  npm install @vario-software/types --save-dev
@@ -10,7 +23,6 @@ npm install @vario-software/types --save-dev
10
23
 
11
24
  To enable type support in your project, create a `jsconfig.json` file in the project root:
12
25
 
13
-
14
26
  ```json
15
27
  {
16
28
  "compilerOptions": {
@@ -21,4 +33,11 @@ To enable type support in your project, create a `jsconfig.json` file in the pro
21
33
  "**/node_modules"
22
34
  ]
23
35
  }
24
- ```
36
+ ```
37
+
38
+ ## VARIO Cloud developer resources
39
+
40
+ - [Browse the VARIO Cloud Developer Docs](https://developer.vario-software.de/)
41
+ - [Explore the VARIO Cloud REST API Reference](https://developer.vario-software.de/api-reference)
42
+ - [View all VARIO packages on npm](https://www.npmjs.com/org/vario-software)
43
+ - [View the source code on GitHub](https://github.com/vario-software/types)
@@ -1775,20 +1775,20 @@ export interface DocumentScriptingService {
1775
1775
  * Kopiert einen Beleg in die vorgegebene Ziel-Belegart
1776
1776
  *
1777
1777
  * @param {number} documentId - ID des zu kopierenden Belegs
1778
- * @param {string} targetDocumentTypeLabel - Ziel-Belegart der Kopie
1778
+ * @param {string} targetDocumentType - Ziel-Belegart der Kopie
1779
+ * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
1779
1780
  * @return {Document} Der kopierte Beleg
1780
1781
  */
1781
- copy(documentId: number, targetDocumentTypeLabel: string): Document;
1782
+ copy(documentId: number, targetDocumentType: string, additionalParameters: Array<AdditionalParameter>): Document;
1782
1783
 
1783
1784
  /**
1784
1785
  * Kopiert einen Beleg in die vorgegebene Ziel-Belegart
1785
1786
  *
1786
1787
  * @param {number} documentId - ID des zu kopierenden Belegs
1787
- * @param {string} targetDocumentType - Ziel-Belegart der Kopie
1788
- * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
1788
+ * @param {string} targetDocumentTypeLabel - Ziel-Belegart der Kopie
1789
1789
  * @return {Document} Der kopierte Beleg
1790
1790
  */
1791
- copy(documentId: number, targetDocumentType: string, additionalParameters: Array<AdditionalParameter>): Document;
1791
+ copy(documentId: number, targetDocumentTypeLabel: string): Document;
1792
1792
 
1793
1793
  /**
1794
1794
  * Erstellt einen neuen Beleg
@@ -1802,35 +1802,35 @@ export interface DocumentScriptingService {
1802
1802
  * Löst einen Beleg auf
1803
1803
  *
1804
1804
  * @param {number} documentId - ID des aufzulösenden Belegs
1805
+ * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
1805
1806
  * @return {Document} Der aufgelöste Beleg
1806
1807
  */
1807
- dissolve(documentId: number): Document;
1808
+ dissolve(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
1808
1809
 
1809
1810
  /**
1810
1811
  * Löst einen Beleg auf
1811
1812
  *
1812
1813
  * @param {number} documentId - ID des aufzulösenden Belegs
1813
- * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
1814
1814
  * @return {Document} Der aufgelöste Beleg
1815
1815
  */
1816
- dissolve(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
1816
+ dissolve(documentId: number): Document;
1817
1817
 
1818
1818
  /**
1819
1819
  * Startet die Bearbeitung eines Belegs (Transition SAVED -> EDIT)
1820
1820
  *
1821
1821
  * @param {number} documentId - ID des Belegs
1822
+ * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
1822
1823
  * @return {Document} Der Beleg in Bearbeitung
1823
1824
  */
1824
- edit(documentId: number): Document;
1825
+ edit(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
1825
1826
 
1826
1827
  /**
1827
1828
  * Startet die Bearbeitung eines Belegs (Transition SAVED -> EDIT)
1828
1829
  *
1829
1830
  * @param {number} documentId - ID des Belegs
1830
- * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
1831
1831
  * @return {Document} Der Beleg in Bearbeitung
1832
1832
  */
1833
- edit(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
1833
+ edit(documentId: number): Document;
1834
1834
 
1835
1835
  /**
1836
1836
  * Erstellt ein AdditionalParameter-Objekt
@@ -1941,16 +1941,16 @@ export interface DocumentScriptingService {
1941
1941
  * Versendet einen Beleg per Mail
1942
1942
  *
1943
1943
  * @param {number} documentId - ID des zu versendenden Belegs
1944
- * @param {string} reportGroupIdentifier -
1945
1944
  */
1946
- sendViaMail(documentId: number, reportGroupIdentifier: string): void;
1945
+ sendViaMail(documentId: number): void;
1947
1946
 
1948
1947
  /**
1949
1948
  * Versendet einen Beleg per Mail
1950
1949
  *
1951
1950
  * @param {number} documentId - ID des zu versendenden Belegs
1951
+ * @param {string} reportGroupIdentifier -
1952
1952
  */
1953
- sendViaMail(documentId: number): void;
1953
+ sendViaMail(documentId: number, reportGroupIdentifier: string): void;
1954
1954
 
1955
1955
  /**
1956
1956
  * Überführt einen Beleg in einen anderen Status
@@ -2872,14 +2872,14 @@ export interface ScriptingServiceList {
2872
2872
  crmTaskService: CrmTaskScriptingService;
2873
2873
 
2874
2874
  /**
2875
- * Service zur Verarbeitung von Accounts
2875
+ * Service zur Verarbeitung von Shelf-Documents
2876
2876
  */
2877
- accountService: AccountScriptingService;
2877
+ shelfDocumentService: ShelfDocumentScriptingService;
2878
2878
 
2879
2879
  /**
2880
- * Service zur Verarbeitung von Shelf-Documents
2880
+ * Service zur Verarbeitung von Accounts
2881
2881
  */
2882
- shelfDocumentService: ShelfDocumentScriptingService;
2882
+ accountService: AccountScriptingService;
2883
2883
 
2884
2884
  /**
2885
2885
  * Logging im Scripting
@@ -3114,18 +3114,18 @@ export interface ScriptingUtilities {
3114
3114
  * Erstellt eine neue BigDecimal-Instanz
3115
3115
  *
3116
3116
  * @param {object} value - Der Quell-Wert
3117
+ * @param {number} scale - Anzahl Nachkommastellen
3117
3118
  * @return {number} Ein BigDecimal-Wert
3118
3119
  */
3119
- newBigDecimal(value: object): number;
3120
+ newBigDecimal(value: object, scale: number): number;
3120
3121
 
3121
3122
  /**
3122
3123
  * Erstellt eine neue BigDecimal-Instanz
3123
3124
  *
3124
3125
  * @param {object} value - Der Quell-Wert
3125
- * @param {number} scale - Anzahl Nachkommastellen
3126
3126
  * @return {number} Ein BigDecimal-Wert
3127
3127
  */
3128
- newBigDecimal(value: object, scale: number): number;
3128
+ newBigDecimal(value: object): number;
3129
3129
 
3130
3130
  /**
3131
3131
  * Erstellt eine API-Referenz
@@ -3175,24 +3175,24 @@ export interface ShelfDocumentScriptingService {
3175
3175
  deleteAttribution(attributionId: number): void;
3176
3176
 
3177
3177
  /**
3178
- * Lädt eine Datei von einer URL mit Authentifizierung herunter und erstellt ein neues DMS-Dokument
3178
+ * Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
3179
3179
  *
3180
3180
  * @param {string} url - Download-URL
3181
- * @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
3182
- * @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
3183
3181
  * @param {string} documentTypeKey - Schlüssel der Dokumentenart
3184
3182
  * @return {ShelfDocument} Das neu erstellte DMS-Dokument
3185
3183
  */
3186
- downloadIntoDMS(url: string, authenticationType: EScriptingAuthenticationType, authValue: string, documentTypeKey: string): ShelfDocument;
3184
+ downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
3187
3185
 
3188
3186
  /**
3189
- * Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
3187
+ * Lädt eine Datei von einer URL mit Authentifizierung herunter und erstellt ein neues DMS-Dokument
3190
3188
  *
3191
3189
  * @param {string} url - Download-URL
3190
+ * @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
3191
+ * @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
3192
3192
  * @param {string} documentTypeKey - Schlüssel der Dokumentenart
3193
3193
  * @return {ShelfDocument} Das neu erstellte DMS-Dokument
3194
3194
  */
3195
- downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
3195
+ downloadIntoDMS(url: string, authenticationType: EScriptingAuthenticationType, authValue: string, documentTypeKey: string): ShelfDocument;
3196
3196
 
3197
3197
  /**
3198
3198
  * Findet ein Dokumentenart über ihren Schlüssel