@colijnit/mainapi 1.0.26 → 1.0.28
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/domain-name.enum.d.ts +2 -1
- package/build/enum/domain-name.enum.js +1 -0
- 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/main-api-connection.d.ts +2 -0
- package/build/main-api.d.ts +2 -0
- package/build/main-api.js +5 -0
- package/build/main-api.unit.test.js +7 -1
- package/build/main-auth.d.ts +2 -0
- package/build/main-auth.js +13 -0
- package/build/main-public.d.ts +2 -0
- package/build/main-public.js +4 -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/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/package.json +1 -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;
|
|
@@ -64,4 +64,5 @@ var DomainName;
|
|
|
64
64
|
DomainName["ArtPublication"] = "ART_PUBLICATIE";
|
|
65
65
|
DomainName["ArtPublicationSales"] = "ART_PUBLICATIE_VERK";
|
|
66
66
|
DomainName["YesNo"] = "DOM_JANEE";
|
|
67
|
+
DomainName["PriceKind"] = "DOM_TRANS_PRIJSSOORT";
|
|
67
68
|
})(DomainName = exports.DomainName || (exports.DomainName = {}));
|
|
@@ -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 = {}));
|
|
@@ -7,6 +7,7 @@ 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';
|
|
10
11
|
export declare abstract class MainApiConnection {
|
|
11
12
|
readonly showLoader: Subject<boolean>;
|
|
12
13
|
readonly connectionAborted: Subject<void>;
|
|
@@ -15,6 +16,7 @@ export declare abstract class MainApiConnection {
|
|
|
15
16
|
languageCode: string;
|
|
16
17
|
branchNr: string;
|
|
17
18
|
abstract getSequenceValue(sequenceName: SequenceName, noSequence: boolean): Promise<DataServiceResponseData>;
|
|
19
|
+
abstract getTemplates(documentCode: ReportType, defaultTemplate: boolean): Promise<DataServiceResponseData>;
|
|
18
20
|
abstract listAllPrinters(): Promise<DataServiceResponseData>;
|
|
19
21
|
abstract listPrinters(showAll: boolean): Promise<DataServiceResponseData>;
|
|
20
22
|
abstract getSendMethods(): Promise<DataServiceResponseData>;
|
package/build/main-api.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ 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';
|
|
12
13
|
export declare class MainApi {
|
|
13
14
|
readonly showLoader: Subject<boolean>;
|
|
14
15
|
readonly connectionAborted: Subject<void>;
|
|
@@ -27,6 +28,7 @@ export declare class MainApi {
|
|
|
27
28
|
connect(): Promise<boolean>;
|
|
28
29
|
logOut(): Promise<ServerResponseData>;
|
|
29
30
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
31
|
+
getDefaultTemplate(documentCode: ReportType): Promise<DataServiceResponseData>;
|
|
30
32
|
listAllPrinters(): Promise<DataServiceResponseData>;
|
|
31
33
|
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
32
34
|
getSendMethods(): Promise<DataServiceResponseData>;
|
package/build/main-api.js
CHANGED
|
@@ -53,6 +53,11 @@ class MainApi {
|
|
|
53
53
|
return this.mainApi.getSequenceValue(sequenceName, noSequence);
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
+
getDefaultTemplate(documentCode) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
return this.mainApi.getTemplates(documentCode, true);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
56
61
|
listAllPrinters() {
|
|
57
62
|
return this.mainApi.listAllPrinters();
|
|
58
63
|
}
|
|
@@ -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,9 @@ 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
|
+
}));
|
|
117
123
|
});
|
package/build/main-auth.d.ts
CHANGED
|
@@ -6,9 +6,11 @@ import { DomainName } from './enum/domain-name.enum';
|
|
|
6
6
|
import { Preset } from './model/preset.bo';
|
|
7
7
|
import { TagCategory } from './enum/tab-category.enum';
|
|
8
8
|
import { TagTreeItem } from './model/tag-tree-item.bo';
|
|
9
|
+
import { ReportType } from './enum/report-type.enum';
|
|
9
10
|
export declare class MainAuth extends MainApiConnection {
|
|
10
11
|
private _boSerializer;
|
|
11
12
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
13
|
+
getTemplates(documentCode: ReportType, defaultTemplate: boolean): Promise<DataServiceResponseData>;
|
|
12
14
|
listAllPrinters(): Promise<DataServiceResponseData>;
|
|
13
15
|
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
14
16
|
getSendMethods(): Promise<DataServiceResponseData>;
|
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,
|
package/build/main-public.d.ts
CHANGED
|
@@ -6,9 +6,11 @@ import { DomainName } from './enum/domain-name.enum';
|
|
|
6
6
|
import { TagCategory } from "./enum/tab-category.enum";
|
|
7
7
|
import { TagTreeItem } from "./model/tag-tree-item.bo";
|
|
8
8
|
import { Preset } from "./model/preset.bo";
|
|
9
|
+
import { ReportType } from './enum/report-type.enum';
|
|
9
10
|
export declare class MainPublic extends MainApiConnection {
|
|
10
11
|
protected endPoint: string;
|
|
11
12
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
13
|
+
getTemplates(documentCode: ReportType, defaultTemplate: boolean): Promise<DataServiceResponseData>;
|
|
12
14
|
listAllPrinters(): Promise<DataServiceResponseData>;
|
|
13
15
|
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
14
16
|
getSendMethods(): Promise<DataServiceResponseData>;
|
package/build/main-public.js
CHANGED
|
@@ -30,6 +30,10 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
30
30
|
return this._call(public_service_method_1.PublicServiceMethod.GetSequenceValue, data);
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
+
getTemplates(documentCode, defaultTemplate) {
|
|
34
|
+
console.warn('getTemplates not implemented');
|
|
35
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
36
|
+
}
|
|
33
37
|
listAllPrinters() {
|
|
34
38
|
console.warn('listAllPrinters not implemented');
|
|
35
39
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Branch = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class Branch extends business_object_1.BusinessObject {
|
|
6
|
+
}
|
|
7
|
+
exports.Branch = Branch;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoReportCategoryLink = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class CoReportCategoryLink extends business_object_1.BusinessObject {
|
|
6
|
+
}
|
|
7
|
+
exports.CoReportCategoryLink = CoReportCategoryLink;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoReportSjablonenDocumenten = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class CoReportSjablonenDocumenten extends business_object_1.BusinessObject {
|
|
6
|
+
}
|
|
7
|
+
exports.CoReportSjablonenDocumenten = CoReportSjablonenDocumenten;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SendMethod } from './send-method.bo';
|
|
2
|
+
import { ReportParam } from './report-param';
|
|
3
|
+
import { CoDocument } from './co-document';
|
|
4
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
5
|
+
import { CoSubReport } from '../enum/co-sub-report.bo';
|
|
6
|
+
import { CoReportSjablonenDocumenten } from './co-report-sjablonen-documenten.bo';
|
|
7
|
+
import { Branch } from './branch.bo';
|
|
8
|
+
import { CoReportCategoryLink } from './co-report-category-link.bo';
|
|
9
|
+
import { ReportCategory } from './report-category.bo';
|
|
10
|
+
export declare class CoReport extends BusinessObject {
|
|
11
|
+
reportId: number;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
templateName: string;
|
|
15
|
+
templateSourceBody: Int32Array;
|
|
16
|
+
templateCompiledBody: Int32Array;
|
|
17
|
+
fileTypeDefault: number;
|
|
18
|
+
fileTypesAvailable: number;
|
|
19
|
+
reportKind: string;
|
|
20
|
+
documentId: number;
|
|
21
|
+
sendMethod: SendMethod;
|
|
22
|
+
standard: boolean;
|
|
23
|
+
emailSubject: string;
|
|
24
|
+
documentKind: string;
|
|
25
|
+
compiledVersion: string;
|
|
26
|
+
parentReportId: number;
|
|
27
|
+
bodyTemplate: string;
|
|
28
|
+
bodyTemplateId: number;
|
|
29
|
+
isDefault: boolean;
|
|
30
|
+
templateModified: Date;
|
|
31
|
+
bodyLoaded: boolean;
|
|
32
|
+
articleGroup: string;
|
|
33
|
+
turnoverGroup: string;
|
|
34
|
+
concept: number;
|
|
35
|
+
branch: string;
|
|
36
|
+
copiesAmount: number;
|
|
37
|
+
iOneParam: string;
|
|
38
|
+
reportParameters: ReportParam[];
|
|
39
|
+
images: CoDocument[];
|
|
40
|
+
subReports: CoSubReport[];
|
|
41
|
+
documentLinksToBodyTemplate: CoReportSjablonenDocumenten[];
|
|
42
|
+
branchAvailability: Branch[];
|
|
43
|
+
categoryLinks: CoReportCategoryLink[];
|
|
44
|
+
categories: ReportCategory[];
|
|
45
|
+
userGroups: number[];
|
|
46
|
+
reportSource: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.CoReport = void 0;
|
|
13
|
+
const date_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/date-field.decorator");
|
|
14
|
+
const report_param_1 = require("./report-param");
|
|
15
|
+
const complex_array_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator");
|
|
16
|
+
const co_document_1 = require("./co-document");
|
|
17
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
18
|
+
const co_sub_report_bo_1 = require("../enum/co-sub-report.bo");
|
|
19
|
+
const co_report_sjablonen_documenten_bo_1 = require("./co-report-sjablonen-documenten.bo");
|
|
20
|
+
const branch_bo_1 = require("./branch.bo");
|
|
21
|
+
const co_report_category_link_bo_1 = require("./co-report-category-link.bo");
|
|
22
|
+
const report_category_bo_1 = require("./report-category.bo");
|
|
23
|
+
class CoReport extends business_object_1.BusinessObject {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
this.reportParameters = [];
|
|
27
|
+
this.images = [];
|
|
28
|
+
this.subReports = [];
|
|
29
|
+
this.documentLinksToBodyTemplate = [];
|
|
30
|
+
this.branchAvailability = [];
|
|
31
|
+
this.categoryLinks = [];
|
|
32
|
+
this.categories = [];
|
|
33
|
+
this.userGroups = [];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
__decorate([
|
|
37
|
+
date_field_decorator_1.DateField(),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], CoReport.prototype, "templateModified", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
complex_array_decorator_1.ComplexArray(report_param_1.ReportParam),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], CoReport.prototype, "reportParameters", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
complex_array_decorator_1.ComplexArray(co_document_1.CoDocument),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], CoReport.prototype, "images", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
complex_array_decorator_1.ComplexArray(co_sub_report_bo_1.CoSubReport),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], CoReport.prototype, "subReports", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
complex_array_decorator_1.ComplexArray(co_report_sjablonen_documenten_bo_1.CoReportSjablonenDocumenten),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], CoReport.prototype, "documentLinksToBodyTemplate", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
complex_array_decorator_1.ComplexArray(branch_bo_1.Branch),
|
|
58
|
+
__metadata("design:type", Array)
|
|
59
|
+
], CoReport.prototype, "branchAvailability", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
complex_array_decorator_1.ComplexArray(co_report_category_link_bo_1.CoReportCategoryLink),
|
|
62
|
+
__metadata("design:type", Array)
|
|
63
|
+
], CoReport.prototype, "categoryLinks", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
complex_array_decorator_1.ComplexArray(report_category_bo_1.ReportCategory),
|
|
66
|
+
__metadata("design:type", Array)
|
|
67
|
+
], CoReport.prototype, "categories", void 0);
|
|
68
|
+
exports.CoReport = CoReport;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportCategory = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class ReportCategory extends business_object_1.BusinessObject {
|
|
6
|
+
}
|
|
7
|
+
exports.ReportCategory = ReportCategory;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReportParamType } from '../enum/report-param-type.enum';
|
|
2
|
+
export declare class ReportParam {
|
|
3
|
+
reportParamId: number;
|
|
4
|
+
reportId: number;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
paramType: ReportParamType;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
field: string;
|
|
10
|
+
listRef: string;
|
|
11
|
+
dataRef: string;
|
|
12
|
+
idField: string;
|
|
13
|
+
idDisplayField: string;
|
|
14
|
+
descriptionField: string;
|
|
15
|
+
mandatory: boolean;
|
|
16
|
+
}
|