@gandalan/weblibs 1.5.17 → 1.5.19

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.
Files changed (56) hide show
  1. package/JSDOC.md +661 -0
  2. package/README.md +106 -17
  3. package/api/business/ablageApi.js +106 -0
  4. package/api/business/anpassungApi.js +74 -0
  5. package/api/business/artikelApi.js +242 -0
  6. package/api/business/authApi.js +63 -0
  7. package/api/business/avApi.js +458 -0
  8. package/api/business/belegApi.js +365 -0
  9. package/api/business/belegPositionenApi.js +52 -0
  10. package/api/business/benutzerApi.js +96 -0
  11. package/api/business/fakturaApi.js +88 -0
  12. package/api/business/farbeApi.js +129 -0
  13. package/api/business/fileApi.js +72 -0
  14. package/api/business/historieApi.js +144 -0
  15. package/api/business/index.js +63 -0
  16. package/api/business/kontaktApi.js +70 -0
  17. package/api/business/lagerApi.js +162 -0
  18. package/api/business/lieferungApi.js +127 -0
  19. package/api/business/mailApi.js +41 -0
  20. package/api/business/mandantApi.js +137 -0
  21. package/api/business/materialApi.js +37 -0
  22. package/api/business/printApi.js +49 -0
  23. package/api/business/produktionApi.js +141 -0
  24. package/api/business/rechnungApi.js +155 -0
  25. package/api/business/serienApi.js +375 -0
  26. package/api/business/settingsApi.js +168 -0
  27. package/api/business/systemApi.js +209 -0
  28. package/api/business/uiApi.js +256 -0
  29. package/api/business/utilityApi.js +288 -0
  30. package/api/business/vorgangApi.js +128 -0
  31. package/api/dtos/allgemein.js +107 -0
  32. package/api/dtos/artikel.js +46 -0
  33. package/api/dtos/av.js +171 -0
  34. package/api/dtos/belege.js +614 -0
  35. package/api/dtos/benutzer.js +101 -0
  36. package/api/dtos/druck.js +50 -0
  37. package/api/dtos/faktura.js +128 -0
  38. package/api/dtos/farben.js +93 -0
  39. package/api/dtos/index.js +501 -0
  40. package/api/dtos/kunden.js +217 -0
  41. package/api/dtos/lager.js +66 -0
  42. package/api/dtos/mail.js +30 -0
  43. package/api/dtos/mandanten.js +60 -0
  44. package/api/dtos/nachrichten.js +18 -0
  45. package/api/dtos/produktGruppen.js +18 -0
  46. package/api/dtos/produktion.js +564 -0
  47. package/api/dtos/settings.js +172 -0
  48. package/api/dtos/technik.js +163 -0
  49. package/api/dtos/ui.js +496 -0
  50. package/api/dtos/webjob.js +12 -0
  51. package/api/fluentApi.js +10 -8
  52. package/api/fluentAuthManager.js +22 -14
  53. package/api/fluentRestClient.js +7 -7
  54. package/api/idasFluentApi.js +458 -0
  55. package/index.js +53 -6
  56. package/package.json +1 -1
@@ -0,0 +1,614 @@
1
+ /**
2
+ * @fileoverview JSDoc type definitions for Belege DTOs from Gandalan.IDAS.WebApi.Client
3
+ * Auto-generated from C# DTO files in Gandalan.IDAS.WebApi.Client/DTOs/Belege/
4
+ */
5
+
6
+ /** @typedef {import('./ui.js').PropertyValueCollection} PropertyValueCollection */
7
+ /** @typedef {import('./kunden.js').BeleganschriftDTO} BeleganschriftDTO */
8
+ /** @typedef {import('./kunden.js').KontaktDTO} KontaktDTO */
9
+ /** @typedef {import('./settings.js').BenutzerDTO} BenutzerDTO */
10
+ /** @typedef {import('./settings.js').MandantDTO} MandantDTO */
11
+
12
+ /**
13
+ * BelegArt enum values
14
+ * @typedef {0|1|2|3|4|5|6|7|8|9|10|11|12|13} BelegArt
15
+ * 0: Unbekannt
16
+ * 1: Angebot
17
+ * 2: AB (Auftragsbestätigung)
18
+ * 3: Rechnung
19
+ * 4: Lieferschein
20
+ * 5: Bestellschein
21
+ * 6: ProduktionsAuftrag
22
+ * 7: ZuschnittAuftrag
23
+ * 8: VersandAuftrag
24
+ * 9: MaterialBestellschein
25
+ * 10: ReklamationsBestellschein
26
+ * 11: Gutschrift
27
+ * 12: Storno
28
+ * 13: FremdfertigungsAuftrag
29
+ */
30
+
31
+ /**
32
+ * RechnungsNummer enum values
33
+ * @typedef {0|1} RechnungsNummer
34
+ * 0: Standard
35
+ * 1: VorgangsNummer
36
+ */
37
+
38
+ /**
39
+ * @typedef {Object} BelegWorkflow
40
+ * @property {Array<BelegArt>} Steps - Workflow steps array
41
+ */
42
+
43
+ /**
44
+ * BelegStatus enum values
45
+ * @typedef {0|10|20|30|40|50|60|70|80|90|100|110|120|130|140|150|160} BelegStatus
46
+ * 0: Unbekannt
47
+ * 10: Erfasst
48
+ * 20: Gelöscht
49
+ * 30: Angebot angefragt
50
+ * 40: Bestellt
51
+ * 50: Auftrag bestätigt
52
+ * 60: In Produktion
53
+ * 70: Produktion abgeschlossen
54
+ * 80: Versand vorbereitet
55
+ * 90: Versand ausgeführt
56
+ * 100: Ware ausgeliefert
57
+ * 110: Reklamation
58
+ * 120: Bestellung abgeschlossen
59
+ * 130: Fakturiert
60
+ * 140: Storniert
61
+ * 150: Importiert
62
+ * 160: Beleg kopiert
63
+ */
64
+
65
+ /**
66
+ * @typedef {Object} BaseListItemDTO
67
+ * @property {string} VorgangGuid - Eindeutige GUID des Vorgangs
68
+ * @property {string} BelegGuid - Eindeutige GUID des Bestellscheins
69
+ * @property {number} VorgangsNummer - Sichtbare Vorgangsnummer/zur Info für Kunden usw.
70
+ * @property {number} BelegNummer
71
+ * @property {number} BelegJahr
72
+ * @property {Date} ErstellDatum - Erstelldatum des Vorgangs
73
+ * @property {Date} AenderungsDatum - Datum der letzten Änderung
74
+ * @property {string} Kundenname - Name des Kunden für Anzeige
75
+ * @property {string} URL - Adresse des detaillierten Beleg-Objektes (gSQL)
76
+ * @property {string} Status
77
+ * @property {number} AnzahlNachrichten
78
+ * @property {Object<string, PropertyValueCollection>} ApplicationSpecificProperties
79
+ * @property {Object<string, PropertyValueCollection>} AdditionalProperties
80
+ */
81
+
82
+ /**
83
+ * @typedef {Object} BestellungListItemDTO
84
+ * @extends {BaseListItemDTO}
85
+ */
86
+
87
+ /**
88
+ * @typedef {Object} MaterialBestellungListItemDTO
89
+ * @extends {BaseListItemDTO}
90
+ */
91
+
92
+ /**
93
+ * @typedef {Object} BelegartWechselDTO
94
+ * @property {string} BelegGuid
95
+ * @property {Array<string>} BelegPositionGuids
96
+ * @property {BelegArt} NeueBelegArt
97
+ * @property {boolean} SaldenKopieren
98
+ * @property {RechnungsNummer} RechnungsNummer
99
+ * @property {boolean} UpdateErfassungsdatum
100
+ */
101
+
102
+ /**
103
+ * @typedef {Object} AdresseDruckDTO
104
+ * @property {string} Anrede
105
+ * @property {string} Nachname
106
+ * @property {string} Vorname
107
+ * @property {string} Firmenname
108
+ * @property {string} Zusatz
109
+ * @property {string} AdressZusatz1
110
+ * @property {string} Strasse
111
+ * @property {string} Hausnummer
112
+ * @property {string} Postleitzahl
113
+ * @property {string} Ort
114
+ * @property {string} Ortsteil
115
+ * @property {string} Land
116
+ * @property {boolean} IstInland
117
+ */
118
+
119
+ /**
120
+ * @typedef {Object} ZusatztextDTO
121
+ * @property {string} ObjectGuid
122
+ * @property {number} LfdNr
123
+ * @property {string} Context
124
+ * @property {string} Content
125
+ */
126
+
127
+ /**
128
+ * @typedef {Object} BelegPositionSonderwunschDTO
129
+ * @property {string} Wert
130
+ * @property {number} Laenge
131
+ * @property {string} CalculatedLaenge
132
+ * @property {number} Hoehe
133
+ * @property {string} Typ
134
+ * @property {string} Gruppe
135
+ * @property {string} Farbe
136
+ * @property {string} CalculatedFarbe
137
+ * @property {number} Aufpreis
138
+ * @property {string} Bezeichnung
139
+ * @property {string} ExportName
140
+ * @property {string} Kuerzel
141
+ * @property {string} GehoertZuProfilMitKuerzel
142
+ * @property {string} InternerName
143
+ * @property {string} Standard
144
+ * @property {string} ListenName
145
+ * @property {boolean} NichtSaegenMoeglich
146
+ * @property {boolean} ProfilNichtSaegen
147
+ * @property {string} BelegPositionSonderwunschGuid
148
+ * @property {boolean} IstKorrekturAktiv
149
+ */
150
+
151
+ /**
152
+ * @typedef {Object} BelegPositionDruckDTO
153
+ * @property {string} PositionsKommission
154
+ * @property {number} LaufendeNummer
155
+ * @property {string} ArtikelNummer
156
+ * @property {string} Variante
157
+ * @property {boolean} IstAlternativPosition
158
+ * @property {boolean} IstAktiv
159
+ * @property {number} Menge
160
+ * @property {string} EinzelpreisOhneFarbzuschlag
161
+ * @property {string} Einzelpreis
162
+ * @property {string} Rabatt
163
+ * @property {string} Gesamtpreis
164
+ * @property {string} Farbzuschlag
165
+ * @property {string} MengenEinheit
166
+ * @property {string} Text
167
+ * @property {string} AngebotsText
168
+ * @property {string} PulverCode
169
+ * @property {string} SonderwunschText
170
+ * @property {string} SonderwunschAngebotsText
171
+ * @property {string} ProduktionZusatzInfo
172
+ * @property {boolean} ProduktionZusatzInfoPrintOnReport
173
+ * @property {boolean} ProduktionZusatzInfoPrintZusatzEtikett
174
+ * @property {boolean} IstVE
175
+ * @property {number|null} VE_Menge
176
+ * @property {Array<ZusatztextDTO>} Zusatztexte
177
+ * @property {string} BelegPositionGuid
178
+ */
179
+
180
+ /**
181
+ * @typedef {Object} BelegSaldoDruckDTO
182
+ * @property {number} Reihenfolge
183
+ * @property {string} Text
184
+ * @property {string} Betrag
185
+ * @property {string} Rabatt
186
+ * @property {boolean} IsLastElement
187
+ */
188
+
189
+ /**
190
+ * @typedef {Object} BelegDruckDTO
191
+ * @property {string} BelegGuid
192
+ * @property {string} VorgangGuid
193
+ * @property {string} Kopfzeile
194
+ * @property {string} Fusszeile
195
+ * @property {string} BelegArt
196
+ * @property {number} BelegNummer
197
+ * @property {number} VorgangsNummer
198
+ * @property {Date} BelegDatum
199
+ * @property {string} VorgangErstellDatum
200
+ * @property {Date} AenderungsDatum
201
+ * @property {number} BelegJahr
202
+ * @property {string} Schlusstext
203
+ * @property {string} BelegTitelUeberschrift
204
+ * @property {string} BelegTitelZeile1
205
+ * @property {string} BelegTitelZeile2
206
+ * @property {string} TextFuerAnschreiben
207
+ * @property {string} Kommission
208
+ * @property {string} Ausfuehrungsdatum
209
+ * @property {string} AnsprechpartnerKunde
210
+ * @property {string} Ansprechpartner
211
+ * @property {string} Telefonnummer
212
+ * @property {string} Bestelldatum
213
+ * @property {string} Belegdatum
214
+ * @property {AdresseDruckDTO} BelegAdresse
215
+ * @property {string} BelegAdresseString
216
+ * @property {AdresseDruckDTO} VersandAdresse
217
+ * @property {string} VersandAdresseString
218
+ * @property {Array<BelegPositionDruckDTO>} PositionsObjekte
219
+ * @property {Array<BelegSaldoDruckDTO>} Salden
220
+ * @property {number} CountValuePositionen
221
+ * @property {number} CountValueSalden
222
+ * @property {string} Lieferzeit
223
+ * @property {boolean} IsEndkunde
224
+ * @property {boolean} IsRabatt
225
+ * @property {boolean} IstSelbstabholer
226
+ * @property {number|null} SammelbelegNummer
227
+ * @property {string} Kontrollkuerzel
228
+ */
229
+
230
+ /**
231
+ * @typedef {Object} BelegDTO
232
+ * @property {string} BelegGuid
233
+ * @property {string} BelegArt
234
+ * @property {number} BelegNummer
235
+ * @property {number} BelegJahr
236
+ * @property {Date} BelegDatum
237
+ * @property {Date} AenderungsDatum
238
+ * @property {BeleganschriftDTO} BelegAdresse
239
+ * @property {BeleganschriftDTO} VersandAdresse
240
+ * @property {boolean} VersandAdresseGleichBelegAdresse
241
+ * @property {string} AusfuehrungsDatum
242
+ * @property {string} Terminwunsch
243
+ * @property {string} InterneNotiz
244
+ * @property {string} BemerkungFuerKunde
245
+ * @property {boolean} IstSelbstabholer
246
+ * @property {string} BelegTitelUeberschrift
247
+ * @property {string} BelegTitelZeile1
248
+ * @property {string} BelegTitelZeile2
249
+ * @property {string} Schlusstext
250
+ * @property {string} AktuellerStatusCode
251
+ * @property {string} AktuellerStatusText
252
+ * @property {string} Ansprechpartner
253
+ * @property {string} AnsprechpartnerKunde
254
+ * @property {Array<string>} Positionen
255
+ * @property {Array<BelegSaldoDTO>} Salden
256
+ * @property {Array<BelegHistorieDTO>} Historie
257
+ * @property {Object<string, PropertyValueCollection>} ApplicationSpecificProperties
258
+ * @property {Object<string, PropertyValueCollection>} AdditionalProperties
259
+ * @property {Array<BelegPositionDTO>} PositionsObjekte
260
+ * @property {string} TextFuerAnschreiben
261
+ * @property {boolean} IstGesperrt
262
+ * @property {string} FakturaKennzeichen - Gültige Werte: "NichtFreigegeben", "Freigegeben", "Abgerechnet"
263
+ * @property {string} ExterneReferenznummer
264
+ * @property {string|null} ExterneMandantenGuid
265
+ * @property {number|null} SammelbelegNummer
266
+ * @property {string|null} SammelbelegGuid
267
+ */
268
+
269
+ /**
270
+ * @typedef {Object} BelegHistorieDTO
271
+ * @property {string} BelegHistorieGuid
272
+ * @property {string} Status
273
+ * @property {string} Text
274
+ * @property {Date} Zeitstempel
275
+ * @property {string} Benutzer
276
+ */
277
+
278
+ /**
279
+ * @typedef {Object} BelegHistorienDTO
280
+ * @property {Array<BelegHistorieDTO>} BelegHistorien
281
+ * @property {Object<string, Array<BelegPositionHistorieDTO>>} BelegPositionHistorien
282
+ */
283
+
284
+ /**
285
+ * @typedef {Object} BelegNummerSettingDTO
286
+ * @property {string} BelegArt
287
+ * @property {number} Startwert
288
+ * @property {number} Version
289
+ * @property {Date} ChangedDate
290
+ */
291
+
292
+ /**
293
+ * @typedef {Object} BelegPositionDatenDTO
294
+ * @property {string} UnterkomponenteName
295
+ * @property {string} KonfigName
296
+ * @property {string} Wert
297
+ * @property {string} DatenTyp
298
+ * @property {string} BelegPositionDatenGuid
299
+ */
300
+
301
+ /**
302
+ * @typedef {Object} BelegPositionDTO
303
+ * @property {string} BelegPositionGuid
304
+ * @property {string} NachfolgeBelegPositionGuid
305
+ * @property {Date} ErfassungsDatum
306
+ * @property {number} LaufendeNummer - Die fortlaufende Nummer für jede Position innerhalb des Beleges. Über diese Nummer wird auch die Ausgabenreihenfolge bestimmt.
307
+ * @property {string} PositionsNummer - Die sichtbare PositionsNummer, sie kann auch leer sein, z.Bsp. bei Titeln, Text- oder alternativen Positionen. Sie sollte nicht mehr als max. 4 Zeichen lang sein, damit die Pos.-Splate auf dem Beleg nicht zu breit wird.
308
+ * @property {string} ArtikelNummer
309
+ * @property {string} Variante
310
+ * @property {string} VarianteGuid
311
+ * @property {string} Einbauort
312
+ * @property {string} PositionsKommission
313
+ * @property {boolean} IstAlternativPosition
314
+ * @property {boolean} IstAktiv
315
+ * @property {boolean} IstFehlerhaft
316
+ * @property {boolean} IstStorniert
317
+ * @property {boolean} IstFehlerhaftSFOhnePreis
318
+ * @property {boolean} IstGesperrt
319
+ * @property {number} Menge
320
+ * @property {number} Listenpreis
321
+ * @property {number} Einzelpreis
322
+ * @property {number} Rabatt
323
+ * @property {number} AufAbschlag
324
+ * @property {number} Gesamtpreis
325
+ * @property {number} Steuersatz
326
+ * @property {string} MengenEinheit
327
+ * @property {string} Text
328
+ * @property {Array<BelegPositionDatenDTO>} Daten
329
+ * @property {number} SonderWuenscheModelVersion - Die Version des Sonderanpassungen-Tabs in der i3 Belegpositionserfassung, mit der die Position zuletzt bearbeitet wurde.
330
+ * @property {Array<BelegPositionSonderwunschDTO>} Sonderwuensche
331
+ * @property {Array<BelegPositionHistorieDTO>} Historie
332
+ * @property {Array<ZusatztextDTO>} Zusatztexte
333
+ * @property {string} Besonderheiten
334
+ * @property {string} ProduktionZusatzInfo
335
+ * @property {boolean} ProduktionZusatzInfoPrintOnReport
336
+ * @property {boolean} ProduktionZusatzInfoPrintZusatzEtikett
337
+ * @property {boolean} IstBruttoGesamtpreis
338
+ * @property {boolean} IstBruttoEinzelpreis
339
+ * @property {Object<string, PropertyValueCollection>} ApplicationSpecificProperties
340
+ * @property {Object<string, PropertyValueCollection>} AdditionalProperties
341
+ * @property {boolean} IstSonderfarbPosition
342
+ * @property {number} Farbzuschlag
343
+ * @property {boolean} IstFarbzuschlagManuell
344
+ * @property {string} AngebotsText
345
+ * @property {string} SonderwunschText
346
+ * @property {string} SonderwunschAngebotsText
347
+ * @property {Date|null} ProduktionsDatum
348
+ * @property {Date|null} LieferDatum
349
+ * @property {Date|null} ProduktionsAuftragErstellt
350
+ * @property {string|null} GeplanteSerieGuid
351
+ * @property {string|null} VorgaengerBelegPositionGuid
352
+ * @property {string} FakturaKennzeichen - Gültige Werte: "NichtFreigegeben", "Freigegeben", "Abgerechnet"
353
+ * @property {boolean} IstAusserhalbGewaehrleistung
354
+ * @property {boolean} IstVE
355
+ * @property {number|null} VE_Menge
356
+ * @property {string|null} FrontendLogikGuid
357
+ * @property {boolean} IstFremdfertigung
358
+ * @property {string|null} FremdfertigungMandantGuid
359
+ * @property {number|null} Arbeitsminuten
360
+ * @property {number|null} Elementgewicht
361
+ * @property {boolean} PreisAufAnfrage
362
+ * @property {Date|null} CalculationRequestTimestamp
363
+ * @property {Date|null} CalculatedForTimestamp
364
+ */
365
+
366
+ /**
367
+ * @typedef {Object} BelegPositionHistorieDTO
368
+ * @property {string} BelegPositionHistorieGuid
369
+ * @property {string} Text
370
+ * @property {Date} Zeitstempel
371
+ * @property {string} Benutzer
372
+ */
373
+
374
+ /**
375
+ * @typedef {Object} BelegPositionHistorienDTO
376
+ * @property {Array<BelegPositionHistorieDTO>} BelegPositionHistorien
377
+ */
378
+
379
+ /**
380
+ * @typedef {Object} BelegSaldoDTO
381
+ * @property {string} BelegSaldoGuid
382
+ * @property {number} Reihenfolge
383
+ * @property {string} Text - Text für die Anzeige
384
+ * @property {number} Betrag - Der eigentlich Saldenwert.
385
+ * @property {number} Wert - Der Wert, den der Anwender eingegeben hat, z.B. 5%
386
+ * @property {string} Typ - Zulässige Werte: "Abschlag", "Zuschlag", "Betrag"
387
+ * @property {string} Art - Zulässige Werte: "Prozentual", "Absolut"
388
+ * @property {string} Name - Zulässige Werte: "Saldo", "StandardSaldo", "Warenwert", "Mehrwertsteuer", "Gesamtbetrag", "Endbetrag", "Farbe"
389
+ * @property {string} SaldenStatus - Zulässige Werte: "Unbekannt", "ManuelleEingabe", "AutoEingabe", "AufAnfrage"
390
+ * @property {boolean} IstInaktiv
391
+ * @property {string} Tag - In diesem Tag können belibige interne Informationen als String gespeichert werden.
392
+ * @property {number} Rabatt - Rabatt, der in der Salde verrechnet wurde
393
+ * @property {string} TemplateText - TemplateText mit z.B. Platzhalter aus der Standardsalde der benötigt wird um beim ändern einer Salde den Text neu zu generieren.
394
+ * @property {Object<string, PropertyValueCollection>} ApplicationSpecificProperties
395
+ * @property {Object<string, PropertyValueCollection>} AdditionalProperties
396
+ */
397
+
398
+ /**
399
+ * @typedef {Object} SerieInfoDTO
400
+ * @property {string} SerieGuid
401
+ * @property {string} Name
402
+ * @property {string} Kuerzel
403
+ * @property {Date} Start
404
+ * @property {Date} Ende
405
+ * @property {boolean} StaendigeSerie
406
+ * @property {number} Kapazitaet
407
+ * @property {number} KapazitaetInMin
408
+ * @property {number} KapazitaetReserviert
409
+ */
410
+
411
+ /**
412
+ * @typedef {Object} BelegSerienInfoDTO
413
+ * @property {string} BelegGuid
414
+ * @property {Array<SerieInfoDTO>} SerienInfos
415
+ */
416
+
417
+ /**
418
+ * @typedef {Object} BelegStatusDTO
419
+ * @property {string} VorgangGuid - Eindeutige GUID
420
+ * @property {string} BelegGuid
421
+ * @property {number} VorgangsNummer - Sichtbare Vorgangsnummer/zur Info für Kunden usw.
422
+ * @property {number} BelegNummer
423
+ * @property {string} AktuellerStatus - Statuscode
424
+ * @property {Date} AenderungsDatum - Datum der letzten Änderung des Vorgangs
425
+ * @property {string} NeuerStatus
426
+ * @property {string} NeuerStatusText
427
+ * @property {string} AktuellerStatusText
428
+ */
429
+
430
+ /**
431
+ * @typedef {Object} CalculationInfoDTO
432
+ * @property {number} MandantId
433
+ * @property {string} BelegPositionGuid
434
+ * @property {Date|null} CalculationRequestTimestamp - The timestamp when the calculation was requested.
435
+ * @property {Date|null} CalculatedForTimestamp - The timestamp indicating for which request timestamp the calculation was performed.
436
+ */
437
+
438
+ /**
439
+ * @typedef {Object} Kapazitaetsvorgabe
440
+ * @property {string} GroupName
441
+ * @property {string} Label
442
+ * @property {Array<string>} Produktgruppe
443
+ * @property {Array<string>} Artikelliste
444
+ * @property {Array<string>} Bearbeitungen
445
+ * @property {Array<string>} Etikettentext
446
+ * @property {KapaFarbArt} FarbArt
447
+ * @property {number} Zeitvorgabe
448
+ * @property {number} Gewicht
449
+ * @property {boolean} IstBasisregel
450
+ * @property {number} Order
451
+ */
452
+
453
+ /**
454
+ * KapaFarbArt enum values
455
+ * @typedef {0|1|2|3} KapaFarbArt
456
+ * 0: Alle
457
+ * 1: Standardfarbe
458
+ * 2: Sonderfarbe
459
+ * 3: Trendfarbe
460
+ */
461
+
462
+ /**
463
+ * @typedef {Object} KapazitaetsvorgabenDTO
464
+ * @extends {Array<Kapazitaetsvorgabe>}
465
+ * @property {number} Version
466
+ */
467
+
468
+ /**
469
+ * @typedef {Object} VorgangDTO
470
+ * @property {string} VorgangGuid - Eindeutige GUID
471
+ * @property {number} VorgangsNummer - Sichtbare Vorgangsnummer/zur Info für Kunden usw.
472
+ * @property {string} KundenNummer - Kundennummer (aus Kontakt-Objekt)
473
+ * @property {boolean} IstEndkunde - End- oder Firmenkunde (aus Kontakt-Objekt)
474
+ * @property {string} Kommission - Standard-Kommission des Vorgangs
475
+ * @property {string} Kommission2 - Kommission2 des Vorgangs
476
+ * @property {Date} ErstellDatum - Erstelldatum des Vorgangs
477
+ * @property {Date} AenderungsDatum - Letztes Änderungsdatum des Vorgangs
478
+ * @property {Array<BelegDTO>} Belege - Liste und Daten der Belege zu diesem Vorgang
479
+ * @property {Array<BelegPositionDTO>} Positionen - Liste und Daten der Postionen in diesem Vorgang
480
+ * @property {Array<string>} Nachrichten
481
+ * @property {Array<VorgangHistorieDTO>} Historie
482
+ * @property {BenutzerDTO} Besitzer - Ersteller-/Besitzerbenutzer des Vorgangs
483
+ * @property {KontaktDTO} Kunde - Kontakt für diese Vorgang (Dummy-Kontakt, falls noch nicht erfasst)
484
+ * @property {string} KundeGuid
485
+ * @property {string} AktuellerStatus
486
+ * @property {string} FakturaKennzeichen - Gültige Werte: "NichtFreigegeben", "Freigegeben", "Abgerechnet"
487
+ * @property {string} TextStatus
488
+ * @property {boolean} IstTestbeleg
489
+ * @property {string} WaehrungsSymbol
490
+ * @property {number} WaehrungsFaktor
491
+ * @property {boolean} IstBrutto
492
+ * @property {Object<string, PropertyValueCollection>} ApplicationSpecificProperties
493
+ * @property {Object<string, PropertyValueCollection>} AdditionalProperties
494
+ * @property {boolean} IstZustimmungErteilt
495
+ * @property {string} InterneNotiz
496
+ * @property {string} BemerkungFuerKunde
497
+ * @property {string} OriginalVorgangGuid
498
+ * @property {string} OriginalMandantGuid
499
+ * @property {number|null} OriginalVorgangsNummer
500
+ * @property {string} OriginalAppGuid
501
+ * @property {boolean} InnergemeinschaftlichOhneMwSt
502
+ * @property {string} ZielVorgangGuid
503
+ */
504
+
505
+ /**
506
+ * @typedef {Object} VorgangExtendedDTO
507
+ * @property {VorgangDTO} Vorgang
508
+ * @property {MandantDTO} Mandant
509
+ * @property {number} MandantId
510
+ */
511
+
512
+ /**
513
+ * @typedef {Object} VorgangHistorieDTO
514
+ * @property {string} VorgangHistorieGuid
515
+ * @property {string} Text
516
+ * @property {Date} Zeitstempel
517
+ * @property {string} Benutzer
518
+ */
519
+
520
+ /**
521
+ * @typedef {Object} VorgangHistorienDTO
522
+ * @property {Array<VorgangHistorieDTO>} VorgangHistorien
523
+ * @property {Object<string, Array<BelegHistorieDTO>>} BelegHistorien
524
+ * @property {Object<string, Array<BelegPositionHistorieDTO>>} BelegPositionHistorien
525
+ */
526
+
527
+ /**
528
+ * @typedef {Object} VorgangListItemDTO
529
+ * @property {string} VorgangGuid - Eindeutige GUID
530
+ * @property {number} VorgangsNummer - Sichtbare Vorgangsnummer/zur Info für Kunden usw.
531
+ * @property {number|null} OriginalVorgangsNummer - Vorgangsnummer vom Originalbeleg
532
+ * @property {Date} ErstellDatum - Erstelldatum des Vorgangs
533
+ * @property {Date} AenderungsDatum - Datum der letzten Änderung
534
+ * @property {string} AktuelleBelegArt - Art des aktuellsten Belegs
535
+ * @property {string} Kommission - Eingegebene Kommission des Händlers
536
+ * @property {string} Kommission2 - Eingegebene Kommission2 des Händlers
537
+ * @property {string} VorgangsNotitz - Eingegebene Notitzen zum Vorgang vom Produzenten
538
+ * @property {string} AktuelleBelegNummer - Aktuelle Belegnummer
539
+ * @property {string} AktuelleRechnungsNummer - Aktuelle Rechnungsnummer
540
+ * @property {string} AlleBelegNummern - Alle Belegnummern, getrennt mit ", "
541
+ * @property {string} AktuelleBelegGuid - Die GUID des aktuellen Beleges.
542
+ * @property {string} KundenNummer - Kundennummer des Kunden
543
+ * @property {string} Kundenname - Name des Kunden für Anzeige
544
+ * @property {string} KundeGuid - Guide des Kunden für Filter
545
+ * @property {string} URL - Adresse des detaillierten Vorgangs-Objektes
546
+ * @property {Object<string, PropertyValueCollection>} ApplicationSpecificProperties
547
+ * @property {Object<string, PropertyValueCollection>} AdditionalProperties
548
+ * @property {string} Status
549
+ * @property {number} AnzahlNachrichten
550
+ * @property {boolean} IsArchiv
551
+ * @property {boolean} HatFehlerhaftenBeleg
552
+ * @property {boolean} PreisAufAnfrage
553
+ * @property {boolean} KundeFehlt
554
+ * @property {string} TextStatus
555
+ * @property {string} Besitzer - Email des Besitzer
556
+ * @property {string} Besteller - Falls Benutzer null und 1. Beleg ist Bestellschein -> Bestellfix -> Besitzer aus OriginalVorgangGuid aus Vorgang
557
+ * @property {string} Bearbeiter - Der Ansprechpartner vom letzten Beleg des Vorgangs
558
+ * @property {string} ExterneReferenznummer
559
+ * @property {string|null} ExterneMandantenGuid
560
+ * @property {string} ExternerFirmenname
561
+ * @property {string} RelatedGuids - Guids von "zugehörigen Objekten" (Belegen/BelegPositionen) als JSON-object. Zum Laden von Tags.
562
+ * @property {string} MandantGuid
563
+ * @property {boolean} IstBerechnet
564
+ */
565
+
566
+ /**
567
+ * @typedef {Object} VorgangNachrichtAnhangDTO
568
+ * @property {string} VorgangNachrichtAnhangGuid
569
+ * @property {string} FileName
570
+ * @property {number} FileSize
571
+ * @property {string} URL
572
+ */
573
+
574
+ /**
575
+ * @typedef {Object} VorgangNachrichtDTO
576
+ * @property {string} VorgangNachrichtGuid
577
+ * @property {string} VorgangGuid
578
+ * @property {string} Absender
579
+ * @property {string} Empfaenger
580
+ * @property {string} Betreff
581
+ * @property {string} Text
582
+ * @property {Array<VorgangNachrichtAnhangDTO>} Anhaenge
583
+ * @property {Date} Gesendet
584
+ */
585
+
586
+ /**
587
+ * @typedef {Object} VorgangStatusDTO
588
+ * @property {string} VorgangGuid - Eindeutige GUID
589
+ * @property {number} VorgangsNummer - Sichtbare Vorgangsnummer/zur Info für Kunden usw.
590
+ * @property {string} AktuellerStatus - Statuscode
591
+ * @property {Date} AenderungsDatum - Datum der letzten Änderung des Vorgangs
592
+ * @property {string} NeuerStatus
593
+ */
594
+
595
+ /**
596
+ * @typedef {Object} VorgangStatusTableDTO
597
+ * @property {string} VorgangGuid - Eindeutige GUID des Vorgangs
598
+ * @property {string|null} KontaktGuid - Eindeutige GUID des Kontaktes im Vorgang
599
+ * @property {boolean} KundeGeaendert - Ob der Kunde geändert wurde, auch bei Neuanlöage = true
600
+ * @property {Date} AenderungsDatum - Datum der letzten Änderung des Vorgangs
601
+ * @property {number} MandantId - Die ID des Mandanten wird für die Functions benötigt
602
+ */
603
+
604
+ /**
605
+ * @typedef {Object} VorgangTextStatusDTO
606
+ * @property {Array<string>} VorgangGuids - Liste von eindeutigen GUIDs
607
+ * @property {string} NeuerTextStatus - Status der in das Feld TextStatus für alle Vorgänge gesetzt werden soll.
608
+ */
609
+
610
+ // Note: All types in this file are JSDoc @typedef declarations
611
+ // They are documentation-only and available for type imports via:
612
+ // @typedef {import('./belege.js').VorgangDTO} VorgangDTO
613
+
614
+ export {};