@vario-software/types 2026.41.4 → 2026.42.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 +82 -9
- package/scripting/services.d.ts +45 -36
- package/scripting/types.d.ts +281 -235
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vario-software/types",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.42.0",
|
|
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
|
@@ -7636,6 +7636,23 @@ export interface paths {
|
|
|
7636
7636
|
patch?: never;
|
|
7637
7637
|
trace?: never;
|
|
7638
7638
|
};
|
|
7639
|
+
"/erp/articles/{id}/instore-code": {
|
|
7640
|
+
parameters: {
|
|
7641
|
+
query?: never;
|
|
7642
|
+
header?: never;
|
|
7643
|
+
path?: never;
|
|
7644
|
+
cookie?: never;
|
|
7645
|
+
};
|
|
7646
|
+
/** Create the in-store barcode (EAN-13) of an article from its PLU code */
|
|
7647
|
+
get: operations["generateInstoreCode"];
|
|
7648
|
+
put?: never;
|
|
7649
|
+
post?: never;
|
|
7650
|
+
delete?: never;
|
|
7651
|
+
options?: never;
|
|
7652
|
+
head?: never;
|
|
7653
|
+
patch?: never;
|
|
7654
|
+
trace?: never;
|
|
7655
|
+
};
|
|
7639
7656
|
"/erp/articles/{id}/languages-available-for-article": {
|
|
7640
7657
|
parameters: {
|
|
7641
7658
|
query?: never;
|
|
@@ -35968,6 +35985,11 @@ export interface components {
|
|
|
35968
35985
|
version?: string;
|
|
35969
35986
|
};
|
|
35970
35987
|
"common-output-OutputRequest": {
|
|
35988
|
+
/**
|
|
35989
|
+
* @description Return output directly to the client.
|
|
35990
|
+
* @default true
|
|
35991
|
+
*/
|
|
35992
|
+
directPrintEnabled: boolean;
|
|
35971
35993
|
/** @description File name (without extension) for a file export. */
|
|
35972
35994
|
exportFilename?: string;
|
|
35973
35995
|
/**
|
|
@@ -36444,7 +36466,7 @@ export interface components {
|
|
|
36444
36466
|
/** @description Version Identifier for this Object (for PUT) */
|
|
36445
36467
|
version?: string;
|
|
36446
36468
|
};
|
|
36447
|
-
/** @description
|
|
36469
|
+
/** @description Log entries. */
|
|
36448
36470
|
"common-task-TaskLogLine": {
|
|
36449
36471
|
/** @description Unique identifier of the Object */
|
|
36450
36472
|
id?: string;
|
|
@@ -37213,7 +37235,7 @@ export interface components {
|
|
|
37213
37235
|
* @description Work item processing state.
|
|
37214
37236
|
* @enum {string}
|
|
37215
37237
|
*/
|
|
37216
|
-
state?: "OPEN" | "IN_PROCESS" | "COMPLETED" | "ERRONEOUS" | "ABORTED";
|
|
37238
|
+
state?: "OPEN" | "IN_PROCESS" | "COMPLETED" | "ERRONEOUS" | "ABORTED" | "ABORTED_BY_SUB_WORKFLOW";
|
|
37217
37239
|
/** @description Version Identifier for this Object (for PUT) */
|
|
37218
37240
|
version?: string;
|
|
37219
37241
|
/**
|
|
@@ -41440,6 +41462,8 @@ export interface components {
|
|
|
41440
41462
|
externalIdentifier?: string;
|
|
41441
41463
|
/** @description External document number. */
|
|
41442
41464
|
externalNumber?: string;
|
|
41465
|
+
/** @description Payment reference from an external system, e.g. the transaction id of the payment provider. */
|
|
41466
|
+
externalPaymentReference?: string;
|
|
41443
41467
|
fabricationDetail?: components["schemas"]["erp-fabrication-DocumentFabricationDetail"];
|
|
41444
41468
|
/**
|
|
41445
41469
|
* @description Pass the email to the shipper.
|
|
@@ -41472,6 +41496,17 @@ export interface components {
|
|
|
41472
41496
|
/** @description Document lines. */
|
|
41473
41497
|
lines?: components["schemas"]["erp-document-DocumentLine"][];
|
|
41474
41498
|
locationRef?: components["schemas"]["core-api-ApiObjectReference"];
|
|
41499
|
+
/**
|
|
41500
|
+
* @description Predominant supply of a sales document (goods or services). Empty for all other documents. Only taken over from the request if mainSupplyTypeOrigin is USER_DEFINED, then it is required.
|
|
41501
|
+
* @enum {string}
|
|
41502
|
+
*/
|
|
41503
|
+
mainSupplyType?: "GOODS" | "SERVICES";
|
|
41504
|
+
/**
|
|
41505
|
+
* @description Origin of the main supply type. AUTOMATIC determines it from the document lines, PREDECESSOR takes over the value set by the user in the predecessor of a credit note or cancellation, USER_DEFINED keeps the value set by the user.
|
|
41506
|
+
* @default AUTOMATIC
|
|
41507
|
+
* @enum {string}
|
|
41508
|
+
*/
|
|
41509
|
+
mainSupplyTypeOrigin: "AUTOMATIC" | "PREDECESSOR" | "USER_DEFINED";
|
|
41475
41510
|
/**
|
|
41476
41511
|
* Format: int32
|
|
41477
41512
|
* @description Maximum possible deliveries.
|
|
@@ -42731,7 +42766,7 @@ export interface components {
|
|
|
42731
42766
|
* @description Kinds of entries in the DocumentProtocol.
|
|
42732
42767
|
* @enum {string}
|
|
42733
42768
|
*/
|
|
42734
|
-
type: "MANUAL" | "CREATED" | "SAVED" | "BEGIN_EDITING" | "CANCEL_EDITING" | "PUBLISHED" | "FROZEN" | "NEW_VERSION_STARTED" | "TRANSFERRED_TO_DELIVERY" | "TRANSFERRED_FROM_OTHER" | "TRANSFERRED_TO_OTHER" | "TRANSFER_CANCELLED" | "DELETED" | "IN_PICKING" | "RESET_FROM_PICKING" | "COPIED" | "ELECTRONIC_INVOICE_VALIDATED" | "FINANCE_BOOKING" | "CANCELLED" | "DISSOLVED" | "DOCUMENT_STATE_MANUALLY_CHANGED" | "DOCUMENT_MAINTAINED" | "COMPLETED_WITH_UNDER_DELIVERY" | "ORDER_REMAINDER_CLOSED" | "ORDER_REOPENED" | "REVERT_AFTER_WORKFLOW_FAILURE" | "ORDER_DELIVERY_APPROVED" | "ORDER_DELIVERY_UNAPPROVED" | "DOCUMENT_PRINTED" | "MANUAL_DUE_DATE_CHANGE" | "MANUAL_NEXT_DUE_DATE_CHANGE" | "DROP_SHIPPING_DELIVERY_APPROVED_FOR_INVOICE_DUE_TO_SUPPLIER_DELIVERY" | "DROP_SHIPPING_DELIVERY_UNAPPROVED_FOR_INVOICE_DUE_TO_DELETION_SUPPLIER_DELIVERY" | "FABRICATION_STARTED" | "FABRICATION_CANCELLED" | "FABRICATION_PAUSED" | "FABRICATION_RESUMED" | "FABRICATION_COMPLETED" | "FABRICATION_RESTARTED" | "FABRICATION_STARTED_QA" | "FABRICATION_CANCELLED_QA" | "FABRICATION_FINISHED_QA" | "FABRICATION_FINISHED";
|
|
42769
|
+
type: "MANUAL" | "PROBLEM" | "CREATED" | "SAVED" | "BEGIN_EDITING" | "CANCEL_EDITING" | "PUBLISHED" | "FROZEN" | "NEW_VERSION_STARTED" | "TRANSFERRED_TO_DELIVERY" | "TRANSFERRED_FROM_OTHER" | "TRANSFERRED_TO_OTHER" | "TRANSFER_CANCELLED" | "DELETED" | "IN_PICKING" | "RESET_FROM_PICKING" | "COPIED" | "ELECTRONIC_INVOICE_VALIDATED" | "FINANCE_BOOKING" | "CANCELLED" | "DISSOLVED" | "DOCUMENT_STATE_MANUALLY_CHANGED" | "DOCUMENT_MANUALLY_TRANSFERRED_FROM_WORKFLOW_STATE" | "DOCUMENT_MAINTAINED" | "COMPLETED_WITH_UNDER_DELIVERY" | "ORDER_REMAINDER_CLOSED" | "ORDER_REOPENED" | "REVERT_AFTER_WORKFLOW_FAILURE" | "ORDER_DELIVERY_APPROVED" | "ORDER_DELIVERY_UNAPPROVED" | "DOCUMENT_PRINTED" | "MANUAL_DUE_DATE_CHANGE" | "MANUAL_NEXT_DUE_DATE_CHANGE" | "DROP_SHIPPING_DELIVERY_APPROVED_FOR_INVOICE_DUE_TO_SUPPLIER_DELIVERY" | "DROP_SHIPPING_DELIVERY_UNAPPROVED_FOR_INVOICE_DUE_TO_DELETION_SUPPLIER_DELIVERY" | "FABRICATION_STARTED" | "FABRICATION_CANCELLED" | "FABRICATION_PAUSED" | "FABRICATION_RESUMED" | "FABRICATION_COMPLETED" | "FABRICATION_RESTARTED" | "FABRICATION_STARTED_QA" | "FABRICATION_CANCELLED_QA" | "FABRICATION_FINISHED_QA" | "FABRICATION_FINISHED";
|
|
42735
42770
|
/** @description User who created the entry. */
|
|
42736
42771
|
readonly userName?: string;
|
|
42737
42772
|
/** @description Version Identifier for this Object (for PUT) */
|
|
@@ -43226,6 +43261,8 @@ export interface components {
|
|
|
43226
43261
|
externalId?: string;
|
|
43227
43262
|
/** @description External document number. */
|
|
43228
43263
|
externalNumber?: string;
|
|
43264
|
+
/** @description Payment reference from an external system, e.g. the transaction id of the payment provider. */
|
|
43265
|
+
externalPaymentReference?: string;
|
|
43229
43266
|
/**
|
|
43230
43267
|
* Format: int64
|
|
43231
43268
|
* @description Pick trolley identifier for the incoming goods (when incomingGoodsStorageBinId is null).
|
|
@@ -43238,6 +43275,8 @@ export interface components {
|
|
|
43238
43275
|
incomingGoodsStorageBinId?: number;
|
|
43239
43276
|
/** @description Document lines. */
|
|
43240
43277
|
lines?: components["schemas"]["erp-document-RequestDocumentLine"][];
|
|
43278
|
+
/** @description location-id to create a new Document */
|
|
43279
|
+
locationId?: string;
|
|
43241
43280
|
/**
|
|
43242
43281
|
* Format: date
|
|
43243
43282
|
* @description Performance date.
|
|
@@ -44696,6 +44735,8 @@ export interface components {
|
|
|
44696
44735
|
exchangeRate?: number;
|
|
44697
44736
|
/** @description External open item number. */
|
|
44698
44737
|
readonly externalNumber?: string;
|
|
44738
|
+
/** @description Payment reference from an external system */
|
|
44739
|
+
readonly externalPaymentReference?: string;
|
|
44699
44740
|
/** @description The full amount of the payment */
|
|
44700
44741
|
readonly fullPaymentAmount?: number;
|
|
44701
44742
|
/** @description Unique identifier of the Object */
|
|
@@ -44855,6 +44896,8 @@ export interface components {
|
|
|
44855
44896
|
dunningBlock?: boolean;
|
|
44856
44897
|
/** @description External open item number. */
|
|
44857
44898
|
externalNumber?: string;
|
|
44899
|
+
/** @description Payment reference from an external system. */
|
|
44900
|
+
externalPaymentReference?: string;
|
|
44858
44901
|
/** @description Set to clarification. */
|
|
44859
44902
|
inReview?: boolean;
|
|
44860
44903
|
/**
|
|
@@ -44970,7 +45013,7 @@ export interface components {
|
|
|
44970
45013
|
* @description The type of rule, i.e. used while looking through invoice-related open items
|
|
44971
45014
|
* @enum {string}
|
|
44972
45015
|
*/
|
|
44973
|
-
ruleType?: "INVOICE" | "ORDER" | "DEPOSIT_INVOICE" | "NAME" | "CUSTOMER_NUMBER" | "SUPPLIER_NUMBER" | "AMOUNT" | "EXTERNAL_NUMBER";
|
|
45016
|
+
ruleType?: "INVOICE" | "ORDER" | "DEPOSIT_INVOICE" | "NAME" | "CUSTOMER_NUMBER" | "SUPPLIER_NUMBER" | "AMOUNT" | "EXTERNAL_NUMBER" | "EXTERNAL_PAYMENT_REFERENCE";
|
|
44974
45017
|
/** @description Version Identifier for this Object (for PUT) */
|
|
44975
45018
|
version?: string;
|
|
44976
45019
|
};
|
|
@@ -46260,6 +46303,8 @@ export interface components {
|
|
|
46260
46303
|
* @enum {string}
|
|
46261
46304
|
*/
|
|
46262
46305
|
priceBase?: "NET_PRICE" | "GROSS_PRICE";
|
|
46306
|
+
/** @description Price look-up code (PLU). */
|
|
46307
|
+
priceLookUpCode?: string;
|
|
46263
46308
|
printLabelSettings?: components["schemas"]["erp-product-ArticlePrintLabelSettings"];
|
|
46264
46309
|
/**
|
|
46265
46310
|
* @description Only for quota articles: should the billing print a note that no quota is available?
|
|
@@ -50908,8 +50953,6 @@ export interface components {
|
|
|
50908
50953
|
};
|
|
50909
50954
|
/** @description Replenishment proposal. */
|
|
50910
50955
|
"erp-wms-ReplenishmentProposal": {
|
|
50911
|
-
/** @description Completion log. */
|
|
50912
|
-
readonly finishLogLines?: components["schemas"]["common-task-TaskLogLine"][];
|
|
50913
50956
|
/** @description Unique identifier of the Object */
|
|
50914
50957
|
id?: string;
|
|
50915
50958
|
info?: components["schemas"]["core-api-MetaInfo"];
|
|
@@ -50919,13 +50962,15 @@ export interface components {
|
|
|
50919
50962
|
readonly number?: string;
|
|
50920
50963
|
/** @description Replenishment picklists. */
|
|
50921
50964
|
readonly picklistRefs?: components["schemas"]["core-api-ApiObjectReference"][];
|
|
50922
|
-
|
|
50965
|
+
/** @description Replenishment source documents. */
|
|
50966
|
+
readonly sourceDocumentRefs?: components["schemas"]["erp-document-DocumentRef"][];
|
|
50923
50967
|
/**
|
|
50924
50968
|
* @description Replenishment proposal status.
|
|
50925
50969
|
* @enum {string}
|
|
50926
50970
|
*/
|
|
50927
|
-
readonly state?: "OPEN" | "FINISHED" | "CANCELLED";
|
|
50928
|
-
|
|
50971
|
+
readonly state?: "OPEN" | "PARTIALLY_IN_TRANSFER" | "IN_TRANSFER" | "FINISHED" | "CANCELLED";
|
|
50972
|
+
/** @description Replenishment target documents. */
|
|
50973
|
+
readonly targetDocumentRefs?: components["schemas"]["erp-document-DocumentRef"][];
|
|
50929
50974
|
usedTemplate?: components["schemas"]["erp-wms-ReplenishmentProposalTemplate"];
|
|
50930
50975
|
/** @description Version Identifier for this Object (for PUT) */
|
|
50931
50976
|
version?: string;
|
|
@@ -71603,6 +71648,34 @@ export interface operations {
|
|
|
71603
71648
|
};
|
|
71604
71649
|
};
|
|
71605
71650
|
};
|
|
71651
|
+
generateInstoreCode: {
|
|
71652
|
+
parameters: {
|
|
71653
|
+
query: {
|
|
71654
|
+
/** @description Prefix that defines the meaning of the value */
|
|
71655
|
+
prefix: "PRICE" | "QUANTITY" | "WEIGHT";
|
|
71656
|
+
/** @description depending on the prefix either a weight, currency or quantity value */
|
|
71657
|
+
value: number;
|
|
71658
|
+
};
|
|
71659
|
+
header?: never;
|
|
71660
|
+
path: {
|
|
71661
|
+
/** @description Article identifier. */
|
|
71662
|
+
id: number;
|
|
71663
|
+
};
|
|
71664
|
+
cookie?: never;
|
|
71665
|
+
};
|
|
71666
|
+
requestBody?: never;
|
|
71667
|
+
responses: {
|
|
71668
|
+
/** @description OK */
|
|
71669
|
+
200: {
|
|
71670
|
+
headers: {
|
|
71671
|
+
[name: string]: unknown;
|
|
71672
|
+
};
|
|
71673
|
+
content: {
|
|
71674
|
+
"*/*": string;
|
|
71675
|
+
};
|
|
71676
|
+
};
|
|
71677
|
+
};
|
|
71678
|
+
};
|
|
71606
71679
|
getLanguagesBySalesChannel: {
|
|
71607
71680
|
parameters: {
|
|
71608
71681
|
query?: {
|
package/scripting/services.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
ExternalDocumentWithTaxesLine, ExternalDocumentWithTaxesRequest,
|
|
36
36
|
FabricationComponentForProduction, FabricationDefectiveRequest,
|
|
37
37
|
FabricationProduceRequest, FabricationRemainingComponent,
|
|
38
|
-
FabricationRevertRequest, FabricationSerialNumber, Group,
|
|
38
|
+
FabricationRevertRequest, FabricationSerialNumber, Group, JsonNode,
|
|
39
39
|
LocalizedTextTemplateContent, OpenItem, PaymentMethod, PaymentTerm,
|
|
40
40
|
PaymentTermRef, PickTrolley, PickTrolleyBox, Picklist, PicklistLine,
|
|
41
41
|
PicklistLineBooking, PicklistLineComponent, PicklistTemplate,
|
|
@@ -582,17 +582,17 @@ export interface ArticleScriptingService {
|
|
|
582
582
|
*
|
|
583
583
|
* @param {string} batchIdentifier - ID des Etikettendrucklaufs
|
|
584
584
|
* @param {number} articleId - ID des zu druckenden Artikels
|
|
585
|
+
* @param {number} labelCount - Anzahl der zu druckenden Etiketten
|
|
585
586
|
*/
|
|
586
|
-
addLabelToPrintBatch(batchIdentifier: string, articleId: number): void;
|
|
587
|
+
addLabelToPrintBatch(batchIdentifier: string, articleId: number, labelCount: number): void;
|
|
587
588
|
|
|
588
589
|
/**
|
|
589
590
|
* Fügt Informationen zum Druck Etiketten zu einem Artikel zu einem Etikettendrucklauf hinzu
|
|
590
591
|
*
|
|
591
592
|
* @param {string} batchIdentifier - ID des Etikettendrucklaufs
|
|
592
593
|
* @param {number} articleId - ID des zu druckenden Artikels
|
|
593
|
-
* @param {number} labelCount - Anzahl der zu druckenden Etiketten
|
|
594
594
|
*/
|
|
595
|
-
addLabelToPrintBatch(batchIdentifier: string, articleId: number
|
|
595
|
+
addLabelToPrintBatch(batchIdentifier: string, articleId: number): void;
|
|
596
596
|
|
|
597
597
|
/**
|
|
598
598
|
* Persistiert einen Artikel. Die Texte werden zur Sprache der eigenen Adresse gespeichert
|
|
@@ -742,21 +742,21 @@ Die Texte werden zur Sprache der eigenen Adresse gespeichert.
|
|
|
742
742
|
readById(id: number): Article;
|
|
743
743
|
|
|
744
744
|
/**
|
|
745
|
-
* Liest einen Artikel über die Artikelnummer mit Texten zur Sprache
|
|
745
|
+
* Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse
|
|
746
746
|
*
|
|
747
747
|
* @param {string} articleNumber - Eine Artikelnummer
|
|
748
|
-
* @param {string} languageCode - Zu verwendende Sprache
|
|
749
748
|
* @return {Article} Der gelesene Artikel
|
|
750
749
|
*/
|
|
751
|
-
readByNumber(articleNumber: string
|
|
750
|
+
readByNumber(articleNumber: string): Article;
|
|
752
751
|
|
|
753
752
|
/**
|
|
754
|
-
* Liest einen Artikel über die Artikelnummer mit Texten zur Sprache
|
|
753
|
+
* Liest einen Artikel über die Artikelnummer mit Texten zur Sprache {@code languageCode}
|
|
755
754
|
*
|
|
756
755
|
* @param {string} articleNumber - Eine Artikelnummer
|
|
756
|
+
* @param {string} languageCode - Zu verwendende Sprache
|
|
757
757
|
* @return {Article} Der gelesene Artikel
|
|
758
758
|
*/
|
|
759
|
-
readByNumber(articleNumber: string): Article;
|
|
759
|
+
readByNumber(articleNumber: string, languageCode: string): Article;
|
|
760
760
|
|
|
761
761
|
/**
|
|
762
762
|
* Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
|
|
@@ -1963,20 +1963,20 @@ export interface DocumentScriptingService {
|
|
|
1963
1963
|
* Kopiert einen Beleg in die vorgegebene Ziel-Belegart
|
|
1964
1964
|
*
|
|
1965
1965
|
* @param {number} documentId - ID des zu kopierenden Belegs
|
|
1966
|
-
* @param {string}
|
|
1966
|
+
* @param {string} targetDocumentType - Ziel-Belegart der Kopie
|
|
1967
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
1967
1968
|
* @return {Document} Der kopierte Beleg
|
|
1968
1969
|
*/
|
|
1969
|
-
copy(documentId: number,
|
|
1970
|
+
copy(documentId: number, targetDocumentType: string, additionalParameters: Array<AdditionalParameter>): Document;
|
|
1970
1971
|
|
|
1971
1972
|
/**
|
|
1972
1973
|
* Kopiert einen Beleg in die vorgegebene Ziel-Belegart
|
|
1973
1974
|
*
|
|
1974
1975
|
* @param {number} documentId - ID des zu kopierenden Belegs
|
|
1975
|
-
* @param {string}
|
|
1976
|
-
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
1976
|
+
* @param {string} targetDocumentTypeLabel - Ziel-Belegart der Kopie
|
|
1977
1977
|
* @return {Document} Der kopierte Beleg
|
|
1978
1978
|
*/
|
|
1979
|
-
copy(documentId: number,
|
|
1979
|
+
copy(documentId: number, targetDocumentTypeLabel: string): Document;
|
|
1980
1980
|
|
|
1981
1981
|
/**
|
|
1982
1982
|
* Erstellt einen neuen Beleg
|
|
@@ -2007,18 +2007,18 @@ export interface DocumentScriptingService {
|
|
|
2007
2007
|
* Startet die Bearbeitung eines Belegs (Transition SAVED -> EDIT)
|
|
2008
2008
|
*
|
|
2009
2009
|
* @param {number} documentId - ID des Belegs
|
|
2010
|
-
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
2011
2010
|
* @return {Document} Der Beleg in Bearbeitung
|
|
2012
2011
|
*/
|
|
2013
|
-
edit(documentId: number
|
|
2012
|
+
edit(documentId: number): Document;
|
|
2014
2013
|
|
|
2015
2014
|
/**
|
|
2016
2015
|
* Startet die Bearbeitung eines Belegs (Transition SAVED -> EDIT)
|
|
2017
2016
|
*
|
|
2018
2017
|
* @param {number} documentId - ID des Belegs
|
|
2018
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
2019
2019
|
* @return {Document} Der Beleg in Bearbeitung
|
|
2020
2020
|
*/
|
|
2021
|
-
edit(documentId: number): Document;
|
|
2021
|
+
edit(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
|
|
2022
2022
|
|
|
2023
2023
|
/**
|
|
2024
2024
|
* Erstellt ein AdditionalParameter-Objekt
|
|
@@ -2093,6 +2093,15 @@ export interface DocumentScriptingService {
|
|
|
2093
2093
|
*/
|
|
2094
2094
|
importExternalDocument(request: ExternalDocumentWithTaxesRequest): Document;
|
|
2095
2095
|
|
|
2096
|
+
/**
|
|
2097
|
+
* Partially updates the custom fields of a document. Affects only the given groups and fields, all other custom fields stay unchanged. Custom fields may also be changed for documents not in EDIT mode.
|
|
2098
|
+
*
|
|
2099
|
+
* @param {number} documentId - ID of the document
|
|
2100
|
+
* @param {JsonNode} custom - Custom fields to change as JSON object
|
|
2101
|
+
* @return {Document} The updated document
|
|
2102
|
+
*/
|
|
2103
|
+
patchCustomFields(documentId: number, custom: JsonNode): Document;
|
|
2104
|
+
|
|
2096
2105
|
/**
|
|
2097
2106
|
* Druckt einen Beleg
|
|
2098
2107
|
*
|
|
@@ -2112,33 +2121,33 @@ export interface DocumentScriptingService {
|
|
|
2112
2121
|
* Speichert einen Beleg (Transition EDIT -> SAVED)
|
|
2113
2122
|
*
|
|
2114
2123
|
* @param {number} documentId - ID des zu speichernden Belegs
|
|
2115
|
-
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
2116
2124
|
* @return {Document} Der gespeicherte Beleg
|
|
2117
2125
|
*/
|
|
2118
|
-
save(documentId: number
|
|
2126
|
+
save(documentId: number): Document;
|
|
2119
2127
|
|
|
2120
2128
|
/**
|
|
2121
2129
|
* Speichert einen Beleg (Transition EDIT -> SAVED)
|
|
2122
2130
|
*
|
|
2123
2131
|
* @param {number} documentId - ID des zu speichernden Belegs
|
|
2132
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
2124
2133
|
* @return {Document} Der gespeicherte Beleg
|
|
2125
2134
|
*/
|
|
2126
|
-
save(documentId: number): Document;
|
|
2135
|
+
save(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
|
|
2127
2136
|
|
|
2128
2137
|
/**
|
|
2129
2138
|
* Versendet einen Beleg per Mail
|
|
2130
2139
|
*
|
|
2131
2140
|
* @param {number} documentId - ID des zu versendenden Belegs
|
|
2132
|
-
* @param {string} reportGroupIdentifier -
|
|
2133
2141
|
*/
|
|
2134
|
-
sendViaMail(documentId: number
|
|
2142
|
+
sendViaMail(documentId: number): void;
|
|
2135
2143
|
|
|
2136
2144
|
/**
|
|
2137
2145
|
* Versendet einen Beleg per Mail
|
|
2138
2146
|
*
|
|
2139
2147
|
* @param {number} documentId - ID des zu versendenden Belegs
|
|
2148
|
+
* @param {string} reportGroupIdentifier -
|
|
2140
2149
|
*/
|
|
2141
|
-
sendViaMail(documentId: number): void;
|
|
2150
|
+
sendViaMail(documentId: number, reportGroupIdentifier: string): void;
|
|
2142
2151
|
|
|
2143
2152
|
/**
|
|
2144
2153
|
* Überführt einen Beleg in einen anderen Status
|
|
@@ -3081,14 +3090,14 @@ export interface ScriptingServiceList {
|
|
|
3081
3090
|
crmTaskService: CrmTaskScriptingService;
|
|
3082
3091
|
|
|
3083
3092
|
/**
|
|
3084
|
-
* Service zur Verarbeitung von
|
|
3093
|
+
* Service zur Verarbeitung von Accounts
|
|
3085
3094
|
*/
|
|
3086
|
-
|
|
3095
|
+
accountService: AccountScriptingService;
|
|
3087
3096
|
|
|
3088
3097
|
/**
|
|
3089
|
-
* Service zur Verarbeitung von
|
|
3098
|
+
* Service zur Verarbeitung von Shelf-Documents
|
|
3090
3099
|
*/
|
|
3091
|
-
|
|
3100
|
+
shelfDocumentService: ShelfDocumentScriptingService;
|
|
3092
3101
|
|
|
3093
3102
|
/**
|
|
3094
3103
|
* Verwaltung von Versandarten
|
|
@@ -3333,18 +3342,18 @@ export interface ScriptingUtilities {
|
|
|
3333
3342
|
* Erstellt eine neue BigDecimal-Instanz
|
|
3334
3343
|
*
|
|
3335
3344
|
* @param {object} value - Der Quell-Wert
|
|
3336
|
-
* @param {number} scale - Anzahl Nachkommastellen
|
|
3337
3345
|
* @return {number} Ein BigDecimal-Wert
|
|
3338
3346
|
*/
|
|
3339
|
-
newBigDecimal(value: object
|
|
3347
|
+
newBigDecimal(value: object): number;
|
|
3340
3348
|
|
|
3341
3349
|
/**
|
|
3342
3350
|
* Erstellt eine neue BigDecimal-Instanz
|
|
3343
3351
|
*
|
|
3344
3352
|
* @param {object} value - Der Quell-Wert
|
|
3353
|
+
* @param {number} scale - Anzahl Nachkommastellen
|
|
3345
3354
|
* @return {number} Ein BigDecimal-Wert
|
|
3346
3355
|
*/
|
|
3347
|
-
newBigDecimal(value: object): number;
|
|
3356
|
+
newBigDecimal(value: object, scale: number): number;
|
|
3348
3357
|
|
|
3349
3358
|
/**
|
|
3350
3359
|
* Erstellt eine API-Referenz
|
|
@@ -3394,24 +3403,24 @@ export interface ShelfDocumentScriptingService {
|
|
|
3394
3403
|
deleteAttribution(attributionId: number): void;
|
|
3395
3404
|
|
|
3396
3405
|
/**
|
|
3397
|
-
* Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
|
|
3406
|
+
* Lädt eine Datei von einer URL mit Authentifizierung herunter und erstellt ein neues DMS-Dokument
|
|
3398
3407
|
*
|
|
3399
3408
|
* @param {string} url - Download-URL
|
|
3409
|
+
* @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
|
|
3410
|
+
* @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
|
|
3400
3411
|
* @param {string} documentTypeKey - Schlüssel der Dokumentenart
|
|
3401
3412
|
* @return {ShelfDocument} Das neu erstellte DMS-Dokument
|
|
3402
3413
|
*/
|
|
3403
|
-
downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
|
|
3414
|
+
downloadIntoDMS(url: string, authenticationType: EScriptingAuthenticationType, authValue: string, documentTypeKey: string): ShelfDocument;
|
|
3404
3415
|
|
|
3405
3416
|
/**
|
|
3406
|
-
* Lädt eine Datei von einer URL
|
|
3417
|
+
* Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
|
|
3407
3418
|
*
|
|
3408
3419
|
* @param {string} url - Download-URL
|
|
3409
|
-
* @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
|
|
3410
|
-
* @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
|
|
3411
3420
|
* @param {string} documentTypeKey - Schlüssel der Dokumentenart
|
|
3412
3421
|
* @return {ShelfDocument} Das neu erstellte DMS-Dokument
|
|
3413
3422
|
*/
|
|
3414
|
-
downloadIntoDMS(url: string,
|
|
3423
|
+
downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
|
|
3415
3424
|
|
|
3416
3425
|
/**
|
|
3417
3426
|
* Findet ein Dokumentenart über ihren Schlüssel
|