@colijnit/mainapi 254.1.1 → 254.1.3
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/data-mapping.enum.d.ts +2 -1
- package/build/enum/data-mapping.enum.js +1 -0
- package/build/enum/document-method.enum.d.ts +1 -1
- package/build/enum/document-method.enum.js +1 -1
- package/build/enum/event-notification-operation-name.enum.d.ts +2 -1
- package/build/enum/event-notification-operation-name.enum.js +1 -0
- package/build/enum/report-action.enum.d.ts +8 -0
- package/build/enum/report-action.enum.js +12 -0
- package/build/enum/report-type.enum.d.ts +3 -1
- package/build/enum/report-type.enum.js +2 -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-auth.d.ts +6 -1
- package/build/main-auth.js +52 -12
- package/build/main-public.d.ts +5 -0
- package/build/main-public.js +18 -0
- package/build/model/activity-email-request-data.d.ts +8 -0
- package/build/model/activity-email-request-data.js +6 -0
- package/build/model/email-job.d.ts +7 -0
- package/build/model/email-job.js +7 -0
- package/build/model/report-job.d.ts +5 -0
- package/build/model/report-job.js +9 -0
- package/build/model/report.bo.d.ts +11 -0
- package/build/model/report.bo.js +34 -0
- package/build/model/select-report-templates-request.d.ts +17 -0
- package/build/model/select-report-templates-request.js +6 -0
- package/package.json +2 -2
|
@@ -5,6 +5,6 @@ var DocumentMethod;
|
|
|
5
5
|
(function (DocumentMethod) {
|
|
6
6
|
DocumentMethod["MergeDocument"] = "mergeDocument";
|
|
7
7
|
DocumentMethod["SelectDocsByTableKey"] = "selectDocsByTableKey";
|
|
8
|
-
DocumentMethod["
|
|
8
|
+
DocumentMethod["DeleteDocument"] = "deleteDocument";
|
|
9
9
|
DocumentMethod["GetDocumentContent"] = "getDocumentContent";
|
|
10
10
|
})(DocumentMethod = exports.DocumentMethod || (exports.DocumentMethod = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare enum EventNotificationOperationName {
|
|
2
|
-
GetRoleEmailAddressesByWorkflowCategoryAndKey = "getRoleEmailAddressesByWorkflowCategoryAndKey"
|
|
2
|
+
GetRoleEmailAddressesByWorkflowCategoryAndKey = "getRoleEmailAddressesByWorkflowCategoryAndKey",
|
|
3
|
+
GetEmailSenderByWorkflowCategoryAndKey = "getEmailSenderByWorkflowCategoryAndKey"
|
|
3
4
|
}
|
|
@@ -4,4 +4,5 @@ exports.EventNotificationOperationName = void 0;
|
|
|
4
4
|
var EventNotificationOperationName;
|
|
5
5
|
(function (EventNotificationOperationName) {
|
|
6
6
|
EventNotificationOperationName["GetRoleEmailAddressesByWorkflowCategoryAndKey"] = "getRoleEmailAddressesByWorkflowCategoryAndKey";
|
|
7
|
+
EventNotificationOperationName["GetEmailSenderByWorkflowCategoryAndKey"] = "getEmailSenderByWorkflowCategoryAndKey";
|
|
7
8
|
})(EventNotificationOperationName = exports.EventNotificationOperationName || (exports.EventNotificationOperationName = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportAction = void 0;
|
|
4
|
+
var ReportAction;
|
|
5
|
+
(function (ReportAction) {
|
|
6
|
+
ReportAction[ReportAction["All"] = -1] = "All";
|
|
7
|
+
ReportAction[ReportAction["Print"] = 1] = "Print";
|
|
8
|
+
ReportAction[ReportAction["Email"] = 2] = "Email";
|
|
9
|
+
ReportAction[ReportAction["Edi"] = 3] = "Edi";
|
|
10
|
+
ReportAction[ReportAction["Preview"] = 4] = "Preview";
|
|
11
|
+
ReportAction[ReportAction["Text"] = 5] = "Text";
|
|
12
|
+
})(ReportAction = exports.ReportAction || (exports.ReportAction = {}));
|
|
@@ -25,6 +25,7 @@ export declare enum ReportType {
|
|
|
25
25
|
Quotation = "Offerte",
|
|
26
26
|
Receipt = "Kassabon",
|
|
27
27
|
RegisterBreakdown = "Kassaverantwoording",
|
|
28
|
+
RemarkMessage = "Opmerking bericht",
|
|
28
29
|
ReminderDelivery = "Aanmaninglevertijd",
|
|
29
30
|
ReminderOrderForm = "Herinneringsbestelbon",
|
|
30
31
|
ReservationSticker = "Reserveringssticker",
|
|
@@ -41,5 +42,6 @@ export declare enum ReportType {
|
|
|
41
42
|
AbsenceNoWorkHours = "Absence No WorkingHours Email",
|
|
42
43
|
AbsenceEndTemp = "Absence Ending TempContracts Email",
|
|
43
44
|
CompositeAbsence = "Composite Absence Email",
|
|
44
|
-
WorkhoursPerWeekChanged = "Workhours Per Week Changed Email"
|
|
45
|
+
WorkhoursPerWeekChanged = "Workhours Per Week Changed Email",
|
|
46
|
+
WorkMessage = "Werkzaamheid bericht"
|
|
45
47
|
}
|
|
@@ -29,6 +29,7 @@ var ReportType;
|
|
|
29
29
|
ReportType["Quotation"] = "Offerte";
|
|
30
30
|
ReportType["Receipt"] = "Kassabon";
|
|
31
31
|
ReportType["RegisterBreakdown"] = "Kassaverantwoording";
|
|
32
|
+
ReportType["RemarkMessage"] = "Opmerking bericht";
|
|
32
33
|
ReportType["ReminderDelivery"] = "Aanmaninglevertijd";
|
|
33
34
|
ReportType["ReminderOrderForm"] = "Herinneringsbestelbon";
|
|
34
35
|
ReportType["ReservationSticker"] = "Reserveringssticker";
|
|
@@ -46,4 +47,5 @@ var ReportType;
|
|
|
46
47
|
ReportType["AbsenceEndTemp"] = "Absence Ending TempContracts Email";
|
|
47
48
|
ReportType["CompositeAbsence"] = "Composite Absence Email";
|
|
48
49
|
ReportType["WorkhoursPerWeekChanged"] = "Workhours Per Week Changed Email";
|
|
50
|
+
ReportType["WorkMessage"] = "Werkzaamheid bericht";
|
|
49
51
|
})(ReportType = exports.ReportType || (exports.ReportType = {}));
|
|
@@ -12,6 +12,8 @@ import { ModuleName } from './enum/module-name.enum';
|
|
|
12
12
|
import { TableName } from "./enum/table-name.enum";
|
|
13
13
|
import { CoDocument } from "./model/co-document";
|
|
14
14
|
import { Activity } from "./model/activity.bo";
|
|
15
|
+
import { SelectReportTemplatesRequest } from "./model/select-report-templates-request";
|
|
16
|
+
import { EmailJob } from "./model/email-job";
|
|
15
17
|
export declare abstract class MainApiConnection {
|
|
16
18
|
readonly showLoader: Subject<boolean>;
|
|
17
19
|
readonly connectionAborted: Subject<void>;
|
|
@@ -63,6 +65,9 @@ export declare abstract class MainApiConnection {
|
|
|
63
65
|
abstract fireGenericTrigger(workFlowProcessId: number, genericTransitionId: number, relationId: number): Promise<DataServiceResponseData>;
|
|
64
66
|
abstract lockTask(id: number): Promise<DataServiceResponseData>;
|
|
65
67
|
abstract getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<DataServiceResponseData>;
|
|
68
|
+
abstract getEmailSenderByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<DataServiceResponseData>;
|
|
69
|
+
abstract getReportTemplates(reportTemplateRequest: SelectReportTemplatesRequest): Promise<DataServiceResponseData>;
|
|
70
|
+
abstract emailReport(printJob: EmailJob): Promise<DataServiceResponseData>;
|
|
66
71
|
abstract getWorkflowProcessInfoPerStatus(workflowCategoryName: string): Promise<DataServiceResponseData>;
|
|
67
72
|
abstract selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
68
73
|
protected endPoint: string;
|
package/build/main-api.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ import { TableName } from "./enum/table-name.enum";
|
|
|
15
15
|
import { CoDocument } from "./model/co-document";
|
|
16
16
|
import { Activity } from "./model/activity.bo";
|
|
17
17
|
import { LoginResponse } from "@colijnit/ioneconnector/build/model/login-response";
|
|
18
|
+
import { SelectReportTemplatesRequest } from "./model/select-report-templates-request";
|
|
19
|
+
import { EmailJob } from "./model/email-job";
|
|
18
20
|
export declare class MainApi {
|
|
19
21
|
readonly showLoader: Subject<boolean>;
|
|
20
22
|
readonly connectionAborted: Subject<void>;
|
|
@@ -75,6 +77,9 @@ export declare class MainApi {
|
|
|
75
77
|
deleteActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
76
78
|
getTaskCategories(): Promise<DataServiceResponseData>;
|
|
77
79
|
getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<DataServiceResponseData>;
|
|
80
|
+
getEmailSenderByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<DataServiceResponseData>;
|
|
81
|
+
getReportTemplates(reportTemplateRequest: SelectReportTemplatesRequest): Promise<DataServiceResponseData>;
|
|
82
|
+
emailReport(printJob: EmailJob): Promise<DataServiceResponseData>;
|
|
78
83
|
getWorkflowProcessInfoPerStatus(workflowCategoryName: string): Promise<DataServiceResponseData>;
|
|
79
84
|
fireTrigger(workFlowProcessId: number, sequence: number, triggerId: number): Promise<DataServiceResponseData>;
|
|
80
85
|
fireGenericTrigger(workFlowProcessId: number, genericTransitionId: number, relationId: number): Promise<DataServiceResponseData>;
|
package/build/main-api.js
CHANGED
|
@@ -199,6 +199,19 @@ class MainApi {
|
|
|
199
199
|
getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory, key) {
|
|
200
200
|
return this.mainApi.getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory, key);
|
|
201
201
|
}
|
|
202
|
+
getEmailSenderByWorkflowCategoryAndKey(workflowCategory, key) {
|
|
203
|
+
return this.mainApi.getEmailSenderByWorkflowCategoryAndKey(workflowCategory, key);
|
|
204
|
+
}
|
|
205
|
+
getReportTemplates(reportTemplateRequest) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
return this.mainApi.getReportTemplates(reportTemplateRequest);
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
emailReport(printJob) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
return this.mainApi.emailReport(printJob);
|
|
213
|
+
});
|
|
214
|
+
}
|
|
202
215
|
getWorkflowProcessInfoPerStatus(workflowCategoryName) {
|
|
203
216
|
return __awaiter(this, void 0, void 0, function* () {
|
|
204
217
|
return this.mainApi.getWorkflowProcessInfoPerStatus(workflowCategoryName);
|
package/build/main-auth.d.ts
CHANGED
|
@@ -11,8 +11,11 @@ import { ReportType } from './enum/report-type.enum';
|
|
|
11
11
|
import { TableName } from "./enum/table-name.enum";
|
|
12
12
|
import { CoDocument } from "./model/co-document";
|
|
13
13
|
import { Activity } from "./model/activity.bo";
|
|
14
|
+
import { EmailJob } from "./model/email-job";
|
|
15
|
+
import { SelectReportTemplatesRequest } from "./model/select-report-templates-request";
|
|
14
16
|
export declare class MainAuth extends MainApiConnection {
|
|
15
17
|
private _boSerializer;
|
|
18
|
+
private _boFactory;
|
|
16
19
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
17
20
|
getTemplates(documentCode: ReportType, defaultTemplate: boolean): Promise<DataServiceResponseData>;
|
|
18
21
|
listAllPrinters(): Promise<DataServiceResponseData>;
|
|
@@ -52,12 +55,14 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
52
55
|
insertActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
53
56
|
updateActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
54
57
|
deleteActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
55
|
-
upsertActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
56
58
|
lockTask(id: number): Promise<DataServiceResponseData>;
|
|
57
59
|
fireTrigger(workFlowProcessId: number, sequence: number, triggerId: number): Promise<DataServiceResponseData>;
|
|
58
60
|
fireGenericTrigger(workFlowProcessId: number, genericTransitionId: number, relationId: number): Promise<DataServiceResponseData>;
|
|
59
61
|
getTaskCategories(): Promise<DataServiceResponseData>;
|
|
60
62
|
getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<DataServiceResponseData>;
|
|
63
|
+
getEmailSenderByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<DataServiceResponseData>;
|
|
64
|
+
getReportTemplates(reportTemplateRequest: SelectReportTemplatesRequest): Promise<DataServiceResponseData>;
|
|
65
|
+
emailReport(printJob: EmailJob): Promise<DataServiceResponseData>;
|
|
61
66
|
getWorkflowProcessInfoPerStatus(workflowCategory: string): Promise<DataServiceResponseData>;
|
|
62
67
|
selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
63
68
|
private _call;
|
package/build/main-auth.js
CHANGED
|
@@ -35,10 +35,12 @@ const activities_operation_name_enum_1 = require("./enum/activities-operation-na
|
|
|
35
35
|
const activity_type_1 = require("./enum/activity-type");
|
|
36
36
|
const activities_object_name_enum_1 = require("./enum/activities-object-name.enum");
|
|
37
37
|
const event_notification_operation_name_enum_1 = require("./enum/event-notification-operation-name.enum");
|
|
38
|
+
const business_object_factory_1 = require("@colijnit/ioneconnector/build/service/business-object-factory");
|
|
38
39
|
class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
39
40
|
constructor() {
|
|
40
41
|
super(...arguments);
|
|
41
42
|
this._boSerializer = new business_object_serializer_1.BusinessObjectSerializer();
|
|
43
|
+
this._boFactory = new business_object_factory_1.BusinessObjectFactory();
|
|
42
44
|
}
|
|
43
45
|
getSequenceValue(sequenceName, noSequence = false) {
|
|
44
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -134,7 +136,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
134
136
|
const inputParams = {
|
|
135
137
|
key: key,
|
|
136
138
|
table: table,
|
|
137
|
-
document: document
|
|
139
|
+
document: this._boFactory.prepareBusinessObjectForSend(document)
|
|
138
140
|
};
|
|
139
141
|
const data = {
|
|
140
142
|
moduleName: module_name_enum_1.ModuleName.General,
|
|
@@ -150,7 +152,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
150
152
|
};
|
|
151
153
|
const data = {
|
|
152
154
|
moduleName: module_name_enum_1.ModuleName.General,
|
|
153
|
-
methodName: document_method_enum_1.DocumentMethod.
|
|
155
|
+
methodName: document_method_enum_1.DocumentMethod.DeleteDocument,
|
|
154
156
|
refCursorAsArray: true,
|
|
155
157
|
parameterValues: params
|
|
156
158
|
};
|
|
@@ -426,7 +428,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
426
428
|
moduleName: module_name_enum_1.ModuleName.Activities,
|
|
427
429
|
objectName: activityTypeString,
|
|
428
430
|
refCursorAsArray: true,
|
|
429
|
-
object: activity.getBaseContent()
|
|
431
|
+
object: this._boFactory.prepareBusinessObjectForSend(activity.getBaseContent())
|
|
430
432
|
};
|
|
431
433
|
return this._call(data_service_method_enum_1.DataServiceMethod.InsertObject, data);
|
|
432
434
|
}
|
|
@@ -456,7 +458,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
456
458
|
moduleName: module_name_enum_1.ModuleName.Activities,
|
|
457
459
|
objectName: activityTypeString,
|
|
458
460
|
refCursorAsArray: true,
|
|
459
|
-
object: activity.getBaseContent()
|
|
461
|
+
object: this._boFactory.prepareBusinessObjectForSend(activity.getBaseContent())
|
|
460
462
|
};
|
|
461
463
|
return this._call(data_service_method_enum_1.DataServiceMethod.UpdateObject, data);
|
|
462
464
|
}
|
|
@@ -495,14 +497,6 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
495
497
|
};
|
|
496
498
|
return this._call(data_service_method_enum_1.DataServiceMethod.DeleteObject, data);
|
|
497
499
|
}
|
|
498
|
-
upsertActivity(activity) {
|
|
499
|
-
if (activity.isNew) {
|
|
500
|
-
return this.insertActivity(activity);
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
return this.updateActivity(activity);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
500
|
lockTask(id) {
|
|
507
501
|
const data = {
|
|
508
502
|
moduleName: module_name_enum_1.ModuleName.Activities,
|
|
@@ -564,6 +558,52 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
564
558
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
565
559
|
});
|
|
566
560
|
}
|
|
561
|
+
getEmailSenderByWorkflowCategoryAndKey(workflowCategory, key) {
|
|
562
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
563
|
+
const params = {
|
|
564
|
+
workflowCategory: workflowCategory,
|
|
565
|
+
key: key + ""
|
|
566
|
+
};
|
|
567
|
+
const data = {
|
|
568
|
+
moduleName: module_name_enum_1.ModuleName.Notification,
|
|
569
|
+
methodName: event_notification_operation_name_enum_1.EventNotificationOperationName.GetEmailSenderByWorkflowCategoryAndKey,
|
|
570
|
+
refCursorAsArray: true,
|
|
571
|
+
parameterValues: params
|
|
572
|
+
};
|
|
573
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
getReportTemplates(reportTemplateRequest) {
|
|
577
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
+
const params = {
|
|
579
|
+
includeBody: reportTemplateRequest.includeBody,
|
|
580
|
+
documentId: reportTemplateRequest.documentId,
|
|
581
|
+
documentCode: reportTemplateRequest.documentCode,
|
|
582
|
+
sendMethod: reportTemplateRequest.sendMethod,
|
|
583
|
+
bodyTemplatesOnly: reportTemplateRequest.bodyTemplatesOnly,
|
|
584
|
+
includeLegacy: reportTemplateRequest.includeLegacy,
|
|
585
|
+
templateLink: reportTemplateRequest.templateLink,
|
|
586
|
+
branchNr: reportTemplateRequest.branchNr,
|
|
587
|
+
relationId: reportTemplateRequest.relationId,
|
|
588
|
+
lite: reportTemplateRequest.lite,
|
|
589
|
+
fixed: reportTemplateRequest.fixed,
|
|
590
|
+
name: reportTemplateRequest.name,
|
|
591
|
+
management: reportTemplateRequest.management
|
|
592
|
+
};
|
|
593
|
+
const data = {
|
|
594
|
+
moduleName: module_name_enum_1.ModuleName.Report,
|
|
595
|
+
objectName: report_object_name_enum_1.ReportObjectName.CoReport,
|
|
596
|
+
refCursorAsArray: true,
|
|
597
|
+
parameterValues: params
|
|
598
|
+
};
|
|
599
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.SelectMultipleObjects, data);
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
emailReport(printJob) {
|
|
603
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
604
|
+
return this._call(printing_service_method_1.PrintServiceMethod.SendEmail, printJob, backend_service_name_enum_1.BackendServiceName.PrintingService);
|
|
605
|
+
});
|
|
606
|
+
}
|
|
567
607
|
getWorkflowProcessInfoPerStatus(workflowCategory) {
|
|
568
608
|
return __awaiter(this, void 0, void 0, function* () {
|
|
569
609
|
const params = {
|
package/build/main-public.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import { ModuleName } from './enum/module-name.enum';
|
|
|
11
11
|
import { TableName } from "./enum/table-name.enum";
|
|
12
12
|
import { CoDocument } from "./model/co-document";
|
|
13
13
|
import { Activity } from "./model/activity.bo";
|
|
14
|
+
import { SelectReportTemplatesRequest } from "./model/select-report-templates-request";
|
|
15
|
+
import { EmailJob } from "./model/email-job";
|
|
14
16
|
export declare class MainPublic extends MainApiConnection {
|
|
15
17
|
protected endPoint: string;
|
|
16
18
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -57,6 +59,9 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
57
59
|
fireTrigger(workFlowProcessId: number, sequence: number, triggerId: number): Promise<DataServiceResponseData>;
|
|
58
60
|
fireGenericTrigger(workFlowProcessId: number, genericTransitionId: number, relationId: number): Promise<DataServiceResponseData>;
|
|
59
61
|
getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<DataServiceResponseData>;
|
|
62
|
+
getEmailSenderByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<DataServiceResponseData>;
|
|
63
|
+
getReportTemplates(reportTemplateRequest: SelectReportTemplatesRequest): Promise<DataServiceResponseData>;
|
|
64
|
+
emailReport(printJob: EmailJob): Promise<DataServiceResponseData>;
|
|
60
65
|
getWorkflowProcessInfoPerStatus(workflowCategoryName: string): Promise<DataServiceResponseData>;
|
|
61
66
|
selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
62
67
|
private createServiceRequestData;
|
package/build/main-public.js
CHANGED
|
@@ -236,6 +236,24 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
236
236
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
|
+
getEmailSenderByWorkflowCategoryAndKey(workflowCategory, key) {
|
|
240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
+
console.warn('getEmailSenderByWorkflowCategoryAndKey not implemented');
|
|
242
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
getReportTemplates(reportTemplateRequest) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
console.warn('getReportTemplates not implemented');
|
|
248
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
emailReport(printJob) {
|
|
252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
253
|
+
console.warn('emailReport not implemented');
|
|
254
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
255
|
+
});
|
|
256
|
+
}
|
|
239
257
|
getWorkflowProcessInfoPerStatus(workflowCategoryName) {
|
|
240
258
|
return __awaiter(this, void 0, void 0, function* () {
|
|
241
259
|
console.warn('getWorkflowProcessInfoPerStatus not implemented');
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
import { ReportAction } from "../enum/report-action.enum";
|
|
3
|
+
export declare class Report extends BusinessObject {
|
|
4
|
+
reportId: number;
|
|
5
|
+
name: string;
|
|
6
|
+
sendMethod: ReportAction;
|
|
7
|
+
description: string;
|
|
8
|
+
emailSubject: string;
|
|
9
|
+
isDefault: boolean;
|
|
10
|
+
getId(): number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.Report = void 0;
|
|
13
|
+
const business_object_data_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/business-object-data.decorator");
|
|
14
|
+
const data_mapping_enum_1 = require("../enum/data-mapping.enum");
|
|
15
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
16
|
+
const boolean_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/boolean.decorator");
|
|
17
|
+
let Report = class Report extends business_object_1.BusinessObject {
|
|
18
|
+
getId() {
|
|
19
|
+
return this.reportId;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, boolean_decorator_1.BooleanText)(),
|
|
24
|
+
__metadata("design:type", Boolean)
|
|
25
|
+
], Report.prototype, "isDefault", void 0);
|
|
26
|
+
Report = __decorate([
|
|
27
|
+
(0, business_object_data_decorator_1.BusinessObjectData)({
|
|
28
|
+
name: "CoReport",
|
|
29
|
+
mapping: data_mapping_enum_1.DataMapping.Report,
|
|
30
|
+
codeField: "reportId",
|
|
31
|
+
descriptionField: "name"
|
|
32
|
+
})
|
|
33
|
+
], Report);
|
|
34
|
+
exports.Report = Report;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReportType } from "../enum/report-type.enum";
|
|
2
|
+
import { SendMethodType } from "../enum/send-method-type.enum";
|
|
3
|
+
export declare class SelectReportTemplatesRequest {
|
|
4
|
+
includeBody: boolean;
|
|
5
|
+
documentId: number;
|
|
6
|
+
documentCode: ReportType;
|
|
7
|
+
sendMethod: SendMethodType;
|
|
8
|
+
bodyTemplatesOnly: boolean;
|
|
9
|
+
includeLegacy: boolean;
|
|
10
|
+
templateLink: number;
|
|
11
|
+
branchNr: string;
|
|
12
|
+
relationId: number;
|
|
13
|
+
lite: boolean;
|
|
14
|
+
fixed: boolean;
|
|
15
|
+
name: string;
|
|
16
|
+
management: boolean;
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/mainapi",
|
|
3
|
-
"version": "254.1.
|
|
3
|
+
"version": "254.1.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "grunt clean && tsc",
|
|
6
6
|
"browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/jest": "^24.0.13",
|
|
31
|
-
"@colijnit/ioneconnector": "254.1.
|
|
31
|
+
"@colijnit/ioneconnector": "254.1.3",
|
|
32
32
|
"grunt": "^1.0.3",
|
|
33
33
|
"grunt-clean": "^0.4.0",
|
|
34
34
|
"grunt-contrib-clean": "^1.1.0",
|