@vario-software/types 2026.43.4 → 2026.44.1
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 +4037 -4379
- package/scripting/eav_types.d.ts +6 -0
- package/scripting/services.d.ts +196 -116
- package/scripting/types.d.ts +846 -432
package/scripting/eav_types.d.ts
CHANGED
package/scripting/services.d.ts
CHANGED
|
@@ -12,9 +12,10 @@ import {
|
|
|
12
12
|
AssemblyComponentReturnLine, Asset, AssetType, BulkTransferRequestApi,
|
|
13
13
|
BulkTransferResult, BundleSchema, BundleUnitTypeRatio,
|
|
14
14
|
CommissionAssignment, Contact, CountryReference, CreateNewDocumentRequest,
|
|
15
|
-
CrmActivity, CrmActivityType, CrmChecklistItem,
|
|
16
|
-
|
|
17
|
-
CrmReminder, CrmState, CrmSubType, CrmTask,
|
|
15
|
+
CrmActivity, CrmActivityOffHours, CrmActivityType, CrmChecklistItem,
|
|
16
|
+
CrmDeal, CrmDealTopic, CrmObjectRef, CrmParticipant, CrmPriority,
|
|
17
|
+
CrmProject, CrmReference, CrmReminder, CrmState, CrmSubType, CrmTask,
|
|
18
|
+
CrmTaskForm, CrmTaskLine, CrmTaskParticipant, CrmTaskPriceModifier,
|
|
18
19
|
CrmTypedDocumentRef, CrmTypedDocumentRefList, CurrencyReference, Customer,
|
|
19
20
|
DangerousGoodInformation, DealNotificationEventConfig, DeliveryMethod,
|
|
20
21
|
DeliveryTerm, DmsOutputStream, Document, DocumentAdditionalInfo,
|
|
@@ -597,6 +598,14 @@ export interface ArticleScriptingService {
|
|
|
597
598
|
*/
|
|
598
599
|
addLabelToPrintBatch(batchIdentifier: string, articleId: number, articleSerialNumberId: number, labelCount: number): void;
|
|
599
600
|
|
|
601
|
+
/**
|
|
602
|
+
* Persistiert einen Artikel. Die Texte werden zur Sprache der eigenen Adresse gespeichert
|
|
603
|
+
*
|
|
604
|
+
* @param {Article} toCreate - Der zu persistierende Artikel
|
|
605
|
+
* @return {Article} Der persistierte Artikel
|
|
606
|
+
*/
|
|
607
|
+
create(toCreate: Article): Article;
|
|
608
|
+
|
|
600
609
|
/**
|
|
601
610
|
* Persistiert einen Haupt-Artikel und die dazugehörigen Gebinde-Artikel.
|
|
602
611
|
Die Texte werden zur Sprache der eigenen Adresse gespeichert.
|
|
@@ -618,14 +627,6 @@ Die Texte werden zur Sprache der eigenen Adresse gespeichert.
|
|
|
618
627
|
*/
|
|
619
628
|
create(toCreate: Article, languageCode: string): Article;
|
|
620
629
|
|
|
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
630
|
/**
|
|
630
631
|
* Deaktiviert ein DTO
|
|
631
632
|
*
|
|
@@ -745,21 +746,21 @@ Die Texte werden zur Sprache der eigenen Adresse gespeichert.
|
|
|
745
746
|
readById(id: number, languageCode: string): Article;
|
|
746
747
|
|
|
747
748
|
/**
|
|
748
|
-
* Liest einen Artikel über die Artikelnummer mit Texten zur Sprache
|
|
749
|
+
* Liest einen Artikel über die Artikelnummer mit Texten zur Sprache {@code languageCode}
|
|
749
750
|
*
|
|
750
751
|
* @param {string} articleNumber - Eine Artikelnummer
|
|
752
|
+
* @param {string} languageCode - Zu verwendende Sprache
|
|
751
753
|
* @return {Article} Der gelesene Artikel
|
|
752
754
|
*/
|
|
753
|
-
readByNumber(articleNumber: string): Article;
|
|
755
|
+
readByNumber(articleNumber: string, languageCode: string): Article;
|
|
754
756
|
|
|
755
757
|
/**
|
|
756
|
-
* Liest einen Artikel über die Artikelnummer mit Texten zur Sprache
|
|
758
|
+
* Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse
|
|
757
759
|
*
|
|
758
760
|
* @param {string} articleNumber - Eine Artikelnummer
|
|
759
|
-
* @param {string} languageCode - Zu verwendende Sprache
|
|
760
761
|
* @return {Article} Der gelesene Artikel
|
|
761
762
|
*/
|
|
762
|
-
readByNumber(articleNumber: string
|
|
763
|
+
readByNumber(articleNumber: string): Article;
|
|
763
764
|
|
|
764
765
|
/**
|
|
765
766
|
* Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
|
|
@@ -779,21 +780,21 @@ Die Texte werden zur Sprache der eigenen Adresse gespeichert.
|
|
|
779
780
|
store(toStore: Article): Article;
|
|
780
781
|
|
|
781
782
|
/**
|
|
782
|
-
*
|
|
783
|
+
* Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
|
|
783
784
|
*
|
|
784
785
|
* @param {Article} toUpdate - Der zu persistierende Artikel
|
|
785
|
-
* @param {string} languageCode -
|
|
786
786
|
* @return {Article} Der aktualisiert Artikel
|
|
787
787
|
*/
|
|
788
|
-
update(toUpdate: Article
|
|
788
|
+
update(toUpdate: Article): Article;
|
|
789
789
|
|
|
790
790
|
/**
|
|
791
|
-
*
|
|
791
|
+
* Aktualisiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
|
|
792
792
|
*
|
|
793
793
|
* @param {Article} toUpdate - Der zu persistierende Artikel
|
|
794
|
+
* @param {string} languageCode -
|
|
794
795
|
* @return {Article} Der aktualisiert Artikel
|
|
795
796
|
*/
|
|
796
|
-
update(toUpdate: Article): Article;
|
|
797
|
+
update(toUpdate: Article, languageCode: string): Article;
|
|
797
798
|
}
|
|
798
799
|
|
|
799
800
|
/**
|
|
@@ -1924,68 +1925,89 @@ export interface DeliveryTermScriptingService {
|
|
|
1924
1925
|
}
|
|
1925
1926
|
|
|
1926
1927
|
/**
|
|
1927
|
-
* Service
|
|
1928
|
+
* Service to process documents
|
|
1928
1929
|
*/
|
|
1929
1930
|
export interface DocumentScriptingService {
|
|
1930
1931
|
|
|
1931
1932
|
/**
|
|
1932
|
-
*
|
|
1933
|
+
* Creates a manual entry in the document protocol
|
|
1933
1934
|
*
|
|
1934
|
-
* @param {number} documentId - ID
|
|
1935
|
-
* @param {string} protocolMessage - Text
|
|
1935
|
+
* @param {number} documentId - ID of the document the entry is created for
|
|
1936
|
+
* @param {string} protocolMessage - Text of the entry
|
|
1936
1937
|
*/
|
|
1937
1938
|
addDocumentProtocol(documentId: number, protocolMessage: string): void;
|
|
1938
1939
|
|
|
1939
1940
|
/**
|
|
1940
|
-
*
|
|
1941
|
+
* Cancels editing a document (transition EDIT -> SAVED)
|
|
1941
1942
|
*
|
|
1942
|
-
* @param {number} documentId - ID
|
|
1943
|
-
* @return {Document}
|
|
1943
|
+
* @param {number} documentId - ID of the document
|
|
1944
|
+
* @return {Document} The cancelled document. If the document was created but never saved, it is deleted and {@code null} is returned
|
|
1944
1945
|
*/
|
|
1945
1946
|
cancel(documentId: number): Document;
|
|
1946
1947
|
|
|
1947
1948
|
/**
|
|
1948
|
-
*
|
|
1949
|
+
* Cancels editing a document (transition EDIT -> SAVED)
|
|
1949
1950
|
*
|
|
1950
|
-
* @param {number} documentId - ID
|
|
1951
|
-
* @param {Array<AdditionalParameter>} additionalParameters -
|
|
1952
|
-
* @return {Document}
|
|
1951
|
+
* @param {number} documentId - ID of the document
|
|
1952
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Additional parameters
|
|
1953
|
+
* @return {Document} The cancelled document. If the document was created but never saved, it is deleted and {@code null} is returned
|
|
1953
1954
|
*/
|
|
1954
1955
|
cancel(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
|
|
1955
1956
|
|
|
1957
|
+
/**
|
|
1958
|
+
* Cancels editing a document (transition EDIT -> SAVED)
|
|
1959
|
+
*
|
|
1960
|
+
* @param {number} documentId - ID of the document
|
|
1961
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Additional parameters
|
|
1962
|
+
* @param {RequestDocument} requestDocument - Additional details of the document for the transition
|
|
1963
|
+
* @return {Document} The cancelled document. If the document was created but never saved, it is deleted and {@code null} is returned
|
|
1964
|
+
*/
|
|
1965
|
+
cancel(documentId: number, additionalParameters: Array<AdditionalParameter>, requestDocument: RequestDocument): Document;
|
|
1966
|
+
|
|
1956
1967
|
/**
|
|
1957
1968
|
* Changes the delivery approval of an order
|
|
1958
1969
|
*
|
|
1959
|
-
* @param {number} documentId -
|
|
1960
|
-
* @param {boolean} approved -
|
|
1970
|
+
* @param {number} documentId - ID of the document
|
|
1971
|
+
* @param {boolean} approved - Shall the document be approved for delivery?
|
|
1961
1972
|
* @return {Document} The changed document
|
|
1962
1973
|
*/
|
|
1963
1974
|
changeDeliveryStatus(documentId: number, approved: boolean): Document;
|
|
1964
1975
|
|
|
1965
1976
|
/**
|
|
1966
|
-
*
|
|
1977
|
+
* Copies a document into the given target document type
|
|
1967
1978
|
*
|
|
1968
|
-
* @param {number} documentId - ID
|
|
1969
|
-
* @param {string} targetDocumentTypeLabel -
|
|
1970
|
-
* @return {Document}
|
|
1979
|
+
* @param {number} documentId - ID of the document to copy
|
|
1980
|
+
* @param {string} targetDocumentTypeLabel - Target document type of the copy
|
|
1981
|
+
* @return {Document} The copied document
|
|
1971
1982
|
*/
|
|
1972
1983
|
copy(documentId: number, targetDocumentTypeLabel: string): Document;
|
|
1973
1984
|
|
|
1974
1985
|
/**
|
|
1975
|
-
*
|
|
1986
|
+
* Copies a document into the given target document type
|
|
1976
1987
|
*
|
|
1977
|
-
* @param {number} documentId - ID
|
|
1978
|
-
* @param {string} targetDocumentType -
|
|
1979
|
-
* @param {Array<AdditionalParameter>} additionalParameters -
|
|
1980
|
-
* @return {Document}
|
|
1988
|
+
* @param {number} documentId - ID of the document to copy
|
|
1989
|
+
* @param {string} targetDocumentType - Target document type of the copy
|
|
1990
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Additional parameters
|
|
1991
|
+
* @return {Document} The copied document
|
|
1981
1992
|
*/
|
|
1982
1993
|
copy(documentId: number, targetDocumentType: string, additionalParameters: Array<AdditionalParameter>): Document;
|
|
1983
1994
|
|
|
1984
1995
|
/**
|
|
1985
|
-
*
|
|
1996
|
+
* Copies a document into the given target document type
|
|
1986
1997
|
*
|
|
1987
|
-
* @param {
|
|
1988
|
-
* @
|
|
1998
|
+
* @param {number} documentId - ID of the document to copy
|
|
1999
|
+
* @param {string} targetDocumentType - Target document type of the copy
|
|
2000
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Additional parameters
|
|
2001
|
+
* @param {RequestDocument} requestDocument - Additional details of the copy; the target document type is set in it
|
|
2002
|
+
* @return {Document} The copied document
|
|
2003
|
+
*/
|
|
2004
|
+
copy(documentId: number, targetDocumentType: string, additionalParameters: Array<AdditionalParameter>, requestDocument: RequestDocument): Document;
|
|
2005
|
+
|
|
2006
|
+
/**
|
|
2007
|
+
* Creates a new document
|
|
2008
|
+
*
|
|
2009
|
+
* @param {CreateNewDocumentRequest} request - Details of the new document
|
|
2010
|
+
* @return {Document} The created document
|
|
1989
2011
|
*/
|
|
1990
2012
|
create(request: CreateNewDocumentRequest): Document;
|
|
1991
2013
|
|
|
@@ -1998,101 +2020,121 @@ export interface DocumentScriptingService {
|
|
|
1998
2020
|
createExternalDocument(request: ExternalDocumentWithTaxesRequest): Document;
|
|
1999
2021
|
|
|
2000
2022
|
/**
|
|
2001
|
-
*
|
|
2023
|
+
* Dissolves a document
|
|
2002
2024
|
*
|
|
2003
|
-
* @param {number} documentId - ID
|
|
2004
|
-
* @
|
|
2005
|
-
|
|
2025
|
+
* @param {number} documentId - ID of the document to dissolve
|
|
2026
|
+
* @return {Document} The dissolved document
|
|
2027
|
+
*/
|
|
2028
|
+
dissolve(documentId: number): Document;
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* Dissolves a document
|
|
2032
|
+
*
|
|
2033
|
+
* @param {number} documentId - ID of the document to dissolve
|
|
2034
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Additional parameters
|
|
2035
|
+
* @return {Document} The dissolved document
|
|
2006
2036
|
*/
|
|
2007
2037
|
dissolve(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
|
|
2008
2038
|
|
|
2009
2039
|
/**
|
|
2010
|
-
*
|
|
2040
|
+
* Dissolves a document
|
|
2011
2041
|
*
|
|
2012
|
-
* @param {number} documentId - ID
|
|
2013
|
-
* @
|
|
2042
|
+
* @param {number} documentId - ID of the document to dissolve
|
|
2043
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Additional parameters
|
|
2044
|
+
* @param {RequestDocument} requestDocument - Additional details of the document for the transition
|
|
2045
|
+
* @return {Document} The dissolved document
|
|
2014
2046
|
*/
|
|
2015
|
-
dissolve(documentId: number): Document;
|
|
2047
|
+
dissolve(documentId: number, additionalParameters: Array<AdditionalParameter>, requestDocument: RequestDocument): Document;
|
|
2016
2048
|
|
|
2017
2049
|
/**
|
|
2018
|
-
*
|
|
2050
|
+
* Starts editing a document (transition SAVED -> EDIT)
|
|
2019
2051
|
*
|
|
2020
|
-
* @param {number} documentId - ID
|
|
2021
|
-
* @param {Array<AdditionalParameter>} additionalParameters -
|
|
2022
|
-
* @return {Document}
|
|
2052
|
+
* @param {number} documentId - ID of the document
|
|
2053
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Additional parameters
|
|
2054
|
+
* @return {Document} The document in EDIT mode
|
|
2023
2055
|
*/
|
|
2024
2056
|
edit(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
|
|
2025
2057
|
|
|
2026
2058
|
/**
|
|
2027
|
-
*
|
|
2059
|
+
* Starts editing a document (transition SAVED -> EDIT)
|
|
2028
2060
|
*
|
|
2029
|
-
* @param {number} documentId - ID
|
|
2030
|
-
* @
|
|
2061
|
+
* @param {number} documentId - ID of the document
|
|
2062
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Additional parameters
|
|
2063
|
+
* @param {RequestDocument} requestDocument - Additional details of the document for the transition
|
|
2064
|
+
* @return {Document} The document in EDIT mode
|
|
2065
|
+
*/
|
|
2066
|
+
edit(documentId: number, additionalParameters: Array<AdditionalParameter>, requestDocument: RequestDocument): Document;
|
|
2067
|
+
|
|
2068
|
+
/**
|
|
2069
|
+
* Starts editing a document (transition SAVED -> EDIT)
|
|
2070
|
+
*
|
|
2071
|
+
* @param {number} documentId - ID of the document
|
|
2072
|
+
* @return {Document} The document in EDIT mode
|
|
2031
2073
|
*/
|
|
2032
2074
|
edit(documentId: number): Document;
|
|
2033
2075
|
|
|
2034
2076
|
/**
|
|
2035
|
-
*
|
|
2077
|
+
* Creates an AdditionalParameter object
|
|
2036
2078
|
*
|
|
2037
|
-
* @param {string} key -
|
|
2038
|
-
* @param {object} value -
|
|
2039
|
-
* @return {AdditionalParameter}
|
|
2079
|
+
* @param {string} key - Key of the parameter
|
|
2080
|
+
* @param {object} value - Value of the parameter
|
|
2081
|
+
* @return {AdditionalParameter} The created object
|
|
2040
2082
|
*/
|
|
2041
2083
|
getAdditionalParameter(key: string, value: object): AdditionalParameter;
|
|
2042
2084
|
|
|
2043
2085
|
/**
|
|
2044
|
-
*
|
|
2086
|
+
* Creates a list to collect AdditionalParameter objects
|
|
2045
2087
|
*
|
|
2046
|
-
* @return {Array<AdditionalParameter>}
|
|
2088
|
+
* @return {Array<AdditionalParameter>} The created list
|
|
2047
2089
|
*/
|
|
2048
2090
|
getAdditionalParameterList(): Array<AdditionalParameter>;
|
|
2049
2091
|
|
|
2050
2092
|
/**
|
|
2051
|
-
*
|
|
2093
|
+
* Creates a request object to transfer a document into another state
|
|
2052
2094
|
*
|
|
2053
|
-
* @return {DocumentTransferToStateRequest}
|
|
2095
|
+
* @return {DocumentTransferToStateRequest} The request object
|
|
2054
2096
|
*/
|
|
2055
2097
|
getDocumentTransferToStateRequest(): DocumentTransferToStateRequest;
|
|
2056
2098
|
|
|
2057
2099
|
/**
|
|
2058
|
-
*
|
|
2100
|
+
* Creates a request object to transfer (or copy) a document into another document
|
|
2059
2101
|
*
|
|
2060
|
-
* @return {DocumentTransferToTypeRequest}
|
|
2102
|
+
* @return {DocumentTransferToTypeRequest} The request object
|
|
2061
2103
|
*/
|
|
2062
2104
|
getDocumentTransferToTypeRequest(): DocumentTransferToTypeRequest;
|
|
2063
2105
|
|
|
2064
2106
|
/**
|
|
2065
|
-
*
|
|
2107
|
+
* Creates a new document line object to insert it into a document
|
|
2066
2108
|
*
|
|
2067
|
-
* @return {DocumentLine}
|
|
2109
|
+
* @return {DocumentLine} A new document line object
|
|
2068
2110
|
*/
|
|
2069
2111
|
getNewDocumentLine(): DocumentLine;
|
|
2070
2112
|
|
|
2071
2113
|
/**
|
|
2072
|
-
*
|
|
2114
|
+
* Creates a new document line booking object to insert it into a document
|
|
2073
2115
|
*
|
|
2074
|
-
* @return {DocumentLineBooking}
|
|
2116
|
+
* @return {DocumentLineBooking} A new document line booking object
|
|
2075
2117
|
*/
|
|
2076
2118
|
getNewDocumentLineBooking(): DocumentLineBooking;
|
|
2077
2119
|
|
|
2078
2120
|
/**
|
|
2079
|
-
*
|
|
2121
|
+
* Creates a new discount/surcharge object to insert it into a document or a line
|
|
2080
2122
|
*
|
|
2081
|
-
* @return {DocumentPriceModifier}
|
|
2123
|
+
* @return {DocumentPriceModifier} A new discount/surcharge object
|
|
2082
2124
|
*/
|
|
2083
2125
|
getNewDocumentPriceModifier(): DocumentPriceModifier;
|
|
2084
2126
|
|
|
2085
2127
|
/**
|
|
2086
|
-
*
|
|
2128
|
+
* Creates a request object to create a new document
|
|
2087
2129
|
*
|
|
2088
|
-
* @return {CreateNewDocumentRequest}
|
|
2130
|
+
* @return {CreateNewDocumentRequest} The request object
|
|
2089
2131
|
*/
|
|
2090
2132
|
getNewDocumentRequest(): CreateNewDocumentRequest;
|
|
2091
2133
|
|
|
2092
2134
|
/**
|
|
2093
|
-
*
|
|
2135
|
+
* Creates a request object to update a document
|
|
2094
2136
|
*
|
|
2095
|
-
* @return {UpdateDocumentRequest}
|
|
2137
|
+
* @return {UpdateDocumentRequest} The request object
|
|
2096
2138
|
*/
|
|
2097
2139
|
getUpdateDocumentRequest(): UpdateDocumentRequest;
|
|
2098
2140
|
|
|
@@ -2106,34 +2148,44 @@ export interface DocumentScriptingService {
|
|
|
2106
2148
|
patchCustomFields(documentId: number, custom: JsonNode): Document;
|
|
2107
2149
|
|
|
2108
2150
|
/**
|
|
2109
|
-
*
|
|
2151
|
+
* Prints a document
|
|
2110
2152
|
*
|
|
2111
|
-
* @param {number} documentId - ID
|
|
2153
|
+
* @param {number} documentId - ID of the document to print
|
|
2112
2154
|
*/
|
|
2113
2155
|
print(documentId: number): void;
|
|
2114
2156
|
|
|
2115
2157
|
/**
|
|
2116
|
-
*
|
|
2158
|
+
* Reads a document by its ID
|
|
2117
2159
|
*
|
|
2118
|
-
* @param {number} documentId - ID
|
|
2119
|
-
* @return {Document}
|
|
2160
|
+
* @param {number} documentId - ID of the document
|
|
2161
|
+
* @return {Document} The document read
|
|
2120
2162
|
*/
|
|
2121
2163
|
readById(documentId: number): Document;
|
|
2122
2164
|
|
|
2123
2165
|
/**
|
|
2124
|
-
*
|
|
2166
|
+
* Saves a document (transition EDIT -> SAVED)
|
|
2125
2167
|
*
|
|
2126
|
-
* @param {number} documentId - ID
|
|
2127
|
-
* @return {Document}
|
|
2168
|
+
* @param {number} documentId - ID of the document to save
|
|
2169
|
+
* @return {Document} The saved document
|
|
2128
2170
|
*/
|
|
2129
2171
|
save(documentId: number): Document;
|
|
2130
2172
|
|
|
2131
2173
|
/**
|
|
2132
|
-
*
|
|
2174
|
+
* Saves a document (transition EDIT -> SAVED)
|
|
2175
|
+
*
|
|
2176
|
+
* @param {number} documentId - ID of the document to save
|
|
2177
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Additional parameters
|
|
2178
|
+
* @param {RequestDocument} requestDocument - Additional details of the document for the transition, e.g. the delivery approval
|
|
2179
|
+
* @return {Document} The saved document
|
|
2180
|
+
*/
|
|
2181
|
+
save(documentId: number, additionalParameters: Array<AdditionalParameter>, requestDocument: RequestDocument): Document;
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* Saves a document (transition EDIT -> SAVED)
|
|
2133
2185
|
*
|
|
2134
|
-
* @param {number} documentId - ID
|
|
2135
|
-
* @param {Array<AdditionalParameter>} additionalParameters -
|
|
2136
|
-
* @return {Document}
|
|
2186
|
+
* @param {number} documentId - ID of the document to save
|
|
2187
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Additional parameters
|
|
2188
|
+
* @return {Document} The saved document
|
|
2137
2189
|
*/
|
|
2138
2190
|
save(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
|
|
2139
2191
|
|
|
@@ -2146,41 +2198,41 @@ export interface DocumentScriptingService {
|
|
|
2146
2198
|
saveAndFreeze(documentId: number): Document;
|
|
2147
2199
|
|
|
2148
2200
|
/**
|
|
2149
|
-
*
|
|
2201
|
+
* Sends a document via mail
|
|
2150
2202
|
*
|
|
2151
|
-
* @param {number} documentId - ID
|
|
2203
|
+
* @param {number} documentId - ID of the document to send
|
|
2204
|
+
* @param {string} reportGroupIdentifier -
|
|
2152
2205
|
*/
|
|
2153
|
-
sendViaMail(documentId: number): void;
|
|
2206
|
+
sendViaMail(documentId: number, reportGroupIdentifier: string): void;
|
|
2154
2207
|
|
|
2155
2208
|
/**
|
|
2156
|
-
*
|
|
2209
|
+
* Sends a document via mail
|
|
2157
2210
|
*
|
|
2158
|
-
* @param {number} documentId - ID
|
|
2159
|
-
* @param {string} reportGroupIdentifier -
|
|
2211
|
+
* @param {number} documentId - ID of the document to send
|
|
2160
2212
|
*/
|
|
2161
|
-
sendViaMail(documentId: number
|
|
2213
|
+
sendViaMail(documentId: number): void;
|
|
2162
2214
|
|
|
2163
2215
|
/**
|
|
2164
|
-
*
|
|
2216
|
+
* Transfers a document into another state
|
|
2165
2217
|
*
|
|
2166
|
-
* @param {DocumentTransferToStateRequest} request - Request
|
|
2167
|
-
* @return {Document}
|
|
2218
|
+
* @param {DocumentTransferToStateRequest} request - Request for the transition to the target state
|
|
2219
|
+
* @return {Document} The changed document
|
|
2168
2220
|
*/
|
|
2169
2221
|
transferToState(request: DocumentTransferToStateRequest): Document;
|
|
2170
2222
|
|
|
2171
2223
|
/**
|
|
2172
|
-
*
|
|
2224
|
+
* Transfers (or copies) a document into another document
|
|
2173
2225
|
*
|
|
2174
|
-
* @param {DocumentTransferToTypeRequest} request - Request
|
|
2175
|
-
* @return {Document}
|
|
2226
|
+
* @param {DocumentTransferToTypeRequest} request - Request to transfer a document
|
|
2227
|
+
* @return {Document} The new document
|
|
2176
2228
|
*/
|
|
2177
2229
|
transferToType(request: DocumentTransferToTypeRequest): Document;
|
|
2178
2230
|
|
|
2179
2231
|
/**
|
|
2180
|
-
*
|
|
2232
|
+
* Updates a document
|
|
2181
2233
|
*
|
|
2182
|
-
* @param {UpdateDocumentRequest} request - Details
|
|
2183
|
-
* @return {Document}
|
|
2234
|
+
* @param {UpdateDocumentRequest} request - Details of the document to update
|
|
2235
|
+
* @return {Document} The updated document
|
|
2184
2236
|
*/
|
|
2185
2237
|
update(request: UpdateDocumentRequest): Document;
|
|
2186
2238
|
}
|
|
@@ -3191,7 +3243,7 @@ export interface ScriptingServiceList {
|
|
|
3191
3243
|
articleService: ArticleScriptingService;
|
|
3192
3244
|
|
|
3193
3245
|
/**
|
|
3194
|
-
* Service
|
|
3246
|
+
* Service to process documents
|
|
3195
3247
|
*/
|
|
3196
3248
|
documentService: DocumentScriptingService;
|
|
3197
3249
|
|
|
@@ -3414,24 +3466,24 @@ export interface ShelfDocumentScriptingService {
|
|
|
3414
3466
|
deleteAttribution(attributionId: number): void;
|
|
3415
3467
|
|
|
3416
3468
|
/**
|
|
3417
|
-
* Lädt eine Datei von einer URL
|
|
3469
|
+
* Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
|
|
3418
3470
|
*
|
|
3419
3471
|
* @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'
|
|
3422
3472
|
* @param {string} documentTypeKey - Schlüssel der Dokumentenart
|
|
3423
3473
|
* @return {ShelfDocument} Das neu erstellte DMS-Dokument
|
|
3424
3474
|
*/
|
|
3425
|
-
downloadIntoDMS(url: string,
|
|
3475
|
+
downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
|
|
3426
3476
|
|
|
3427
3477
|
/**
|
|
3428
|
-
* Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
|
|
3478
|
+
* Lädt eine Datei von einer URL mit Authentifizierung herunter und erstellt ein neues DMS-Dokument
|
|
3429
3479
|
*
|
|
3430
3480
|
* @param {string} url - Download-URL
|
|
3481
|
+
* @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
|
|
3482
|
+
* @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
|
|
3431
3483
|
* @param {string} documentTypeKey - Schlüssel der Dokumentenart
|
|
3432
3484
|
* @return {ShelfDocument} Das neu erstellte DMS-Dokument
|
|
3433
3485
|
*/
|
|
3434
|
-
downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
|
|
3486
|
+
downloadIntoDMS(url: string, authenticationType: EScriptingAuthenticationType, authValue: string, documentTypeKey: string): ShelfDocument;
|
|
3435
3487
|
|
|
3436
3488
|
/**
|
|
3437
3489
|
* Findet ein Dokumentenart über ihren Schlüssel
|
|
@@ -4360,6 +4412,13 @@ export interface dtoFactory {
|
|
|
4360
4412
|
*/
|
|
4361
4413
|
createCrmActivity(): CrmActivity;
|
|
4362
4414
|
|
|
4415
|
+
/**
|
|
4416
|
+
* Erstellt einen neue Instanz von CrmActivityOffHours
|
|
4417
|
+
*
|
|
4418
|
+
* @return {CrmActivityOffHours} Neue Instanz von CrmActivityOffHours
|
|
4419
|
+
*/
|
|
4420
|
+
createCrmActivityOffHours(): CrmActivityOffHours;
|
|
4421
|
+
|
|
4363
4422
|
/**
|
|
4364
4423
|
* Erstellt einen neue Instanz von CrmActivityType
|
|
4365
4424
|
*
|
|
@@ -4437,6 +4496,20 @@ export interface dtoFactory {
|
|
|
4437
4496
|
*/
|
|
4438
4497
|
createCrmTask(): CrmTask;
|
|
4439
4498
|
|
|
4499
|
+
/**
|
|
4500
|
+
* Erstellt einen neue Instanz von CrmTaskForm
|
|
4501
|
+
*
|
|
4502
|
+
* @return {CrmTaskForm} Neue Instanz von CrmTaskForm
|
|
4503
|
+
*/
|
|
4504
|
+
createCrmTaskForm(): CrmTaskForm;
|
|
4505
|
+
|
|
4506
|
+
/**
|
|
4507
|
+
* Erstellt einen neue Instanz von CrmTaskLine
|
|
4508
|
+
*
|
|
4509
|
+
* @return {CrmTaskLine} Neue Instanz von CrmTaskLine
|
|
4510
|
+
*/
|
|
4511
|
+
createCrmTaskLine(): CrmTaskLine;
|
|
4512
|
+
|
|
4440
4513
|
/**
|
|
4441
4514
|
* Erstellt einen neue Instanz von CrmTaskParticipant
|
|
4442
4515
|
*
|
|
@@ -4444,6 +4517,13 @@ export interface dtoFactory {
|
|
|
4444
4517
|
*/
|
|
4445
4518
|
createCrmTaskParticipant(): CrmTaskParticipant;
|
|
4446
4519
|
|
|
4520
|
+
/**
|
|
4521
|
+
* Erstellt einen neue Instanz von CrmTaskPriceModifier
|
|
4522
|
+
*
|
|
4523
|
+
* @return {CrmTaskPriceModifier} Neue Instanz von CrmTaskPriceModifier
|
|
4524
|
+
*/
|
|
4525
|
+
createCrmTaskPriceModifier(): CrmTaskPriceModifier;
|
|
4526
|
+
|
|
4447
4527
|
/**
|
|
4448
4528
|
* Erstellt einen neue Instanz von CurrencyReference
|
|
4449
4529
|
*
|