@colijnit/mainapi 1.0.1
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/absence-type.enum.d.ts +10 -0
- package/build/enum/absence-type.enum.js +13 -0
- package/build/enum/article-publication.enum.d.ts +5 -0
- package/build/enum/article-publication.enum.js +8 -0
- package/build/enum/backend-service-name.enum.d.ts +9 -0
- package/build/enum/backend-service-name.enum.js +12 -0
- package/build/enum/co-document-image-display-kind.enum.d.ts +5 -0
- package/build/enum/co-document-image-display-kind.enum.js +8 -0
- package/build/enum/co-document-type.enum.d.ts +5 -0
- package/build/enum/co-document-type.enum.js +8 -0
- package/build/enum/data-mapping.enum.d.ts +5 -0
- package/build/enum/data-mapping.enum.js +8 -0
- package/build/enum/data-service-method.enum.d.ts +14 -0
- package/build/enum/data-service-method.enum.js +17 -0
- package/build/enum/db-boolean-value-type.enum.d.ts +12 -0
- package/build/enum/db-boolean-value-type.enum.js +31 -0
- package/build/enum/delivery-time-unit-type.enum.d.ts +4 -0
- package/build/enum/delivery-time-unit-type.enum.js +7 -0
- package/build/enum/file-type-internal.enum.d.ts +11 -0
- package/build/enum/file-type-internal.enum.js +14 -0
- package/build/enum/file-type.enum.d.ts +5 -0
- package/build/enum/file-type.enum.js +8 -0
- package/build/enum/general-method.enum.d.ts +5 -0
- package/build/enum/general-method.enum.js +8 -0
- package/build/enum/insured-interest-type.enum.d.ts +10 -0
- package/build/enum/insured-interest-type.enum.js +13 -0
- package/build/enum/message-type.enum.d.ts +6 -0
- package/build/enum/message-type.enum.js +9 -0
- package/build/enum/module-name.enum.d.ts +3 -0
- package/build/enum/module-name.enum.js +6 -0
- package/build/enum/note-display-type.enum.d.ts +5 -0
- package/build/enum/note-display-type.enum.js +8 -0
- package/build/enum/one-zero-bool-db-type.enum.d.ts +5 -0
- package/build/enum/one-zero-bool-db-type.enum.js +19 -0
- package/build/enum/own-risk.enum.d.ts +7 -0
- package/build/enum/own-risk.enum.js +10 -0
- package/build/enum/price-type.enum.d.ts +4 -0
- package/build/enum/price-type.enum.js +7 -0
- package/build/enum/priority-type.enum.d.ts +7 -0
- package/build/enum/priority-type.enum.js +10 -0
- package/build/enum/product-kind.enum.d.ts +6 -0
- package/build/enum/product-kind.enum.js +9 -0
- package/build/enum/public-service-method.d.ts +17 -0
- package/build/enum/public-service-method.js +20 -0
- package/build/enum/sequence-name.enum.d.ts +4 -0
- package/build/enum/sequence-name.enum.js +7 -0
- package/build/enum/table-name.enum.d.ts +82 -0
- package/build/enum/table-name.enum.js +85 -0
- package/build/enum/text-standard-type-text.d.ts +7 -0
- package/build/enum/text-standard-type-text.js +10 -0
- package/build/enum/text-standard-type.d.ts +7 -0
- package/build/enum/text-standard-type.js +10 -0
- package/build/enum/true-false-db-type.enum.d.ts +5 -0
- package/build/enum/true-false-db-type.enum.js +19 -0
- package/build/enum/vat-type.enum.d.ts +4 -0
- package/build/enum/vat-type.enum.js +7 -0
- package/build/enum/yes-no-db-type.enum.d.ts +5 -0
- package/build/enum/yes-no-db-type.enum.js +19 -0
- package/build/main-api-connection.d.ts +14 -0
- package/build/main-api-connection.js +13 -0
- package/build/main-api.d.ts +26 -0
- package/build/main-api.js +59 -0
- package/build/main-api.unit.test.d.ts +1 -0
- package/build/main-api.unit.test.js +37 -0
- package/build/main-auth.d.ts +9 -0
- package/build/main-auth.js +64 -0
- package/build/main-public.d.ts +9 -0
- package/build/main-public.js +40 -0
- package/build/model/article-seo-value.d.ts +5 -0
- package/build/model/article-seo-value.js +5 -0
- package/build/model/brand.d.ts +8 -0
- package/build/model/brand.js +9 -0
- package/build/model/co-document-right.d.ts +7 -0
- package/build/model/co-document-right.js +6 -0
- package/build/model/co-document.d.ts +62 -0
- package/build/model/co-document.js +175 -0
- package/build/model/co-domain-value.bo.d.ts +10 -0
- package/build/model/co-domain-value.bo.js +19 -0
- package/build/model/co-notition-right.bo.d.ts +10 -0
- package/build/model/co-notition-right.bo.js +12 -0
- package/build/model/co-notition.bo.d.ts +24 -0
- package/build/model/co-notition.bo.js +78 -0
- package/build/model/co-text.d.ts +26 -0
- package/build/model/co-text.js +27 -0
- package/build/model/constant/java-constants.d.ts +2 -0
- package/build/model/constant/java-constants.js +4 -0
- package/build/model/contact-moment.bo.d.ts +17 -0
- package/build/model/contact-moment.bo.js +38 -0
- package/build/model/department.bo.d.ts +12 -0
- package/build/model/department.bo.js +68 -0
- package/build/model/insured-interest.bo.d.ts +13 -0
- package/build/model/insured-interest.bo.js +38 -0
- package/build/model/own-risk.bo.d.ts +11 -0
- package/build/model/own-risk.bo.js +38 -0
- package/build/model/privacy-setting.bo.d.ts +9 -0
- package/build/model/privacy-setting.bo.js +12 -0
- package/build/model/tag-stock-item.bo.d.ts +24 -0
- package/build/model/tag-stock-item.bo.js +20 -0
- package/build/model/tag-tree-item.bo.d.ts +18 -0
- package/build/model/tag-tree-item.bo.js +45 -0
- package/build/model/tag.d.ts +11 -0
- package/build/model/tag.js +40 -0
- package/build/model/tree-object.d.ts +8 -0
- package/build/model/tree-object.js +28 -0
- package/build/utils/file-utils.d.ts +5 -0
- package/build/utils/file-utils.js +48 -0
- package/package.json +56 -0
|
@@ -0,0 +1,175 @@
|
|
|
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
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
13
|
+
const boolean_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/boolean.decorator");
|
|
14
|
+
const no_db_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/no-db-field.decorator");
|
|
15
|
+
const db_field_alias_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/db-field-alias.decorator");
|
|
16
|
+
const date_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/date-field.decorator");
|
|
17
|
+
const rxjs_1 = require("rxjs");
|
|
18
|
+
const file_type_enum_1 = require("../enum/file-type.enum");
|
|
19
|
+
const co_document_right_1 = require("./co-document-right");
|
|
20
|
+
const tag_1 = require("./tag");
|
|
21
|
+
const article_seo_value_1 = require("./article-seo-value");
|
|
22
|
+
const file_type_internal_enum_1 = require("../enum/file-type-internal.enum");
|
|
23
|
+
const complex_array_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator");
|
|
24
|
+
const object_right_type_enum_1 = require("@colijnit/ioneconnector/build/enum/object-right-type.enum");
|
|
25
|
+
const file_utils_1 = require("../utils/file-utils");
|
|
26
|
+
class CoDocument extends business_object_1.BusinessObject {
|
|
27
|
+
constructor(rawData = {}) {
|
|
28
|
+
super();
|
|
29
|
+
this.pathIsUrl = false;
|
|
30
|
+
this.tags = [];
|
|
31
|
+
this.rights = [];
|
|
32
|
+
this.seoTitles = [];
|
|
33
|
+
this.retailFormulas = [];
|
|
34
|
+
this.documentBodyChange = new rxjs_1.Subject();
|
|
35
|
+
this._idObject = {};
|
|
36
|
+
}
|
|
37
|
+
set documentId(value) {
|
|
38
|
+
this._documentId = value;
|
|
39
|
+
this._idObject.docId = value;
|
|
40
|
+
}
|
|
41
|
+
get documentId() {
|
|
42
|
+
return this._documentId;
|
|
43
|
+
}
|
|
44
|
+
set documentBody(documentBody) {
|
|
45
|
+
const prev = this._documentBody;
|
|
46
|
+
this._documentBody = documentBody;
|
|
47
|
+
if (prev !== this._documentBody) {
|
|
48
|
+
this.documentBodyChange.next(this._documentBody);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
get documentBody() {
|
|
52
|
+
return this._documentBody;
|
|
53
|
+
}
|
|
54
|
+
get fileTypeInternal() {
|
|
55
|
+
if (!this._fileTypeInternal) {
|
|
56
|
+
const fileType = file_utils_1.FileUtils.FileNameToFileTypeInternal(this.fileName);
|
|
57
|
+
if (fileType) {
|
|
58
|
+
this._fileTypeInternal = fileType;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return this._fileTypeInternal;
|
|
62
|
+
}
|
|
63
|
+
get mimeTypeInternal() {
|
|
64
|
+
if (this._mimeTypeInternal) {
|
|
65
|
+
return this._mimeTypeInternal;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
this._initMimetypeInternal();
|
|
69
|
+
return this._mimeTypeInternal;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
set mimeTypeInternal(value) {
|
|
73
|
+
this._mimeTypeInternal = value;
|
|
74
|
+
}
|
|
75
|
+
get bodyAsDataUri() {
|
|
76
|
+
if (this._documentBody) {
|
|
77
|
+
return this.documentBodyAsDataUri;
|
|
78
|
+
}
|
|
79
|
+
else if (this.thumbnailBody) {
|
|
80
|
+
return this.thumbnailBodyAsDataUri;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
get documentBodyAsDataUri() {
|
|
84
|
+
try {
|
|
85
|
+
return file_utils_1.FileUtils.DocumentBodyToDataUri(this.documentBody, this.mimeTypeInternal);
|
|
86
|
+
}
|
|
87
|
+
catch (error) {
|
|
88
|
+
return "";
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
get thumbnailBodyAsDataUri() {
|
|
92
|
+
try {
|
|
93
|
+
return file_utils_1.FileUtils.DocumentBodyToDataUri(this.thumbnailBody, this.mimeTypeInternal);
|
|
94
|
+
}
|
|
95
|
+
catch (error) {
|
|
96
|
+
return "";
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
get readonly() {
|
|
100
|
+
return this.rightLevel === object_right_type_enum_1.ObjectRightType.ReadOnly;
|
|
101
|
+
}
|
|
102
|
+
getId() {
|
|
103
|
+
return this.documentId;
|
|
104
|
+
}
|
|
105
|
+
isImageDocument() {
|
|
106
|
+
return (this.fileTypeInternal === file_type_internal_enum_1.FileTypeInternal.Image);
|
|
107
|
+
}
|
|
108
|
+
_initMimetypeInternal() {
|
|
109
|
+
if ((this.fileType === file_type_enum_1.FileType.Image || !this.fileType) && this.fileName) {
|
|
110
|
+
const fileExtension = this.fileName.substr(this.fileName.lastIndexOf(".") + 1);
|
|
111
|
+
this._mimeTypeInternal = "image/" + fileExtension;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
__decorate([
|
|
116
|
+
date_field_decorator_1.DateField(),
|
|
117
|
+
__metadata("design:type", Date)
|
|
118
|
+
], CoDocument.prototype, "creationDate", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
date_field_decorator_1.DateField(),
|
|
121
|
+
__metadata("design:type", Date)
|
|
122
|
+
], CoDocument.prototype, "modifiedDate", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
boolean_decorator_1.BooleanText("T"),
|
|
125
|
+
__metadata("design:type", Boolean)
|
|
126
|
+
], CoDocument.prototype, "downloadable", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
boolean_decorator_1.BooleanText("T"),
|
|
129
|
+
__metadata("design:type", Boolean)
|
|
130
|
+
], CoDocument.prototype, "attachToNotification", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
boolean_decorator_1.BooleanText("T"),
|
|
133
|
+
__metadata("design:type", Boolean)
|
|
134
|
+
], CoDocument.prototype, "pathIsUrl", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
complex_array_decorator_1.ComplexArray(tag_1.Tag),
|
|
137
|
+
__metadata("design:type", Array)
|
|
138
|
+
], CoDocument.prototype, "tags", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
complex_array_decorator_1.ComplexArray(co_document_right_1.CoDocumentRight),
|
|
141
|
+
__metadata("design:type", Array)
|
|
142
|
+
], CoDocument.prototype, "rights", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
complex_array_decorator_1.ComplexArray(article_seo_value_1.ArticleSeoValue),
|
|
145
|
+
__metadata("design:type", Array)
|
|
146
|
+
], CoDocument.prototype, "seoTitles", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
no_db_field_decorator_1.NoDbField(),
|
|
149
|
+
__metadata("design:type", Number)
|
|
150
|
+
], CoDocument.prototype, "idForLink", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
db_field_alias_decorator_1.DbFieldAlias("documentBody"),
|
|
153
|
+
__metadata("design:type", String)
|
|
154
|
+
], CoDocument.prototype, "_documentBody", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
db_field_alias_decorator_1.DbFieldAlias("documentId"),
|
|
157
|
+
__metadata("design:type", Number)
|
|
158
|
+
], CoDocument.prototype, "_documentId", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
no_db_field_decorator_1.NoDbField(),
|
|
161
|
+
__metadata("design:type", rxjs_1.Subject)
|
|
162
|
+
], CoDocument.prototype, "documentBodyChange", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
no_db_field_decorator_1.NoDbField(),
|
|
165
|
+
__metadata("design:type", Number)
|
|
166
|
+
], CoDocument.prototype, "_fileTypeInternal", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
no_db_field_decorator_1.NoDbField(),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], CoDocument.prototype, "_mimeTypeInternal", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
no_db_field_decorator_1.NoDbField(),
|
|
173
|
+
__metadata("design:type", Object)
|
|
174
|
+
], CoDocument.prototype, "_idObject", void 0);
|
|
175
|
+
exports.CoDocument = CoDocument;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
export declare class CoDomainValue extends BusinessObject {
|
|
3
|
+
code: string;
|
|
4
|
+
description: string;
|
|
5
|
+
sequence: number;
|
|
6
|
+
get codeAsNumber(): number;
|
|
7
|
+
constructor();
|
|
8
|
+
getId(): any;
|
|
9
|
+
toString(): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
4
|
+
const number_utils_1 = require("@colijnit/ioneconnector/build/utils/number-utils");
|
|
5
|
+
class CoDomainValue extends business_object_1.BusinessObject {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
}
|
|
9
|
+
get codeAsNumber() {
|
|
10
|
+
return number_utils_1.NumberUtils.ParseInt(this.code);
|
|
11
|
+
}
|
|
12
|
+
getId() {
|
|
13
|
+
return this.code;
|
|
14
|
+
}
|
|
15
|
+
toString() {
|
|
16
|
+
return this.code + ": " + this.description;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.CoDomainValue = CoDomainValue;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
import { ObjectRightType } from '@colijnit/ioneconnector/build/enum/object-right-type.enum';
|
|
3
|
+
import { BusinessObjectIDType } from '@colijnit/ioneconnector/build/type/business-object-id-type';
|
|
4
|
+
export declare class CoNotitionRight extends BusinessObject {
|
|
5
|
+
userGroupId: number;
|
|
6
|
+
noteId: number;
|
|
7
|
+
rightLevel: ObjectRightType;
|
|
8
|
+
constructor();
|
|
9
|
+
getId(): BusinessObjectIDType;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
4
|
+
class CoNotitionRight extends business_object_1.BusinessObject {
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
}
|
|
8
|
+
getId() {
|
|
9
|
+
return this.userGroupId;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.CoNotitionRight = CoNotitionRight;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
import { CoNotitionRight } from "./co-notition-right.bo";
|
|
3
|
+
import { NoteDisplayType } from '../enum/note-display-type.enum';
|
|
4
|
+
import { TableName } from '../enum/table-name.enum';
|
|
5
|
+
import { ObjectRightType } from '@colijnit/ioneconnector/build/enum/object-right-type.enum';
|
|
6
|
+
export declare class CoNotition extends BusinessObject {
|
|
7
|
+
notId: number;
|
|
8
|
+
description: string;
|
|
9
|
+
creationDate: Date;
|
|
10
|
+
creationUser: string;
|
|
11
|
+
display: NoteDisplayType;
|
|
12
|
+
manual: boolean;
|
|
13
|
+
memo: any;
|
|
14
|
+
modifiedDate: Date;
|
|
15
|
+
modifiedUser: string;
|
|
16
|
+
table: TableName;
|
|
17
|
+
key: string;
|
|
18
|
+
rightLevel: ObjectRightType;
|
|
19
|
+
rights: CoNotitionRight[];
|
|
20
|
+
constructor();
|
|
21
|
+
getId(): number;
|
|
22
|
+
hasWriteAccess(group: number): boolean;
|
|
23
|
+
get readonly(): boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
13
|
+
const boolean_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/boolean.decorator");
|
|
14
|
+
const co_notition_right_bo_1 = require("./co-notition-right.bo");
|
|
15
|
+
const data_mapping_enum_1 = require("../enum/data-mapping.enum");
|
|
16
|
+
const note_display_type_enum_1 = require("../enum/note-display-type.enum");
|
|
17
|
+
const object_right_type_enum_1 = require("@colijnit/ioneconnector/build/enum/object-right-type.enum");
|
|
18
|
+
const complex_array_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator");
|
|
19
|
+
const business_object_data_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/business-object-data.decorator");
|
|
20
|
+
const search_property_state_enum_1 = require("@colijnit/ioneconnector/build/enum/search-property-state.enum");
|
|
21
|
+
const sort_type_enum_1 = require("@colijnit/ioneconnector/build/enum/sort-type.enum");
|
|
22
|
+
const sort_direction_1 = require("@colijnit/ioneconnector/build/enum/sort-direction");
|
|
23
|
+
const date_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/date-field.decorator");
|
|
24
|
+
let CoNotition = class CoNotition extends business_object_1.BusinessObject {
|
|
25
|
+
constructor() {
|
|
26
|
+
super();
|
|
27
|
+
this.creationDate = new Date();
|
|
28
|
+
this.display = note_display_type_enum_1.NoteDisplayType.AlwaysDisplay;
|
|
29
|
+
this.manual = false;
|
|
30
|
+
this.rights = [];
|
|
31
|
+
}
|
|
32
|
+
getId() {
|
|
33
|
+
return this.notId;
|
|
34
|
+
}
|
|
35
|
+
hasWriteAccess(group) {
|
|
36
|
+
const len = this.rights.length;
|
|
37
|
+
for (let i = 0; i < len; i++) {
|
|
38
|
+
if (this.rights[i].userGroupId === group && this.rights[i].rightLevel === object_right_type_enum_1.ObjectRightType.ReadWrite) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
get readonly() {
|
|
45
|
+
return this.rightLevel === object_right_type_enum_1.ObjectRightType.ReadOnly;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
__decorate([
|
|
49
|
+
date_field_decorator_1.DateField(),
|
|
50
|
+
__metadata("design:type", Date)
|
|
51
|
+
], CoNotition.prototype, "creationDate", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
boolean_decorator_1.BooleanText("T"),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], CoNotition.prototype, "manual", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
date_field_decorator_1.DateField(),
|
|
58
|
+
__metadata("design:type", Date)
|
|
59
|
+
], CoNotition.prototype, "modifiedDate", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
complex_array_decorator_1.ComplexArray(co_notition_right_bo_1.CoNotitionRight),
|
|
62
|
+
__metadata("design:type", Array)
|
|
63
|
+
], CoNotition.prototype, "rights", void 0);
|
|
64
|
+
CoNotition = __decorate([
|
|
65
|
+
business_object_data_decorator_1.BusinessObjectData({
|
|
66
|
+
name: "Note",
|
|
67
|
+
mapping: data_mapping_enum_1.DataMapping.General,
|
|
68
|
+
searchProperties: [
|
|
69
|
+
{ property: "description", state: search_property_state_enum_1.SearchPropertyState.LockedActive, label: "DESCRIPTION" },
|
|
70
|
+
{ property: "memo", state: search_property_state_enum_1.SearchPropertyState.Inactive, label: "NOTITION" }
|
|
71
|
+
],
|
|
72
|
+
sortProperties: [
|
|
73
|
+
{ property: "description", label: "DESCRIPTION", active: true, type: sort_type_enum_1.SortType.String, direction: sort_direction_1.SortDirection.Ascending }
|
|
74
|
+
]
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:paramtypes", [])
|
|
77
|
+
], CoNotition);
|
|
78
|
+
exports.CoNotition = CoNotition;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
import { ArticlePublication } from '../enum/article-publication.enum';
|
|
3
|
+
import { TextStandardType } from '../enum/text-standard-type';
|
|
4
|
+
import { TextStandardTypeText } from '../enum/text-standard-type-text';
|
|
5
|
+
export declare class CoText extends BusinessObject {
|
|
6
|
+
articleBound: boolean;
|
|
7
|
+
creationDate: any;
|
|
8
|
+
creationUser: string;
|
|
9
|
+
description: string;
|
|
10
|
+
key: string;
|
|
11
|
+
languageCode: any;
|
|
12
|
+
level: any;
|
|
13
|
+
modifiedDate: any;
|
|
14
|
+
modifiedUser: any;
|
|
15
|
+
publicateTo: number;
|
|
16
|
+
publication: ArticlePublication;
|
|
17
|
+
retailFormulas: any[];
|
|
18
|
+
text: string;
|
|
19
|
+
textId: number;
|
|
20
|
+
textNo: number;
|
|
21
|
+
textType: number;
|
|
22
|
+
type: TextStandardType;
|
|
23
|
+
typeText: TextStandardTypeText;
|
|
24
|
+
warning: boolean;
|
|
25
|
+
getId(): any;
|
|
26
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
const boolean_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/boolean.decorator");
|
|
13
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
14
|
+
class CoText extends business_object_1.BusinessObject {
|
|
15
|
+
getId() {
|
|
16
|
+
return this.textId;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
boolean_decorator_1.BooleanText(),
|
|
21
|
+
__metadata("design:type", Boolean)
|
|
22
|
+
], CoText.prototype, "articleBound", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
boolean_decorator_1.BooleanText("T"),
|
|
25
|
+
__metadata("design:type", Boolean)
|
|
26
|
+
], CoText.prototype, "warning", void 0);
|
|
27
|
+
exports.CoText = CoText;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
import { TableName } from "../enum/table-name.enum";
|
|
3
|
+
export declare class ContactMoment extends BusinessObject {
|
|
4
|
+
contactMomentId: number;
|
|
5
|
+
contactMomentDate: Date;
|
|
6
|
+
subject: string;
|
|
7
|
+
description: string;
|
|
8
|
+
employeeId: number;
|
|
9
|
+
contactType: string;
|
|
10
|
+
followUpDate: Date;
|
|
11
|
+
assignToId: number;
|
|
12
|
+
table: TableName;
|
|
13
|
+
key: string;
|
|
14
|
+
contacts: any[];
|
|
15
|
+
constructor();
|
|
16
|
+
getId(): number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
const data_mapping_enum_1 = require("../enum/data-mapping.enum");
|
|
13
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
14
|
+
const business_object_data_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/business-object-data.decorator");
|
|
15
|
+
const date_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/date-field.decorator");
|
|
16
|
+
let ContactMoment = class ContactMoment extends business_object_1.BusinessObject {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
}
|
|
20
|
+
getId() {
|
|
21
|
+
return this.contactMomentId;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
__decorate([
|
|
25
|
+
date_field_decorator_1.DateField(),
|
|
26
|
+
__metadata("design:type", Date)
|
|
27
|
+
], ContactMoment.prototype, "contactMomentDate", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
date_field_decorator_1.DateField(),
|
|
30
|
+
__metadata("design:type", Date)
|
|
31
|
+
], ContactMoment.prototype, "followUpDate", void 0);
|
|
32
|
+
ContactMoment = __decorate([
|
|
33
|
+
business_object_data_decorator_1.BusinessObjectData({
|
|
34
|
+
mapping: data_mapping_enum_1.DataMapping.General
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:paramtypes", [])
|
|
37
|
+
], ContactMoment);
|
|
38
|
+
exports.ContactMoment = ContactMoment;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
export declare class Department extends BusinessObject {
|
|
3
|
+
id: number;
|
|
4
|
+
departmentNo: number;
|
|
5
|
+
name: string;
|
|
6
|
+
remarks: string;
|
|
7
|
+
unitCode: string;
|
|
8
|
+
parentRelationId: number;
|
|
9
|
+
departmentCode: string;
|
|
10
|
+
constructor();
|
|
11
|
+
getId(): number;
|
|
12
|
+
}
|
|
@@ -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
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
13
|
+
const data_mapping_enum_1 = require("../enum/data-mapping.enum");
|
|
14
|
+
const business_object_data_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/business-object-data.decorator");
|
|
15
|
+
const search_property_state_enum_1 = require("@colijnit/ioneconnector/build/enum/search-property-state.enum");
|
|
16
|
+
const search_data_type_enum_1 = require("@colijnit/ioneconnector/build/enum/search-data-type.enum");
|
|
17
|
+
const sort_type_enum_1 = require("@colijnit/ioneconnector/build/enum/sort-type.enum");
|
|
18
|
+
const sort_direction_1 = require("@colijnit/ioneconnector/build/enum/sort-direction");
|
|
19
|
+
let Department = class Department extends business_object_1.BusinessObject {
|
|
20
|
+
constructor() {
|
|
21
|
+
super();
|
|
22
|
+
}
|
|
23
|
+
getId() {
|
|
24
|
+
return this.id;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
Department = __decorate([
|
|
28
|
+
business_object_data_decorator_1.BusinessObjectData({
|
|
29
|
+
name: "DepartmentDTO",
|
|
30
|
+
mapping: data_mapping_enum_1.DataMapping.Simplebasedata,
|
|
31
|
+
label: "DEPARTMENT",
|
|
32
|
+
codeField: "departmentCode",
|
|
33
|
+
descriptionField: "name",
|
|
34
|
+
searchProperties: [
|
|
35
|
+
{ property: "departmentNo", label: "NR", state: search_property_state_enum_1.SearchPropertyState.Active, dataType: search_data_type_enum_1.SearchDataType.NotAString },
|
|
36
|
+
{ property: "name", label: "NAME", state: search_property_state_enum_1.SearchPropertyState.Inactive, dataType: search_data_type_enum_1.SearchDataType.String },
|
|
37
|
+
{ property: "remarks", label: "REMARKS", state: search_property_state_enum_1.SearchPropertyState.Inactive, dataType: search_data_type_enum_1.SearchDataType.String },
|
|
38
|
+
{
|
|
39
|
+
property: "unitCode",
|
|
40
|
+
label: "UNIT_CODE",
|
|
41
|
+
state: search_property_state_enum_1.SearchPropertyState.Inactive,
|
|
42
|
+
dataType: search_data_type_enum_1.SearchDataType.String
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
property: "parentRelationId",
|
|
46
|
+
label: "PARENT_RELATION",
|
|
47
|
+
state: search_property_state_enum_1.SearchPropertyState.Inactive,
|
|
48
|
+
dataType: search_data_type_enum_1.SearchDataType.NotAString
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
filterProperties: [],
|
|
52
|
+
sortProperties: [
|
|
53
|
+
{
|
|
54
|
+
property: "departmentNo",
|
|
55
|
+
label: "NR",
|
|
56
|
+
active: true,
|
|
57
|
+
type: sort_type_enum_1.SortType.Number,
|
|
58
|
+
direction: sort_direction_1.SortDirection.Ascending
|
|
59
|
+
},
|
|
60
|
+
{ property: "name", label: "NAME", active: false, type: sort_type_enum_1.SortType.String },
|
|
61
|
+
{ property: "remarks", label: "REMARKS", active: false, type: sort_type_enum_1.SortType.String },
|
|
62
|
+
{ property: "unitCode", label: "UNIT_CODE", active: false, type: sort_type_enum_1.SortType.String },
|
|
63
|
+
{ property: "parentRelationId", label: "PARENT_RELATION", active: false, type: sort_type_enum_1.SortType.Number }
|
|
64
|
+
]
|
|
65
|
+
}),
|
|
66
|
+
__metadata("design:paramtypes", [])
|
|
67
|
+
], Department);
|
|
68
|
+
exports.Department = Department;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
import { InsuredInterestType } from "../enum/insured-interest-type.enum";
|
|
3
|
+
export declare class InsuredInterest extends BusinessObject {
|
|
4
|
+
id: number;
|
|
5
|
+
relationId: number;
|
|
6
|
+
supplierId: number;
|
|
7
|
+
type: InsuredInterestType;
|
|
8
|
+
contractNumber: string;
|
|
9
|
+
supplierName: string;
|
|
10
|
+
supplierNameLoaded: boolean;
|
|
11
|
+
constructor();
|
|
12
|
+
getId(): number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
const data_mapping_enum_1 = require("../enum/data-mapping.enum");
|
|
13
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
14
|
+
const business_object_data_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/business-object-data.decorator");
|
|
15
|
+
const no_db_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/no-db-field.decorator");
|
|
16
|
+
let InsuredInterest = class InsuredInterest extends business_object_1.BusinessObject {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
}
|
|
20
|
+
getId() {
|
|
21
|
+
return this.id;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
__decorate([
|
|
25
|
+
no_db_field_decorator_1.NoDbField(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], InsuredInterest.prototype, "supplierName", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
no_db_field_decorator_1.NoDbField(),
|
|
30
|
+
__metadata("design:type", Boolean)
|
|
31
|
+
], InsuredInterest.prototype, "supplierNameLoaded", void 0);
|
|
32
|
+
InsuredInterest = __decorate([
|
|
33
|
+
business_object_data_decorator_1.BusinessObjectData({
|
|
34
|
+
mapping: data_mapping_enum_1.DataMapping.Simplebasedata
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:paramtypes", [])
|
|
37
|
+
], InsuredInterest);
|
|
38
|
+
exports.InsuredInterest = InsuredInterest;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
import { OwnRiskType } from '../enum/own-risk.enum';
|
|
3
|
+
export declare class OwnRisk extends BusinessObject {
|
|
4
|
+
id: number;
|
|
5
|
+
type: OwnRiskType;
|
|
6
|
+
isRiskTaker: boolean;
|
|
7
|
+
startDate: Date;
|
|
8
|
+
endDate: Date;
|
|
9
|
+
constructor();
|
|
10
|
+
getId(): number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
const data_mapping_enum_1 = require("../enum/data-mapping.enum");
|
|
13
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
14
|
+
const business_object_data_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/business-object-data.decorator");
|
|
15
|
+
const date_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/date-field.decorator");
|
|
16
|
+
let OwnRisk = class OwnRisk extends business_object_1.BusinessObject {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
}
|
|
20
|
+
getId() {
|
|
21
|
+
return this.id;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
__decorate([
|
|
25
|
+
date_field_decorator_1.DateField(),
|
|
26
|
+
__metadata("design:type", Date)
|
|
27
|
+
], OwnRisk.prototype, "startDate", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
date_field_decorator_1.DateField(),
|
|
30
|
+
__metadata("design:type", Date)
|
|
31
|
+
], OwnRisk.prototype, "endDate", void 0);
|
|
32
|
+
OwnRisk = __decorate([
|
|
33
|
+
business_object_data_decorator_1.BusinessObjectData({
|
|
34
|
+
mapping: data_mapping_enum_1.DataMapping.Simplebasedata
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:paramtypes", [])
|
|
37
|
+
], OwnRisk);
|
|
38
|
+
exports.OwnRisk = OwnRisk;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
export declare class PrivacySetting extends BusinessObject {
|
|
3
|
+
id: number;
|
|
4
|
+
code: string;
|
|
5
|
+
description: string;
|
|
6
|
+
explanation: string;
|
|
7
|
+
constructor();
|
|
8
|
+
getId(): number;
|
|
9
|
+
}
|