@colijnit/mainapi 259.1.5 → 259.1.7
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-service-method.enum.d.ts +3 -1
- package/build/enum/data-service-method.enum.js +2 -0
- package/build/enum/form-question.type.d.ts +11 -0
- package/build/enum/form-question.type.js +15 -0
- package/build/enum/forms-object-name.enum.d.ts +6 -0
- package/build/enum/forms-object-name.enum.js +10 -0
- package/build/enum/module-name.enum.d.ts +1 -0
- package/build/enum/module-name.enum.js +1 -0
- package/build/main-api-connection.d.ts +5 -1
- package/build/main-api-connection.js +0 -2
- package/build/main-api.d.ts +5 -0
- package/build/main-api.js +12 -0
- package/build/main-api.unit.test.js +8 -3
- package/build/main-auth.d.ts +5 -0
- package/build/main-auth.js +38 -1
- package/build/main-public.d.ts +5 -0
- package/build/main-public.js +16 -0
- package/build/model/form-question-answer.bo.d.ts +10 -0
- package/build/model/form-question-answer.bo.js +13 -0
- package/build/model/form-question.bo.d.ts +19 -0
- package/build/model/form-question.bo.js +34 -0
- package/build/model/form-response.bo.d.ts +15 -0
- package/build/model/form-response.bo.js +33 -0
- package/build/model/form.bo.d.ts +8 -4
- package/build/model/form.bo.js +25 -0
- package/build/model/grouped-form-question.bo.d.ts +12 -0
- package/build/model/grouped-form-question.bo.js +28 -0
- package/package.json +1 -1
|
@@ -11,5 +11,7 @@ export declare enum DataServiceMethod {
|
|
|
11
11
|
InsertMultipleObjects = "insertMultipleObjects",
|
|
12
12
|
DeleteMultipleObjects = "deleteMultipleObjects",
|
|
13
13
|
Commit = "commit",
|
|
14
|
-
Rollback = "rollback"
|
|
14
|
+
Rollback = "rollback",
|
|
15
|
+
SelectAllByTableAndKey = "selectAllByTableAndKey",
|
|
16
|
+
SelectSingle = "selectSingle"
|
|
15
17
|
}
|
|
@@ -16,4 +16,6 @@ var DataServiceMethod;
|
|
|
16
16
|
DataServiceMethod["DeleteMultipleObjects"] = "deleteMultipleObjects";
|
|
17
17
|
DataServiceMethod["Commit"] = "commit";
|
|
18
18
|
DataServiceMethod["Rollback"] = "rollback";
|
|
19
|
+
DataServiceMethod["SelectAllByTableAndKey"] = "selectAllByTableAndKey";
|
|
20
|
+
DataServiceMethod["SelectSingle"] = "selectSingle";
|
|
19
21
|
})(DataServiceMethod = exports.DataServiceMethod || (exports.DataServiceMethod = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormQuestionType = void 0;
|
|
4
|
+
var FormQuestionType;
|
|
5
|
+
(function (FormQuestionType) {
|
|
6
|
+
FormQuestionType["ShortAnswer"] = "SA";
|
|
7
|
+
FormQuestionType["MultipleChoiceSingleOption"] = "MC";
|
|
8
|
+
FormQuestionType["LinearScale"] = "LS";
|
|
9
|
+
FormQuestionType["LongAnswer"] = "LA";
|
|
10
|
+
FormQuestionType["Time"] = "DT";
|
|
11
|
+
FormQuestionType["DropDownList"] = "DD";
|
|
12
|
+
FormQuestionType["Date"] = "DA";
|
|
13
|
+
FormQuestionType["MultipleChoiceMultipleOptions"] = "CB";
|
|
14
|
+
FormQuestionType["Label"] = "LB";
|
|
15
|
+
})(FormQuestionType = exports.FormQuestionType || (exports.FormQuestionType = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormsObjectName = void 0;
|
|
4
|
+
var FormsObjectName;
|
|
5
|
+
(function (FormsObjectName) {
|
|
6
|
+
FormsObjectName["Form"] = "Form";
|
|
7
|
+
FormsObjectName["FormQuestion"] = "FormQuestion";
|
|
8
|
+
FormsObjectName["FormResponse"] = "FormResponse";
|
|
9
|
+
FormsObjectName["FormResponseQuestion"] = "FormResponseQuestion";
|
|
10
|
+
})(FormsObjectName = exports.FormsObjectName || (exports.FormsObjectName = {}));
|
|
@@ -6,6 +6,7 @@ var ModuleName;
|
|
|
6
6
|
ModuleName["Address"] = "address";
|
|
7
7
|
ModuleName["Articles"] = "Articles";
|
|
8
8
|
ModuleName["Config"] = "Config";
|
|
9
|
+
ModuleName["Forms"] = "forms";
|
|
9
10
|
ModuleName["General"] = "General";
|
|
10
11
|
ModuleName["Preset"] = "Preset";
|
|
11
12
|
ModuleName["Relation"] = "Rel_man";
|
|
@@ -17,6 +17,7 @@ import { EmailJob } from "./model/email-job";
|
|
|
17
17
|
import { ActivityEmailHistory } from "./model/activity-email-history.bo";
|
|
18
18
|
import { InternalDefault } from "./enum/internal-default.enum";
|
|
19
19
|
import { EmailActivityRequest } from "./model/email-activity-request";
|
|
20
|
+
import { FormResponse } from './model/form-response.bo';
|
|
20
21
|
export declare abstract class MainApiConnection {
|
|
21
22
|
readonly showLoader: Subject<boolean>;
|
|
22
23
|
readonly connectionAborted: Subject<void>;
|
|
@@ -83,5 +84,8 @@ export declare abstract class MainApiConnection {
|
|
|
83
84
|
abstract getSingleImage(nodeId: number | string, publication: number, includeMimetype: boolean, thumb: boolean, tableName: TableName): Promise<DataServiceResponseData>;
|
|
84
85
|
abstract getImage(key: number | string, publication: number, includeMimetype: boolean, thumb: boolean, tableName: TableName): Promise<DataServiceResponseData>;
|
|
85
86
|
abstract getImageForCoDocument(document: CoDocument, thumb: boolean): Promise<DataServiceResponseData>;
|
|
86
|
-
|
|
87
|
+
abstract getFormById(formId: number): Promise<DataServiceResponseData>;
|
|
88
|
+
abstract getFormResponse(formResponseId: number): Promise<DataServiceResponseData>;
|
|
89
|
+
abstract insertFormResponse(formResponse: FormResponse): Promise<DataServiceResponseData>;
|
|
90
|
+
abstract updateFormResponse(formResponse: FormResponse): Promise<DataServiceResponseData>;
|
|
87
91
|
}
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MainApiConnection = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
|
-
const end_point_enum_1 = require("@colijnit/ioneconnector/build/enum/end-point.enum");
|
|
6
5
|
class MainApiConnection {
|
|
7
6
|
constructor() {
|
|
8
7
|
this.showLoader = new rxjs_1.Subject();
|
|
9
8
|
this.connectionAborted = new rxjs_1.Subject();
|
|
10
9
|
this.connectionResetInactivity = new rxjs_1.Subject();
|
|
11
|
-
this.endPoint = end_point_enum_1.EndPoint.AjaxService;
|
|
12
10
|
}
|
|
13
11
|
}
|
|
14
12
|
exports.MainApiConnection = MainApiConnection;
|
package/build/main-api.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { EmailJob } from "./model/email-job";
|
|
|
20
20
|
import { ActivityEmailHistory } from "./model/activity-email-history.bo";
|
|
21
21
|
import { InternalDefault } from "./enum/internal-default.enum";
|
|
22
22
|
import { EmailActivityRequest } from "./model/email-activity-request";
|
|
23
|
+
import { FormResponse } from './model/form-response.bo';
|
|
23
24
|
export declare class MainApi {
|
|
24
25
|
readonly showLoader: Subject<boolean>;
|
|
25
26
|
readonly connectionAborted: Subject<void>;
|
|
@@ -97,6 +98,10 @@ export declare class MainApi {
|
|
|
97
98
|
getSingleImage(nodeId: number | string, publication: number, includeMimetype: boolean, thumb: boolean, tableName: TableName): Promise<DataServiceResponseData>;
|
|
98
99
|
getImage(key: number | string, publication: number, includeMimetype: boolean, thumb: boolean, tableName: TableName): Promise<DataServiceResponseData>;
|
|
99
100
|
getImageForCoDocument(document: CoDocument, thumb: boolean): Promise<DataServiceResponseData>;
|
|
101
|
+
getFormById(formId: number): Promise<DataServiceResponseData>;
|
|
102
|
+
getFormResponse(formResponseId: number): Promise<DataServiceResponseData>;
|
|
103
|
+
insertFormResponse(formResponse: FormResponse): Promise<DataServiceResponseData>;
|
|
104
|
+
updateFormResponse(formResponse: FormResponse): Promise<DataServiceResponseData>;
|
|
100
105
|
static createConnector(isPublicSession: boolean, sessionExists: boolean): MainApiConnection;
|
|
101
106
|
private _handleConnectionReset;
|
|
102
107
|
}
|
package/build/main-api.js
CHANGED
|
@@ -262,6 +262,18 @@ class MainApi {
|
|
|
262
262
|
getImageForCoDocument(document, thumb) {
|
|
263
263
|
return this.mainApi.getImageForCoDocument(document, thumb);
|
|
264
264
|
}
|
|
265
|
+
getFormById(formId) {
|
|
266
|
+
return this.mainApi.getFormById(formId);
|
|
267
|
+
}
|
|
268
|
+
getFormResponse(formResponseId) {
|
|
269
|
+
return this.mainApi.getFormResponse(formResponseId);
|
|
270
|
+
}
|
|
271
|
+
insertFormResponse(formResponse) {
|
|
272
|
+
return this.mainApi.insertFormResponse(formResponse);
|
|
273
|
+
}
|
|
274
|
+
updateFormResponse(formResponse) {
|
|
275
|
+
return this.mainApi.updateFormResponse(formResponse);
|
|
276
|
+
}
|
|
265
277
|
static createConnector(isPublicSession, sessionExists) {
|
|
266
278
|
if (!isPublicSession || sessionExists) {
|
|
267
279
|
return new main_auth_1.MainAuth();
|
|
@@ -19,12 +19,12 @@ const options = {
|
|
|
19
19
|
url: 'http'
|
|
20
20
|
};
|
|
21
21
|
const localOptions = {
|
|
22
|
-
url:
|
|
22
|
+
url: 'http://localhost:8080/ione',
|
|
23
23
|
schema: "815",
|
|
24
|
-
version: "
|
|
24
|
+
version: "259",
|
|
25
25
|
useLoginEncryption: true,
|
|
26
26
|
username: "patrick",
|
|
27
|
-
password: "vankeulen1234567890!"
|
|
27
|
+
password: "vankeulen1234567890!",
|
|
28
28
|
};
|
|
29
29
|
const remoteOptions = {
|
|
30
30
|
url: "http://130.62.7.55:8888/ione",
|
|
@@ -131,4 +131,9 @@ describe("Connector", () => {
|
|
|
131
131
|
const result = yield connector.getInternalParameterValue(internal_param_enum_1.InternalParam.TransManualSave);
|
|
132
132
|
expect(result).toBeDefined();
|
|
133
133
|
}));
|
|
134
|
+
it('getFormById', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
135
|
+
yield connector.connect();
|
|
136
|
+
const result = yield connector.getFormById(20);
|
|
137
|
+
expect(result).toBeDefined();
|
|
138
|
+
}));
|
|
134
139
|
});
|
package/build/main-auth.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { SelectReportTemplatesRequest } from './model/select-report-templates-re
|
|
|
16
16
|
import { ActivityEmailHistory } from './model/activity-email-history.bo';
|
|
17
17
|
import { InternalDefault } from './enum/internal-default.enum';
|
|
18
18
|
import { EmailActivityRequest } from './model/email-activity-request';
|
|
19
|
+
import { FormResponse } from './model/form-response.bo';
|
|
19
20
|
export declare class MainAuth extends MainApiConnection {
|
|
20
21
|
private _boSerializer;
|
|
21
22
|
private _boFactory;
|
|
@@ -77,6 +78,10 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
77
78
|
getImage(key: number | string, publication?: number, includeMimetype?: boolean, thumb?: boolean, tableName?: TableName): Promise<DataServiceResponseData>;
|
|
78
79
|
getImageForCoDocument(document: CoDocument, thumb?: boolean): Promise<DataServiceResponseData>;
|
|
79
80
|
emailActivity(request: EmailActivityRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
81
|
+
getFormById(formId: number): Promise<DataServiceResponseData>;
|
|
82
|
+
getFormResponse(formResponseId: number): Promise<DataServiceResponseData>;
|
|
83
|
+
insertFormResponse(formResponse: FormResponse): Promise<DataServiceResponseData>;
|
|
84
|
+
updateFormResponse(formResponse: FormResponse): Promise<DataServiceResponseData>;
|
|
80
85
|
selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
81
86
|
private _call;
|
|
82
87
|
private _callGetSingleImage;
|
package/build/main-auth.js
CHANGED
|
@@ -43,6 +43,7 @@ const co_document_type_enum_1 = require("./enum/co-document-type.enum");
|
|
|
43
43
|
const article_method_enum_1 = require("./enum/article-method.enum");
|
|
44
44
|
const file_utils_1 = require("./utils/file-utils");
|
|
45
45
|
const image_content_bo_1 = require("./model/image-content.bo");
|
|
46
|
+
const forms_object_name_enum_1 = require("./enum/forms-object-name.enum");
|
|
46
47
|
class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
47
48
|
constructor() {
|
|
48
49
|
super(...arguments);
|
|
@@ -736,6 +737,42 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
736
737
|
};
|
|
737
738
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
738
739
|
}
|
|
740
|
+
getFormById(formId) {
|
|
741
|
+
const data = {
|
|
742
|
+
moduleName: module_name_enum_1.ModuleName.Forms,
|
|
743
|
+
objectName: forms_object_name_enum_1.FormsObjectName.Form,
|
|
744
|
+
objectId: formId,
|
|
745
|
+
refCursorAsArray: true
|
|
746
|
+
};
|
|
747
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.SelectSingleObject, data);
|
|
748
|
+
}
|
|
749
|
+
getFormResponse(formResponseId) {
|
|
750
|
+
const data = {
|
|
751
|
+
moduleName: module_name_enum_1.ModuleName.Forms,
|
|
752
|
+
objectName: forms_object_name_enum_1.FormsObjectName.FormResponse,
|
|
753
|
+
refCursorAsArray: true,
|
|
754
|
+
objectId: formResponseId
|
|
755
|
+
};
|
|
756
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.SelectSingle, data);
|
|
757
|
+
}
|
|
758
|
+
insertFormResponse(formResponse) {
|
|
759
|
+
const data = {
|
|
760
|
+
moduleName: module_name_enum_1.ModuleName.Forms,
|
|
761
|
+
objectName: forms_object_name_enum_1.FormsObjectName.FormResponse,
|
|
762
|
+
refCursorAsArray: true,
|
|
763
|
+
object: this._boFactory.prepareBusinessObjectForSend(formResponse)
|
|
764
|
+
};
|
|
765
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.InsertObject, data);
|
|
766
|
+
}
|
|
767
|
+
updateFormResponse(formResponse) {
|
|
768
|
+
const data = {
|
|
769
|
+
moduleName: module_name_enum_1.ModuleName.Forms,
|
|
770
|
+
objectName: forms_object_name_enum_1.FormsObjectName.FormResponse,
|
|
771
|
+
refCursorAsArray: true,
|
|
772
|
+
object: this._boFactory.prepareBusinessObjectForSend(formResponse)
|
|
773
|
+
};
|
|
774
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.UpdateObject, data);
|
|
775
|
+
}
|
|
739
776
|
selectMultiple(moduleName, objectName, operationName, parameterValues, showLoader) {
|
|
740
777
|
if (showLoader === undefined) {
|
|
741
778
|
showLoader = false;
|
|
@@ -754,7 +791,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
754
791
|
}
|
|
755
792
|
_call(method, data, service = backend_service_name_enum_1.BackendServiceName.DataService, showLoader = false) {
|
|
756
793
|
return __awaiter(this, void 0, void 0, function* () {
|
|
757
|
-
return this.connector.call(method, data, showLoader, service
|
|
794
|
+
return this.connector.call(method, data, showLoader, service);
|
|
758
795
|
});
|
|
759
796
|
}
|
|
760
797
|
_callGetSingleImage(params) {
|
package/build/main-public.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { EmailJob } from './model/email-job';
|
|
|
16
16
|
import { ActivityEmailHistory } from './model/activity-email-history.bo';
|
|
17
17
|
import { InternalDefault } from './enum/internal-default.enum';
|
|
18
18
|
import { EmailActivityRequest } from './model/email-activity-request';
|
|
19
|
+
import { FormResponse } from './model/form-response.bo';
|
|
19
20
|
export declare class MainPublic extends MainApiConnection {
|
|
20
21
|
protected endPoint: string;
|
|
21
22
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -73,6 +74,10 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
73
74
|
getWorkflowProcessInfoPerStatus(workflowCategoryName: string): Promise<DataServiceResponseData>;
|
|
74
75
|
getInternalDefaultValue(param: InternalDefault): Promise<DataServiceResponseData>;
|
|
75
76
|
emailActivity(request: EmailActivityRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
77
|
+
getFormById(formId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
78
|
+
getFormResponse(formResponseId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
79
|
+
insertFormResponse(formResponse: FormResponse, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
80
|
+
updateFormResponse(formResponse: FormResponse, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
76
81
|
selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
77
82
|
getSingleImage(nodeId: number | string, publication?: number, includeMimetype?: boolean, thumb?: boolean, tableName?: TableName): Promise<DataServiceResponseData>;
|
|
78
83
|
getImage(key: number | string, publication?: number, includeMimetype?: boolean, thumb?: boolean): Promise<DataServiceResponseData>;
|
package/build/main-public.js
CHANGED
|
@@ -304,6 +304,22 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
304
304
|
console.warn('emailActivity not implemented');
|
|
305
305
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
306
306
|
}
|
|
307
|
+
getFormById(formId, showLoader) {
|
|
308
|
+
console.warn('getFormById not implemented');
|
|
309
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
310
|
+
}
|
|
311
|
+
getFormResponse(formResponseId, showLoader) {
|
|
312
|
+
console.warn('getFormResponse not implemented');
|
|
313
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
314
|
+
}
|
|
315
|
+
insertFormResponse(formResponse, showLoader) {
|
|
316
|
+
console.warn('insertFormResponse not implemented');
|
|
317
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
318
|
+
}
|
|
319
|
+
updateFormResponse(formResponse, showLoader) {
|
|
320
|
+
console.warn('updateFormResponse not implemented');
|
|
321
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
322
|
+
}
|
|
307
323
|
selectMultiple(moduleName, objectName, operationName, parameterValues, showLoader) {
|
|
308
324
|
console.warn('getOrderLineSetCategories not implemented');
|
|
309
325
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
export declare class FormQuestionAnswer extends BusinessObject {
|
|
3
|
+
answerId: number;
|
|
4
|
+
questionId: number;
|
|
5
|
+
sequence: number;
|
|
6
|
+
gotoQuestionId: number;
|
|
7
|
+
answer: string;
|
|
8
|
+
constructor();
|
|
9
|
+
getId(): number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormQuestionAnswer = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class FormQuestionAnswer extends business_object_1.BusinessObject {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
}
|
|
9
|
+
getId() {
|
|
10
|
+
return this.answerId;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.FormQuestionAnswer = FormQuestionAnswer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
import { FormQuestionType } from '../enum/form-question.type';
|
|
3
|
+
import { FormQuestionAnswer } from './form-question-answer.bo';
|
|
4
|
+
import { FormQuestionResponse } from './form-question-response.bo';
|
|
5
|
+
export declare class FormQuestion extends BusinessObject {
|
|
6
|
+
questionId: number;
|
|
7
|
+
formId: number;
|
|
8
|
+
sequence: number;
|
|
9
|
+
question: string;
|
|
10
|
+
mandatory: boolean;
|
|
11
|
+
active: boolean;
|
|
12
|
+
questionType: FormQuestionType;
|
|
13
|
+
showOnDocuments: number;
|
|
14
|
+
gotoQuestionId: number;
|
|
15
|
+
formQuestionAnswers: FormQuestionAnswer[];
|
|
16
|
+
responseQuestion: FormQuestionResponse;
|
|
17
|
+
constructor();
|
|
18
|
+
getId(): number;
|
|
19
|
+
}
|
|
@@ -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.FormQuestion = void 0;
|
|
13
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
14
|
+
const form_question_answer_bo_1 = require("./form-question-answer.bo");
|
|
15
|
+
const complex_array_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator");
|
|
16
|
+
const no_db_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/no-db-field.decorator");
|
|
17
|
+
const form_question_response_bo_1 = require("./form-question-response.bo");
|
|
18
|
+
class FormQuestion extends business_object_1.BusinessObject {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
}
|
|
22
|
+
getId() {
|
|
23
|
+
return this.questionId;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, complex_array_decorator_1.ComplexArray)(form_question_answer_bo_1.FormQuestionAnswer),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], FormQuestion.prototype, "formQuestionAnswers", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, no_db_field_decorator_1.NoDbField)(),
|
|
32
|
+
__metadata("design:type", form_question_response_bo_1.FormQuestionResponse)
|
|
33
|
+
], FormQuestion.prototype, "responseQuestion", void 0);
|
|
34
|
+
exports.FormQuestion = FormQuestion;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
import { FormQuestionResponse } from './form-question-response.bo';
|
|
3
|
+
import { CoDocument } from './co-document.bo';
|
|
4
|
+
export declare class FormResponse extends BusinessObject {
|
|
5
|
+
responseId: number;
|
|
6
|
+
table: string;
|
|
7
|
+
key: string;
|
|
8
|
+
formId: number;
|
|
9
|
+
formName: string;
|
|
10
|
+
isFinal: boolean;
|
|
11
|
+
formQuestionResponses: FormQuestionResponse[];
|
|
12
|
+
documents: CoDocument[];
|
|
13
|
+
getId(): number;
|
|
14
|
+
setId(value: number): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.FormResponse = void 0;
|
|
13
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
14
|
+
const form_question_response_bo_1 = require("./form-question-response.bo");
|
|
15
|
+
const complex_array_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator");
|
|
16
|
+
const co_document_bo_1 = require("./co-document.bo");
|
|
17
|
+
class FormResponse extends business_object_1.BusinessObject {
|
|
18
|
+
getId() {
|
|
19
|
+
return this.responseId;
|
|
20
|
+
}
|
|
21
|
+
setId(value) {
|
|
22
|
+
this.responseId = value;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, complex_array_decorator_1.ComplexArray)(form_question_response_bo_1.FormQuestionResponse),
|
|
27
|
+
__metadata("design:type", Array)
|
|
28
|
+
], FormResponse.prototype, "formQuestionResponses", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, complex_array_decorator_1.ComplexArray)(co_document_bo_1.CoDocument),
|
|
31
|
+
__metadata("design:type", Array)
|
|
32
|
+
], FormResponse.prototype, "documents", void 0);
|
|
33
|
+
exports.FormResponse = FormResponse;
|
package/build/model/form.bo.d.ts
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { BusinessObject } from
|
|
2
|
-
import { TransactionKind } from
|
|
3
|
-
import { FormQuestionResponse } from
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
import { TransactionKind } from '../enum/transaction-kind';
|
|
3
|
+
import { FormQuestionResponse } from './form-question-response.bo';
|
|
4
|
+
import { FormQuestion } from './form-question.bo';
|
|
5
|
+
import { GroupedFormQuestion } from './grouped-form-question.bo';
|
|
4
6
|
export declare class Form extends BusinessObject {
|
|
5
7
|
formId: number;
|
|
6
8
|
formName: string;
|
|
7
9
|
key: string;
|
|
8
|
-
questionResponses: FormQuestionResponse[];
|
|
9
10
|
responseId: number;
|
|
10
11
|
table: string;
|
|
11
12
|
transId: number;
|
|
12
13
|
transNr: string;
|
|
13
14
|
transType: TransactionKind;
|
|
15
|
+
questionResponses: FormQuestionResponse[];
|
|
16
|
+
questions: FormQuestion[];
|
|
17
|
+
groupedQuestions: GroupedFormQuestion[];
|
|
14
18
|
getId(): number;
|
|
15
19
|
setId(value: number): void;
|
|
16
20
|
}
|
package/build/model/form.bo.js
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.Form = void 0;
|
|
4
13
|
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
14
|
+
const form_question_response_bo_1 = require("./form-question-response.bo");
|
|
15
|
+
const complex_array_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator");
|
|
16
|
+
const form_question_bo_1 = require("./form-question.bo");
|
|
17
|
+
const grouped_form_question_bo_1 = require("./grouped-form-question.bo");
|
|
5
18
|
class Form extends business_object_1.BusinessObject {
|
|
6
19
|
getId() {
|
|
7
20
|
return this.responseId;
|
|
@@ -10,4 +23,16 @@ class Form extends business_object_1.BusinessObject {
|
|
|
10
23
|
this.responseId = value;
|
|
11
24
|
}
|
|
12
25
|
}
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, complex_array_decorator_1.ComplexArray)(form_question_response_bo_1.FormQuestionResponse),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], Form.prototype, "questionResponses", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, complex_array_decorator_1.ComplexArray)(form_question_bo_1.FormQuestion),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], Form.prototype, "questions", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, complex_array_decorator_1.ComplexArray)(grouped_form_question_bo_1.GroupedFormQuestion),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], Form.prototype, "groupedQuestions", void 0);
|
|
13
38
|
exports.Form = Form;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
import { FormQuestion } from './form-question.bo';
|
|
3
|
+
export declare class GroupedFormQuestion extends BusinessObject {
|
|
4
|
+
questionId: number;
|
|
5
|
+
formId: number;
|
|
6
|
+
sequence: number;
|
|
7
|
+
labelText: string;
|
|
8
|
+
showOnDocuments: string;
|
|
9
|
+
questions: FormQuestion[];
|
|
10
|
+
constructor();
|
|
11
|
+
getId(): number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.GroupedFormQuestion = void 0;
|
|
13
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
14
|
+
const complex_array_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator");
|
|
15
|
+
const form_question_bo_1 = require("./form-question.bo");
|
|
16
|
+
class GroupedFormQuestion extends business_object_1.BusinessObject {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
}
|
|
20
|
+
getId() {
|
|
21
|
+
return this.questionId;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, complex_array_decorator_1.ComplexArray)(form_question_bo_1.FormQuestion),
|
|
26
|
+
__metadata("design:type", Array)
|
|
27
|
+
], GroupedFormQuestion.prototype, "questions", void 0);
|
|
28
|
+
exports.GroupedFormQuestion = GroupedFormQuestion;
|