@vario-software/types 2026.32.7 → 2026.32.9

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/app/context.d.ts CHANGED
@@ -10,6 +10,7 @@ export interface AccessTokenPayload
10
10
  exp?: number;
11
11
  iat?: number;
12
12
  tenantSubdomain?: string;
13
+ appDomain?: string;
13
14
  isSuperUser?: boolean;
14
15
  permissions?: string[];
15
16
  tokenType?: string;
@@ -25,6 +26,7 @@ export interface RequestContext
25
26
  startTime: number;
26
27
  appToken?: string;
27
28
  accessToken?: AccessTokenPayload;
29
+ appDomain?: string;
28
30
  runAsAppUser?: boolean;
29
31
  migration?: string;
30
32
  parameter?: Record<string, string>;
@@ -37,6 +39,7 @@ export declare function getContext(): RequestContext;
37
39
  export declare function getAppToken(): string | undefined;
38
40
  export declare function getAccessToken(): AccessTokenPayload | undefined;
39
41
  export declare function getTenant(): string | undefined;
42
+ export declare function getAppDomain(): string | undefined;
40
43
  export declare function getExternalUserId(): string | undefined;
41
44
  export declare function getRequest(): Request;
42
45
  export declare function getResponse(): Response;
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "@vario-software/types",
3
- "version": "2026.32.7",
3
+ "version": "2026.32.9",
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)
@@ -554,27 +554,27 @@ export interface ArticleScriptingService {
554
554
  *
555
555
  * @param {string} batchIdentifier - ID des Etikettendrucklaufs
556
556
  * @param {number} articleId - ID des zu druckenden Artikels
557
- * @param {number} labelCount - Anzahl der zu druckenden Etiketten
558
557
  */
559
- addLabelToPrintBatch(batchIdentifier: string, articleId: number, labelCount: number): void;
558
+ addLabelToPrintBatch(batchIdentifier: string, articleId: number): void;
560
559
 
561
560
  /**
562
561
  * Fügt Informationen zum Druck Etiketten zu einem Artikel zu einem Etikettendrucklauf hinzu
563
562
  *
564
563
  * @param {string} batchIdentifier - ID des Etikettendrucklaufs
565
564
  * @param {number} articleId - ID des zu druckenden Artikels
565
+ * @param {number} articleSerialNumberId - ID der zu druckenden Seriennummer
566
+ * @param {number} labelCount - Anzahl der zu druckenden Etiketten
566
567
  */
567
- addLabelToPrintBatch(batchIdentifier: string, articleId: number): void;
568
+ addLabelToPrintBatch(batchIdentifier: string, articleId: number, articleSerialNumberId: number, labelCount: number): void;
568
569
 
569
570
  /**
570
571
  * Fügt Informationen zum Druck Etiketten zu einem Artikel zu einem Etikettendrucklauf hinzu
571
572
  *
572
573
  * @param {string} batchIdentifier - ID des Etikettendrucklaufs
573
574
  * @param {number} articleId - ID des zu druckenden Artikels
574
- * @param {number} articleSerialNumberId - ID der zu druckenden Seriennummer
575
575
  * @param {number} labelCount - Anzahl der zu druckenden Etiketten
576
576
  */
577
- addLabelToPrintBatch(batchIdentifier: string, articleId: number, articleSerialNumberId: number, labelCount: number): void;
577
+ addLabelToPrintBatch(batchIdentifier: string, articleId: number, labelCount: number): void;
578
578
 
579
579
  /**
580
580
  * Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
@@ -707,21 +707,21 @@ Die Texte werden zur Sprache der eigenen Adresse gespeichert.
707
707
  readById(id: number, languageCode: string): Article;
708
708
 
709
709
  /**
710
- * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache {@code languageCode}
710
+ * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse
711
711
  *
712
712
  * @param {string} articleNumber - Eine Artikelnummer
713
- * @param {string} languageCode - Zu verwendende Sprache
714
713
  * @return {Article} Der gelesene Artikel
715
714
  */
716
- readByNumber(articleNumber: string, languageCode: string): Article;
715
+ readByNumber(articleNumber: string): Article;
717
716
 
718
717
  /**
719
- * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse
718
+ * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache {@code languageCode}
720
719
  *
721
720
  * @param {string} articleNumber - Eine Artikelnummer
721
+ * @param {string} languageCode - Zu verwendende Sprache
722
722
  * @return {Article} Der gelesene Artikel
723
723
  */
724
- readByNumber(articleNumber: string): Article;
724
+ readByNumber(articleNumber: string, languageCode: string): Article;
725
725
 
726
726
  /**
727
727
  * Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
@@ -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,18 +1802,18 @@ 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)
@@ -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 -
1944
1945
  */
1945
- sendViaMail(documentId: number): void;
1946
+ sendViaMail(documentId: number, reportGroupIdentifier: string): void;
1946
1947
 
1947
1948
  /**
1948
1949
  * Versendet einen Beleg per Mail
1949
1950
  *
1950
1951
  * @param {number} documentId - ID des zu versendenden Belegs
1951
- * @param {string} reportGroupIdentifier -
1952
1952
  */
1953
- sendViaMail(documentId: number, reportGroupIdentifier: string): void;
1953
+ sendViaMail(documentId: number): void;
1954
1954
 
1955
1955
  /**
1956
1956
  * Überführt einen Beleg in einen anderen Status
@@ -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
- * Verwaltung von Versandarten
2880
+ * Service zur Verarbeitung von Accounts
2886
2881
  */
2887
- deliveryMethodService: DeliveryMethodScriptingService;
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
- * Service zur Verarbeitung von Hauptwarengruppen im Skripten
2915
+ * Ausgabe-Support Methoden
2916
2916
  */
2917
- productMainGroupService: ProductMainGroupScriptingService;
2917
+ outputHelper: ScriptOutputHelperService;
2918
2918
 
2919
2919
  /**
2920
- * Ausgabe-Support Methoden
2920
+ * Service zur Verarbeitung von Hauptwarengruppen im Skripten
2921
2921
  */
2922
- outputHelper: ScriptOutputHelperService;
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 Artikel-Kundenbeziehungen im Skripten
2950
+ * Service zur Verarbeitung von Variantenschemas in Skripten
2951
2951
  */
2952
- articleCustomerService: ArticleCustomerScriptingService;
2952
+ variantSchemaService: VariantSchemaScriptingService;
2953
2953
 
2954
2954
  /**
2955
- * Service zur Verarbeitung von Variantenschemas in Skripten
2955
+ * Service zur Verarbeitung von Artikel-Kundenbeziehungen im Skripten
2956
2956
  */
2957
- variantSchemaService: VariantSchemaScriptingService;
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
- * Verwaltung von Zahlungsarten
2985
+ * Anfragen von neuen Zählerkreis-Nummern
2986
2986
  */
2987
- paymentMethodService: PaymentMethodScriptingService;
2987
+ freeSequencerService: FreeSequencerScriptingService;
2988
2988
 
2989
2989
  /**
2990
- * Anfragen von neuen Zählerkreis-Nummern
2990
+ * Verwaltung von Zahlungsarten
2991
2991
  */
2992
- freeSequencerService: FreeSequencerScriptingService;
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 Assets in Skripten
3005
+ * Service zur Verarbeitung von Variantenwerten in Skripten
3006
3006
  */
3007
- assetService: AssetScriptingService;
3007
+ variantValueService: VariantValueScriptingService;
3008
3008
 
3009
3009
  /**
3010
- * Service zur Verarbeitung von Variantenwerten in Skripten
3010
+ * Service zur Verarbeitung von Assets in Skripten
3011
3011
  */
3012
- variantValueService: VariantValueScriptingService;
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 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