@colijnit/mainapi 260.1.3 → 260.1.5

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
  }
@@ -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
@@ -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());
@@ -14,6 +14,7 @@ export declare class FormQuestion extends BusinessObject {
14
14
  gotoQuestionId: number;
15
15
  formQuestionAnswers: FormQuestionAnswer[];
16
16
  responseQuestion: FormQuestionResponse;
17
+ disabled: boolean;
17
18
  constructor();
18
19
  getId(): number;
19
20
  }
@@ -18,6 +18,7 @@ const form_question_response_bo_1 = require("./form-question-response.bo");
18
18
  class FormQuestion extends business_object_1.BusinessObject {
19
19
  constructor() {
20
20
  super();
21
+ this.disabled = true;
21
22
  }
22
23
  getId() {
23
24
  return this.questionId;
@@ -31,4 +32,8 @@ __decorate([
31
32
  (0, no_db_field_decorator_1.NoDbField)(),
32
33
  __metadata("design:type", form_question_response_bo_1.FormQuestionResponse)
33
34
  ], FormQuestion.prototype, "responseQuestion", void 0);
35
+ __decorate([
36
+ (0, no_db_field_decorator_1.NoDbField)(),
37
+ __metadata("design:type", Boolean)
38
+ ], FormQuestion.prototype, "disabled", void 0);
34
39
  exports.FormQuestion = FormQuestion;
@@ -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.3",
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.5",
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
+ }