@vario-software/types 2026.12.3
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/Api.d.ts +286 -0
- package/app/ErpApi.d.ts +13 -0
- package/app/HttpError.d.ts +19 -0
- package/app/Migrator.d.ts +60 -0
- package/app/PromiseSingletonMap.d.ts +4 -0
- package/app/VarioCloudApp.d.ts +91 -0
- package/app/context.d.ts +44 -0
- package/app/modules/Eav.d.ts +16 -0
- package/app/modules/Migration.d.ts +19 -0
- package/app/modules/PermittedToken.d.ts +8 -0
- package/app/modules/TextEnum.d.ts +31 -0
- package/app/modules/Webhook.d.ts +9 -0
- package/app/modules.d.ts +5 -0
- package/index.d.ts +153 -0
- package/package.json +31 -0
- package/readme.md +9 -0
- package/schema/erp.d.ts +182759 -0
- package/scripting/app_scripting_proxy.d.ts +73 -0
- package/scripting/batch_script.d.ts +134 -0
- package/scripting/eav_types.d.ts +138 -0
- package/scripting/output_filter_script.d.ts +70 -0
- package/scripting/picklist_script_pick_box_connect.d.ts +94 -0
- package/scripting/services.d.ts +3474 -0
- package/scripting/types.d.ts +9543 -0
- package/scripting/work_item_intermediate_event.d.ts +122 -0
- package/scripting/work_item_script.d.ts +122 -0
- package/scripting/work_item_split_gateway.d.ts +104 -0
- package/scripting.d.ts +41 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ScriptingServiceList
|
|
3
|
+
} from "./services"
|
|
4
|
+
|
|
5
|
+
export interface AppScriptingProxyScriptingContext {
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Die zu verarbeitenden Json-Daten
|
|
9
|
+
*/
|
|
10
|
+
jsonData: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Services
|
|
14
|
+
*/
|
|
15
|
+
services: ScriptingServiceList;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Parameter zur Verwendung im Skript
|
|
19
|
+
*/
|
|
20
|
+
parameters: Map<string,object>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Verarbeitet die Json-Daten
|
|
25
|
+
*
|
|
26
|
+
* @param {AppScriptingProxyScriptingContext} ctx - Skript-Kontext
|
|
27
|
+
* @param {object} jsonObj - JSON-Objekt
|
|
28
|
+
* @return {object} Das ggf. veränderte JSON-Objekt
|
|
29
|
+
*/
|
|
30
|
+
type AppScriptForExecutionProcess = (ctx: AppScriptingProxyScriptingContext, jsonObj: object) => object;
|
|
31
|
+
|
|
32
|
+
export interface AppScriptingProxyScriptingContext {
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Die zu verarbeitenden Json-Daten
|
|
36
|
+
*/
|
|
37
|
+
jsonData: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Services
|
|
41
|
+
*/
|
|
42
|
+
services: ScriptingServiceList;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Parameter zur Verwendung im Skript
|
|
46
|
+
*/
|
|
47
|
+
parameters: Map<string,object>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Manipulation eines JSONs oder Ausführung von Aktionen durch eine App
|
|
53
|
+
*
|
|
54
|
+
* @filename app_scripting_proxy
|
|
55
|
+
* @example
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import appScript from "app_scripting_proxy";
|
|
58
|
+
*
|
|
59
|
+
* appScript.setProcess( (ctx, jsonObj) => {
|
|
60
|
+
* // Perform actions and return the manipulated json, if applicable
|
|
61
|
+
* return jsonObj;
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export interface appScript {
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Setter für Callback "process"
|
|
69
|
+
*
|
|
70
|
+
* @param {AppScriptForExecutionProcess} callback - Callback "process"
|
|
71
|
+
*/
|
|
72
|
+
setProcess(callback: AppScriptForExecutionProcess): void;
|
|
73
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BatchScriptingContext$BatchScriptImportSession, ImportDataMap
|
|
3
|
+
} from "./types"
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
ScriptingServiceList
|
|
7
|
+
} from "./services"
|
|
8
|
+
|
|
9
|
+
export interface BatchScriptingContext {
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Fehlermeldungen, die im Laufe der Skriptverarbeitung aufgetreten sind
|
|
13
|
+
*/
|
|
14
|
+
errorMessages: Array<string>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Enthält Informationen, welche innerhalb von Skripten eines Import-Laufs verwendet werden können
|
|
18
|
+
*/
|
|
19
|
+
importSession: BatchScriptingContext$BatchScriptImportSession;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* eingelesene Import-Daten
|
|
23
|
+
*/
|
|
24
|
+
importData: ImportDataMap;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Services
|
|
28
|
+
*/
|
|
29
|
+
services: ScriptingServiceList;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Parameter zur Verwendung im Skript
|
|
33
|
+
*/
|
|
34
|
+
parameters: Map<string,object>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Die in der Stapelverarbeitung auszuführende Aktion
|
|
39
|
+
*
|
|
40
|
+
* @param {BatchScriptingContext} ctx - Import-Kontext
|
|
41
|
+
* @return {boolean} true, falls erfolgreich durchgeführt. Sonst false.
|
|
42
|
+
*/
|
|
43
|
+
type BatchScriptAction = (ctx: BatchScriptingContext) => boolean;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Wird nach dem Import ausgeführt
|
|
47
|
+
*
|
|
48
|
+
* @param {BatchScriptingContext} ctx - Import-Kontext
|
|
49
|
+
*/
|
|
50
|
+
type BatchScriptAfterbatch = (ctx: BatchScriptingContext) => void;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Definiert, ob die Aktion ausgeführt werden soll
|
|
54
|
+
*
|
|
55
|
+
* @param {BatchScriptingContext} ctx - Import-Kontext
|
|
56
|
+
* @return {boolean} true => Aktion ausführen, false => Eintrag ignorieren
|
|
57
|
+
*/
|
|
58
|
+
type BatchScriptGuard = (ctx: BatchScriptingContext) => boolean;
|
|
59
|
+
|
|
60
|
+
export interface BatchScriptingContext {
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Fehlermeldungen, die im Laufe der Skriptverarbeitung aufgetreten sind
|
|
64
|
+
*/
|
|
65
|
+
errorMessages: Array<string>;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Enthält Informationen, welche innerhalb von Skripten eines Import-Laufs verwendet werden können
|
|
69
|
+
*/
|
|
70
|
+
importSession: BatchScriptingContext$BatchScriptImportSession;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* eingelesene Import-Daten
|
|
74
|
+
*/
|
|
75
|
+
importData: ImportDataMap;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Services
|
|
79
|
+
*/
|
|
80
|
+
services: ScriptingServiceList;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Parameter zur Verwendung im Skript
|
|
84
|
+
*/
|
|
85
|
+
parameters: Map<string,object>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Aktionen innerhalb einer Stapelverarbeitung
|
|
91
|
+
*
|
|
92
|
+
* @filename batch_script
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* import batchAction from "batch_script";
|
|
96
|
+
*
|
|
97
|
+
* batchAction.setGuard( (ctx) => {
|
|
98
|
+
* // Should the action be performed for the current import record?
|
|
99
|
+
* return true;
|
|
100
|
+
* });
|
|
101
|
+
*
|
|
102
|
+
* batchAction.setAction( (ctx) => {
|
|
103
|
+
* // Execute action for the current import record. true/false for success/failure.
|
|
104
|
+
* return true
|
|
105
|
+
* });
|
|
106
|
+
*
|
|
107
|
+
* batchAction.setAfterBatch( (ctx) => {
|
|
108
|
+
* // Action to be performed after an import block
|
|
109
|
+
* });
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
export interface batchAction {
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Setter für Callback "action"
|
|
116
|
+
*
|
|
117
|
+
* @param {BatchScriptAction} callback - Callback "action"
|
|
118
|
+
*/
|
|
119
|
+
setAction(callback: BatchScriptAction): void;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Setter für Callback "guard"
|
|
123
|
+
*
|
|
124
|
+
* @param {BatchScriptGuard} callback - Callback "guard"
|
|
125
|
+
*/
|
|
126
|
+
setGuard(callback: BatchScriptGuard): void;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Setter für Callback "afterBatch"
|
|
130
|
+
*
|
|
131
|
+
* @param {BatchScriptAfterbatch} callback - Callback "afterBatch"
|
|
132
|
+
*/
|
|
133
|
+
setAfterBatch(callback: BatchScriptAfterbatch): void;
|
|
134
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zusatzfelder
|
|
3
|
+
*/
|
|
4
|
+
export interface EavAccount {
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Zusatzfelder
|
|
9
|
+
*/
|
|
10
|
+
export interface EavAccountaddress {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Zusatzfelder
|
|
15
|
+
*/
|
|
16
|
+
export interface EavAccountperson {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Zusatzfelder
|
|
21
|
+
*/
|
|
22
|
+
export interface EavArticle {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Zusatzfelder
|
|
27
|
+
*/
|
|
28
|
+
export interface EavArticleListing {
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Zusatzfelder
|
|
33
|
+
*/
|
|
34
|
+
export interface EavArticleListingDescription {
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Zusatzfelder
|
|
39
|
+
*/
|
|
40
|
+
export interface EavContact {
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Zusatzfelder
|
|
45
|
+
*/
|
|
46
|
+
export interface EavCrmactivity {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Zusatzfelder
|
|
51
|
+
*/
|
|
52
|
+
export interface EavCrmdeal {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Zusatzfelder
|
|
57
|
+
*/
|
|
58
|
+
export interface EavCrmproject {
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Zusatzfelder
|
|
63
|
+
*/
|
|
64
|
+
export interface EavCrmtask {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Zusatzfelder
|
|
69
|
+
*/
|
|
70
|
+
export interface EavDocument {
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Zusatzfelder
|
|
75
|
+
*/
|
|
76
|
+
export interface EavDocumentline {
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Zusatzfelder
|
|
81
|
+
*/
|
|
82
|
+
export interface EavDocumentlinecomponent {
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Zusatzfelder
|
|
87
|
+
*/
|
|
88
|
+
export interface EavFabrication {
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Zusatzfelder
|
|
93
|
+
*/
|
|
94
|
+
export interface EavFabricationline {
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Zusatzfelder
|
|
99
|
+
*/
|
|
100
|
+
export interface EavFabricationlinecomponent {
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Zusatzfelder
|
|
105
|
+
*/
|
|
106
|
+
export interface EavProductgroup {
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Zusatzfelder
|
|
111
|
+
*/
|
|
112
|
+
export interface EavProductmaingroup {
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Zusatzfelder
|
|
117
|
+
*/
|
|
118
|
+
export interface EavSalesagent {
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Zusatzfelder
|
|
123
|
+
*/
|
|
124
|
+
export interface EavShelfdocument {
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Zusatzfelder
|
|
129
|
+
*/
|
|
130
|
+
export interface EavShelfshare {
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Zusatzfelder
|
|
135
|
+
*/
|
|
136
|
+
export interface EavTextenumeration {
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NotificationDataprovider
|
|
3
|
+
} from "./types"
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
ScriptingServiceList
|
|
7
|
+
} from "./services"
|
|
8
|
+
|
|
9
|
+
export interface TaskOutputFilterContext {
|
|
10
|
+
|
|
11
|
+
data: NotificationDataprovider;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Services
|
|
15
|
+
*/
|
|
16
|
+
services: ScriptingServiceList;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Parameter zur Verwendung im Skript
|
|
20
|
+
*/
|
|
21
|
+
parameters: Map<string,object>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Verarbeitet die Json-Daten
|
|
26
|
+
*
|
|
27
|
+
* @param {TaskOutputFilterContext} ctx - Skript-Kontext
|
|
28
|
+
* @return {object} Das ggf. veränderte JSON-Objekt
|
|
29
|
+
*/
|
|
30
|
+
type OutputFilterScriptShouldprocess = (ctx: TaskOutputFilterContext) => object;
|
|
31
|
+
|
|
32
|
+
export interface TaskOutputFilterContext {
|
|
33
|
+
|
|
34
|
+
data: NotificationDataprovider;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Services
|
|
38
|
+
*/
|
|
39
|
+
services: ScriptingServiceList;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Parameter zur Verwendung im Skript
|
|
43
|
+
*/
|
|
44
|
+
parameters: Map<string,object>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Entscheidung, ob eine Ausgabe ausgeführt werden soll
|
|
50
|
+
*
|
|
51
|
+
* @filename output_filter_script
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import outputFilter from "output_filter_script";
|
|
55
|
+
*
|
|
56
|
+
* outputFilter.setShouldProcess( (ctx) => {
|
|
57
|
+
* // Should the filter be processed?
|
|
58
|
+
* return true;
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export interface outputFilter {
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Setter für Callback "shouldProcess"
|
|
66
|
+
*
|
|
67
|
+
* @param {OutputFilterScriptShouldprocess} callback - Callback "shouldProcess"
|
|
68
|
+
*/
|
|
69
|
+
setShouldProcess(callback: OutputFilterScriptShouldprocess): void;
|
|
70
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PickTrolley, Picklist
|
|
3
|
+
} from "./types"
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
ScriptingServiceList
|
|
7
|
+
} from "./services"
|
|
8
|
+
|
|
9
|
+
export interface PicklistScriptingContext {
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Der verarbeitete Pickwagen/Konsolidierungsplatz
|
|
13
|
+
*/
|
|
14
|
+
pickTrolley: PickTrolley;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Die verarbeitete Pickliste
|
|
18
|
+
*/
|
|
19
|
+
picklist: Picklist;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Zuordnung von Boxen (ID) zu Positionen (ID)
|
|
23
|
+
*/
|
|
24
|
+
lineIdsWithBoxIds: Map<number,number>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Services
|
|
28
|
+
*/
|
|
29
|
+
services: ScriptingServiceList;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Parameter zur Verwendung im Skript
|
|
33
|
+
*/
|
|
34
|
+
parameters: Map<string,object>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Verarbeitet die Json-Daten
|
|
39
|
+
*
|
|
40
|
+
* @param {PicklistScriptingContext} ctx - Skript-Kontext
|
|
41
|
+
*/
|
|
42
|
+
type PicklistScriptForExecutionProcess = (ctx: PicklistScriptingContext) => void;
|
|
43
|
+
|
|
44
|
+
export interface PicklistScriptingContext {
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Der verarbeitete Pickwagen/Konsolidierungsplatz
|
|
48
|
+
*/
|
|
49
|
+
pickTrolley: PickTrolley;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Die verarbeitete Pickliste
|
|
53
|
+
*/
|
|
54
|
+
picklist: Picklist;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Zuordnung von Boxen (ID) zu Positionen (ID)
|
|
58
|
+
*/
|
|
59
|
+
lineIdsWithBoxIds: Map<number,number>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Services
|
|
63
|
+
*/
|
|
64
|
+
services: ScriptingServiceList;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Parameter zur Verwendung im Skript
|
|
68
|
+
*/
|
|
69
|
+
parameters: Map<string,object>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Verteilung von Positionen einer Pickliste auf Pickboxen
|
|
75
|
+
*
|
|
76
|
+
* @filename picklist_script_pick_box_connect
|
|
77
|
+
* @example
|
|
78
|
+
* ```typescript
|
|
79
|
+
* import pickBoxConnector from "picklist_script_pick_box_connect";
|
|
80
|
+
*
|
|
81
|
+
* pickBoxConnector.setProcess( (ctx) => {
|
|
82
|
+
* // Link picklist-lines to pick-trolley-boxes
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
export interface pickBoxConnector {
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Setter für Callback "process"
|
|
90
|
+
*
|
|
91
|
+
* @param {PicklistScriptForExecutionProcess} callback - Callback "process"
|
|
92
|
+
*/
|
|
93
|
+
setProcess(callback: PicklistScriptForExecutionProcess): void;
|
|
94
|
+
}
|