@colijnit/mainapi 260.1.2 → 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.
@@ -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 = {}));
@@ -1,4 +1,5 @@
1
1
  export declare enum ReportingDocumentsMethod {
2
2
  ListPrinters = "listAllPrinters",
3
- GetPackageStickerPrintLayouts = "getPackageStickerPrintLayouts"
3
+ GetPackageStickerPrintLayouts = "getPackageStickerPrintLayouts",
4
+ GetStandardPrinter = "GetStandardPrinter"
4
5
  }
@@ -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 = {}));
@@ -7,5 +7,5 @@ export declare enum SendMethodType {
7
7
  Sms = "5",
8
8
  WebService = "6",
9
9
  Pdf = "7",
10
- PrintPDF = "8"
10
+ CombinePrintAndEmail = "8"
11
11
  }
@@ -11,5 +11,5 @@ var SendMethodType;
11
11
  SendMethodType["Sms"] = "5";
12
12
  SendMethodType["WebService"] = "6";
13
13
  SendMethodType["Pdf"] = "7";
14
- SendMethodType["PrintPDF"] = "8";
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>;
@@ -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
  }
@@ -22,7 +22,7 @@ const options = {
22
22
  const localOptions = {
23
23
  url: 'http://localhost:8080/ione',
24
24
  schema: "815",
25
- version: "259",
25
+ version: "260",
26
26
  useLoginEncryption: true,
27
27
  username: "patrick",
28
28
  password: "vankeulen1234567890!",
@@ -142,4 +142,14 @@ describe("Connector", () => {
142
142
  const result = yield connector.getAllFormResponsesForTableAndKey(table_name_enum_1.TableName.Transactions, "140320");
143
143
  expect(result).toBeDefined();
144
144
  }));
145
+ it('lockFormResponse', () => __awaiter(void 0, void 0, void 0, function* () {
146
+ yield connector.connect();
147
+ const result = yield connector.lockFormResponse(295);
148
+ expect(result).toBeDefined();
149
+ }));
150
+ it('unlockFormResponse', () => __awaiter(void 0, void 0, void 0, function* () {
151
+ yield connector.connect();
152
+ const result = yield connector.unlockFormResponse(295);
153
+ expect(result).toBeDefined();
154
+ }));
145
155
  });
@@ -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>;
@@ -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
@@ -772,7 +781,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
772
781
  const data = {
773
782
  moduleName: module_name_enum_1.ModuleName.Forms,
774
783
  objectName: forms_object_name_enum_1.FormsObjectName.FormResponse,
775
- parameterValues: id,
784
+ objectId: id,
776
785
  refCursorAsArray: true,
777
786
  };
778
787
  return this._call(data_service_method_enum_1.DataServiceMethod.LockObject, data, backend_service_name_enum_1.BackendServiceName.DataService);
@@ -781,7 +790,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
781
790
  const data = {
782
791
  moduleName: module_name_enum_1.ModuleName.Forms,
783
792
  objectName: forms_object_name_enum_1.FormsObjectName.FormResponse,
784
- parameterValues: id,
793
+ objectId: id,
785
794
  refCursorAsArray: true,
786
795
  };
787
796
  return this._call(data_service_method_enum_1.DataServiceMethod.UnlockObject, data, backend_service_name_enum_1.BackendServiceName.DataService);
@@ -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>;
@@ -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;
@@ -0,0 +1,5 @@
1
+ import { SendMethodType } from '../enum/send-method-type.enum';
2
+ export interface ProcessPrintRequest {
3
+ sendMethode: SendMethodType;
4
+ localPrint: boolean;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,57 +1,57 @@
1
- {
2
- "name": "@colijnit/mainapi",
3
- "version": "260.1.2",
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
+ }