@colijnit/mainapi 260.1.3 → 260.1.4
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/internal-param.enum.d.ts +3 -1
- package/build/enum/internal-param.enum.js +2 -0
- package/build/enum/layout-code.enum.d.ts +11 -0
- package/build/enum/layout-code.enum.js +15 -0
- package/build/enum/reporting-documents-method.enum.d.ts +2 -1
- package/build/enum/reporting-documents-method.enum.js +1 -0
- package/build/enum/send-method-type.enum.d.ts +1 -1
- package/build/enum/send-method-type.enum.js +1 -1
- package/build/main-api-connection.d.ts +1 -0
- package/build/main-api.d.ts +1 -0
- package/build/main-api.js +4 -0
- package/build/main-auth.d.ts +1 -0
- package/build/main-auth.js +9 -0
- package/build/main-public.d.ts +1 -0
- package/build/main-public.js +4 -0
- package/build/model/print-purchase-order-for-transaction-order-without-lines-request.d.ts +10 -0
- package/build/model/print-purchase-order-for-transaction-order-without-lines-request.js +12 -0
- package/build/model/print-purchase-order-for-transaction-request.d.ts +4 -0
- package/build/model/print-purchase-order-for-transaction-request.js +7 -0
- package/build/model/process-print-request.d.ts +5 -0
- package/build/model/process-print-request.js +2 -0
- package/package.json +57 -57
|
@@ -22,5 +22,7 @@ export declare enum InternalParam {
|
|
|
22
22
|
GoogleTranslateApiKey = "GOOGLE_TRANSLATE_API_KEY",
|
|
23
23
|
DefaultLanguage = "STD_TAAL",
|
|
24
24
|
TransactionRelationEditAllowed = "TRA_REL_EDIT_ALLOWED",
|
|
25
|
-
CustomerCanCreateAccount = "CUST_CAN_CREATE_ACCOUNT"
|
|
25
|
+
CustomerCanCreateAccount = "CUST_CAN_CREATE_ACCOUNT",
|
|
26
|
+
JsInterBranch = "JS_INTER_FILIAAL",
|
|
27
|
+
SellDirectlyFromSupplier = "SELL_DIRECTLY_FROM_SUPPL"
|
|
26
28
|
}
|
|
@@ -27,4 +27,6 @@ var InternalParam;
|
|
|
27
27
|
InternalParam["DefaultLanguage"] = "STD_TAAL";
|
|
28
28
|
InternalParam["TransactionRelationEditAllowed"] = "TRA_REL_EDIT_ALLOWED";
|
|
29
29
|
InternalParam["CustomerCanCreateAccount"] = "CUST_CAN_CREATE_ACCOUNT";
|
|
30
|
+
InternalParam["JsInterBranch"] = "JS_INTER_FILIAAL";
|
|
31
|
+
InternalParam["SellDirectlyFromSupplier"] = "SELL_DIRECTLY_FROM_SUPPL";
|
|
30
32
|
})(InternalParam = exports.InternalParam || (exports.InternalParam = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum LayoutCode {
|
|
2
|
+
OrderConfirmation = "Orderbevestiging",
|
|
3
|
+
DeliveryNote = "Afleverbon",
|
|
4
|
+
Invoice = "Factuur",
|
|
5
|
+
PurchaseOrder = "Bestelbon",
|
|
6
|
+
Quotation = "Offerte",
|
|
7
|
+
ReserveSticker = "Reserveringssticker",
|
|
8
|
+
OrderingSticker = "Bestelsticker",
|
|
9
|
+
PackageSticker = "Collisticker",
|
|
10
|
+
ServiceOrder = "Servicebon"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LayoutCode = void 0;
|
|
4
|
+
var LayoutCode;
|
|
5
|
+
(function (LayoutCode) {
|
|
6
|
+
LayoutCode["OrderConfirmation"] = "Orderbevestiging";
|
|
7
|
+
LayoutCode["DeliveryNote"] = "Afleverbon";
|
|
8
|
+
LayoutCode["Invoice"] = "Factuur";
|
|
9
|
+
LayoutCode["PurchaseOrder"] = "Bestelbon";
|
|
10
|
+
LayoutCode["Quotation"] = "Offerte";
|
|
11
|
+
LayoutCode["ReserveSticker"] = "Reserveringssticker";
|
|
12
|
+
LayoutCode["OrderingSticker"] = "Bestelsticker";
|
|
13
|
+
LayoutCode["PackageSticker"] = "Collisticker";
|
|
14
|
+
LayoutCode["ServiceOrder"] = "Servicebon";
|
|
15
|
+
})(LayoutCode = exports.LayoutCode || (exports.LayoutCode = {}));
|
|
@@ -5,4 +5,5 @@ var ReportingDocumentsMethod;
|
|
|
5
5
|
(function (ReportingDocumentsMethod) {
|
|
6
6
|
ReportingDocumentsMethod["ListPrinters"] = "listAllPrinters";
|
|
7
7
|
ReportingDocumentsMethod["GetPackageStickerPrintLayouts"] = "getPackageStickerPrintLayouts";
|
|
8
|
+
ReportingDocumentsMethod["GetStandardPrinter"] = "GetStandardPrinter";
|
|
8
9
|
})(ReportingDocumentsMethod = exports.ReportingDocumentsMethod || (exports.ReportingDocumentsMethod = {}));
|
|
@@ -11,5 +11,5 @@ var SendMethodType;
|
|
|
11
11
|
SendMethodType["Sms"] = "5";
|
|
12
12
|
SendMethodType["WebService"] = "6";
|
|
13
13
|
SendMethodType["Pdf"] = "7";
|
|
14
|
-
SendMethodType["
|
|
14
|
+
SendMethodType["CombinePrintAndEmail"] = "8";
|
|
15
15
|
})(SendMethodType = exports.SendMethodType || (exports.SendMethodType = {}));
|
|
@@ -29,6 +29,7 @@ export declare abstract class MainApiConnection {
|
|
|
29
29
|
abstract getTemplates(documentCode: ReportType, defaultTemplate: boolean): Promise<DataServiceResponseData>;
|
|
30
30
|
abstract listAllPrinters(): Promise<DataServiceResponseData>;
|
|
31
31
|
abstract listPrinters(showAll: boolean): Promise<DataServiceResponseData>;
|
|
32
|
+
abstract getStandardPrinter(reportId: number, type: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
32
33
|
abstract getSendMethods(): Promise<DataServiceResponseData>;
|
|
33
34
|
abstract getDocumentContent(id: number, thumbnail: boolean): Promise<DataServiceResponseData>;
|
|
34
35
|
abstract loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
package/build/main-api.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export declare class MainApi {
|
|
|
43
43
|
getDefaultTemplate(documentCode: ReportType): Promise<DataServiceResponseData>;
|
|
44
44
|
listAllPrinters(): Promise<DataServiceResponseData>;
|
|
45
45
|
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
46
|
+
getStandardPrinter(reportId: number, type: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
46
47
|
getSendMethods(): Promise<DataServiceResponseData>;
|
|
47
48
|
getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
|
|
48
49
|
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
package/build/main-api.js
CHANGED
|
@@ -69,6 +69,10 @@ class MainApi {
|
|
|
69
69
|
listPrinters(showAll = false) {
|
|
70
70
|
return this.mainApi.listPrinters(showAll);
|
|
71
71
|
}
|
|
72
|
+
getStandardPrinter(reportId, type, showLoader) {
|
|
73
|
+
return this.mainApi.getStandardPrinter(reportId, type);
|
|
74
|
+
}
|
|
75
|
+
;
|
|
72
76
|
getSendMethods() {
|
|
73
77
|
return this.mainApi.getSendMethods();
|
|
74
78
|
}
|
package/build/main-auth.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
23
23
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
24
24
|
getTemplates(documentCode: ReportType, defaultTemplate: boolean): Promise<DataServiceResponseData>;
|
|
25
25
|
listAllPrinters(): Promise<DataServiceResponseData>;
|
|
26
|
+
getStandardPrinter(reportId: number, type: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
26
27
|
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
27
28
|
getSendMethods(): Promise<DataServiceResponseData>;
|
|
28
29
|
getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
|
package/build/main-auth.js
CHANGED
|
@@ -91,6 +91,15 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
91
91
|
};
|
|
92
92
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
93
93
|
}
|
|
94
|
+
getStandardPrinter(reportId, type, showLoader) {
|
|
95
|
+
const data = {
|
|
96
|
+
moduleName: module_name_enum_1.ModuleName.Report,
|
|
97
|
+
methodName: reporting_documents_method_enum_1.ReportingDocumentsMethod.GetStandardPrinter,
|
|
98
|
+
refCursorAsArray: true,
|
|
99
|
+
parameterValues: { layoutId: reportId, type: type }
|
|
100
|
+
};
|
|
101
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
102
|
+
}
|
|
94
103
|
listPrinters(showAll = false) {
|
|
95
104
|
const data = {
|
|
96
105
|
showAll: showAll
|
package/build/main-public.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
23
23
|
getTemplates(documentCode: ReportType, defaultTemplate: boolean): Promise<DataServiceResponseData>;
|
|
24
24
|
listAllPrinters(): Promise<DataServiceResponseData>;
|
|
25
25
|
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
26
|
+
getStandardPrinter(reportId: number, type: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
26
27
|
getSendMethods(): Promise<DataServiceResponseData>;
|
|
27
28
|
getDocumentContent(id: number, thumbnail: boolean): Promise<DataServiceResponseData>;
|
|
28
29
|
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
package/build/main-public.js
CHANGED
|
@@ -46,6 +46,10 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
46
46
|
console.warn('listPrinters not implemented');
|
|
47
47
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
48
48
|
}
|
|
49
|
+
getStandardPrinter(reportId, type, showLoader) {
|
|
50
|
+
console.warn('getStandardPrinter not implemented');
|
|
51
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
52
|
+
}
|
|
49
53
|
getSendMethods() {
|
|
50
54
|
console.warn('getSendMethods not implemented');
|
|
51
55
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReportingDocumentPrintBaseRequest } from './reporting-document-print-base-request';
|
|
2
|
+
export declare class PrintPurchaseOrderForTransactionOrderWithoutLinesRequest extends ReportingDocumentPrintBaseRequest {
|
|
3
|
+
useRelationSpecificReports: boolean;
|
|
4
|
+
reportIdForPrinting: number;
|
|
5
|
+
reportIdForEmail: number;
|
|
6
|
+
useRelationSpecificSendMethods: boolean;
|
|
7
|
+
overruleSendMethodForEmail: number;
|
|
8
|
+
overruleSendMethodForEDI: number;
|
|
9
|
+
overruleSendMethodForPrinting: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrintPurchaseOrderForTransactionOrderWithoutLinesRequest = void 0;
|
|
4
|
+
const reporting_document_print_base_request_1 = require("./reporting-document-print-base-request");
|
|
5
|
+
class PrintPurchaseOrderForTransactionOrderWithoutLinesRequest extends reporting_document_print_base_request_1.ReportingDocumentPrintBaseRequest {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.useRelationSpecificReports = true;
|
|
9
|
+
this.useRelationSpecificSendMethods = true;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.PrintPurchaseOrderForTransactionOrderWithoutLinesRequest = PrintPurchaseOrderForTransactionOrderWithoutLinesRequest;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PrintPurchaseOrderForTransactionOrderWithoutLinesRequest } from './print-purchase-order-for-transaction-order-without-lines-request';
|
|
2
|
+
export declare class PrintPurchaseOrderForTransactionRequest extends PrintPurchaseOrderForTransactionOrderWithoutLinesRequest {
|
|
3
|
+
lineNumbers: number[];
|
|
4
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrintPurchaseOrderForTransactionRequest = void 0;
|
|
4
|
+
const print_purchase_order_for_transaction_order_without_lines_request_1 = require("./print-purchase-order-for-transaction-order-without-lines-request");
|
|
5
|
+
class PrintPurchaseOrderForTransactionRequest extends print_purchase_order_for_transaction_order_without_lines_request_1.PrintPurchaseOrderForTransactionOrderWithoutLinesRequest {
|
|
6
|
+
}
|
|
7
|
+
exports.PrintPurchaseOrderForTransactionRequest = PrintPurchaseOrderForTransactionRequest;
|
package/package.json
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@colijnit/mainapi",
|
|
3
|
-
"version": "260.1.
|
|
4
|
-
"scripts": {
|
|
5
|
-
"build": "grunt clean && tsc",
|
|
6
|
-
"browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
7
|
-
"browserifyDebug": "browserify --debug build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
8
|
-
"browserifyDebugLocal": "browserify --debug build/connector.js --s colijn -o C:/xampp/htdocs/connector/bundle.js",
|
|
9
|
-
"uglify": "grunt uglify",
|
|
10
|
-
"buildTest": "npm run build && npm run browserifyDebug",
|
|
11
|
-
"buildTestLocal": "npm run build && npm run browserifyDebugLocal",
|
|
12
|
-
"buildProd": "npm run build && npm run browserify",
|
|
13
|
-
"unit": "jest unit",
|
|
14
|
-
"integration": "jest int"
|
|
15
|
-
},
|
|
16
|
-
"description": "public main api for ione backend specific for version 2.5.4.",
|
|
17
|
-
"repository": "npm/npm",
|
|
18
|
-
"author": "Colijn IT",
|
|
19
|
-
"license": "ISC",
|
|
20
|
-
"private": false,
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"qrcode": "^1.4.4",
|
|
23
|
-
"reflect-metadata": "^0.1.12",
|
|
24
|
-
"rxjs": "6.6.3"
|
|
25
|
-
},
|
|
26
|
-
"peerDependencies": {
|
|
27
|
-
"@colijnit/ioneconnector": ">=260.1.0"
|
|
28
|
-
},
|
|
29
|
-
"devDependencies": {
|
|
30
|
-
"@types/jest": "^24.0.13",
|
|
31
|
-
"@colijnit/ioneconnector": "260.1.0",
|
|
32
|
-
"grunt": "^1.0.3",
|
|
33
|
-
"grunt-clean": "^0.4.0",
|
|
34
|
-
"grunt-contrib-clean": "^1.1.0",
|
|
35
|
-
"grunt-contrib-concat": "^1.0.1",
|
|
36
|
-
"grunt-contrib-uglify-es": "git+https://github.com/gruntjs/grunt-contrib-uglify.git#harmony",
|
|
37
|
-
"gulp": "^3.9.1",
|
|
38
|
-
"jest": "^24.8.0",
|
|
39
|
-
"request": "2.34.0",
|
|
40
|
-
"ts-jest": "^24.0.2",
|
|
41
|
-
"typescript": "4.9.3"
|
|
42
|
-
},
|
|
43
|
-
"files": [
|
|
44
|
-
"build/"
|
|
45
|
-
],
|
|
46
|
-
"main": "build/main-api.js",
|
|
47
|
-
"types": "build/main-api.d.ts",
|
|
48
|
-
"jest": {
|
|
49
|
-
"verbose": true,
|
|
50
|
-
"roots": [
|
|
51
|
-
"<rootDir>/src"
|
|
52
|
-
],
|
|
53
|
-
"transform": {
|
|
54
|
-
"^.+\\.tsx?$": "ts-jest"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@colijnit/mainapi",
|
|
3
|
+
"version": "260.1.4",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build": "grunt clean && tsc",
|
|
6
|
+
"browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
7
|
+
"browserifyDebug": "browserify --debug build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
8
|
+
"browserifyDebugLocal": "browserify --debug build/connector.js --s colijn -o C:/xampp/htdocs/connector/bundle.js",
|
|
9
|
+
"uglify": "grunt uglify",
|
|
10
|
+
"buildTest": "npm run build && npm run browserifyDebug",
|
|
11
|
+
"buildTestLocal": "npm run build && npm run browserifyDebugLocal",
|
|
12
|
+
"buildProd": "npm run build && npm run browserify",
|
|
13
|
+
"unit": "jest unit",
|
|
14
|
+
"integration": "jest int"
|
|
15
|
+
},
|
|
16
|
+
"description": "public main api for ione backend specific for version 2.5.4.",
|
|
17
|
+
"repository": "npm/npm",
|
|
18
|
+
"author": "Colijn IT",
|
|
19
|
+
"license": "ISC",
|
|
20
|
+
"private": false,
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"qrcode": "^1.4.4",
|
|
23
|
+
"reflect-metadata": "^0.1.12",
|
|
24
|
+
"rxjs": "6.6.3"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@colijnit/ioneconnector": ">=260.1.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/jest": "^24.0.13",
|
|
31
|
+
"@colijnit/ioneconnector": "260.1.0",
|
|
32
|
+
"grunt": "^1.0.3",
|
|
33
|
+
"grunt-clean": "^0.4.0",
|
|
34
|
+
"grunt-contrib-clean": "^1.1.0",
|
|
35
|
+
"grunt-contrib-concat": "^1.0.1",
|
|
36
|
+
"grunt-contrib-uglify-es": "git+https://github.com/gruntjs/grunt-contrib-uglify.git#harmony",
|
|
37
|
+
"gulp": "^3.9.1",
|
|
38
|
+
"jest": "^24.8.0",
|
|
39
|
+
"request": "2.34.0",
|
|
40
|
+
"ts-jest": "^24.0.2",
|
|
41
|
+
"typescript": "4.9.3"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"build/"
|
|
45
|
+
],
|
|
46
|
+
"main": "build/main-api.js",
|
|
47
|
+
"types": "build/main-api.d.ts",
|
|
48
|
+
"jest": {
|
|
49
|
+
"verbose": true,
|
|
50
|
+
"roots": [
|
|
51
|
+
"<rootDir>/src"
|
|
52
|
+
],
|
|
53
|
+
"transform": {
|
|
54
|
+
"^.+\\.tsx?$": "ts-jest"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|