@vario-software/types 2026.36.4 → 2026.37.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 +238 -28
- package/scripting/output_module_script.d.ts +98 -0
- package/scripting/services.d.ts +145 -42
- package/scripting/types.d.ts +422 -292
package/scripting/services.d.ts
CHANGED
|
@@ -8,13 +8,14 @@ import {
|
|
|
8
8
|
ArticlePrintLabelSettings, ArticleSerialNumber, ArticleStorage,
|
|
9
9
|
ArticleSupplier, AssemblyComponentReturnLine, Asset, AssetType,
|
|
10
10
|
BulkTransferRequestApi, BulkTransferResult, BundleSchema,
|
|
11
|
-
BundleUnitTypeRatio, Contact, CountryReference,
|
|
12
|
-
CrmActivity, CrmActivityType, CrmChecklistItem,
|
|
13
|
-
|
|
14
|
-
CrmReminder, CrmState, CrmSubType, CrmTask,
|
|
15
|
-
CrmTypedDocumentRef, CrmTypedDocumentRefList,
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
BundleUnitTypeRatio, CommissionAssignment, Contact, CountryReference,
|
|
12
|
+
CreateNewDocumentRequest, CrmActivity, CrmActivityType, CrmChecklistItem,
|
|
13
|
+
CrmDeal, CrmDealTopic, CrmObjectRef, CrmParticipant, CrmPriority,
|
|
14
|
+
CrmProject, CrmReference, CrmReminder, CrmState, CrmSubType, CrmTask,
|
|
15
|
+
CrmTaskParticipant, CrmTypedDocumentRef, CrmTypedDocumentRefList,
|
|
16
|
+
CurrencyReference, Customer, DangerousGoodInformation,
|
|
17
|
+
DealNotificationEventConfig, DeliveryMethod, DeliveryTerm, DmsOutputStream,
|
|
18
|
+
Document, DocumentAdditionalInfo,
|
|
18
19
|
DocumentAdditionalInfo$IncomingGoodsTarget,
|
|
19
20
|
DocumentAdditionalInfo$IncomingGoodsTargetOfLine,
|
|
20
21
|
DocumentAdditionalInfo$PrintedTranslatedField, DocumentAddress,
|
|
@@ -1148,6 +1149,82 @@ export interface BundleSchemaScriptingService {
|
|
|
1148
1149
|
update(toUpdate: BundleSchema): BundleSchema;
|
|
1149
1150
|
}
|
|
1150
1151
|
|
|
1152
|
+
/**
|
|
1153
|
+
* Service for processing commission assignments
|
|
1154
|
+
*/
|
|
1155
|
+
export interface CommissionAssignmentScriptingService {
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Persistiert ein DTO
|
|
1159
|
+
*
|
|
1160
|
+
* @param {CommissionAssignment} toCreate - Das zu persistierende DTO
|
|
1161
|
+
* @return {CommissionAssignment} Das persistierte DTO
|
|
1162
|
+
*/
|
|
1163
|
+
create(toCreate: CommissionAssignment): CommissionAssignment;
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* Löscht eine Entity
|
|
1167
|
+
*
|
|
1168
|
+
* @param {number} id - ID der zu löschenden Entity
|
|
1169
|
+
*/
|
|
1170
|
+
deleteById(id: number): void;
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* Returns the commission assignments of an account
|
|
1174
|
+
*
|
|
1175
|
+
* @param {number} accountId - ID of an account
|
|
1176
|
+
* @return {Array<CommissionAssignment>} List of commission assignments
|
|
1177
|
+
*/
|
|
1178
|
+
findAllByAccountId(accountId: number): Array<CommissionAssignment>;
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Returns the commission assignments of a sales agent
|
|
1182
|
+
*
|
|
1183
|
+
* @param {number} salesAgentId - ID of a sales agent account
|
|
1184
|
+
* @return {Array<CommissionAssignment>} List of commission assignments
|
|
1185
|
+
*/
|
|
1186
|
+
findAllBySalesAgentId(salesAgentId: number): Array<CommissionAssignment>;
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Erstellt eine neue DTO-Instanz
|
|
1190
|
+
*
|
|
1191
|
+
* @return {CommissionAssignment} Die neue DTO-Instanz
|
|
1192
|
+
*/
|
|
1193
|
+
getNewDto(): CommissionAssignment;
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* Liest eine Liste von DTOs
|
|
1197
|
+
*
|
|
1198
|
+
* @param {Array<number>} ids - Die Liste der gelesenen DTOs
|
|
1199
|
+
* @return {Array<CommissionAssignment>} Die Liste der gelesenen DTOs
|
|
1200
|
+
*/
|
|
1201
|
+
readAllById(ids: Array<number>): Array<CommissionAssignment>;
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* Liest ein DTO
|
|
1205
|
+
*
|
|
1206
|
+
* @param {number} id - ID vom zu lesenden DTO
|
|
1207
|
+
* @return {CommissionAssignment} Das gelesene DTO
|
|
1208
|
+
*/
|
|
1209
|
+
readById(id: number): CommissionAssignment;
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* Persistiert eine DTO
|
|
1213
|
+
*
|
|
1214
|
+
* @param {CommissionAssignment} toStore - Das zu persistierende DTO
|
|
1215
|
+
* @return {CommissionAssignment} Das persistierte DTO
|
|
1216
|
+
*/
|
|
1217
|
+
store(toStore: CommissionAssignment): CommissionAssignment;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Aktualisiert ein persistiertes DTO
|
|
1221
|
+
*
|
|
1222
|
+
* @param {CommissionAssignment} toUpdate - Die zu aktualisierende Entity
|
|
1223
|
+
* @return {CommissionAssignment} Das aktualisierte DTO
|
|
1224
|
+
*/
|
|
1225
|
+
update(toUpdate: CommissionAssignment): CommissionAssignment;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1151
1228
|
/**
|
|
1152
1229
|
* Service zur Verarbeitung von CRM-Aktivitäten
|
|
1153
1230
|
*/
|
|
@@ -1904,18 +1981,18 @@ export interface DocumentScriptingService {
|
|
|
1904
1981
|
* Löst einen Beleg auf
|
|
1905
1982
|
*
|
|
1906
1983
|
* @param {number} documentId - ID des aufzulösenden Belegs
|
|
1984
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
1907
1985
|
* @return {Document} Der aufgelöste Beleg
|
|
1908
1986
|
*/
|
|
1909
|
-
dissolve(documentId: number): Document;
|
|
1987
|
+
dissolve(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
|
|
1910
1988
|
|
|
1911
1989
|
/**
|
|
1912
1990
|
* Löst einen Beleg auf
|
|
1913
1991
|
*
|
|
1914
1992
|
* @param {number} documentId - ID des aufzulösenden Belegs
|
|
1915
|
-
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
1916
1993
|
* @return {Document} Der aufgelöste Beleg
|
|
1917
1994
|
*/
|
|
1918
|
-
dissolve(documentId: number
|
|
1995
|
+
dissolve(documentId: number): Document;
|
|
1919
1996
|
|
|
1920
1997
|
/**
|
|
1921
1998
|
* Startet die Bearbeitung eines Belegs (Transition SAVED -> EDIT)
|
|
@@ -2099,6 +2176,22 @@ export interface DunningScriptingService {
|
|
|
2099
2176
|
sendViaMail(dunningId: number): void;
|
|
2100
2177
|
}
|
|
2101
2178
|
|
|
2179
|
+
/**
|
|
2180
|
+
* Triggers free printing for supported output modules
|
|
2181
|
+
*/
|
|
2182
|
+
export interface FreePrintingScriptingService {
|
|
2183
|
+
|
|
2184
|
+
/**
|
|
2185
|
+
* Triggers free printing for a supported output module
|
|
2186
|
+
*
|
|
2187
|
+
* @param {string} moduleKey - Key of the output module to print
|
|
2188
|
+
* @param {number} masterId - Id of the master object to print
|
|
2189
|
+
* @param {ScriptOutputRequest} request - The output request
|
|
2190
|
+
* @return {string} DMS reference of the produced output or null
|
|
2191
|
+
*/
|
|
2192
|
+
printFreeReport(moduleKey: string, masterId: number, request: ScriptOutputRequest): string;
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2102
2195
|
/**
|
|
2103
2196
|
* Anfragen von neuen Zählerkreis-Nummern
|
|
2104
2197
|
*/
|
|
@@ -2978,26 +3071,26 @@ export interface ScriptingServiceList {
|
|
|
2978
3071
|
*/
|
|
2979
3072
|
crmTaskService: CrmTaskScriptingService;
|
|
2980
3073
|
|
|
2981
|
-
/**
|
|
2982
|
-
* Service zur Verarbeitung von Shelf-Documents
|
|
2983
|
-
*/
|
|
2984
|
-
shelfDocumentService: ShelfDocumentScriptingService;
|
|
2985
|
-
|
|
2986
3074
|
/**
|
|
2987
3075
|
* Service zur Verarbeitung von Accounts
|
|
2988
3076
|
*/
|
|
2989
3077
|
accountService: AccountScriptingService;
|
|
2990
3078
|
|
|
2991
3079
|
/**
|
|
2992
|
-
*
|
|
3080
|
+
* Service zur Verarbeitung von Shelf-Documents
|
|
2993
3081
|
*/
|
|
2994
|
-
|
|
3082
|
+
shelfDocumentService: ShelfDocumentScriptingService;
|
|
2995
3083
|
|
|
2996
3084
|
/**
|
|
2997
3085
|
* Verwaltung von Versandarten
|
|
2998
3086
|
*/
|
|
2999
3087
|
deliveryMethodService: DeliveryMethodScriptingService;
|
|
3000
3088
|
|
|
3089
|
+
/**
|
|
3090
|
+
* Logging im Scripting
|
|
3091
|
+
*/
|
|
3092
|
+
logger: LoggingScriptingService;
|
|
3093
|
+
|
|
3001
3094
|
/**
|
|
3002
3095
|
* Service zur Verarbeitung von Deals
|
|
3003
3096
|
*/
|
|
@@ -3019,14 +3112,14 @@ export interface ScriptingServiceList {
|
|
|
3019
3112
|
textTemplateService: TextTemplateScriptingService;
|
|
3020
3113
|
|
|
3021
3114
|
/**
|
|
3022
|
-
*
|
|
3115
|
+
* Service zur Verarbeitung von Hauptwarengruppen im Skripten
|
|
3023
3116
|
*/
|
|
3024
|
-
|
|
3117
|
+
productMainGroupService: ProductMainGroupScriptingService;
|
|
3025
3118
|
|
|
3026
3119
|
/**
|
|
3027
|
-
*
|
|
3120
|
+
* Ausgabe-Support Methoden
|
|
3028
3121
|
*/
|
|
3029
|
-
|
|
3122
|
+
outputHelper: ScriptOutputHelperService;
|
|
3030
3123
|
|
|
3031
3124
|
/**
|
|
3032
3125
|
* Service zur Verarbeitung von Account-Listings in Skripten
|
|
@@ -3054,14 +3147,14 @@ export interface ScriptingServiceList {
|
|
|
3054
3147
|
utils: ScriptingUtilities;
|
|
3055
3148
|
|
|
3056
3149
|
/**
|
|
3057
|
-
* Service zur Verarbeitung von
|
|
3150
|
+
* Service zur Verarbeitung von Artikel-Kundenbeziehungen im Skripten
|
|
3058
3151
|
*/
|
|
3059
|
-
|
|
3152
|
+
articleCustomerService: ArticleCustomerScriptingService;
|
|
3060
3153
|
|
|
3061
3154
|
/**
|
|
3062
|
-
* Service zur Verarbeitung von
|
|
3155
|
+
* Service zur Verarbeitung von Variantenschemas in Skripten
|
|
3063
3156
|
*/
|
|
3064
|
-
|
|
3157
|
+
variantSchemaService: VariantSchemaScriptingService;
|
|
3065
3158
|
|
|
3066
3159
|
/**
|
|
3067
3160
|
* Service zur Verarbeitung von Artikeln im Skripten
|
|
@@ -3084,20 +3177,30 @@ export interface ScriptingServiceList {
|
|
|
3084
3177
|
variantValueListingService: VariantValueListingScriptingService;
|
|
3085
3178
|
|
|
3086
3179
|
/**
|
|
3087
|
-
*
|
|
3180
|
+
* Triggers free printing for supported output modules
|
|
3088
3181
|
*/
|
|
3089
|
-
|
|
3182
|
+
freePrintingService: FreePrintingScriptingService;
|
|
3090
3183
|
|
|
3091
3184
|
/**
|
|
3092
|
-
*
|
|
3185
|
+
* Service for processing commission assignments
|
|
3093
3186
|
*/
|
|
3094
|
-
|
|
3187
|
+
commissionAssignmentService: CommissionAssignmentScriptingService;
|
|
3188
|
+
|
|
3189
|
+
/**
|
|
3190
|
+
* Service zur Verarbeitung von Artikel-Lager-Beziehungen im Skripten
|
|
3191
|
+
*/
|
|
3192
|
+
articleStorageService: ArticleStorageScriptingService;
|
|
3095
3193
|
|
|
3096
3194
|
/**
|
|
3097
3195
|
* Verwaltung von Zahlungsarten
|
|
3098
3196
|
*/
|
|
3099
3197
|
paymentMethodService: PaymentMethodScriptingService;
|
|
3100
3198
|
|
|
3199
|
+
/**
|
|
3200
|
+
* Anfragen von neuen Zählerkreis-Nummern
|
|
3201
|
+
*/
|
|
3202
|
+
freeSequencerService: FreeSequencerScriptingService;
|
|
3203
|
+
|
|
3101
3204
|
/**
|
|
3102
3205
|
* Service zur Verarbeitung von AssetsTypen in Skripten
|
|
3103
3206
|
*/
|
|
@@ -3109,14 +3212,14 @@ export interface ScriptingServiceList {
|
|
|
3109
3212
|
stockService: StockScriptingService;
|
|
3110
3213
|
|
|
3111
3214
|
/**
|
|
3112
|
-
* Service zur Verarbeitung von
|
|
3215
|
+
* Service zur Verarbeitung von Assets in Skripten
|
|
3113
3216
|
*/
|
|
3114
|
-
|
|
3217
|
+
assetService: AssetScriptingService;
|
|
3115
3218
|
|
|
3116
3219
|
/**
|
|
3117
|
-
* Service zur Verarbeitung von
|
|
3220
|
+
* Service zur Verarbeitung von Variantenwerten in Skripten
|
|
3118
3221
|
*/
|
|
3119
|
-
|
|
3222
|
+
variantValueService: VariantValueScriptingService;
|
|
3120
3223
|
|
|
3121
3224
|
/**
|
|
3122
3225
|
* Service zur Verarbeitung von ScenarioActualValue
|
|
@@ -3221,18 +3324,18 @@ export interface ScriptingUtilities {
|
|
|
3221
3324
|
* Erstellt eine neue BigDecimal-Instanz
|
|
3222
3325
|
*
|
|
3223
3326
|
* @param {object} value - Der Quell-Wert
|
|
3224
|
-
* @param {number} scale - Anzahl Nachkommastellen
|
|
3225
3327
|
* @return {number} Ein BigDecimal-Wert
|
|
3226
3328
|
*/
|
|
3227
|
-
newBigDecimal(value: object
|
|
3329
|
+
newBigDecimal(value: object): number;
|
|
3228
3330
|
|
|
3229
3331
|
/**
|
|
3230
3332
|
* Erstellt eine neue BigDecimal-Instanz
|
|
3231
3333
|
*
|
|
3232
3334
|
* @param {object} value - Der Quell-Wert
|
|
3335
|
+
* @param {number} scale - Anzahl Nachkommastellen
|
|
3233
3336
|
* @return {number} Ein BigDecimal-Wert
|
|
3234
3337
|
*/
|
|
3235
|
-
newBigDecimal(value: object): number;
|
|
3338
|
+
newBigDecimal(value: object, scale: number): number;
|
|
3236
3339
|
|
|
3237
3340
|
/**
|
|
3238
3341
|
* Erstellt eine API-Referenz
|
|
@@ -3282,24 +3385,24 @@ export interface ShelfDocumentScriptingService {
|
|
|
3282
3385
|
deleteAttribution(attributionId: number): void;
|
|
3283
3386
|
|
|
3284
3387
|
/**
|
|
3285
|
-
* Lädt eine Datei von einer URL
|
|
3388
|
+
* Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
|
|
3286
3389
|
*
|
|
3287
3390
|
* @param {string} url - Download-URL
|
|
3288
|
-
* @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
|
|
3289
|
-
* @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
|
|
3290
3391
|
* @param {string} documentTypeKey - Schlüssel der Dokumentenart
|
|
3291
3392
|
* @return {ShelfDocument} Das neu erstellte DMS-Dokument
|
|
3292
3393
|
*/
|
|
3293
|
-
downloadIntoDMS(url: string,
|
|
3394
|
+
downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
|
|
3294
3395
|
|
|
3295
3396
|
/**
|
|
3296
|
-
* Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
|
|
3397
|
+
* Lädt eine Datei von einer URL mit Authentifizierung herunter und erstellt ein neues DMS-Dokument
|
|
3297
3398
|
*
|
|
3298
3399
|
* @param {string} url - Download-URL
|
|
3400
|
+
* @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
|
|
3401
|
+
* @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
|
|
3299
3402
|
* @param {string} documentTypeKey - Schlüssel der Dokumentenart
|
|
3300
3403
|
* @return {ShelfDocument} Das neu erstellte DMS-Dokument
|
|
3301
3404
|
*/
|
|
3302
|
-
downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
|
|
3405
|
+
downloadIntoDMS(url: string, authenticationType: EScriptingAuthenticationType, authValue: string, documentTypeKey: string): ShelfDocument;
|
|
3303
3406
|
|
|
3304
3407
|
/**
|
|
3305
3408
|
* Findet ein Dokumentenart über ihren Schlüssel
|