@vario-software/types 2026.43.0 → 2026.43.2

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 CHANGED
@@ -36,16 +36,33 @@ type QueryParams<Op> =
36
36
  ? [Q] extends [never] ? Record<string, never> : NonNullable<Q>
37
37
  : Record<string, never>;
38
38
 
39
+ // Query values may be passed as single value or as list
40
+ type ScalarOrArray<T> = T extends readonly (infer E)[] ? E | T : T;
41
+
42
+ type QueryOption<Q> = { [K in keyof Q]: ScalarOrArray<Q[K]> };
43
+
39
44
  type RequestBody<Op> =
40
45
  Op extends { requestBody: { content: { 'application/json': infer B } } } ? B :
41
46
  Op extends { requestBody?: { content: { 'application/json': infer B } } } ? B :
42
47
  any;
43
48
 
49
+ // Operation with a JSON success response – matches the same cases as SuccessResponse,
50
+ // but as a single structural check without infer to keep the per-path cost low on large schemas
51
+ type JsonSuccessOperation = {
52
+ responses:
53
+ | { 200: { content: { 'application/json': unknown } } }
54
+ | { 201: { content: { 'application/json': unknown } } }
55
+ | { 200: { content: { '*/*': unknown } } }
56
+ | { 201: { content: { '*/*': unknown } } }
57
+ | { 200: { content: { 'application/*': unknown } } }
58
+ | { 201: { content: { 'application/*': unknown } } };
59
+ };
60
+
61
+ type JsonSuccessMethod<M extends string> = { [K in M]: JsonSuccessOperation };
62
+
44
63
  type MethodEndpoints<Paths, M extends string> = {
45
64
  [P in keyof Paths as
46
- GetOperation<Paths[P], M> extends never ? never :
47
- [SuccessResponse<GetOperation<Paths[P], M>>] extends [never] ? never :
48
- ConvertPath<P & string>
65
+ Paths[P] extends JsonSuccessMethod<M> ? ConvertPath<P & string> : never
49
66
  ]: GetOperation<Paths[P], M>;
50
67
  };
51
68
 
@@ -115,12 +132,16 @@ type DirectQueryParams<Paths, P extends string> =
115
132
  type GenericGetOptions<Paths, P extends string> = ErpBaseOptions & {
116
133
  method: 'GET';
117
134
  pathParams?: DirectPathParams<Paths, P>;
135
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P, 'get'>>>;
136
+ /** @deprecated Not appended to the URL, use `query` instead. */
118
137
  params?: QueryParams<DirectOperation<Paths, P, 'get'>>;
119
138
  };
120
139
 
121
140
  type GenericPostOptions<Paths, P extends string> = ErpBaseOptions & {
122
141
  method: 'POST';
123
142
  pathParams?: DirectPathParams<Paths, P>;
143
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P, 'post'>>>;
144
+ /** @deprecated Not appended to the URL, use `query` instead. */
124
145
  params?: QueryParams<DirectOperation<Paths, P, 'post'>>;
125
146
  body?: DirectRequestBody<Paths, P>;
126
147
  };
@@ -128,6 +149,8 @@ type GenericPostOptions<Paths, P extends string> = ErpBaseOptions & {
128
149
  type GenericPutOptions<Paths, P extends string> = ErpBaseOptions & {
129
150
  method: 'PUT';
130
151
  pathParams?: DirectPathParams<Paths, P>;
152
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P, 'put'>>>;
153
+ /** @deprecated Not appended to the URL, use `query` instead. */
131
154
  params?: QueryParams<DirectOperation<Paths, P, 'put'>>;
132
155
  body?: DirectRequestBody<Paths, P>;
133
156
  };
@@ -135,12 +158,16 @@ type GenericPutOptions<Paths, P extends string> = ErpBaseOptions & {
135
158
  type GenericDeleteOptions<Paths, P extends string> = ErpBaseOptions & {
136
159
  method: 'DELETE';
137
160
  pathParams?: DirectPathParams<Paths, P>;
161
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P, 'delete'>>>;
162
+ /** @deprecated Not appended to the URL, use `query` instead. */
138
163
  params?: QueryParams<DirectOperation<Paths, P, 'delete'>>;
139
164
  };
140
165
 
141
166
  type GenericFallbackOptions<Paths, P extends string> = ErpBaseOptions & {
142
167
  method?: DirectMethods<Paths, P>;
143
168
  pathParams?: DirectPathParams<Paths, P>;
169
+ query?: QueryOption<DirectQueryParams<Paths, P>>;
170
+ /** @deprecated Not appended to the URL, use `query` instead. */
144
171
  params?: DirectQueryParams<Paths, P>;
145
172
  body?: DirectRequestBody<Paths, P>;
146
173
  };
@@ -173,6 +200,8 @@ export interface TypedErpApiFetch<Paths = Record<string, any>>
173
200
  options: ErpBaseOptions & {
174
201
  method: 'GET';
175
202
  pathParams?: PathParams<DirectOperation<Paths, P & string, 'get'>>;
203
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P & string, 'get'>>>;
204
+ /** @deprecated Not appended to the URL, use `query` instead. */
176
205
  params?: QueryParams<DirectOperation<Paths, P & string, 'get'>>;
177
206
  },
178
207
  ): Promise<ErpFetchResponse<SuccessResponse<DirectOperation<Paths, P & string, 'get'>>>>;
@@ -182,6 +211,8 @@ export interface TypedErpApiFetch<Paths = Record<string, any>>
182
211
  options: ErpBaseOptions & {
183
212
  method: 'POST';
184
213
  pathParams?: PathParams<DirectOperation<Paths, P & string, 'post'>>;
214
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P & string, 'post'>>>;
215
+ /** @deprecated Not appended to the URL, use `query` instead. */
185
216
  params?: QueryParams<DirectOperation<Paths, P & string, 'post'>>;
186
217
  body?: RequestBody<DirectOperation<Paths, P & string, 'post'>> | string;
187
218
  },
@@ -192,6 +223,8 @@ export interface TypedErpApiFetch<Paths = Record<string, any>>
192
223
  options: ErpBaseOptions & {
193
224
  method: 'PUT';
194
225
  pathParams?: PathParams<DirectOperation<Paths, P & string, 'put'>>;
226
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P & string, 'put'>>>;
227
+ /** @deprecated Not appended to the URL, use `query` instead. */
195
228
  params?: QueryParams<DirectOperation<Paths, P & string, 'put'>>;
196
229
  body?: RequestBody<DirectOperation<Paths, P & string, 'put'>> | string;
197
230
  },
@@ -202,6 +235,8 @@ export interface TypedErpApiFetch<Paths = Record<string, any>>
202
235
  options: ErpBaseOptions & {
203
236
  method: 'DELETE';
204
237
  pathParams?: PathParams<DirectOperation<Paths, P & string, 'delete'>>;
238
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P & string, 'delete'>>>;
239
+ /** @deprecated Not appended to the URL, use `query` instead. */
205
240
  params?: QueryParams<DirectOperation<Paths, P & string, 'delete'>>;
206
241
  },
207
242
  ): Promise<ErpFetchResponse<SuccessResponse<DirectOperation<Paths, P & string, 'delete'>>>>;
@@ -211,6 +246,8 @@ export interface TypedErpApiFetch<Paths = Record<string, any>>
211
246
  path: P,
212
247
  options?: ErpBaseOptions & {
213
248
  pathParams?: PathParams<DirectOperation<Paths, P & string, 'get'>>;
249
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P & string, 'get'>>>;
250
+ /** @deprecated Not appended to the URL, use `query` instead. */
214
251
  params?: QueryParams<DirectOperation<Paths, P & string, 'get'>>;
215
252
  },
216
253
  ): Promise<ErpFetchResponse<SuccessResponse<DirectOperation<Paths, P & string, 'get'>>>>;
@@ -271,6 +308,8 @@ export interface TypedApiStatic<Paths = Record<string, any>>
271
308
  method?: string;
272
309
  pathParams?: Record<string, any>;
273
310
  body?: any;
311
+ query?: Record<string, any>;
312
+ /** @deprecated Not appended to the URL, use `query` instead. */
274
313
  params?: Record<string, any>;
275
314
  }): ApiInstance;
276
315
 
package/app/Migrator.d.ts CHANGED
@@ -17,8 +17,8 @@ export interface MigratorMethods
17
17
  getEavGroup(groupKey: string): Promise<EavGroup>;
18
18
  createEavGroup(eavGroup: EavGroup): Promise<EavGroup>;
19
19
  changeEavGroup(groupKey: string, callback: (group: EavGroup) => EavGroup): Promise<EavGroup>;
20
- deleteEavGroup(groupKey: string): Promise<EavGroup>;
21
- removeDataFromEavGroup(groupKey: string, attributeKeys?: string[]): Promise<EavGroup>;
20
+ deleteEavGroup(groupKey: string): Promise<boolean>;
21
+ removeDataFromEavGroup(groupKey: string, attributeKeys?: string[]): Promise<boolean>;
22
22
  createTextEnumGroup(textEnumGroup: TextEnumGroupCreate): Promise<TextEnumGroupCreate>;
23
23
  registerWebhook(destinationQueue: string, url: string, destinationOwner?: string): Promise<void>;
24
24
  deregisterWebhook(destinationQueue: string, url: string, destinationOwner?: string): Promise<void>;
@@ -33,9 +33,9 @@ export declare class BaseUrlCache
33
33
  app: VarioCloudApp;
34
34
 
35
35
  init(): Promise<void>;
36
- get(): Promise<string>;
37
- set(value: string): Promise<void>;
38
- delete(): Promise<void>;
36
+ get(tenant: string): Promise<string>;
37
+ set(tenant: string, value: string): Promise<void>;
38
+ delete(tenant: string): Promise<void>;
39
39
  }
40
40
 
41
41
  // -- App Configuration --
package/index.d.ts CHANGED
@@ -4,35 +4,35 @@
4
4
 
5
5
  declare module '@vario-software/vario-app-framework-backend/api/ErpApi'
6
6
  {
7
- import Api = require('./app/ErpApi');
7
+ import Api = require('@vario-software/types/app/ErpApi');
8
8
  export = Api;
9
9
  }
10
10
 
11
11
  declare module '@vario-software/vario-app-framework-backend/api/ErpApi.js'
12
12
  {
13
- import Api = require('./app/ErpApi');
13
+ import Api = require('@vario-software/types/app/ErpApi');
14
14
  export = Api;
15
15
  }
16
16
 
17
17
  declare module '@vario-software/vario-app-framework-backend/utils/context'
18
18
  {
19
- export * from './app/context';
19
+ export * from '@vario-software/types/app/context';
20
20
  }
21
21
 
22
22
  declare module '@vario-software/vario-app-framework-backend/utils/context.js'
23
23
  {
24
- export * from './app/context';
24
+ export * from '@vario-software/types/app/context';
25
25
  }
26
26
 
27
27
  declare module '@vario-software/vario-app-framework-backend/app'
28
28
  {
29
- const VarioCloudApp: typeof import('./app/VarioCloudApp').VarioCloudApp;
29
+ const VarioCloudApp: typeof import('@vario-software/types/app/VarioCloudApp').VarioCloudApp;
30
30
  export = VarioCloudApp;
31
31
  }
32
32
 
33
33
  declare module '@vario-software/vario-app-framework-backend/app.js'
34
34
  {
35
- const VarioCloudApp: typeof import('./app/VarioCloudApp').VarioCloudApp;
35
+ const VarioCloudApp: typeof import('@vario-software/types/app/VarioCloudApp').VarioCloudApp;
36
36
  export = VarioCloudApp;
37
37
  }
38
38
 
@@ -40,22 +40,22 @@ declare module '@vario-software/vario-app-framework-backend/app.js'
40
40
 
41
41
  declare module '@vario-software/vario-app-framework-backend/utils/httpError'
42
42
  {
43
- export { HttpError as default, HttpError } from './app/HttpError';
43
+ export { HttpError as default, HttpError } from '@vario-software/types/app/HttpError';
44
44
  }
45
45
 
46
46
  declare module '@vario-software/vario-app-framework-backend/utils/httpError.js'
47
47
  {
48
- export { HttpError as default, HttpError } from './app/HttpError';
48
+ export { HttpError as default, HttpError } from '@vario-software/types/app/HttpError';
49
49
  }
50
50
 
51
51
  declare module '@vario-software/vario-app-framework-backend/utils/migrator'
52
52
  {
53
- export { Migrator as default, Migrator, MigratorMethods, MigratorCallback } from './app/Migrator';
53
+ export { Migrator as default, Migrator, MigratorMethods, MigratorCallback } from '@vario-software/types/app/Migrator';
54
54
  }
55
55
 
56
56
  declare module '@vario-software/vario-app-framework-backend/utils/migrator.js'
57
57
  {
58
- export { Migrator as default, Migrator, MigratorMethods, MigratorCallback } from './app/Migrator';
58
+ export { Migrator as default, Migrator, MigratorMethods, MigratorCallback } from '@vario-software/types/app/Migrator';
59
59
  }
60
60
 
61
61
  declare module '@vario-software/vario-app-framework-backend/utils/permission'
@@ -84,26 +84,26 @@ declare module '@vario-software/vario-app-framework-backend/utils/licenses.js'
84
84
 
85
85
  declare module '@vario-software/vario-app-framework-backend/utils/promiseSingletonMap'
86
86
  {
87
- export { PromiseSingletonMap as default, PromiseSingletonMap } from './app/PromiseSingletonMap';
87
+ export { PromiseSingletonMap as default, PromiseSingletonMap } from '@vario-software/types/app/PromiseSingletonMap';
88
88
  }
89
89
 
90
90
  declare module '@vario-software/vario-app-framework-backend/utils/promiseSingletonMap.js'
91
91
  {
92
- export { PromiseSingletonMap as default, PromiseSingletonMap } from './app/PromiseSingletonMap';
92
+ export { PromiseSingletonMap as default, PromiseSingletonMap } from '@vario-software/types/app/PromiseSingletonMap';
93
93
  }
94
94
 
95
95
  declare module '@vario-software/vario-app-framework-backend/utils/token'
96
96
  {
97
- export function validateOfflineToken(offlineToken: string): Promise<import('./app/context').AccessTokenPayload>;
98
- export function validateAppToken(appToken: string): Promise<import('./app/context').AccessTokenPayload>;
97
+ export function validateOfflineToken(offlineToken: string): Promise<import('@vario-software/types/app/context').AccessTokenPayload>;
98
+ export function validateAppToken(appToken: string): Promise<import('@vario-software/types/app/context').AccessTokenPayload>;
99
99
  export function isAppTokenExpired(): boolean;
100
100
  export function refreshAppToken(): Promise<void>;
101
101
  }
102
102
 
103
103
  declare module '@vario-software/vario-app-framework-backend/utils/token.js'
104
104
  {
105
- export function validateOfflineToken(offlineToken: string): Promise<import('./app/context').AccessTokenPayload>;
106
- export function validateAppToken(appToken: string): Promise<import('./app/context').AccessTokenPayload>;
105
+ export function validateOfflineToken(offlineToken: string): Promise<import('@vario-software/types/app/context').AccessTokenPayload>;
106
+ export function validateAppToken(appToken: string): Promise<import('@vario-software/types/app/context').AccessTokenPayload>;
107
107
  export function isAppTokenExpired(): boolean;
108
108
  export function refreshAppToken(): Promise<void>;
109
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vario-software/types",
3
- "version": "2026.43.0",
3
+ "version": "2026.43.2",
4
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
5
  "homepage": "https://developer.vario-software.de/",
6
6
  "bugs": "https://developer.vario-software.de/help-support",
package/schema/erp.d.ts CHANGED
@@ -44599,7 +44599,7 @@ export interface components {
44599
44599
  version?: string;
44600
44600
  };
44601
44601
  "erp-finance-ManualEntry": {
44602
- /** @description the amount */
44602
+ /** @description Amount relative to the bank transaction: positive amounts use up the transaction amount, negative amounts free it. A bank fee (PAYMENT_FEE) on an incoming transaction is therefore negative. */
44603
44603
  amount?: number;
44604
44604
  /** @description a comment on the entry */
44605
44605
  comment?: string;
@@ -44634,7 +44634,7 @@ export interface components {
44634
44634
  "erp-finance-ManualFinanceBookingAccountDistribution": {
44635
44635
  /** @description Cost center. */
44636
44636
  costCenter1?: string;
44637
- /** @description Distribution amount. */
44637
+ /** @description Distribution amount. For MANUAL a positive amount uses up the bank transaction amount, a negative amount books in the opposite direction. For PAYMENT_FEE always enter the bank fee as a positive expense, for incoming transactions it is stored with a negative sign. */
44638
44638
  distributionAmount?: number;
44639
44639
  /** @description Document field 1. */
44640
44640
  documentField1?: string;
@@ -505,21 +505,21 @@ export interface ArticleListingScriptingService {
505
505
  getNewDto(): ArticleListing;
506
506
 
507
507
  /**
508
- * Liest alle Listings zu einem Artikel mit Texten zur Sprache languageCode
508
+ * Liest alle Listings zu einem Artikel
509
509
  *
510
510
  * @param {number} articleId - ID des Artikels
511
- * @param {string} languageCode - Zu verwendende Sprache
512
511
  * @return {Array<ArticleListing>} Liste der Listings
513
512
  */
514
- readAllByArticleId(articleId: number, languageCode: string): Array<ArticleListing>;
513
+ readAllByArticleId(articleId: number): Array<ArticleListing>;
515
514
 
516
515
  /**
517
- * Liest alle Listings zu einem Artikel
516
+ * Liest alle Listings zu einem Artikel mit Texten zur Sprache languageCode
518
517
  *
519
518
  * @param {number} articleId - ID des Artikels
519
+ * @param {string} languageCode - Zu verwendende Sprache
520
520
  * @return {Array<ArticleListing>} Liste der Listings
521
521
  */
522
- readAllByArticleId(articleId: number): Array<ArticleListing>;
522
+ readAllByArticleId(articleId: number, languageCode: string): Array<ArticleListing>;
523
523
 
524
524
  /**
525
525
  * Liest eine Liste von DTOs
@@ -575,10 +575,8 @@ export interface ArticleScriptingService {
575
575
  *
576
576
  * @param {string} batchIdentifier - ID des Etikettendrucklaufs
577
577
  * @param {number} articleId - ID des zu druckenden Artikels
578
- * @param {number} articleSerialNumberId - ID der zu druckenden Seriennummer
579
- * @param {number} labelCount - Anzahl der zu druckenden Etiketten
580
578
  */
581
- addLabelToPrintBatch(batchIdentifier: string, articleId: number, articleSerialNumberId: number, labelCount: number): void;
579
+ addLabelToPrintBatch(batchIdentifier: string, articleId: number): void;
582
580
 
583
581
  /**
584
582
  * Fügt Informationen zum Druck Etiketten zu einem Artikel zu einem Etikettendrucklauf hinzu
@@ -594,16 +592,10 @@ export interface ArticleScriptingService {
594
592
  *
595
593
  * @param {string} batchIdentifier - ID des Etikettendrucklaufs
596
594
  * @param {number} articleId - ID des zu druckenden Artikels
595
+ * @param {number} articleSerialNumberId - ID der zu druckenden Seriennummer
596
+ * @param {number} labelCount - Anzahl der zu druckenden Etiketten
597
597
  */
598
- addLabelToPrintBatch(batchIdentifier: string, articleId: number): void;
599
-
600
- /**
601
- * Persistiert einen Artikel. Die Texte werden zur Sprache der eigenen Adresse gespeichert
602
- *
603
- * @param {Article} toCreate - Der zu persistierende Artikel
604
- * @return {Article} Der persistierte Artikel
605
- */
606
- create(toCreate: Article): Article;
598
+ addLabelToPrintBatch(batchIdentifier: string, articleId: number, articleSerialNumberId: number, labelCount: number): void;
607
599
 
608
600
  /**
609
601
  * Persistiert einen Haupt-Artikel und die dazugehörigen Gebinde-Artikel.
@@ -626,6 +618,14 @@ Die Texte werden zur Sprache der eigenen Adresse gespeichert.
626
618
  */
627
619
  create(toCreate: Article, languageCode: string): Article;
628
620
 
621
+ /**
622
+ * Persistiert einen Artikel. Die Texte werden zur Sprache der eigenen Adresse gespeichert
623
+ *
624
+ * @param {Article} toCreate - Der zu persistierende Artikel
625
+ * @return {Article} Der persistierte Artikel
626
+ */
627
+ create(toCreate: Article): Article;
628
+
629
629
  /**
630
630
  * Deaktiviert ein DTO
631
631
  *
@@ -653,33 +653,33 @@ Die Texte werden zur Sprache der eigenen Adresse gespeichert.
653
653
  * Führt einen Etikettendrucklauf aus
654
654
  *
655
655
  * @param {string} batchIdentifier - ID des Etikettendrucklaufs
656
- * @param {string} reportGroupIdentifier - Name einer Etiketten-Report-Gruppe
657
656
  */
658
- executeLabelPrintBatch(batchIdentifier: string, reportGroupIdentifier: string): void;
657
+ executeLabelPrintBatch(batchIdentifier: string): void;
659
658
 
660
659
  /**
661
660
  * Führt einen Etikettendrucklauf aus
662
661
  *
663
662
  * @param {string} batchIdentifier - ID des Etikettendrucklaufs
663
+ * @param {string} reportGroupIdentifier - Name einer Etiketten-Report-Gruppe
664
664
  */
665
- executeLabelPrintBatch(batchIdentifier: string): void;
665
+ executeLabelPrintBatch(batchIdentifier: string, reportGroupIdentifier: string): void;
666
666
 
667
667
  /**
668
- * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse
668
+ * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache {@code languageCode}
669
669
  *
670
670
  * @param {string} articleNumber - Eine Artikelnummer
671
- * @return {Article} Der gelesene Artikel oder null
671
+ * @param {string} languageCode - Zu verwendende Sprache
672
+ * @return {Article} Der gelesene Artikel oder null
672
673
  */
673
- findByNumber(articleNumber: string): Article;
674
+ findByNumber(articleNumber: string, languageCode: string): Article;
674
675
 
675
676
  /**
676
- * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache {@code languageCode}
677
+ * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse
677
678
  *
678
679
  * @param {string} articleNumber - Eine Artikelnummer
679
- * @param {string} languageCode - Zu verwendende Sprache
680
- * @return {Article} Der gelesene Artikel oder null
680
+ * @return {Article} Der gelesene Artikel oder null
681
681
  */
682
- findByNumber(articleNumber: string, languageCode: string): Article;
682
+ findByNumber(articleNumber: string): Article;
683
683
 
684
684
  /**
685
685
  * Liefert die Einkaufsrabatte zu einem Artikel
@@ -728,38 +728,38 @@ Die Texte werden zur Sprache der eigenen Adresse gespeichert.
728
728
  newLabelPrintBatchIdentifier(): string;
729
729
 
730
730
  /**
731
- * Liest einen Artikel mit Texten zur Sprache languageCode
731
+ * Liest einen Artikel mit Texten zur Sprache der eigenen Adresse
732
732
  *
733
733
  * @param {number} id - ID vom zu lesenden Artikel
734
- * @param {string} languageCode - Zu verwendende Sprache
735
734
  * @return {Article} Der gelesene Artikel
736
735
  */
737
- readById(id: number, languageCode: string): Article;
736
+ readById(id: number): Article;
738
737
 
739
738
  /**
740
- * Liest einen Artikel mit Texten zur Sprache der eigenen Adresse
739
+ * Liest einen Artikel mit Texten zur Sprache languageCode
741
740
  *
742
741
  * @param {number} id - ID vom zu lesenden Artikel
742
+ * @param {string} languageCode - Zu verwendende Sprache
743
743
  * @return {Article} Der gelesene Artikel
744
744
  */
745
- readById(id: number): Article;
745
+ readById(id: number, languageCode: string): Article;
746
746
 
747
747
  /**
748
- * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse
748
+ * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache {@code languageCode}
749
749
  *
750
750
  * @param {string} articleNumber - Eine Artikelnummer
751
+ * @param {string} languageCode - Zu verwendende Sprache
751
752
  * @return {Article} Der gelesene Artikel
752
753
  */
753
- readByNumber(articleNumber: string): Article;
754
+ readByNumber(articleNumber: string, languageCode: string): Article;
754
755
 
755
756
  /**
756
- * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache {@code languageCode}
757
+ * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse
757
758
  *
758
759
  * @param {string} articleNumber - Eine Artikelnummer
759
- * @param {string} languageCode - Zu verwendende Sprache
760
760
  * @return {Article} Der gelesene Artikel
761
761
  */
762
- readByNumber(articleNumber: string, languageCode: string): Article;
762
+ readByNumber(articleNumber: string): Article;
763
763
 
764
764
  /**
765
765
  * Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
@@ -779,21 +779,21 @@ Die Texte werden zur Sprache der eigenen Adresse gespeichert.
779
779
  store(toStore: Article): Article;
780
780
 
781
781
  /**
782
- * Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
782
+ * Aktualisiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
783
783
  *
784
784
  * @param {Article} toUpdate - Der zu persistierende Artikel
785
+ * @param {string} languageCode -
785
786
  * @return {Article} Der aktualisiert Artikel
786
787
  */
787
- update(toUpdate: Article): Article;
788
+ update(toUpdate: Article, languageCode: string): Article;
788
789
 
789
790
  /**
790
- * Aktualisiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
791
+ * Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
791
792
  *
792
793
  * @param {Article} toUpdate - Der zu persistierende Artikel
793
- * @param {string} languageCode -
794
794
  * @return {Article} Der aktualisiert Artikel
795
795
  */
796
- update(toUpdate: Article, languageCode: string): Article;
796
+ update(toUpdate: Article): Article;
797
797
  }
798
798
 
799
799
  /**
@@ -1940,18 +1940,18 @@ export interface DocumentScriptingService {
1940
1940
  * Bricht die Bearbeitung eines Belegs ab (Transition EDIT -> SAVED)
1941
1941
  *
1942
1942
  * @param {number} documentId - ID des Belegs
1943
- * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
1944
1943
  * @return {Document} Der abgebrochene Beleg. Falls der Beleg erst angelegt und noch nicht gespeichert wurde, wird er gelöscht und es wird {@code null} zurückgeliefert
1945
1944
  */
1946
- cancel(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
1945
+ cancel(documentId: number): Document;
1947
1946
 
1948
1947
  /**
1949
1948
  * Bricht die Bearbeitung eines Belegs ab (Transition EDIT -> SAVED)
1950
1949
  *
1951
1950
  * @param {number} documentId - ID des Belegs
1951
+ * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
1952
1952
  * @return {Document} Der abgebrochene Beleg. Falls der Beleg erst angelegt und noch nicht gespeichert wurde, wird er gelöscht und es wird {@code null} zurückgeliefert
1953
1953
  */
1954
- cancel(documentId: number): Document;
1954
+ cancel(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
1955
1955
 
1956
1956
  /**
1957
1957
  * Changes the delivery approval of an order
@@ -2124,18 +2124,18 @@ export interface DocumentScriptingService {
2124
2124
  * Speichert einen Beleg (Transition EDIT -> SAVED)
2125
2125
  *
2126
2126
  * @param {number} documentId - ID des zu speichernden Belegs
2127
+ * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
2127
2128
  * @return {Document} Der gespeicherte Beleg
2128
2129
  */
2129
- save(documentId: number): Document;
2130
+ save(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
2130
2131
 
2131
2132
  /**
2132
2133
  * Speichert einen Beleg (Transition EDIT -> SAVED)
2133
2134
  *
2134
2135
  * @param {number} documentId - ID des zu speichernden Belegs
2135
- * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
2136
2136
  * @return {Document} Der gespeicherte Beleg
2137
2137
  */
2138
- save(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
2138
+ save(documentId: number): Document;
2139
2139
 
2140
2140
  /**
2141
2141
  * Completes an externally created document and freezes it. A document that is no longer in EDIT mode is only frozen.
@@ -2149,16 +2149,16 @@ export interface DocumentScriptingService {
2149
2149
  * Versendet einen Beleg per Mail
2150
2150
  *
2151
2151
  * @param {number} documentId - ID des zu versendenden Belegs
2152
- * @param {string} reportGroupIdentifier -
2153
2152
  */
2154
- sendViaMail(documentId: number, reportGroupIdentifier: string): void;
2153
+ sendViaMail(documentId: number): void;
2155
2154
 
2156
2155
  /**
2157
2156
  * Versendet einen Beleg per Mail
2158
2157
  *
2159
2158
  * @param {number} documentId - ID des zu versendenden Belegs
2159
+ * @param {string} reportGroupIdentifier -
2160
2160
  */
2161
- sendViaMail(documentId: number): void;
2161
+ sendViaMail(documentId: number, reportGroupIdentifier: string): void;
2162
2162
 
2163
2163
  /**
2164
2164
  * Überführt einen Beleg in einen anderen Status
@@ -3353,18 +3353,18 @@ export interface ScriptingUtilities {
3353
3353
  * Erstellt eine neue BigDecimal-Instanz
3354
3354
  *
3355
3355
  * @param {object} value - Der Quell-Wert
3356
- * @param {number} scale - Anzahl Nachkommastellen
3357
3356
  * @return {number} Ein BigDecimal-Wert
3358
3357
  */
3359
- newBigDecimal(value: object, scale: number): number;
3358
+ newBigDecimal(value: object): number;
3360
3359
 
3361
3360
  /**
3362
3361
  * Erstellt eine neue BigDecimal-Instanz
3363
3362
  *
3364
3363
  * @param {object} value - Der Quell-Wert
3364
+ * @param {number} scale - Anzahl Nachkommastellen
3365
3365
  * @return {number} Ein BigDecimal-Wert
3366
3366
  */
3367
- newBigDecimal(value: object): number;
3367
+ newBigDecimal(value: object, scale: number): number;
3368
3368
 
3369
3369
  /**
3370
3370
  * Erstellt eine API-Referenz
@@ -3414,24 +3414,24 @@ export interface ShelfDocumentScriptingService {
3414
3414
  deleteAttribution(attributionId: number): void;
3415
3415
 
3416
3416
  /**
3417
- * Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
3417
+ * Lädt eine Datei von einer URL mit Authentifizierung herunter und erstellt ein neues DMS-Dokument
3418
3418
  *
3419
3419
  * @param {string} url - Download-URL
3420
+ * @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
3421
+ * @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
3420
3422
  * @param {string} documentTypeKey - Schlüssel der Dokumentenart
3421
3423
  * @return {ShelfDocument} Das neu erstellte DMS-Dokument
3422
3424
  */
3423
- downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
3425
+ downloadIntoDMS(url: string, authenticationType: EScriptingAuthenticationType, authValue: string, documentTypeKey: string): ShelfDocument;
3424
3426
 
3425
3427
  /**
3426
- * Lädt eine Datei von einer URL mit Authentifizierung herunter und erstellt ein neues DMS-Dokument
3428
+ * Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
3427
3429
  *
3428
3430
  * @param {string} url - Download-URL
3429
- * @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
3430
- * @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
3431
3431
  * @param {string} documentTypeKey - Schlüssel der Dokumentenart
3432
3432
  * @return {ShelfDocument} Das neu erstellte DMS-Dokument
3433
3433
  */
3434
- downloadIntoDMS(url: string, authenticationType: EScriptingAuthenticationType, authValue: string, documentTypeKey: string): ShelfDocument;
3434
+ downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
3435
3435
 
3436
3436
  /**
3437
3437
  * Findet ein Dokumentenart über ihren Schlüssel