@vario-software/types 2026.32.7 → 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 +10 -5
- package/readme.md +24 -5
- package/scripting/services.d.ts +40 -40
- package/scripting/types.d.ts +391 -391
package/package.json
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vario-software/types",
|
|
3
|
-
"version": "2026.32.
|
|
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
|
|
1
|
+
# VARIO Cloud TypeScript Definitions
|
|
2
2
|
|
|
3
|
-
TypeScript type definitions for the VARIO Cloud platform.
|
|
3
|
+
TypeScript type definitions for the VARIO Cloud platform.
|
|
4
4
|
|
|
5
|
-
|
|
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)
|
package/scripting/services.d.ts
CHANGED
|
@@ -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}
|
|
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,
|
|
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}
|
|
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,
|
|
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
|
|
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
|
|
1833
|
+
edit(documentId: number): Document;
|
|
1834
1834
|
|
|
1835
1835
|
/**
|
|
1836
1836
|
* Erstellt ein AdditionalParameter-Objekt
|
|
@@ -2871,26 +2871,26 @@ export interface ScriptingServiceList {
|
|
|
2871
2871
|
*/
|
|
2872
2872
|
crmTaskService: CrmTaskScriptingService;
|
|
2873
2873
|
|
|
2874
|
-
/**
|
|
2875
|
-
* Service zur Verarbeitung von Accounts
|
|
2876
|
-
*/
|
|
2877
|
-
accountService: AccountScriptingService;
|
|
2878
|
-
|
|
2879
2874
|
/**
|
|
2880
2875
|
* Service zur Verarbeitung von Shelf-Documents
|
|
2881
2876
|
*/
|
|
2882
2877
|
shelfDocumentService: ShelfDocumentScriptingService;
|
|
2883
2878
|
|
|
2884
2879
|
/**
|
|
2885
|
-
*
|
|
2880
|
+
* Service zur Verarbeitung von Accounts
|
|
2886
2881
|
*/
|
|
2887
|
-
|
|
2882
|
+
accountService: AccountScriptingService;
|
|
2888
2883
|
|
|
2889
2884
|
/**
|
|
2890
2885
|
* Logging im Scripting
|
|
2891
2886
|
*/
|
|
2892
2887
|
logger: LoggingScriptingService;
|
|
2893
2888
|
|
|
2889
|
+
/**
|
|
2890
|
+
* Verwaltung von Versandarten
|
|
2891
|
+
*/
|
|
2892
|
+
deliveryMethodService: DeliveryMethodScriptingService;
|
|
2893
|
+
|
|
2894
2894
|
/**
|
|
2895
2895
|
* Service zur Verarbeitung von Deals
|
|
2896
2896
|
*/
|
|
@@ -2912,14 +2912,14 @@ export interface ScriptingServiceList {
|
|
|
2912
2912
|
textTemplateService: TextTemplateScriptingService;
|
|
2913
2913
|
|
|
2914
2914
|
/**
|
|
2915
|
-
*
|
|
2915
|
+
* Ausgabe-Support Methoden
|
|
2916
2916
|
*/
|
|
2917
|
-
|
|
2917
|
+
outputHelper: ScriptOutputHelperService;
|
|
2918
2918
|
|
|
2919
2919
|
/**
|
|
2920
|
-
*
|
|
2920
|
+
* Service zur Verarbeitung von Hauptwarengruppen im Skripten
|
|
2921
2921
|
*/
|
|
2922
|
-
|
|
2922
|
+
productMainGroupService: ProductMainGroupScriptingService;
|
|
2923
2923
|
|
|
2924
2924
|
/**
|
|
2925
2925
|
* Service zur Verarbeitung von Account-Listings in Skripten
|
|
@@ -2947,14 +2947,14 @@ export interface ScriptingServiceList {
|
|
|
2947
2947
|
utils: ScriptingUtilities;
|
|
2948
2948
|
|
|
2949
2949
|
/**
|
|
2950
|
-
* Service zur Verarbeitung von
|
|
2950
|
+
* Service zur Verarbeitung von Variantenschemas in Skripten
|
|
2951
2951
|
*/
|
|
2952
|
-
|
|
2952
|
+
variantSchemaService: VariantSchemaScriptingService;
|
|
2953
2953
|
|
|
2954
2954
|
/**
|
|
2955
|
-
* Service zur Verarbeitung von
|
|
2955
|
+
* Service zur Verarbeitung von Artikel-Kundenbeziehungen im Skripten
|
|
2956
2956
|
*/
|
|
2957
|
-
|
|
2957
|
+
articleCustomerService: ArticleCustomerScriptingService;
|
|
2958
2958
|
|
|
2959
2959
|
/**
|
|
2960
2960
|
* Service zur Verarbeitung von Artikeln im Skripten
|
|
@@ -2982,14 +2982,14 @@ export interface ScriptingServiceList {
|
|
|
2982
2982
|
articleStorageService: ArticleStorageScriptingService;
|
|
2983
2983
|
|
|
2984
2984
|
/**
|
|
2985
|
-
*
|
|
2985
|
+
* Anfragen von neuen Zählerkreis-Nummern
|
|
2986
2986
|
*/
|
|
2987
|
-
|
|
2987
|
+
freeSequencerService: FreeSequencerScriptingService;
|
|
2988
2988
|
|
|
2989
2989
|
/**
|
|
2990
|
-
*
|
|
2990
|
+
* Verwaltung von Zahlungsarten
|
|
2991
2991
|
*/
|
|
2992
|
-
|
|
2992
|
+
paymentMethodService: PaymentMethodScriptingService;
|
|
2993
2993
|
|
|
2994
2994
|
/**
|
|
2995
2995
|
* Service zur Verarbeitung von AssetsTypen in Skripten
|
|
@@ -3002,14 +3002,14 @@ export interface ScriptingServiceList {
|
|
|
3002
3002
|
stockService: StockScriptingService;
|
|
3003
3003
|
|
|
3004
3004
|
/**
|
|
3005
|
-
* Service zur Verarbeitung von
|
|
3005
|
+
* Service zur Verarbeitung von Variantenwerten in Skripten
|
|
3006
3006
|
*/
|
|
3007
|
-
|
|
3007
|
+
variantValueService: VariantValueScriptingService;
|
|
3008
3008
|
|
|
3009
3009
|
/**
|
|
3010
|
-
* Service zur Verarbeitung von
|
|
3010
|
+
* Service zur Verarbeitung von Assets in Skripten
|
|
3011
3011
|
*/
|
|
3012
|
-
|
|
3012
|
+
assetService: AssetScriptingService;
|
|
3013
3013
|
|
|
3014
3014
|
/**
|
|
3015
3015
|
* Service zur Verarbeitung von ScenarioActualValue
|
|
@@ -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
|
|
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,
|
|
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
|