@colijnit/mainapi 300.1.4 → 300.1.6
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/build/enum/general-method.enum.d.ts +1 -0
- package/build/enum/general-method.enum.js +1 -0
- package/build/enum/internal-param.enum.d.ts +2 -1
- package/build/enum/internal-param.enum.js +1 -0
- package/build/main-api-connection.d.ts +1 -0
- package/build/main-api.d.ts +1 -0
- package/build/main-api.js +3 -0
- package/build/main-auth.d.ts +1 -0
- package/build/main-auth.js +10 -0
- package/build/main-public.d.ts +1 -0
- package/build/main-public.js +4 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export declare enum GeneralMethod {
|
|
|
5
5
|
GetDatabaseName = "getDatabaseName",
|
|
6
6
|
GetDefaultValue = "getDefaultValue",
|
|
7
7
|
GetDocumentContent = "getDocumentContent",
|
|
8
|
+
GetDocumentsForCurrentUserByTransId = "getDocumentsForCurrentUserByTransId",
|
|
8
9
|
GetDocumentStandards = "getDocumentStandards",
|
|
9
10
|
GetDomainValues = "getDomainValues",
|
|
10
11
|
GetEdition = "getEdition",
|
|
@@ -9,6 +9,7 @@ var GeneralMethod;
|
|
|
9
9
|
GeneralMethod["GetDatabaseName"] = "getDatabaseName";
|
|
10
10
|
GeneralMethod["GetDefaultValue"] = "getDefaultValue";
|
|
11
11
|
GeneralMethod["GetDocumentContent"] = "getDocumentContent";
|
|
12
|
+
GeneralMethod["GetDocumentsForCurrentUserByTransId"] = "getDocumentsForCurrentUserByTransId";
|
|
12
13
|
GeneralMethod["GetDocumentStandards"] = "getDocumentStandards";
|
|
13
14
|
GeneralMethod["GetDomainValues"] = "getDomainValues";
|
|
14
15
|
GeneralMethod["GetEdition"] = "getEdition";
|
|
@@ -29,5 +29,6 @@ export declare enum InternalParam {
|
|
|
29
29
|
ThresholdCashPaymentMessage = "THRESHOLD_CASH_PAY_MSG",
|
|
30
30
|
DiscountCode = "KORTINGCODEVERP",
|
|
31
31
|
InternalPlanDays = "LEVERPLAN",
|
|
32
|
-
QuotationToOrderMulti = "OFFERTE_TO_ORDER_MULTI"
|
|
32
|
+
QuotationToOrderMulti = "OFFERTE_TO_ORDER_MULTI",
|
|
33
|
+
ManualOrderNumberAndDate = "HANDMATIG_ORDERNR_INGEVEN"
|
|
33
34
|
}
|
|
@@ -34,4 +34,5 @@ var InternalParam;
|
|
|
34
34
|
InternalParam["DiscountCode"] = "KORTINGCODEVERP";
|
|
35
35
|
InternalParam["InternalPlanDays"] = "LEVERPLAN";
|
|
36
36
|
InternalParam["QuotationToOrderMulti"] = "OFFERTE_TO_ORDER_MULTI";
|
|
37
|
+
InternalParam["ManualOrderNumberAndDate"] = "HANDMATIG_ORDERNR_INGEVEN";
|
|
37
38
|
})(InternalParam || (exports.InternalParam = InternalParam = {}));
|
|
@@ -35,6 +35,7 @@ export declare abstract class MainApiConnection {
|
|
|
35
35
|
abstract getStandardPrinter(reportId: number, type: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
36
36
|
abstract getSendMethods(): Promise<DataServiceResponseData>;
|
|
37
37
|
abstract getDocumentContent(id: number, thumbnail: boolean): Promise<DataServiceResponseData>;
|
|
38
|
+
abstract getDocumentsForCurrentUserByTransId(transId: number): Promise<DataServiceResponseData>;
|
|
38
39
|
abstract loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
39
40
|
abstract loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
40
41
|
abstract deleteDocument(documentId: number): Promise<DataServiceResponseData>;
|
package/build/main-api.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare class MainApi {
|
|
|
51
51
|
getStandardPrinter(reportId: number, type: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
52
52
|
getSendMethods(): Promise<DataServiceResponseData>;
|
|
53
53
|
getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
|
|
54
|
+
getDocumentsForCurrentUserByTransId(transId: number): Promise<DataServiceResponseData>;
|
|
54
55
|
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
55
56
|
loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
56
57
|
deleteDocument(documentId: number): Promise<DataServiceResponseData>;
|
package/build/main-api.js
CHANGED
|
@@ -89,6 +89,9 @@ class MainApi {
|
|
|
89
89
|
getDocumentContent(id, thumbnail = true) {
|
|
90
90
|
return this.mainApi.getDocumentContent(id, thumbnail);
|
|
91
91
|
}
|
|
92
|
+
getDocumentsForCurrentUserByTransId(transId) {
|
|
93
|
+
return this.mainApi.getDocumentsForCurrentUserByTransId(transId);
|
|
94
|
+
}
|
|
92
95
|
loadDocuments(key, table) {
|
|
93
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
94
97
|
return this.mainApi.loadDocuments(key, table);
|
package/build/main-auth.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
30
30
|
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
31
31
|
getSendMethods(): Promise<DataServiceResponseData>;
|
|
32
32
|
getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
|
|
33
|
+
getDocumentsForCurrentUserByTransId(transId: number): Promise<DataServiceResponseData>;
|
|
33
34
|
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
34
35
|
loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
35
36
|
upsertDocument(key: string, table: TableName, document: CoDocument): Promise<DataServiceResponseData>;
|
package/build/main-auth.js
CHANGED
|
@@ -134,6 +134,16 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
134
134
|
};
|
|
135
135
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
136
136
|
}
|
|
137
|
+
getDocumentsForCurrentUserByTransId(transId) {
|
|
138
|
+
const inputParams = { transId: transId };
|
|
139
|
+
const data = {
|
|
140
|
+
moduleName: module_name_enum_1.ModuleName.General,
|
|
141
|
+
methodName: general_method_enum_1.GeneralMethod.GetDocumentsForCurrentUserByTransId,
|
|
142
|
+
refCursorAsArray: true,
|
|
143
|
+
parameterValues: inputParams
|
|
144
|
+
};
|
|
145
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
146
|
+
}
|
|
137
147
|
loadDocuments(key, table) {
|
|
138
148
|
const data = {
|
|
139
149
|
key: key,
|
package/build/main-public.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
29
29
|
getStandardPrinter(reportId: number, type: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
30
30
|
getSendMethods(): Promise<DataServiceResponseData>;
|
|
31
31
|
getDocumentContent(id: number, thumbnail: boolean): Promise<DataServiceResponseData>;
|
|
32
|
+
getDocumentsForCurrentUserByTransId(transId: number): Promise<DataServiceResponseData>;
|
|
32
33
|
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
33
34
|
loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
34
35
|
upsertDocument(key: string, table: TableName, document: CoDocument): Promise<DataServiceResponseData>;
|
package/build/main-public.js
CHANGED
|
@@ -65,6 +65,10 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
65
65
|
const data = Object.assign(Object.assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
66
66
|
return this._call(public_service_method_1.PublicServiceMethod.GetDocumentContent, data);
|
|
67
67
|
}
|
|
68
|
+
getDocumentsForCurrentUserByTransId(transId) {
|
|
69
|
+
console.warn('getDocumentsForCurrentUserByTransId not implemented');
|
|
70
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
71
|
+
}
|
|
68
72
|
loadDocuments(key, table) {
|
|
69
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
74
|
console.warn('loadDocuments not implemented');
|