@colijnit/mainapi 1.0.27 → 1.0.29
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/co-sub-report.bo.d.ts +11 -0
- package/build/enum/co-sub-report.bo.js +21 -0
- package/build/enum/document-allowed-type.enum.d.ts +10 -0
- package/build/enum/document-allowed-type.enum.js +14 -0
- package/build/enum/general-method.enum.d.ts +33 -2
- package/build/enum/general-method.enum.js +32 -1
- package/build/enum/module-name.enum.d.ts +6 -4
- package/build/enum/module-name.enum.js +6 -4
- package/build/enum/report-method.enum.d.ts +13 -1
- package/build/enum/report-method.enum.js +12 -0
- package/build/enum/report-object-name.enum.d.ts +3 -0
- package/build/enum/report-object-name.enum.js +7 -0
- package/build/enum/report-param-type.enum.d.ts +15 -0
- package/build/enum/report-param-type.enum.js +19 -0
- package/build/enum/report-type.enum.d.ts +45 -0
- package/build/enum/report-type.enum.js +49 -0
- package/build/enum/sequence-name.enum.d.ts +28 -1
- package/build/enum/sequence-name.enum.js +27 -0
- package/build/main-api-connection.d.ts +5 -0
- package/build/main-api.d.ts +5 -0
- package/build/main-api.js +13 -0
- package/build/main-api.unit.test.js +12 -1
- package/build/main-auth.d.ts +5 -1
- package/build/main-auth.js +31 -3
- package/build/main-public.d.ts +5 -0
- package/build/main-public.js +12 -0
- package/build/model/branch.bo.d.ts +8 -0
- package/build/model/branch.bo.js +7 -0
- package/build/model/co-report-category-link.bo.d.ts +8 -0
- package/build/model/co-report-category-link.bo.js +7 -0
- package/build/model/co-report-sjablonen-documenten.bo.d.ts +6 -0
- package/build/model/co-report-sjablonen-documenten.bo.js +7 -0
- package/build/model/co-report.bo.d.ts +47 -0
- package/build/model/co-report.bo.js +68 -0
- package/build/model/document-allowed-extension.bo.d.ts +6 -0
- package/build/model/document-allowed-extension.bo.js +7 -0
- package/build/model/get-postal-code-retrieval-output-params.d.ts +7 -0
- package/build/model/get-postal-code-retrieval-output-params.js +6 -0
- package/build/model/language.bo.d.ts +5 -0
- package/build/model/language.bo.js +7 -0
- package/build/model/report-category.bo.d.ts +6 -0
- package/build/model/report-category.bo.js +7 -0
- package/build/model/report-param.d.ts +16 -0
- package/build/model/report-param.js +9 -0
- package/build/model/title.bo.d.ts +9 -0
- package/build/model/title.bo.js +13 -0
- package/build/utils/file-utils.d.ts +29 -0
- package/build/utils/file-utils.js +348 -0
- package/package.json +2 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
export declare class CoSubReport extends BusinessObject {
|
|
3
|
+
reportId: number;
|
|
4
|
+
name: string;
|
|
5
|
+
templateName: string;
|
|
6
|
+
templateSourceBody: Int32Array;
|
|
7
|
+
templateCompiledBody: Int32Array;
|
|
8
|
+
compiledVersion: string;
|
|
9
|
+
parentReportId: number;
|
|
10
|
+
templateModified: Date;
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CoSubReport = void 0;
|
|
13
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
14
|
+
const date_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/date-field.decorator");
|
|
15
|
+
class CoSubReport extends business_object_1.BusinessObject {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
date_field_decorator_1.DateField(),
|
|
19
|
+
__metadata("design:type", Date)
|
|
20
|
+
], CoSubReport.prototype, "templateModified", void 0);
|
|
21
|
+
exports.CoSubReport = CoSubReport;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentAllowedType = void 0;
|
|
4
|
+
var DocumentAllowedType;
|
|
5
|
+
(function (DocumentAllowedType) {
|
|
6
|
+
DocumentAllowedType["Image"] = "Image";
|
|
7
|
+
DocumentAllowedType["Document"] = "Document";
|
|
8
|
+
DocumentAllowedType["Text"] = "Text";
|
|
9
|
+
DocumentAllowedType["ThreeD"] = "3D";
|
|
10
|
+
DocumentAllowedType["JasperReport"] = "Jasper report";
|
|
11
|
+
DocumentAllowedType["Video"] = "Video";
|
|
12
|
+
DocumentAllowedType["Audio"] = "Audio";
|
|
13
|
+
DocumentAllowedType["Archive"] = "Archive";
|
|
14
|
+
})(DocumentAllowedType = exports.DocumentAllowedType || (exports.DocumentAllowedType = {}));
|
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
export declare enum GeneralMethod {
|
|
2
|
+
AddErrorLog = "addErrorLog",
|
|
3
|
+
CheckHiddenByPolicy = "checkHiddenByPolicy",
|
|
4
|
+
GetAdminStartupValidations = "getAdminStartupValidations",
|
|
5
|
+
GetDatabaseName = "getDatabaseName",
|
|
6
|
+
GetDefaultValue = "getDefaultValue",
|
|
2
7
|
GetDocumentContent = "getDocumentContent",
|
|
8
|
+
GetDocumentStandards = "getDocumentStandards",
|
|
9
|
+
GetDomainValues = "getDomainValues",
|
|
10
|
+
GetEdition = "getEdition",
|
|
11
|
+
GetMessageNotifications = "getMessageNotificationsByTableKey",
|
|
12
|
+
SaveAndSendMessageNotification = "saveAndSend",
|
|
13
|
+
GetModuleSettings = "getModuleSettings",
|
|
14
|
+
GetNotition = "getNotition",
|
|
15
|
+
GetNumberOfActiveUsers = "getNumberOfActiveUsers",
|
|
16
|
+
GetParamValue = "getParamValue",
|
|
17
|
+
GetProfileCompletionPercentageForContactPerson = "GetProfileCompletionPercentageForContactPerson",
|
|
18
|
+
GetRelationSmallObject = "getRelationSmallObject",
|
|
19
|
+
GetRightValue = "getRightValue",
|
|
3
20
|
GetSequenceValue = "getSequenceValue",
|
|
4
|
-
|
|
5
|
-
|
|
21
|
+
MergeDocuments = "mergeDocuments",
|
|
22
|
+
MergeDocument = "mergeDocument",
|
|
23
|
+
DeleteDocument = "deleteDocument",
|
|
24
|
+
MergeCollectiveSalary = "mergeCollectiveSalary",
|
|
25
|
+
MergeNotes = "mergeNotes",
|
|
26
|
+
SelectDocsByTableKey = "selectDocsByTableKey",
|
|
27
|
+
SelectCollectiveSalaryInfo = "selectCollectiveSalaryInfo",
|
|
28
|
+
SelectNotesByTableKey = "selectNotesByTableKey",
|
|
29
|
+
SelectColoursByTableKey = "selectColoursByTableKey",
|
|
30
|
+
SetNewLicense = "setNewLicense",
|
|
31
|
+
SelectArticleTexts = "selectArticleTexts",
|
|
32
|
+
MergeArticleTexts = "mergeArticleTexts",
|
|
33
|
+
MergeTexts = "mergeTexts",
|
|
34
|
+
SelectTextsByTableKey = "selectTextsByTableKey",
|
|
35
|
+
GetResultOfValidationCurrentDatabaseObjectsChecksum = "getResultOfValidationCurrentDatabaseObjectsChecksum",
|
|
36
|
+
PostalCodeRetrieval = "postalCodeRetrieval"
|
|
6
37
|
}
|
|
@@ -3,8 +3,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GeneralMethod = void 0;
|
|
4
4
|
var GeneralMethod;
|
|
5
5
|
(function (GeneralMethod) {
|
|
6
|
+
GeneralMethod["AddErrorLog"] = "addErrorLog";
|
|
7
|
+
GeneralMethod["CheckHiddenByPolicy"] = "checkHiddenByPolicy";
|
|
8
|
+
GeneralMethod["GetAdminStartupValidations"] = "getAdminStartupValidations";
|
|
9
|
+
GeneralMethod["GetDatabaseName"] = "getDatabaseName";
|
|
10
|
+
GeneralMethod["GetDefaultValue"] = "getDefaultValue";
|
|
6
11
|
GeneralMethod["GetDocumentContent"] = "getDocumentContent";
|
|
12
|
+
GeneralMethod["GetDocumentStandards"] = "getDocumentStandards";
|
|
13
|
+
GeneralMethod["GetDomainValues"] = "getDomainValues";
|
|
14
|
+
GeneralMethod["GetEdition"] = "getEdition";
|
|
15
|
+
GeneralMethod["GetMessageNotifications"] = "getMessageNotificationsByTableKey";
|
|
16
|
+
GeneralMethod["SaveAndSendMessageNotification"] = "saveAndSend";
|
|
17
|
+
GeneralMethod["GetModuleSettings"] = "getModuleSettings";
|
|
18
|
+
GeneralMethod["GetNotition"] = "getNotition";
|
|
19
|
+
GeneralMethod["GetNumberOfActiveUsers"] = "getNumberOfActiveUsers";
|
|
20
|
+
GeneralMethod["GetParamValue"] = "getParamValue";
|
|
21
|
+
GeneralMethod["GetProfileCompletionPercentageForContactPerson"] = "GetProfileCompletionPercentageForContactPerson";
|
|
22
|
+
GeneralMethod["GetRelationSmallObject"] = "getRelationSmallObject";
|
|
23
|
+
GeneralMethod["GetRightValue"] = "getRightValue";
|
|
7
24
|
GeneralMethod["GetSequenceValue"] = "getSequenceValue";
|
|
25
|
+
GeneralMethod["MergeDocuments"] = "mergeDocuments";
|
|
26
|
+
GeneralMethod["MergeDocument"] = "mergeDocument";
|
|
27
|
+
GeneralMethod["DeleteDocument"] = "deleteDocument";
|
|
28
|
+
GeneralMethod["MergeCollectiveSalary"] = "mergeCollectiveSalary";
|
|
29
|
+
GeneralMethod["MergeNotes"] = "mergeNotes";
|
|
30
|
+
GeneralMethod["SelectDocsByTableKey"] = "selectDocsByTableKey";
|
|
31
|
+
GeneralMethod["SelectCollectiveSalaryInfo"] = "selectCollectiveSalaryInfo";
|
|
32
|
+
GeneralMethod["SelectNotesByTableKey"] = "selectNotesByTableKey";
|
|
33
|
+
GeneralMethod["SelectColoursByTableKey"] = "selectColoursByTableKey";
|
|
34
|
+
GeneralMethod["SetNewLicense"] = "setNewLicense";
|
|
35
|
+
GeneralMethod["SelectArticleTexts"] = "selectArticleTexts";
|
|
36
|
+
GeneralMethod["MergeArticleTexts"] = "mergeArticleTexts";
|
|
37
|
+
GeneralMethod["MergeTexts"] = "mergeTexts";
|
|
38
|
+
GeneralMethod["SelectTextsByTableKey"] = "selectTextsByTableKey";
|
|
39
|
+
GeneralMethod["GetResultOfValidationCurrentDatabaseObjectsChecksum"] = "getResultOfValidationCurrentDatabaseObjectsChecksum";
|
|
8
40
|
GeneralMethod["PostalCodeRetrieval"] = "postalCodeRetrieval";
|
|
9
|
-
GeneralMethod["GetParamValue"] = "getParamValue";
|
|
10
41
|
})(GeneralMethod = exports.GeneralMethod || (exports.GeneralMethod = {}));
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export declare enum ModuleName {
|
|
2
|
+
Address = "address",
|
|
3
|
+
Articles = "Articles",
|
|
4
|
+
Config = "Config",
|
|
2
5
|
General = "General",
|
|
6
|
+
Preset = "Preset",
|
|
7
|
+
Relation = "Rel_man",
|
|
3
8
|
Report = "Report",
|
|
4
9
|
ReportingDocuments = "ReportingDocuments",
|
|
5
|
-
Tags = "Tags",
|
|
6
10
|
SimpleBaseData = "SimpleBaseData",
|
|
7
|
-
|
|
8
|
-
Articles = "Articles",
|
|
9
|
-
Preset = "Preset"
|
|
11
|
+
Tags = "Tags"
|
|
10
12
|
}
|
|
@@ -3,12 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ModuleName = void 0;
|
|
4
4
|
var ModuleName;
|
|
5
5
|
(function (ModuleName) {
|
|
6
|
+
ModuleName["Address"] = "address";
|
|
7
|
+
ModuleName["Articles"] = "Articles";
|
|
8
|
+
ModuleName["Config"] = "Config";
|
|
6
9
|
ModuleName["General"] = "General";
|
|
10
|
+
ModuleName["Preset"] = "Preset";
|
|
11
|
+
ModuleName["Relation"] = "Rel_man";
|
|
7
12
|
ModuleName["Report"] = "Report";
|
|
8
13
|
ModuleName["ReportingDocuments"] = "ReportingDocuments";
|
|
9
|
-
ModuleName["Tags"] = "Tags";
|
|
10
14
|
ModuleName["SimpleBaseData"] = "SimpleBaseData";
|
|
11
|
-
ModuleName["
|
|
12
|
-
ModuleName["Articles"] = "Articles";
|
|
13
|
-
ModuleName["Preset"] = "Preset";
|
|
15
|
+
ModuleName["Tags"] = "Tags";
|
|
14
16
|
})(ModuleName = exports.ModuleName || (exports.ModuleName = {}));
|
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
export declare enum ReportMethod {
|
|
2
|
-
GetSendMethods = "getSendMethods"
|
|
2
|
+
GetSendMethods = "getSendMethods",
|
|
3
|
+
SelectForLov = "selectForLov",
|
|
4
|
+
InviteNewUserRequest = "inviteNewUserRequest",
|
|
5
|
+
ChangeUserPasswordRequest = "changeUserPasswordRequest",
|
|
6
|
+
ReInviteUserRequest = "reInviteUserRequest",
|
|
7
|
+
GetDocHistoriesPresence = "getDocHistoriesPresence",
|
|
8
|
+
GetDocsToSign = "getDocsToSign",
|
|
9
|
+
StoreSignedDoc = "storeSignedDoc",
|
|
10
|
+
GetPackageStickerPrintLayouts = "getRegisterBreakdownPrintLayouts",
|
|
11
|
+
GetRegisterBreakdownEmailLayouts = "getRegisterBreakdownEmailLayouts",
|
|
12
|
+
PrintRegisterBreakDown = "printRegisterBreakDown",
|
|
13
|
+
EmailRegisterBreakDown = "emailRegisterBreakDown",
|
|
14
|
+
PdfRegisterBreakDown = "pdfRegisterBreakDown"
|
|
3
15
|
}
|
|
@@ -4,4 +4,16 @@ exports.ReportMethod = void 0;
|
|
|
4
4
|
var ReportMethod;
|
|
5
5
|
(function (ReportMethod) {
|
|
6
6
|
ReportMethod["GetSendMethods"] = "getSendMethods";
|
|
7
|
+
ReportMethod["SelectForLov"] = "selectForLov";
|
|
8
|
+
ReportMethod["InviteNewUserRequest"] = "inviteNewUserRequest";
|
|
9
|
+
ReportMethod["ChangeUserPasswordRequest"] = "changeUserPasswordRequest";
|
|
10
|
+
ReportMethod["ReInviteUserRequest"] = "reInviteUserRequest";
|
|
11
|
+
ReportMethod["GetDocHistoriesPresence"] = "getDocHistoriesPresence";
|
|
12
|
+
ReportMethod["GetDocsToSign"] = "getDocsToSign";
|
|
13
|
+
ReportMethod["StoreSignedDoc"] = "storeSignedDoc";
|
|
14
|
+
ReportMethod["GetPackageStickerPrintLayouts"] = "getRegisterBreakdownPrintLayouts";
|
|
15
|
+
ReportMethod["GetRegisterBreakdownEmailLayouts"] = "getRegisterBreakdownEmailLayouts";
|
|
16
|
+
ReportMethod["PrintRegisterBreakDown"] = "printRegisterBreakDown";
|
|
17
|
+
ReportMethod["EmailRegisterBreakDown"] = "emailRegisterBreakDown";
|
|
18
|
+
ReportMethod["PdfRegisterBreakDown"] = "pdfRegisterBreakDown";
|
|
7
19
|
})(ReportMethod = exports.ReportMethod || (exports.ReportMethod = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportObjectName = void 0;
|
|
4
|
+
var ReportObjectName;
|
|
5
|
+
(function (ReportObjectName) {
|
|
6
|
+
ReportObjectName["CoReport"] = "CoReport";
|
|
7
|
+
})(ReportObjectName = exports.ReportObjectName || (exports.ReportObjectName = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum ReportParamType {
|
|
2
|
+
List = "L",
|
|
3
|
+
Range = "R",
|
|
4
|
+
Value = "V",
|
|
5
|
+
NumberRange = "E",
|
|
6
|
+
Number = "N",
|
|
7
|
+
Sort = "S",
|
|
8
|
+
Boolean = "J",
|
|
9
|
+
Date = "D",
|
|
10
|
+
DateRange = "F",
|
|
11
|
+
String = "A",
|
|
12
|
+
Multiple = "M",
|
|
13
|
+
TextLabel = "T",
|
|
14
|
+
MlText = "X"
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportParamType = void 0;
|
|
4
|
+
var ReportParamType;
|
|
5
|
+
(function (ReportParamType) {
|
|
6
|
+
ReportParamType["List"] = "L";
|
|
7
|
+
ReportParamType["Range"] = "R";
|
|
8
|
+
ReportParamType["Value"] = "V";
|
|
9
|
+
ReportParamType["NumberRange"] = "E";
|
|
10
|
+
ReportParamType["Number"] = "N";
|
|
11
|
+
ReportParamType["Sort"] = "S";
|
|
12
|
+
ReportParamType["Boolean"] = "J";
|
|
13
|
+
ReportParamType["Date"] = "D";
|
|
14
|
+
ReportParamType["DateRange"] = "F";
|
|
15
|
+
ReportParamType["String"] = "A";
|
|
16
|
+
ReportParamType["Multiple"] = "M";
|
|
17
|
+
ReportParamType["TextLabel"] = "T";
|
|
18
|
+
ReportParamType["MlText"] = "X";
|
|
19
|
+
})(ReportParamType = exports.ReportParamType || (exports.ReportParamType = {}));
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare enum ReportType {
|
|
2
|
+
Custom = "custom",
|
|
3
|
+
ActivityMessage = "Activiteit bericht",
|
|
4
|
+
TaskMessage = "Taak bericht",
|
|
5
|
+
AppointmentConfirmation = "Afspraakbevestiging",
|
|
6
|
+
CountingFrame = "Kassatelling",
|
|
7
|
+
DelayedDelivery = "Uitlopende levering",
|
|
8
|
+
DeliveryIndication = "Leverindicatie",
|
|
9
|
+
DeliveryOrder = "Afleverbon",
|
|
10
|
+
DriverCheckoutList = "ChauffeursAfrekenLijst",
|
|
11
|
+
GoodsIn = "Goederen binnen",
|
|
12
|
+
Invoice = "Factuur",
|
|
13
|
+
Logistics = "Logistiek",
|
|
14
|
+
NewPasswordMessage = "Nieuw wachtwoord bericht",
|
|
15
|
+
NewUserAccountMessage = "Nieuw gebruikersaccount bericht",
|
|
16
|
+
Notifications = "Notificaties",
|
|
17
|
+
OrderingSticker = "Bestelsticker",
|
|
18
|
+
OrderConfirmation = "Orderbevestiging",
|
|
19
|
+
OrderForm = "Bestelbon",
|
|
20
|
+
PackageSticker = "Collisticker",
|
|
21
|
+
PickingList = "Pickinglijst",
|
|
22
|
+
PickupOrder = "Afhaalbon",
|
|
23
|
+
PriceTags = "Prijskaarten",
|
|
24
|
+
PurchaseAdvice = "Inkoopbesteladvieslijst",
|
|
25
|
+
Quotation = "Offerte",
|
|
26
|
+
Receipt = "Kassabon",
|
|
27
|
+
RegisterBreakdown = "Kassaverantwoording",
|
|
28
|
+
ReminderDelivery = "Aanmaninglevertijd",
|
|
29
|
+
ReminderOrderForm = "Herinneringsbestelbon",
|
|
30
|
+
ReservationSticker = "Reserveringssticker",
|
|
31
|
+
SelectorDesign = "SelectorOntwerp",
|
|
32
|
+
ServiceReport = "Servicebon",
|
|
33
|
+
StockSticker = "Voorraadsticker",
|
|
34
|
+
TransferSticker = "Overboeksticker",
|
|
35
|
+
WarehouseReceipt = "Magazijnbon",
|
|
36
|
+
WorkplaceOrder = "Atelierbon",
|
|
37
|
+
WorkOrder = "Werkbon",
|
|
38
|
+
WmsOrderPickSticker = "WMS Orderpicksticker",
|
|
39
|
+
AbsenceFrequency = "Absence Frequency Email",
|
|
40
|
+
AbsenceNoSalary = "Absence No Salary Email",
|
|
41
|
+
AbsenceNoWorkHours = "Absence No WorkingHours Email",
|
|
42
|
+
AbsenceEndTemp = "Absence Ending TempContracts Email",
|
|
43
|
+
CompositeAbsence = "Composite Absence Email",
|
|
44
|
+
WorkhoursPerWeekChanged = "Workhours Per Week Changed Email"
|
|
45
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportType = void 0;
|
|
4
|
+
var ReportType;
|
|
5
|
+
(function (ReportType) {
|
|
6
|
+
ReportType["Custom"] = "custom";
|
|
7
|
+
ReportType["ActivityMessage"] = "Activiteit bericht";
|
|
8
|
+
ReportType["TaskMessage"] = "Taak bericht";
|
|
9
|
+
ReportType["AppointmentConfirmation"] = "Afspraakbevestiging";
|
|
10
|
+
ReportType["CountingFrame"] = "Kassatelling";
|
|
11
|
+
ReportType["DelayedDelivery"] = "Uitlopende levering";
|
|
12
|
+
ReportType["DeliveryIndication"] = "Leverindicatie";
|
|
13
|
+
ReportType["DeliveryOrder"] = "Afleverbon";
|
|
14
|
+
ReportType["DriverCheckoutList"] = "ChauffeursAfrekenLijst";
|
|
15
|
+
ReportType["GoodsIn"] = "Goederen binnen";
|
|
16
|
+
ReportType["Invoice"] = "Factuur";
|
|
17
|
+
ReportType["Logistics"] = "Logistiek";
|
|
18
|
+
ReportType["NewPasswordMessage"] = "Nieuw wachtwoord bericht";
|
|
19
|
+
ReportType["NewUserAccountMessage"] = "Nieuw gebruikersaccount bericht";
|
|
20
|
+
ReportType["Notifications"] = "Notificaties";
|
|
21
|
+
ReportType["OrderingSticker"] = "Bestelsticker";
|
|
22
|
+
ReportType["OrderConfirmation"] = "Orderbevestiging";
|
|
23
|
+
ReportType["OrderForm"] = "Bestelbon";
|
|
24
|
+
ReportType["PackageSticker"] = "Collisticker";
|
|
25
|
+
ReportType["PickingList"] = "Pickinglijst";
|
|
26
|
+
ReportType["PickupOrder"] = "Afhaalbon";
|
|
27
|
+
ReportType["PriceTags"] = "Prijskaarten";
|
|
28
|
+
ReportType["PurchaseAdvice"] = "Inkoopbesteladvieslijst";
|
|
29
|
+
ReportType["Quotation"] = "Offerte";
|
|
30
|
+
ReportType["Receipt"] = "Kassabon";
|
|
31
|
+
ReportType["RegisterBreakdown"] = "Kassaverantwoording";
|
|
32
|
+
ReportType["ReminderDelivery"] = "Aanmaninglevertijd";
|
|
33
|
+
ReportType["ReminderOrderForm"] = "Herinneringsbestelbon";
|
|
34
|
+
ReportType["ReservationSticker"] = "Reserveringssticker";
|
|
35
|
+
ReportType["SelectorDesign"] = "SelectorOntwerp";
|
|
36
|
+
ReportType["ServiceReport"] = "Servicebon";
|
|
37
|
+
ReportType["StockSticker"] = "Voorraadsticker";
|
|
38
|
+
ReportType["TransferSticker"] = "Overboeksticker";
|
|
39
|
+
ReportType["WarehouseReceipt"] = "Magazijnbon";
|
|
40
|
+
ReportType["WorkplaceOrder"] = "Atelierbon";
|
|
41
|
+
ReportType["WorkOrder"] = "Werkbon";
|
|
42
|
+
ReportType["WmsOrderPickSticker"] = "WMS Orderpicksticker";
|
|
43
|
+
ReportType["AbsenceFrequency"] = "Absence Frequency Email";
|
|
44
|
+
ReportType["AbsenceNoSalary"] = "Absence No Salary Email";
|
|
45
|
+
ReportType["AbsenceNoWorkHours"] = "Absence No WorkingHours Email";
|
|
46
|
+
ReportType["AbsenceEndTemp"] = "Absence Ending TempContracts Email";
|
|
47
|
+
ReportType["CompositeAbsence"] = "Composite Absence Email";
|
|
48
|
+
ReportType["WorkhoursPerWeekChanged"] = "Workhours Per Week Changed Email";
|
|
49
|
+
})(ReportType = exports.ReportType || (exports.ReportType = {}));
|
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
export declare enum SequenceName {
|
|
2
|
+
DebtorNumber = "seq_debnr",
|
|
3
|
+
CreditorNumber = "seq_crednr",
|
|
4
|
+
EmployeeNumber = "seq_personeelsnummer",
|
|
5
|
+
BranchNumber = "seq_filiaalnr",
|
|
6
|
+
CompanyNumber = "seq_bedrijfnr",
|
|
7
|
+
ContactPersonNumber = "seq_contactpersoonnummer",
|
|
8
|
+
CommunicationNumber = "seq_communicatie",
|
|
2
9
|
RelationId = "seq_relatieid",
|
|
3
|
-
|
|
10
|
+
DepartmentNo = "seq_afdeling",
|
|
11
|
+
TaskId = "seq_taak_id",
|
|
12
|
+
WorkId = "SEQ_WERKZAAMHEDEN",
|
|
13
|
+
RemarkId = "SEQ_OPMERKINGEN",
|
|
14
|
+
ArticleNr = "seq_artnr",
|
|
15
|
+
ReceiptTransNr = "kassabon",
|
|
16
|
+
TransactionId = "seq_transid",
|
|
17
|
+
SalesInvoiceTransNr = "seq_v_faktuurnr",
|
|
18
|
+
SalesOrderTransNr = "seq_v_ordernr",
|
|
19
|
+
SalesQuotationTransNr = "seq_v_offertenr",
|
|
20
|
+
PurchaseOrderTransNr = "seq_i_ordernr",
|
|
21
|
+
ServiceOrderTransNr = "seq_s_ordernr",
|
|
22
|
+
Form = "seq_form",
|
|
23
|
+
FormQuestion = "seq_form_question",
|
|
24
|
+
FormAnswer = "seq_form_question_answer",
|
|
25
|
+
FormResponse = "seq_form_response",
|
|
26
|
+
EmolumentType = "seq_emolument_type",
|
|
27
|
+
Salary = "seq_salary",
|
|
28
|
+
EmployeeContract = "seq_employee_contract",
|
|
29
|
+
RelationContract = "SEQ_SLA_ID",
|
|
30
|
+
GuaranteeCode = "seq_garantie"
|
|
4
31
|
}
|
|
@@ -3,6 +3,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SequenceName = void 0;
|
|
4
4
|
var SequenceName;
|
|
5
5
|
(function (SequenceName) {
|
|
6
|
+
SequenceName["DebtorNumber"] = "seq_debnr";
|
|
7
|
+
SequenceName["CreditorNumber"] = "seq_crednr";
|
|
8
|
+
SequenceName["EmployeeNumber"] = "seq_personeelsnummer";
|
|
9
|
+
SequenceName["BranchNumber"] = "seq_filiaalnr";
|
|
10
|
+
SequenceName["CompanyNumber"] = "seq_bedrijfnr";
|
|
11
|
+
SequenceName["ContactPersonNumber"] = "seq_contactpersoonnummer";
|
|
12
|
+
SequenceName["CommunicationNumber"] = "seq_communicatie";
|
|
6
13
|
SequenceName["RelationId"] = "seq_relatieid";
|
|
14
|
+
SequenceName["DepartmentNo"] = "seq_afdeling";
|
|
15
|
+
SequenceName["TaskId"] = "seq_taak_id";
|
|
16
|
+
SequenceName["WorkId"] = "SEQ_WERKZAAMHEDEN";
|
|
17
|
+
SequenceName["RemarkId"] = "SEQ_OPMERKINGEN";
|
|
18
|
+
SequenceName["ArticleNr"] = "seq_artnr";
|
|
19
|
+
SequenceName["ReceiptTransNr"] = "kassabon";
|
|
7
20
|
SequenceName["TransactionId"] = "seq_transid";
|
|
21
|
+
SequenceName["SalesInvoiceTransNr"] = "seq_v_faktuurnr";
|
|
22
|
+
SequenceName["SalesOrderTransNr"] = "seq_v_ordernr";
|
|
23
|
+
SequenceName["SalesQuotationTransNr"] = "seq_v_offertenr";
|
|
24
|
+
SequenceName["PurchaseOrderTransNr"] = "seq_i_ordernr";
|
|
25
|
+
SequenceName["ServiceOrderTransNr"] = "seq_s_ordernr";
|
|
26
|
+
SequenceName["Form"] = "seq_form";
|
|
27
|
+
SequenceName["FormQuestion"] = "seq_form_question";
|
|
28
|
+
SequenceName["FormAnswer"] = "seq_form_question_answer";
|
|
29
|
+
SequenceName["FormResponse"] = "seq_form_response";
|
|
30
|
+
SequenceName["EmolumentType"] = "seq_emolument_type";
|
|
31
|
+
SequenceName["Salary"] = "seq_salary";
|
|
32
|
+
SequenceName["EmployeeContract"] = "seq_employee_contract";
|
|
33
|
+
SequenceName["RelationContract"] = "SEQ_SLA_ID";
|
|
34
|
+
SequenceName["GuaranteeCode"] = "seq_garantie";
|
|
8
35
|
})(SequenceName = exports.SequenceName || (exports.SequenceName = {}));
|
|
@@ -7,6 +7,8 @@ import { DomainName } from './enum/domain-name.enum';
|
|
|
7
7
|
import { TagCategory } from "./enum/tab-category.enum";
|
|
8
8
|
import { TagTreeItem } from "./model/tag-tree-item.bo";
|
|
9
9
|
import { Preset } from "./model/preset.bo";
|
|
10
|
+
import { ReportType } from './enum/report-type.enum';
|
|
11
|
+
import { ModuleName } from './enum/module-name.enum';
|
|
10
12
|
export declare abstract class MainApiConnection {
|
|
11
13
|
readonly showLoader: Subject<boolean>;
|
|
12
14
|
readonly connectionAborted: Subject<void>;
|
|
@@ -15,6 +17,7 @@ export declare abstract class MainApiConnection {
|
|
|
15
17
|
languageCode: string;
|
|
16
18
|
branchNr: string;
|
|
17
19
|
abstract getSequenceValue(sequenceName: SequenceName, noSequence: boolean): Promise<DataServiceResponseData>;
|
|
20
|
+
abstract getTemplates(documentCode: ReportType, defaultTemplate: boolean): Promise<DataServiceResponseData>;
|
|
18
21
|
abstract listAllPrinters(): Promise<DataServiceResponseData>;
|
|
19
22
|
abstract listPrinters(showAll: boolean): Promise<DataServiceResponseData>;
|
|
20
23
|
abstract getSendMethods(): Promise<DataServiceResponseData>;
|
|
@@ -40,5 +43,7 @@ export declare abstract class MainApiConnection {
|
|
|
40
43
|
abstract savePreset(preset: Preset): Promise<DataServiceResponseData>;
|
|
41
44
|
abstract updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
42
45
|
abstract getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
46
|
+
abstract getPostalCodeRetrieval(postalCode: string, houseNumber: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
47
|
+
abstract selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
43
48
|
protected endPoint: string;
|
|
44
49
|
}
|
package/build/main-api.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ import { TagCategory } from "./enum/tab-category.enum";
|
|
|
9
9
|
import { TagTreeItem } from "./model/tag-tree-item.bo";
|
|
10
10
|
import { Preset } from "./model/preset.bo";
|
|
11
11
|
import { ServerResponseData } from '@colijnit/ioneconnector/build/model/server-response-data';
|
|
12
|
+
import { ReportType } from './enum/report-type.enum';
|
|
13
|
+
import { ModuleName } from './enum/module-name.enum';
|
|
12
14
|
export declare class MainApi {
|
|
13
15
|
readonly showLoader: Subject<boolean>;
|
|
14
16
|
readonly connectionAborted: Subject<void>;
|
|
@@ -26,7 +28,9 @@ export declare class MainApi {
|
|
|
26
28
|
constructor(options?: Options);
|
|
27
29
|
connect(): Promise<boolean>;
|
|
28
30
|
logOut(): Promise<ServerResponseData>;
|
|
31
|
+
selectMultiple(module: ModuleName, objectClass: string, operation?: string, params?: {}, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
29
32
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
33
|
+
getDefaultTemplate(documentCode: ReportType): Promise<DataServiceResponseData>;
|
|
30
34
|
listAllPrinters(): Promise<DataServiceResponseData>;
|
|
31
35
|
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
32
36
|
getSendMethods(): Promise<DataServiceResponseData>;
|
|
@@ -53,6 +57,7 @@ export declare class MainApi {
|
|
|
53
57
|
savePreset(preset: Preset): Promise<DataServiceResponseData>;
|
|
54
58
|
updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
55
59
|
getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
60
|
+
getPostalCodeRetrieval(postalCode: string, houseNumber: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
56
61
|
static createConnector(options: Options, sessionExists: boolean): MainApiConnection;
|
|
57
62
|
private _handleConnectionReset;
|
|
58
63
|
}
|
package/build/main-api.js
CHANGED
|
@@ -48,11 +48,21 @@ class MainApi {
|
|
|
48
48
|
return this._connector.logOut();
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
+
selectMultiple(module, objectClass, operation, params, showLoader) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
return this.mainApi.selectMultiple(module, objectClass, operation, params, showLoader);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
51
56
|
getSequenceValue(sequenceName, noSequence = false) {
|
|
52
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
58
|
return this.mainApi.getSequenceValue(sequenceName, noSequence);
|
|
54
59
|
});
|
|
55
60
|
}
|
|
61
|
+
getDefaultTemplate(documentCode) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
return this.mainApi.getTemplates(documentCode, true);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
56
66
|
listAllPrinters() {
|
|
57
67
|
return this.mainApi.listAllPrinters();
|
|
58
68
|
}
|
|
@@ -145,6 +155,9 @@ class MainApi {
|
|
|
145
155
|
return this.mainApi.getOrderLineSetCategories();
|
|
146
156
|
});
|
|
147
157
|
}
|
|
158
|
+
getPostalCodeRetrieval(postalCode, houseNumber, showLoader) {
|
|
159
|
+
return this.mainApi.getPostalCodeRetrieval(postalCode, houseNumber, showLoader);
|
|
160
|
+
}
|
|
148
161
|
static createConnector(options, sessionExists) {
|
|
149
162
|
if ((options.username && options.password) || sessionExists) {
|
|
150
163
|
return new main_auth_1.MainAuth();
|
|
@@ -13,13 +13,14 @@ const main_api_1 = require("./main-api");
|
|
|
13
13
|
const sequence_name_enum_1 = require("./enum/sequence-name.enum");
|
|
14
14
|
const domain_name_enum_1 = require("./enum/domain-name.enum");
|
|
15
15
|
const preset_bo_1 = require("./model/preset.bo");
|
|
16
|
+
const report_type_enum_1 = require("./enum/report-type.enum");
|
|
16
17
|
const options = {
|
|
17
18
|
url: 'http'
|
|
18
19
|
};
|
|
19
20
|
const localOptions = {
|
|
20
21
|
url: "http://localhost:8080/ione",
|
|
21
22
|
schema: "815",
|
|
22
|
-
version: "
|
|
23
|
+
version: "253",
|
|
23
24
|
useLoginEncryption: true,
|
|
24
25
|
username: "patrick",
|
|
25
26
|
password: "vankeulen1234567890!"
|
|
@@ -114,4 +115,14 @@ describe("Connector", () => {
|
|
|
114
115
|
const result = yield connector.listPrinters(showAll);
|
|
115
116
|
expect(result).toBeDefined();
|
|
116
117
|
}));
|
|
118
|
+
it('getTemplates', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
119
|
+
yield connector.connect();
|
|
120
|
+
const result = yield connector.getDefaultTemplate(report_type_enum_1.ReportType.NewUserAccountMessage);
|
|
121
|
+
expect(result).toBeDefined();
|
|
122
|
+
}));
|
|
123
|
+
it('getPostalCode', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
124
|
+
yield connector.connect();
|
|
125
|
+
const result = yield connector.getPostalCodeRetrieval('4462gp', '6');
|
|
126
|
+
expect(result).toBeDefined();
|
|
127
|
+
}));
|
|
117
128
|
});
|
package/build/main-auth.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { MainApiConnection } from './main-api-connection';
|
|
2
2
|
import { SequenceName } from './enum/sequence-name.enum';
|
|
3
|
+
import { ModuleName } from './enum/module-name.enum';
|
|
3
4
|
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
4
5
|
import { InternalParam } from './enum/internal-param.enum';
|
|
5
6
|
import { DomainName } from './enum/domain-name.enum';
|
|
6
7
|
import { Preset } from './model/preset.bo';
|
|
7
8
|
import { TagCategory } from './enum/tab-category.enum';
|
|
8
9
|
import { TagTreeItem } from './model/tag-tree-item.bo';
|
|
10
|
+
import { ReportType } from './enum/report-type.enum';
|
|
9
11
|
export declare class MainAuth extends MainApiConnection {
|
|
10
12
|
private _boSerializer;
|
|
11
13
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
14
|
+
getTemplates(documentCode: ReportType, defaultTemplate: boolean): Promise<DataServiceResponseData>;
|
|
12
15
|
listAllPrinters(): Promise<DataServiceResponseData>;
|
|
13
16
|
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
14
17
|
getSendMethods(): Promise<DataServiceResponseData>;
|
|
@@ -34,6 +37,7 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
34
37
|
savePreset(preset: Preset): Promise<DataServiceResponseData>;
|
|
35
38
|
updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
36
39
|
getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
37
|
-
|
|
40
|
+
getPostalCodeRetrieval(postalCode: string, houseNumber: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
41
|
+
selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
38
42
|
private _call;
|
|
39
43
|
}
|
package/build/main-auth.js
CHANGED
|
@@ -29,6 +29,7 @@ const public_service_method_1 = require("./enum/public-service-method");
|
|
|
29
29
|
const tag_object_enum_1 = require("./enum/tag-object.enum");
|
|
30
30
|
const tag_operation_name_enum_1 = require("./enum/tag-operation-name.enum");
|
|
31
31
|
const printing_service_method_1 = require("./enum/printing-service-method");
|
|
32
|
+
const report_object_name_enum_1 = require("./enum/report-object-name.enum");
|
|
32
33
|
class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
33
34
|
constructor() {
|
|
34
35
|
super(...arguments);
|
|
@@ -55,6 +56,18 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
55
56
|
}
|
|
56
57
|
});
|
|
57
58
|
}
|
|
59
|
+
getTemplates(documentCode, defaultTemplate) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const params = {
|
|
62
|
+
documentCode: documentCode
|
|
63
|
+
};
|
|
64
|
+
let method;
|
|
65
|
+
if (!defaultTemplate) {
|
|
66
|
+
method = report_method_enum_1.ReportMethod.SelectForLov;
|
|
67
|
+
}
|
|
68
|
+
return this.selectMultiple(module_name_enum_1.ModuleName.Report, report_object_name_enum_1.ReportObjectName.CoReport, method ? method : undefined, params);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
58
71
|
listAllPrinters() {
|
|
59
72
|
const data = {
|
|
60
73
|
moduleName: module_name_enum_1.ModuleName.ReportingDocuments,
|
|
@@ -278,8 +291,23 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
278
291
|
return this.selectMultiple(module_name_enum_1.ModuleName.SimpleBaseData, master_data_object_name_enum_1.MasterDataObjectName.OrderLineSetCategory, undefined, null);
|
|
279
292
|
});
|
|
280
293
|
}
|
|
281
|
-
|
|
282
|
-
|
|
294
|
+
getPostalCodeRetrieval(postalCode, houseNumber, showLoader) {
|
|
295
|
+
const params = {
|
|
296
|
+
postalCode: postalCode,
|
|
297
|
+
houseNumber: houseNumber
|
|
298
|
+
};
|
|
299
|
+
const data = {
|
|
300
|
+
moduleName: module_name_enum_1.ModuleName.Relation,
|
|
301
|
+
methodName: general_method_enum_1.GeneralMethod.PostalCodeRetrieval,
|
|
302
|
+
parameterValues: params,
|
|
303
|
+
refCursorAsArray: true
|
|
304
|
+
};
|
|
305
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
306
|
+
}
|
|
307
|
+
selectMultiple(moduleName, objectName, operationName, parameterValues, showLoader) {
|
|
308
|
+
if (showLoader === undefined) {
|
|
309
|
+
showLoader = false;
|
|
310
|
+
}
|
|
283
311
|
const data = {
|
|
284
312
|
moduleName: moduleName,
|
|
285
313
|
objectName: objectName
|
|
@@ -290,7 +318,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
290
318
|
if (parameterValues) {
|
|
291
319
|
data.parameterValues = parameterValues;
|
|
292
320
|
}
|
|
293
|
-
return this._call(data_service_method_enum_1.DataServiceMethod.SelectMultipleObjects, data);
|
|
321
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.SelectMultipleObjects, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
294
322
|
}
|
|
295
323
|
_call(method, data, service = backend_service_name_enum_1.BackendServiceName.DataService, showLoader = false) {
|
|
296
324
|
return __awaiter(this, void 0, void 0, function* () {
|