@colijnit/mainapi 1.0.29 → 1.0.31
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/activities-object-name.enum.d.ts +3 -0
- package/build/enum/activities-object-name.enum.js +7 -0
- package/build/enum/activities-operation-name.enum.d.ts +5 -0
- package/build/enum/activities-operation-name.enum.js +9 -0
- package/build/enum/activity-type.d.ts +9 -0
- package/build/enum/activity-type.js +13 -0
- package/build/enum/document-method.enum.d.ts +6 -0
- package/build/enum/document-method.enum.js +10 -0
- package/build/enum/ione-module-name.enum.d.ts +39 -0
- package/build/enum/ione-module-name.enum.js +55 -0
- package/build/enum/module-name.enum.d.ts +2 -1
- package/build/enum/module-name.enum.js +1 -0
- package/build/enum/module-navigation-link.d.ts +5 -0
- package/build/enum/module-navigation-link.js +2 -0
- package/build/enum/relation-kind.d.ts +10 -0
- package/build/enum/relation-kind.js +14 -0
- package/build/enum/relman-complete-name.d.ts +5 -0
- package/build/enum/relman-complete-name.js +2 -0
- package/build/enum/send-method-type.enum.d.ts +2 -1
- package/build/enum/send-method-type.enum.js +1 -0
- package/build/enum/transaction-kind.d.ts +13 -0
- package/build/enum/transaction-kind.js +17 -0
- package/build/enum/workflow-category.enum.d.ts +18 -0
- package/build/enum/workflow-category.enum.js +22 -0
- package/build/enum/workflow-trigger-type.enum.d.ts +8 -0
- package/build/enum/workflow-trigger-type.enum.js +12 -0
- package/build/main-api-connection.d.ts +13 -0
- package/build/main-api.d.ts +13 -0
- package/build/main-api.js +32 -0
- package/build/main-auth.d.ts +13 -0
- package/build/main-auth.js +159 -0
- package/build/main-public.d.ts +13 -0
- package/build/main-public.js +42 -0
- package/build/model/activity.bo.d.ts +58 -0
- package/build/model/activity.bo.js +484 -0
- package/build/model/co-document.d.ts +2 -0
- package/build/model/co-document.js +4 -0
- package/build/model/form-question-response.bo.d.ts +10 -0
- package/build/model/form-question-response.bo.js +31 -0
- package/build/model/form.bo.d.ts +16 -0
- package/build/model/form.bo.js +13 -0
- package/build/model/relation-small-object.bo.d.ts +28 -0
- package/build/model/relation-small-object.bo.js +63 -0
- package/build/model/remark.bo.d.ts +17 -0
- package/build/model/remark.bo.js +52 -0
- package/build/model/task.bo.d.ts +83 -0
- package/build/model/task.bo.js +257 -0
- package/build/model/transition.bo.d.ts +5 -0
- package/build/model/transition.bo.js +21 -0
- package/build/model/work.bo.d.ts +19 -0
- package/build/model/work.bo.js +53 -0
- package/build/model/workflow-generic-transition.bo.d.ts +22 -0
- package/build/model/workflow-generic-transition.bo.js +28 -0
- package/build/model/workflow-trigger.bo.d.ts +44 -0
- package/build/model/workflow-trigger.bo.js +52 -0
- package/build/model/workflow.bo.d.ts +36 -0
- package/build/model/workflow.bo.js +151 -0
- package/build/utils/time-utils.d.ts +6 -0
- package/build/utils/time-utils.js +44 -0
- package/package.json +1 -1
package/build/main-auth.js
CHANGED
|
@@ -30,6 +30,9 @@ 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
32
|
const report_object_name_enum_1 = require("./enum/report-object-name.enum");
|
|
33
|
+
const document_method_enum_1 = require("./enum/document-method.enum");
|
|
34
|
+
const activities_operation_name_enum_1 = require("./enum/activities-operation-name.enum");
|
|
35
|
+
const activity_type_1 = require("./enum/activity-type");
|
|
33
36
|
class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
34
37
|
constructor() {
|
|
35
38
|
super(...arguments);
|
|
@@ -106,6 +109,51 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
106
109
|
};
|
|
107
110
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
108
111
|
}
|
|
112
|
+
loadDocuments(key, table) {
|
|
113
|
+
const data = {
|
|
114
|
+
key: key,
|
|
115
|
+
table: table
|
|
116
|
+
};
|
|
117
|
+
return this.selectMultiple(module_name_enum_1.ModuleName.General, "CoDocument", document_method_enum_1.DocumentMethod.SelectDocsByTableKey, data);
|
|
118
|
+
}
|
|
119
|
+
loadDocumentContent(docId) {
|
|
120
|
+
const params = {
|
|
121
|
+
docId: docId
|
|
122
|
+
};
|
|
123
|
+
const data = {
|
|
124
|
+
moduleName: module_name_enum_1.ModuleName.Activities,
|
|
125
|
+
methodName: document_method_enum_1.DocumentMethod.GetDocumentContent,
|
|
126
|
+
refCursorAsArray: true,
|
|
127
|
+
parameterValues: params
|
|
128
|
+
};
|
|
129
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
130
|
+
}
|
|
131
|
+
upsertDocument(key, table, document) {
|
|
132
|
+
const inputParams = {
|
|
133
|
+
key: key,
|
|
134
|
+
table: table,
|
|
135
|
+
document: document
|
|
136
|
+
};
|
|
137
|
+
const data = {
|
|
138
|
+
moduleName: module_name_enum_1.ModuleName.General,
|
|
139
|
+
methodName: document_method_enum_1.DocumentMethod.MergeDocument,
|
|
140
|
+
refCursorAsArray: true,
|
|
141
|
+
parameterValues: inputParams
|
|
142
|
+
};
|
|
143
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
144
|
+
}
|
|
145
|
+
deleteDocument(documentId) {
|
|
146
|
+
const params = {
|
|
147
|
+
documentId: documentId
|
|
148
|
+
};
|
|
149
|
+
const data = {
|
|
150
|
+
moduleName: module_name_enum_1.ModuleName.General,
|
|
151
|
+
methodName: document_method_enum_1.DocumentMethod.DeleteTransactionLine,
|
|
152
|
+
refCursorAsArray: true,
|
|
153
|
+
parameterValues: params
|
|
154
|
+
};
|
|
155
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService);
|
|
156
|
+
}
|
|
109
157
|
getCurrencies(active = true) {
|
|
110
158
|
if (active) {
|
|
111
159
|
const params = {
|
|
@@ -304,6 +352,117 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
304
352
|
};
|
|
305
353
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
306
354
|
}
|
|
355
|
+
getHistoricActivities(table, key) {
|
|
356
|
+
const params = {
|
|
357
|
+
table: table,
|
|
358
|
+
key: key
|
|
359
|
+
};
|
|
360
|
+
const data = {
|
|
361
|
+
moduleName: module_name_enum_1.ModuleName.Activities,
|
|
362
|
+
methodName: activities_operation_name_enum_1.ActivitiesOperationName.GetHistoricActivities,
|
|
363
|
+
refCursorAsArray: true,
|
|
364
|
+
parameterValues: params
|
|
365
|
+
};
|
|
366
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
367
|
+
}
|
|
368
|
+
getComponentActivities(table, key) {
|
|
369
|
+
const params = {
|
|
370
|
+
table: table,
|
|
371
|
+
key: key
|
|
372
|
+
};
|
|
373
|
+
const data = {
|
|
374
|
+
moduleName: module_name_enum_1.ModuleName.Activities,
|
|
375
|
+
methodName: activities_operation_name_enum_1.ActivitiesOperationName.GetComponentActivities,
|
|
376
|
+
refCursorAsArray: true,
|
|
377
|
+
parameterValues: params
|
|
378
|
+
};
|
|
379
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
380
|
+
}
|
|
381
|
+
getComponentActivitiesWithoutRelationFiltering(table, key) {
|
|
382
|
+
const params = {
|
|
383
|
+
table: table,
|
|
384
|
+
key: key
|
|
385
|
+
};
|
|
386
|
+
const data = {
|
|
387
|
+
moduleName: module_name_enum_1.ModuleName.Activities,
|
|
388
|
+
methodName: activities_operation_name_enum_1.ActivitiesOperationName.GetComponentActivitiesWithoutRelationFiltering,
|
|
389
|
+
refCursorAsArray: true,
|
|
390
|
+
parameterValues: params
|
|
391
|
+
};
|
|
392
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
393
|
+
}
|
|
394
|
+
insertActivity(activity) {
|
|
395
|
+
const params = {};
|
|
396
|
+
switch (activity.activityType) {
|
|
397
|
+
case activity_type_1.ActivityType.Remark:
|
|
398
|
+
params.remarkDTO = activity.getBaseContent();
|
|
399
|
+
case activity_type_1.ActivityType.WorkflowStatus:
|
|
400
|
+
params.workflow = activity.getBaseContent();
|
|
401
|
+
case activity_type_1.ActivityType.Work:
|
|
402
|
+
params.workDTO = activity.getBaseContent();
|
|
403
|
+
case activity_type_1.ActivityType.Task:
|
|
404
|
+
case activity_type_1.ActivityType.WorkflowTask:
|
|
405
|
+
params.dto = activity.getBaseContent();
|
|
406
|
+
case activity_type_1.ActivityType.Form:
|
|
407
|
+
params.form = activity.getBaseContent();
|
|
408
|
+
}
|
|
409
|
+
;
|
|
410
|
+
const data = {
|
|
411
|
+
moduleName: module_name_enum_1.ModuleName.Activities,
|
|
412
|
+
objectName: activity.activityType,
|
|
413
|
+
refCursorAsArray: true,
|
|
414
|
+
parameterValues: params
|
|
415
|
+
};
|
|
416
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.InsertObject, data);
|
|
417
|
+
}
|
|
418
|
+
updateActivity(activity) {
|
|
419
|
+
const params = {};
|
|
420
|
+
switch (activity.activityType) {
|
|
421
|
+
case activity_type_1.ActivityType.Remark:
|
|
422
|
+
params.remarkDTO = activity.getBaseContent();
|
|
423
|
+
case activity_type_1.ActivityType.WorkflowStatus:
|
|
424
|
+
params.workflow = activity.getBaseContent();
|
|
425
|
+
case activity_type_1.ActivityType.Work:
|
|
426
|
+
params.workDTO = activity.getBaseContent();
|
|
427
|
+
case activity_type_1.ActivityType.Task:
|
|
428
|
+
case activity_type_1.ActivityType.WorkflowTask:
|
|
429
|
+
params.dto = activity.getBaseContent();
|
|
430
|
+
case activity_type_1.ActivityType.Form:
|
|
431
|
+
params.form = activity.getBaseContent();
|
|
432
|
+
}
|
|
433
|
+
;
|
|
434
|
+
const data = {
|
|
435
|
+
moduleName: module_name_enum_1.ModuleName.Activities,
|
|
436
|
+
objectName: activity.activityType,
|
|
437
|
+
refCursorAsArray: true,
|
|
438
|
+
parameterValues: params
|
|
439
|
+
};
|
|
440
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.UpdateObject, data);
|
|
441
|
+
}
|
|
442
|
+
deleteActivity(activity) {
|
|
443
|
+
const params = {};
|
|
444
|
+
switch (activity.activityType) {
|
|
445
|
+
case activity_type_1.ActivityType.Remark:
|
|
446
|
+
params.remarkId = activity.getId();
|
|
447
|
+
case activity_type_1.ActivityType.WorkflowStatus:
|
|
448
|
+
params.workflowId = activity.getId();
|
|
449
|
+
case activity_type_1.ActivityType.Work:
|
|
450
|
+
params.workId = activity.getId();
|
|
451
|
+
case activity_type_1.ActivityType.Task:
|
|
452
|
+
case activity_type_1.ActivityType.WorkflowTask:
|
|
453
|
+
params.taskId = activity.getId();
|
|
454
|
+
case activity_type_1.ActivityType.Form:
|
|
455
|
+
params.formId = activity.getId();
|
|
456
|
+
}
|
|
457
|
+
;
|
|
458
|
+
const data = {
|
|
459
|
+
moduleName: module_name_enum_1.ModuleName.Activities,
|
|
460
|
+
objectName: activity.activityType,
|
|
461
|
+
refCursorAsArray: true,
|
|
462
|
+
parameterValues: params
|
|
463
|
+
};
|
|
464
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.DeleteObject, data);
|
|
465
|
+
}
|
|
307
466
|
selectMultiple(moduleName, objectName, operationName, parameterValues, showLoader) {
|
|
308
467
|
if (showLoader === undefined) {
|
|
309
468
|
showLoader = false;
|
package/build/main-public.d.ts
CHANGED
|
@@ -8,6 +8,9 @@ import { TagTreeItem } from "./model/tag-tree-item.bo";
|
|
|
8
8
|
import { Preset } from "./model/preset.bo";
|
|
9
9
|
import { ReportType } from './enum/report-type.enum';
|
|
10
10
|
import { ModuleName } from './enum/module-name.enum';
|
|
11
|
+
import { TableName } from "./enum/table-name.enum";
|
|
12
|
+
import { CoDocument } from "./model/co-document";
|
|
13
|
+
import { Activity } from "./model/activity.bo";
|
|
11
14
|
export declare class MainPublic extends MainApiConnection {
|
|
12
15
|
protected endPoint: string;
|
|
13
16
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -16,6 +19,10 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
16
19
|
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
17
20
|
getSendMethods(): Promise<DataServiceResponseData>;
|
|
18
21
|
getDocumentContent(id: number, thumbnail: boolean): Promise<DataServiceResponseData>;
|
|
22
|
+
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
23
|
+
loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
24
|
+
upsertDocument(key: string, table: TableName, document: CoDocument): Promise<DataServiceResponseData>;
|
|
25
|
+
deleteDocument(documentId: number): Promise<DataServiceResponseData>;
|
|
19
26
|
getInternalParameterValue(param: InternalParam): Promise<DataServiceResponseData>;
|
|
20
27
|
getPackageStickerPrintLayouts(): Promise<DataServiceResponseData>;
|
|
21
28
|
getCurrencies(active?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -38,6 +45,12 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
38
45
|
updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
39
46
|
getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
40
47
|
getPostalCodeRetrieval(postalCode: string, houseNumber: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
48
|
+
getHistoricActivities(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
49
|
+
getComponentActivities(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
50
|
+
getComponentActivitiesWithoutRelationFiltering(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
51
|
+
insertActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
52
|
+
updateActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
53
|
+
deleteActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
41
54
|
selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
42
55
|
private createServiceRequestData;
|
|
43
56
|
private _call;
|
package/build/main-public.js
CHANGED
|
@@ -50,6 +50,24 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
50
50
|
console.warn('getDocumentContent not implemented');
|
|
51
51
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
52
52
|
}
|
|
53
|
+
loadDocuments(key, table) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
console.warn('loadDocuments not implemented');
|
|
56
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
loadDocumentContent(docId) {
|
|
60
|
+
console.warn('loadDocumentContent not implemented');
|
|
61
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
62
|
+
}
|
|
63
|
+
upsertDocument(key, table, document) {
|
|
64
|
+
console.warn('upsertDocument not implemented');
|
|
65
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
66
|
+
}
|
|
67
|
+
deleteDocument(documentId) {
|
|
68
|
+
console.warn('deleteDocument not implemented');
|
|
69
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
70
|
+
}
|
|
53
71
|
getInternalParameterValue(param) {
|
|
54
72
|
console.warn('getInternalParameterValue not implemented');
|
|
55
73
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
@@ -162,6 +180,30 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
162
180
|
console.warn('getPostalCodeRetrieval not implemented');
|
|
163
181
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
164
182
|
}
|
|
183
|
+
getHistoricActivities(table, key) {
|
|
184
|
+
console.warn('getHistoricActivities not implemented');
|
|
185
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
186
|
+
}
|
|
187
|
+
getComponentActivities(table, key) {
|
|
188
|
+
console.warn('GetComponentActivities not implemented');
|
|
189
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
190
|
+
}
|
|
191
|
+
getComponentActivitiesWithoutRelationFiltering(table, key) {
|
|
192
|
+
console.warn('GetComponentActivitiesWithoutRelationFiltering not implemented');
|
|
193
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
194
|
+
}
|
|
195
|
+
insertActivity(activity) {
|
|
196
|
+
console.warn('insertActivity not implemented');
|
|
197
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
198
|
+
}
|
|
199
|
+
updateActivity(activity) {
|
|
200
|
+
console.warn('updateActivity not implemented');
|
|
201
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
202
|
+
}
|
|
203
|
+
deleteActivity(activity) {
|
|
204
|
+
console.warn('deleteActivity not implemented');
|
|
205
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
206
|
+
}
|
|
165
207
|
selectMultiple(moduleName, objectName, operationName, parameterValues, showLoader) {
|
|
166
208
|
console.warn('getOrderLineSetCategories not implemented');
|
|
167
209
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
import { ActivityType } from "../enum/activity-type";
|
|
3
|
+
import { Workflow } from "./workflow.bo";
|
|
4
|
+
import { Task } from "./task.bo";
|
|
5
|
+
import { Work } from "./work.bo";
|
|
6
|
+
import { CoDocument } from "./co-document";
|
|
7
|
+
import { RelationSmallObject } from "./relation-small-object.bo";
|
|
8
|
+
import { Remark } from "./remark.bo";
|
|
9
|
+
import { Transition } from "./transition.bo";
|
|
10
|
+
import { Form } from "./form.bo";
|
|
11
|
+
import { ModuleNavigationLink } from "../enum/module-navigation-link";
|
|
12
|
+
export declare class Activity extends BusinessObject {
|
|
13
|
+
activityType: ActivityType;
|
|
14
|
+
lastActionDateTime: Date;
|
|
15
|
+
targetDateTime: Date;
|
|
16
|
+
deadlineDateTime: Date;
|
|
17
|
+
activityTitle: string;
|
|
18
|
+
activityContextTitle: string;
|
|
19
|
+
workflow: Workflow;
|
|
20
|
+
task: Task;
|
|
21
|
+
stateChange: Transition;
|
|
22
|
+
remark: Remark;
|
|
23
|
+
work: Work;
|
|
24
|
+
form: Form;
|
|
25
|
+
isNew: boolean;
|
|
26
|
+
editting: boolean;
|
|
27
|
+
get activityTypeSecondary(): string;
|
|
28
|
+
get IsRemark(): boolean;
|
|
29
|
+
get IsWorkflowStatus(): boolean;
|
|
30
|
+
get IsWork(): boolean;
|
|
31
|
+
get IsTask(): boolean;
|
|
32
|
+
get IsStateChange(): boolean;
|
|
33
|
+
get IsForm(): boolean;
|
|
34
|
+
get link(): ModuleNavigationLink;
|
|
35
|
+
get linkDescription(): string;
|
|
36
|
+
get name(): string;
|
|
37
|
+
get creationDateTime(): Date;
|
|
38
|
+
get creationDateTimeAsNumber(): number;
|
|
39
|
+
get deadlineDateTimeAsNumber(): number;
|
|
40
|
+
get linkLabel(): string;
|
|
41
|
+
get subDescription(): string;
|
|
42
|
+
get label(): string;
|
|
43
|
+
get canEdit(): boolean;
|
|
44
|
+
get documents(): CoDocument[];
|
|
45
|
+
get time(): number;
|
|
46
|
+
get executiveName(): string;
|
|
47
|
+
get authorName(): string;
|
|
48
|
+
get executive(): RelationSmallObject;
|
|
49
|
+
get author(): RelationSmallObject;
|
|
50
|
+
get classType(): typeof BusinessObject;
|
|
51
|
+
get executionDateTime(): Date;
|
|
52
|
+
get overDue(): boolean;
|
|
53
|
+
updateSubDescription(text: string): void;
|
|
54
|
+
canUploadDocuments(): boolean;
|
|
55
|
+
constructor();
|
|
56
|
+
getId(): any;
|
|
57
|
+
getBaseContent(): BusinessObject;
|
|
58
|
+
}
|