@vario-software/types 2026.27.0 → 2026.28.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.
- package/package.json +1 -1
- package/schema/erp.d.ts +2021 -61
- package/scripting/services.d.ts +125 -60
- package/scripting/types.d.ts +388 -336
package/scripting/services.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
CrmReminder, CrmState, CrmSubType, CrmTask, CrmTaskParticipant,
|
|
13
13
|
CrmTypedDocumentRef, CrmTypedDocumentRefList, CurrencyReference, Customer,
|
|
14
14
|
DangerousGoodInformation, DealNotificationEventConfig, DeliveryMethod,
|
|
15
|
-
DeliveryTerm, Document, DocumentAdditionalInfo,
|
|
15
|
+
DeliveryTerm, DmsOutputStream, Document, DocumentAdditionalInfo,
|
|
16
16
|
DocumentAdditionalInfo$IncomingGoodsTarget,
|
|
17
17
|
DocumentAdditionalInfo$IncomingGoodsTargetOfLine,
|
|
18
18
|
DocumentAdditionalInfo$OrderIntoPickingConvertResult,
|
|
@@ -28,34 +28,36 @@ import {
|
|
|
28
28
|
DocumentTransferToStateRequest, DocumentTransferToTypeRequest,
|
|
29
29
|
DocumentType, DocumentTypeFollowUp, DocumentTypeLabel, DocumentTypeState,
|
|
30
30
|
DummySerialNumberStockTransferApi, ECrmPriorityType,
|
|
31
|
-
ECrmSpecialDocumentRefType, ECrmType,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
FabricationSerialNumber, Group, OpenItem,
|
|
36
|
-
|
|
37
|
-
PicklistLineBooking, PicklistLineComponent,
|
|
38
|
-
PicklistTemplate
|
|
31
|
+
ECrmSpecialDocumentRefType, ECrmType, ELinebreakType,
|
|
32
|
+
EScriptingAuthenticationType, EShelfDocumentDeletionState,
|
|
33
|
+
FabricationComponentForProduction, FabricationDefectiveRequest,
|
|
34
|
+
FabricationProduceRequest, FabricationRemainingComponent,
|
|
35
|
+
FabricationRevertRequest, FabricationSerialNumber, Group, OpenItem,
|
|
36
|
+
PaymentMethod, PaymentTerm, PaymentTermRef, PickTrolley, PickTrolleyBox,
|
|
37
|
+
Picklist, PicklistLine, PicklistLineBooking, PicklistLineComponent,
|
|
38
|
+
PicklistTemplate, PicklistTemplate$DateRange,
|
|
39
|
+
PicklistTemplate$OrderSelectionOptions,
|
|
39
40
|
PicklistTemplate$PicklistCreationOptions,
|
|
40
41
|
PicklistTemplate$PicklistProcessingOptions,
|
|
41
|
-
PicklistTemplate$PicklistScript,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
RequestDocumentLineFabricationDetail,
|
|
42
|
+
PicklistTemplate$PicklistScript, PlainScriptingWriter,
|
|
43
|
+
PriceSelectionCriteria, Product, ProductArticleRef, ProductDiscount,
|
|
44
|
+
ProductGroup, ProductMainGroup, ProductPrice, RecommendedRetailPrice,
|
|
45
|
+
RequestDocument, RequestDocumentLine, RequestDocumentLineBooking,
|
|
46
|
+
RequestDocumentLineCommission, RequestDocumentLineFabricationDetail,
|
|
46
47
|
RequestDocumentLineShippingCostDetail, RequestDocumentPriceModifier,
|
|
47
48
|
RequestDocumentText, RevenueCalculation, SalesAgent, Scenario,
|
|
48
49
|
ScenarioActualValue, ScenarioDimension, ScenarioDimensionValue,
|
|
49
|
-
ScriptOutputRequest, ScriptingDate, ScriptingDateTime,
|
|
50
|
+
ScriptOutputRequest, ScriptingDate, ScriptingDateTime,
|
|
51
|
+
ScriptingOutputStream, ScriptingXmlWriter, SecureHttpClient,
|
|
50
52
|
SequencerConfiguration, SequencerConfigurationDetail,
|
|
51
53
|
SerialNumberWithQuantityApi, ShelfDocument, ShelfDocumentAttribution,
|
|
52
54
|
ShelfDocumentType, ShelfFile, ShelfFileMetaData, ShelfShare,
|
|
53
55
|
ShelfTranslatableText, Stock, StockMovementManualApi, StockTransferApi,
|
|
54
|
-
StockTransferResult, StorageBinRef,
|
|
55
|
-
|
|
56
|
-
UnitTypeReference, UpdateDocumentRequest, User,
|
|
57
|
-
VariantAttributeListing, VariantDescription,
|
|
58
|
-
VariantValueListing, VariantValueReference
|
|
56
|
+
StockTransferResult, StorageBinRef, StringCollectorOutputStream,
|
|
57
|
+
SubFileInfo, Supplier, TagDto, TaxIdForeignCountry, TextEnumCreate,
|
|
58
|
+
TextEnumGet, TssSignature, UnitTypeReference, UpdateDocumentRequest, User,
|
|
59
|
+
VariantAttribute, VariantAttributeListing, VariantDescription,
|
|
60
|
+
VariantSchema, VariantValue, VariantValueListing, VariantValueReference
|
|
59
61
|
} from "./types"
|
|
60
62
|
|
|
61
63
|
/**
|
|
@@ -1771,20 +1773,20 @@ export interface DocumentScriptingService {
|
|
|
1771
1773
|
* Kopiert einen Beleg in die vorgegebene Ziel-Belegart
|
|
1772
1774
|
*
|
|
1773
1775
|
* @param {number} documentId - ID des zu kopierenden Belegs
|
|
1774
|
-
* @param {string}
|
|
1775
|
-
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
1776
|
+
* @param {string} targetDocumentTypeLabel - Ziel-Belegart der Kopie
|
|
1776
1777
|
* @return {Document} Der kopierte Beleg
|
|
1777
1778
|
*/
|
|
1778
|
-
copy(documentId: number,
|
|
1779
|
+
copy(documentId: number, targetDocumentTypeLabel: string): Document;
|
|
1779
1780
|
|
|
1780
1781
|
/**
|
|
1781
1782
|
* Kopiert einen Beleg in die vorgegebene Ziel-Belegart
|
|
1782
1783
|
*
|
|
1783
1784
|
* @param {number} documentId - ID des zu kopierenden Belegs
|
|
1784
|
-
* @param {string}
|
|
1785
|
+
* @param {string} targetDocumentType - Ziel-Belegart der Kopie
|
|
1786
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
1785
1787
|
* @return {Document} Der kopierte Beleg
|
|
1786
1788
|
*/
|
|
1787
|
-
copy(documentId: number,
|
|
1789
|
+
copy(documentId: number, targetDocumentType: string, additionalParameters: Array<AdditionalParameter>): Document;
|
|
1788
1790
|
|
|
1789
1791
|
/**
|
|
1790
1792
|
* Erstellt einen neuen Beleg
|
|
@@ -1815,18 +1817,18 @@ export interface DocumentScriptingService {
|
|
|
1815
1817
|
* Startet die Bearbeitung eines Belegs (Transition SAVED -> EDIT)
|
|
1816
1818
|
*
|
|
1817
1819
|
* @param {number} documentId - ID des Belegs
|
|
1820
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
1818
1821
|
* @return {Document} Der Beleg in Bearbeitung
|
|
1819
1822
|
*/
|
|
1820
|
-
edit(documentId: number): Document;
|
|
1823
|
+
edit(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
|
|
1821
1824
|
|
|
1822
1825
|
/**
|
|
1823
1826
|
* Startet die Bearbeitung eines Belegs (Transition SAVED -> EDIT)
|
|
1824
1827
|
*
|
|
1825
1828
|
* @param {number} documentId - ID des Belegs
|
|
1826
|
-
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
1827
1829
|
* @return {Document} Der Beleg in Bearbeitung
|
|
1828
1830
|
*/
|
|
1829
|
-
edit(documentId: number
|
|
1831
|
+
edit(documentId: number): Document;
|
|
1830
1832
|
|
|
1831
1833
|
/**
|
|
1832
1834
|
* Erstellt ein AdditionalParameter-Objekt
|
|
@@ -1929,16 +1931,16 @@ export interface DocumentScriptingService {
|
|
|
1929
1931
|
* Versendet einen Beleg per Mail
|
|
1930
1932
|
*
|
|
1931
1933
|
* @param {number} documentId - ID des zu versendenden Belegs
|
|
1934
|
+
* @param {string} reportGroupIdentifier -
|
|
1932
1935
|
*/
|
|
1933
|
-
sendViaMail(documentId: number): void;
|
|
1936
|
+
sendViaMail(documentId: number, reportGroupIdentifier: string): void;
|
|
1934
1937
|
|
|
1935
1938
|
/**
|
|
1936
1939
|
* Versendet einen Beleg per Mail
|
|
1937
1940
|
*
|
|
1938
1941
|
* @param {number} documentId - ID des zu versendenden Belegs
|
|
1939
|
-
* @param {string} reportGroupIdentifier -
|
|
1940
1942
|
*/
|
|
1941
|
-
sendViaMail(documentId: number
|
|
1943
|
+
sendViaMail(documentId: number): void;
|
|
1942
1944
|
|
|
1943
1945
|
/**
|
|
1944
1946
|
* Überführt einen Beleg in einen anderen Status
|
|
@@ -2799,6 +2801,46 @@ export interface ScriptOutputHelperService {
|
|
|
2799
2801
|
createOutputRequest(): ScriptOutputRequest;
|
|
2800
2802
|
}
|
|
2801
2803
|
|
|
2804
|
+
/**
|
|
2805
|
+
* Factory zum Erzeugen von Writern und OutputStreams
|
|
2806
|
+
*/
|
|
2807
|
+
export interface ScriptingIOFactory {
|
|
2808
|
+
|
|
2809
|
+
/**
|
|
2810
|
+
* Erzeugt einen Writer für einfache Texte ohne besondere Formatierungs- oder Syntax-Unterstützung mit Standard-Zeilenumbruch (Windows).
|
|
2811
|
+
*
|
|
2812
|
+
* @param {ScriptingOutputStream} destination - Ziel-Stream, in den geschrieben wird
|
|
2813
|
+
* @return {PlainScriptingWriter} Der erzeugte Writer
|
|
2814
|
+
*/
|
|
2815
|
+
createPlainWriter(destination: ScriptingOutputStream): PlainScriptingWriter;
|
|
2816
|
+
|
|
2817
|
+
/**
|
|
2818
|
+
* Wie createPlainWriter(ScriptingOutputStream), aber mit einstellbarer Zeichenfolge für Zeilenumbrüche
|
|
2819
|
+
*
|
|
2820
|
+
* @param {ScriptingOutputStream} destination - Ziel-Stream, in den geschrieben wird
|
|
2821
|
+
* @param {ELinebreakType} linebreakType - Zeichenfolge für einen Zeilenumbruch
|
|
2822
|
+
* @return {PlainScriptingWriter} Der erzeugte Writer
|
|
2823
|
+
*/
|
|
2824
|
+
createPlainWriter(destination: ScriptingOutputStream, linebreakType: ELinebreakType): PlainScriptingWriter;
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* Erzeugt einen StringCollector, der geschriebene Daten als String sammelt.
|
|
2828
|
+
*
|
|
2829
|
+
* @return {StringCollectorOutputStream} Der erzeugte StringCollector
|
|
2830
|
+
*/
|
|
2831
|
+
createStringCollector(): StringCollectorOutputStream;
|
|
2832
|
+
|
|
2833
|
+
/**
|
|
2834
|
+
* Erzeugt einen XmlWriter, der in den übergebenen Stream schreibt.
|
|
2835
|
+
*
|
|
2836
|
+
* @param {ScriptingOutputStream} destination - Ziel-Stream, in den geschrieben wird
|
|
2837
|
+
* @param {string} encoding - Encoding (z.B. UTF-8)
|
|
2838
|
+
* @param {boolean} prettyPrint - besser leserlich formatieren?
|
|
2839
|
+
* @return {ScriptingXmlWriter} Der erzeugte XmlWriter
|
|
2840
|
+
*/
|
|
2841
|
+
createXmlWriter(destination: ScriptingOutputStream, encoding: string, prettyPrint: boolean): ScriptingXmlWriter;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2802
2844
|
/**
|
|
2803
2845
|
* Services
|
|
2804
2846
|
*/
|
|
@@ -2819,26 +2861,26 @@ export interface ScriptingServiceList {
|
|
|
2819
2861
|
*/
|
|
2820
2862
|
crmTaskService: CrmTaskScriptingService;
|
|
2821
2863
|
|
|
2822
|
-
/**
|
|
2823
|
-
* Service zur Verarbeitung von Accounts
|
|
2824
|
-
*/
|
|
2825
|
-
accountService: AccountScriptingService;
|
|
2826
|
-
|
|
2827
2864
|
/**
|
|
2828
2865
|
* Service zur Verarbeitung von Shelf-Documents
|
|
2829
2866
|
*/
|
|
2830
2867
|
shelfDocumentService: ShelfDocumentScriptingService;
|
|
2831
2868
|
|
|
2832
2869
|
/**
|
|
2833
|
-
*
|
|
2870
|
+
* Service zur Verarbeitung von Accounts
|
|
2834
2871
|
*/
|
|
2835
|
-
|
|
2872
|
+
accountService: AccountScriptingService;
|
|
2836
2873
|
|
|
2837
2874
|
/**
|
|
2838
2875
|
* Logging im Scripting
|
|
2839
2876
|
*/
|
|
2840
2877
|
logger: LoggingScriptingService;
|
|
2841
2878
|
|
|
2879
|
+
/**
|
|
2880
|
+
* Verwaltung von Versandarten
|
|
2881
|
+
*/
|
|
2882
|
+
deliveryMethodService: DeliveryMethodScriptingService;
|
|
2883
|
+
|
|
2842
2884
|
/**
|
|
2843
2885
|
* Service zur Verarbeitung von Deals
|
|
2844
2886
|
*/
|
|
@@ -2855,14 +2897,14 @@ export interface ScriptingServiceList {
|
|
|
2855
2897
|
productGroupService: ProductGroupScriptingService;
|
|
2856
2898
|
|
|
2857
2899
|
/**
|
|
2858
|
-
*
|
|
2900
|
+
* Ausgabe-Support Methoden
|
|
2859
2901
|
*/
|
|
2860
|
-
|
|
2902
|
+
outputHelper: ScriptOutputHelperService;
|
|
2861
2903
|
|
|
2862
2904
|
/**
|
|
2863
|
-
*
|
|
2905
|
+
* Service zur Verarbeitung von Hauptwarengruppen im Skripten
|
|
2864
2906
|
*/
|
|
2865
|
-
|
|
2907
|
+
productMainGroupService: ProductMainGroupScriptingService;
|
|
2866
2908
|
|
|
2867
2909
|
/**
|
|
2868
2910
|
* Service zur Verarbeitung von Account-Listings in Skripten
|
|
@@ -2874,6 +2916,11 @@ export interface ScriptingServiceList {
|
|
|
2874
2916
|
*/
|
|
2875
2917
|
dtoFactory: dtoFactory;
|
|
2876
2918
|
|
|
2919
|
+
/**
|
|
2920
|
+
* Factory zum Erzeugen von Writern und OutputStreams
|
|
2921
|
+
*/
|
|
2922
|
+
ioFactory: ScriptingIOFactory;
|
|
2923
|
+
|
|
2877
2924
|
/**
|
|
2878
2925
|
* Service zur Verarbeitung von Produktpreisen in Skripten
|
|
2879
2926
|
*/
|
|
@@ -2885,14 +2932,14 @@ export interface ScriptingServiceList {
|
|
|
2885
2932
|
utils: ScriptingUtilities;
|
|
2886
2933
|
|
|
2887
2934
|
/**
|
|
2888
|
-
* Service zur Verarbeitung von
|
|
2935
|
+
* Service zur Verarbeitung von Variantenschemas in Skripten
|
|
2889
2936
|
*/
|
|
2890
|
-
|
|
2937
|
+
variantSchemaService: VariantSchemaScriptingService;
|
|
2891
2938
|
|
|
2892
2939
|
/**
|
|
2893
|
-
* Service zur Verarbeitung von
|
|
2940
|
+
* Service zur Verarbeitung von Artikel-Kundenbeziehungen im Skripten
|
|
2894
2941
|
*/
|
|
2895
|
-
|
|
2942
|
+
articleCustomerService: ArticleCustomerScriptingService;
|
|
2896
2943
|
|
|
2897
2944
|
/**
|
|
2898
2945
|
* Service zur Verarbeitung von Artikeln im Skripten
|
|
@@ -2920,14 +2967,14 @@ export interface ScriptingServiceList {
|
|
|
2920
2967
|
articleStorageService: ArticleStorageScriptingService;
|
|
2921
2968
|
|
|
2922
2969
|
/**
|
|
2923
|
-
*
|
|
2970
|
+
* Anfragen von neuen Zählerkreis-Nummern
|
|
2924
2971
|
*/
|
|
2925
|
-
|
|
2972
|
+
freeSequencerService: FreeSequencerScriptingService;
|
|
2926
2973
|
|
|
2927
2974
|
/**
|
|
2928
|
-
*
|
|
2975
|
+
* Verwaltung von Zahlungsarten
|
|
2929
2976
|
*/
|
|
2930
|
-
|
|
2977
|
+
paymentMethodService: PaymentMethodScriptingService;
|
|
2931
2978
|
|
|
2932
2979
|
/**
|
|
2933
2980
|
* Service zur Verarbeitung von AssetsTypen in Skripten
|
|
@@ -2940,14 +2987,14 @@ export interface ScriptingServiceList {
|
|
|
2940
2987
|
stockService: StockScriptingService;
|
|
2941
2988
|
|
|
2942
2989
|
/**
|
|
2943
|
-
* Service zur Verarbeitung von
|
|
2990
|
+
* Service zur Verarbeitung von Variantenwerten in Skripten
|
|
2944
2991
|
*/
|
|
2945
|
-
|
|
2992
|
+
variantValueService: VariantValueScriptingService;
|
|
2946
2993
|
|
|
2947
2994
|
/**
|
|
2948
|
-
* Service zur Verarbeitung von
|
|
2995
|
+
* Service zur Verarbeitung von Assets in Skripten
|
|
2949
2996
|
*/
|
|
2950
|
-
|
|
2997
|
+
assetService: AssetScriptingService;
|
|
2951
2998
|
|
|
2952
2999
|
/**
|
|
2953
3000
|
* Service zur Verarbeitung von ScenarioActualValue
|
|
@@ -3079,6 +3126,15 @@ export interface ScriptingUtilities {
|
|
|
3079
3126
|
*/
|
|
3080
3127
|
export interface ShelfDocumentScriptingService {
|
|
3081
3128
|
|
|
3129
|
+
/**
|
|
3130
|
+
* Legt ein Dokument an. Der Inhalt muss noch separat hochgeladen werden.
|
|
3131
|
+
*
|
|
3132
|
+
* @param {string} fileName - Dateiname
|
|
3133
|
+
* @param {string} documentTypeKey - Schlüssel des Dokumenttypen
|
|
3134
|
+
* @return {ShelfDocument} Das angelegte Dokument
|
|
3135
|
+
*/
|
|
3136
|
+
create(fileName: string, documentTypeKey: string): ShelfDocument;
|
|
3137
|
+
|
|
3082
3138
|
/**
|
|
3083
3139
|
* Erstellt eine neue Verknüpfung zwischen einem DMS-Dokument und einem Geschäftsobjekt
|
|
3084
3140
|
*
|
|
@@ -3087,6 +3143,15 @@ export interface ShelfDocumentScriptingService {
|
|
|
3087
3143
|
*/
|
|
3088
3144
|
createAttribution(attribution: ShelfDocumentAttribution): ShelfDocumentAttribution;
|
|
3089
3145
|
|
|
3146
|
+
/**
|
|
3147
|
+
* Erzeugt einen OutputStream, der geschriebene Daten als Datei ins DMS lädt.
|
|
3148
|
+
*
|
|
3149
|
+
* @param {number} shelfDocumentId - ID des Dokuments
|
|
3150
|
+
* @param {string} fileName - Dateiname
|
|
3151
|
+
* @return {DmsOutputStream} Der erzeugte OutputStream
|
|
3152
|
+
*/
|
|
3153
|
+
createDmsOutputStream(shelfDocumentId: number, fileName: string): DmsOutputStream;
|
|
3154
|
+
|
|
3090
3155
|
/**
|
|
3091
3156
|
* Löscht eine DMS-Verknüpfung
|
|
3092
3157
|
*
|
|
@@ -3095,24 +3160,24 @@ export interface ShelfDocumentScriptingService {
|
|
|
3095
3160
|
deleteAttribution(attributionId: number): void;
|
|
3096
3161
|
|
|
3097
3162
|
/**
|
|
3098
|
-
* Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
|
|
3163
|
+
* Lädt eine Datei von einer URL mit Authentifizierung herunter und erstellt ein neues DMS-Dokument
|
|
3099
3164
|
*
|
|
3100
3165
|
* @param {string} url - Download-URL
|
|
3166
|
+
* @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
|
|
3167
|
+
* @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
|
|
3101
3168
|
* @param {string} documentTypeKey - Schlüssel der Dokumentenart
|
|
3102
3169
|
* @return {ShelfDocument} Das neu erstellte DMS-Dokument
|
|
3103
3170
|
*/
|
|
3104
|
-
downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
|
|
3171
|
+
downloadIntoDMS(url: string, authenticationType: EScriptingAuthenticationType, authValue: string, documentTypeKey: string): ShelfDocument;
|
|
3105
3172
|
|
|
3106
3173
|
/**
|
|
3107
|
-
* Lädt eine Datei von einer URL
|
|
3174
|
+
* Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
|
|
3108
3175
|
*
|
|
3109
3176
|
* @param {string} url - Download-URL
|
|
3110
|
-
* @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
|
|
3111
|
-
* @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
|
|
3112
3177
|
* @param {string} documentTypeKey - Schlüssel der Dokumentenart
|
|
3113
3178
|
* @return {ShelfDocument} Das neu erstellte DMS-Dokument
|
|
3114
3179
|
*/
|
|
3115
|
-
downloadIntoDMS(url: string,
|
|
3180
|
+
downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
|
|
3116
3181
|
|
|
3117
3182
|
/**
|
|
3118
3183
|
* Findet ein Dokumentenart über ihren Schlüssel
|