@techextensor/tab-core-utility 2.1.7 → 2.1.8
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/esm2022/index.mjs +64 -0
- package/esm2022/lib/tab-core-utility/app/constants/api-constants.mjs +33 -0
- package/esm2022/lib/tab-core-utility/app/constants/common.mjs +25 -0
- package/esm2022/lib/tab-core-utility/app/constants/error-messages.mjs +13 -0
- package/esm2022/lib/tab-core-utility/app/constants/storage-constants.mjs +16 -0
- package/esm2022/lib/tab-core-utility/app/crud/tab-delete.service.mjs +145 -0
- package/esm2022/lib/tab-core-utility/app/crud/tab-get.service.mjs +131 -0
- package/esm2022/lib/tab-core-utility/app/crud/tab-insert.service.mjs +77 -0
- package/esm2022/lib/tab-core-utility/app/crud/tab-update.service.mjs +105 -0
- package/esm2022/lib/tab-core-utility/app/crud/tab-workflow.service.mjs +43 -0
- package/esm2022/lib/tab-core-utility/app/enums/controllers.enum.mjs +26 -0
- package/esm2022/lib/tab-core-utility/app/enums/dsq.enum.mjs +48 -0
- package/esm2022/lib/tab-core-utility/app/enums/permission.enum.mjs +20 -0
- package/esm2022/lib/tab-core-utility/app/enums/query.enum.mjs +14 -0
- package/esm2022/lib/tab-core-utility/app/enums/workflow.enum.mjs +37 -0
- package/esm2022/lib/tab-core-utility/app/helpers/common/app.helpers.mjs +68 -0
- package/esm2022/lib/tab-core-utility/app/helpers/common/dsq.helpers.mjs +70 -0
- package/esm2022/lib/tab-core-utility/app/helpers/common/req-res.helpers.mjs +64 -0
- package/esm2022/lib/tab-core-utility/app/helpers/common/where-clause.helpers.mjs +208 -0
- package/esm2022/lib/tab-core-utility/app/helpers/screen/forms.helpers.mjs +38 -0
- package/esm2022/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.mjs +78 -0
- package/esm2022/lib/tab-core-utility/app/helpers/screen/grid.helpers.mjs +112 -0
- package/esm2022/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.mjs +77 -0
- package/esm2022/lib/tab-core-utility/app/helpers/screen/plugin.helpers.mjs +55 -0
- package/esm2022/lib/tab-core-utility/app/helpers/screen/screen.helpers.mjs +26 -0
- package/esm2022/lib/tab-core-utility/app/interfaces/auth.interface.mjs +2 -0
- package/esm2022/lib/tab-core-utility/app/interfaces/common-api.interface.mjs +2 -0
- package/esm2022/lib/tab-core-utility/app/interfaces/grid.interface.mjs +3 -0
- package/esm2022/lib/tab-core-utility/app/interfaces/orgInfo.interface.mjs +2 -0
- package/esm2022/lib/tab-core-utility/app/interfaces/schema.interface.mjs +2 -0
- package/esm2022/lib/tab-core-utility/app/interfaces/user.interface.mjs +2 -0
- package/esm2022/lib/tab-core-utility/app/models/api-query.class.mjs +47 -0
- package/esm2022/lib/tab-core-utility/app/models/app-object.class.mjs +30 -0
- package/esm2022/lib/tab-core-utility/app/models/common.class.mjs +12 -0
- package/esm2022/lib/tab-core-utility/app/models/data-source-queries.class.mjs +31 -0
- package/esm2022/lib/tab-core-utility/app/utils/filter.util.mjs +75 -0
- package/esm2022/lib/tab-core-utility/app/utils/form-builder.util.mjs +39 -0
- package/esm2022/lib/tab-core-utility/app/utils/json.util.mjs +138 -0
- package/esm2022/lib/tab-core-utility/app/utils/operators.util.mjs +129 -0
- package/esm2022/lib/tab-core-utility/app/utils/req-res.util.mjs +168 -0
- package/esm2022/lib/tab-core-utility/app/utils/tab-app.util.mjs +99 -0
- package/esm2022/lib/tab-core-utility/auth/auth.service.mjs +74 -0
- package/esm2022/lib/tab-core-utility/auth/idb-storage.service.mjs +69 -0
- package/esm2022/lib/tab-core-utility/auth/local-storage.service.mjs +52 -0
- package/esm2022/lib/tab-core-utility/auth/session-storage.service.mjs +52 -0
- package/esm2022/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.mjs +26 -0
- package/esm2022/lib/tab-core-utility/core/error-handler/error-handler.store.mjs +21 -0
- package/esm2022/lib/tab-core-utility/core/error-handler/models/error-handler.state.mjs +5 -0
- package/esm2022/lib/tab-core-utility/core/http-client/api-url.token.mjs +4 -0
- package/esm2022/lib/tab-core-utility/core/http-client/api.service.mjs +99 -0
- package/esm2022/lib/tab-core-utility/core/util/auth.utils.mjs +21 -0
- package/esm2022/lib/tab-core-utility/store/auth.store.mjs +43 -0
- package/esm2022/lib/tab-core-utility/store/orginfo.store.mjs +42 -0
- package/esm2022/lib/tab-core-utility/store/schema.store.mjs +68 -0
- package/esm2022/techextensor-tab-core-utility.mjs +5 -0
- package/{src/index.ts → index.d.ts} +53 -77
- package/lib/tab-core-utility/app/constants/api-constants.d.ts +30 -0
- package/lib/tab-core-utility/app/constants/common.d.ts +8 -0
- package/lib/tab-core-utility/app/constants/error-messages.d.ts +6 -0
- package/lib/tab-core-utility/app/constants/storage-constants.d.ts +15 -0
- package/lib/tab-core-utility/app/crud/tab-delete.service.d.ts +51 -0
- package/lib/tab-core-utility/app/crud/tab-get.service.d.ts +58 -0
- package/lib/tab-core-utility/app/crud/tab-insert.service.d.ts +37 -0
- package/lib/tab-core-utility/app/crud/tab-update.service.d.ts +14 -0
- package/lib/tab-core-utility/app/crud/tab-workflow.service.d.ts +20 -0
- package/lib/tab-core-utility/app/enums/controllers.enum.d.ts +24 -0
- package/lib/tab-core-utility/app/enums/dsq.enum.d.ts +42 -0
- package/lib/tab-core-utility/app/enums/permission.enum.d.ts +16 -0
- package/lib/tab-core-utility/app/enums/query.enum.d.ts +11 -0
- package/lib/tab-core-utility/app/enums/workflow.enum.d.ts +30 -0
- package/lib/tab-core-utility/app/helpers/common/app.helpers.d.ts +31 -0
- package/lib/tab-core-utility/app/helpers/common/dsq.helpers.d.ts +32 -0
- package/lib/tab-core-utility/app/helpers/common/req-res.helpers.d.ts +62 -0
- package/lib/tab-core-utility/app/helpers/common/where-clause.helpers.d.ts +82 -0
- package/lib/tab-core-utility/app/helpers/screen/forms.helpers.d.ts +11 -0
- package/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.d.ts +33 -0
- package/lib/tab-core-utility/app/helpers/screen/grid.helpers.d.ts +63 -0
- package/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.d.ts +38 -0
- package/lib/tab-core-utility/app/helpers/screen/plugin.helpers.d.ts +25 -0
- package/lib/tab-core-utility/app/helpers/screen/screen.helpers.d.ts +11 -0
- package/{src/lib/tab-core-utility/app/interfaces/auth.interface.ts → lib/tab-core-utility/app/interfaces/auth.interface.d.ts} +15 -18
- package/lib/tab-core-utility/app/interfaces/common-api.interface.d.ts +24 -0
- package/lib/tab-core-utility/app/interfaces/grid.interface.d.ts +110 -0
- package/lib/tab-core-utility/app/interfaces/orgInfo.interface.d.ts +31 -0
- package/lib/tab-core-utility/app/interfaces/schema.interface.d.ts +11 -0
- package/lib/tab-core-utility/app/interfaces/user.interface.d.ts +84 -0
- package/lib/tab-core-utility/app/models/api-query.class.d.ts +69 -0
- package/lib/tab-core-utility/app/models/app-object.class.d.ts +74 -0
- package/lib/tab-core-utility/app/models/common.class.d.ts +24 -0
- package/lib/tab-core-utility/app/models/data-source-queries.class.d.ts +95 -0
- package/lib/tab-core-utility/app/utils/filter.util.d.ts +30 -0
- package/lib/tab-core-utility/app/utils/form-builder.util.d.ts +13 -0
- package/lib/tab-core-utility/app/utils/json.util.d.ts +25 -0
- package/lib/tab-core-utility/app/utils/operators.util.d.ts +21 -0
- package/lib/tab-core-utility/app/utils/req-res.util.d.ts +61 -0
- package/lib/tab-core-utility/app/utils/tab-app.util.d.ts +48 -0
- package/lib/tab-core-utility/auth/auth.service.d.ts +53 -0
- package/lib/tab-core-utility/auth/idb-storage.service.d.ts +14 -0
- package/lib/tab-core-utility/auth/local-storage.service.d.ts +22 -0
- package/lib/tab-core-utility/auth/session-storage.service.d.ts +22 -0
- package/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.d.ts +3 -0
- package/lib/tab-core-utility/core/error-handler/error-handler.store.d.ts +10 -0
- package/lib/tab-core-utility/core/error-handler/models/error-handler.state.d.ts +5 -0
- package/lib/tab-core-utility/core/http-client/api-url.token.d.ts +3 -0
- package/lib/tab-core-utility/core/http-client/api.service.d.ts +65 -0
- package/lib/tab-core-utility/core/util/auth.utils.d.ts +9 -0
- package/lib/tab-core-utility/store/auth.store.d.ts +19 -0
- package/lib/tab-core-utility/store/orginfo.store.d.ts +22 -0
- package/lib/tab-core-utility/store/schema.store.d.ts +32 -0
- package/package.json +31 -18
- package/.eslintrc.json +0 -92
- package/README.md +0 -7
- package/jest.config.ts +0 -22
- package/ng-package.json +0 -7
- package/project.json +0 -42
- package/src/lib/tab-core-utility/app/constants/api-constants.ts +0 -33
- package/src/lib/tab-core-utility/app/constants/common.ts +0 -34
- package/src/lib/tab-core-utility/app/constants/error-messages.ts +0 -21
- package/src/lib/tab-core-utility/app/constants/storage-constants.ts +0 -17
- package/src/lib/tab-core-utility/app/crud/tab-delete.service.ts +0 -144
- package/src/lib/tab-core-utility/app/crud/tab-get.service.ts +0 -160
- package/src/lib/tab-core-utility/app/crud/tab-insert.service.ts +0 -75
- package/src/lib/tab-core-utility/app/crud/tab-update.service.ts +0 -105
- package/src/lib/tab-core-utility/app/crud/tab-workflow.service.ts +0 -39
- package/src/lib/tab-core-utility/app/enums/controllers.enum.ts +0 -24
- package/src/lib/tab-core-utility/app/enums/dsq.enum.ts +0 -46
- package/src/lib/tab-core-utility/app/enums/permission.enum.ts +0 -18
- package/src/lib/tab-core-utility/app/enums/query.enum.ts +0 -12
- package/src/lib/tab-core-utility/app/enums/workflow.enum.ts +0 -35
- package/src/lib/tab-core-utility/app/helpers/common/app.helpers.ts +0 -65
- package/src/lib/tab-core-utility/app/helpers/common/dsq.helpers.ts +0 -80
- package/src/lib/tab-core-utility/app/helpers/common/req-res.helpers.ts +0 -75
- package/src/lib/tab-core-utility/app/helpers/common/where-clause.helpers.ts +0 -262
- package/src/lib/tab-core-utility/app/helpers/screen/forms.helpers.ts +0 -33
- package/src/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.ts +0 -88
- package/src/lib/tab-core-utility/app/helpers/screen/grid.helpers.ts +0 -113
- package/src/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.ts +0 -74
- package/src/lib/tab-core-utility/app/helpers/screen/plugin.helpers.ts +0 -52
- package/src/lib/tab-core-utility/app/helpers/screen/screen.helpers.ts +0 -20
- package/src/lib/tab-core-utility/app/interfaces/common-api.interface.ts +0 -27
- package/src/lib/tab-core-utility/app/interfaces/grid.interface.ts +0 -118
- package/src/lib/tab-core-utility/app/interfaces/orgInfo.interface.ts +0 -34
- package/src/lib/tab-core-utility/app/interfaces/schema.interface.ts +0 -11
- package/src/lib/tab-core-utility/app/interfaces/user.interface.ts +0 -91
- package/src/lib/tab-core-utility/app/models/api-query.class.ts +0 -92
- package/src/lib/tab-core-utility/app/models/app-object.class.ts +0 -87
- package/src/lib/tab-core-utility/app/models/common.class.ts +0 -30
- package/src/lib/tab-core-utility/app/models/data-source-queries.class.ts +0 -114
- package/src/lib/tab-core-utility/app/utils/filter.util.ts +0 -78
- package/src/lib/tab-core-utility/app/utils/form-builder.util.ts +0 -31
- package/src/lib/tab-core-utility/app/utils/json.util.ts +0 -137
- package/src/lib/tab-core-utility/app/utils/operators.util.ts +0 -129
- package/src/lib/tab-core-utility/app/utils/req-res.util.ts +0 -189
- package/src/lib/tab-core-utility/app/utils/tab-app.util.ts +0 -131
- package/src/lib/tab-core-utility/auth/auth.service.spec.ts +0 -167
- package/src/lib/tab-core-utility/auth/auth.service.ts +0 -91
- package/src/lib/tab-core-utility/auth/idb-storage.service.ts +0 -77
- package/src/lib/tab-core-utility/auth/local-storage.service.spec.ts +0 -47
- package/src/lib/tab-core-utility/auth/local-storage.service.ts +0 -46
- package/src/lib/tab-core-utility/auth/session-storage.service.spec.ts +0 -47
- package/src/lib/tab-core-utility/auth/session-storage.service.ts +0 -46
- package/src/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.ts +0 -32
- package/src/lib/tab-core-utility/core/error-handler/error-handler.store.spec.ts +0 -16
- package/src/lib/tab-core-utility/core/error-handler/error-handler.store.ts +0 -26
- package/src/lib/tab-core-utility/core/error-handler/models/error-handler.state.ts +0 -9
- package/src/lib/tab-core-utility/core/http-client/api-url.token.ts +0 -4
- package/src/lib/tab-core-utility/core/http-client/api.service.spec.ts +0 -18
- package/src/lib/tab-core-utility/core/http-client/api.service.ts +0 -105
- package/src/lib/tab-core-utility/core/util/auth.utils.ts +0 -22
- package/src/lib/tab-core-utility/store/auth.store.ts +0 -54
- package/src/lib/tab-core-utility/store/orginfo.store.ts +0 -57
- package/src/lib/tab-core-utility/store/schema.store.ts +0 -85
- package/src/test-setup.ts +0 -8
- package/tsconfig.json +0 -29
- package/tsconfig.lib.json +0 -17
- package/tsconfig.lib.prod.json +0 -7
- package/tsconfig.spec.json +0 -16
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
|
|
3
|
-
export interface JqWidghtModel {
|
|
4
|
-
width?: number | any;
|
|
5
|
-
height?: number | any;
|
|
6
|
-
source?: SourceModel;
|
|
7
|
-
columns?: Array<ColumnDetailModel>;
|
|
8
|
-
isPageable?: boolean;
|
|
9
|
-
isAutoheight?: boolean;
|
|
10
|
-
isSortable?: boolean;
|
|
11
|
-
selectionmode?: string;
|
|
12
|
-
columngroups?: Array<ColumngroupModel>;
|
|
13
|
-
isAltRow?: boolean;
|
|
14
|
-
isenabletooltips?: boolean;
|
|
15
|
-
iseditable?: boolean;
|
|
16
|
-
sourceId?: string;
|
|
17
|
-
typeOfData?: string;
|
|
18
|
-
actualData?: Array<any>;
|
|
19
|
-
dataField?: Array<DataFieldsModel>;
|
|
20
|
-
actionArray?: Array<ActionModel>;
|
|
21
|
-
isShowToolbar?: boolean;
|
|
22
|
-
isShowStatusBar?: boolean;
|
|
23
|
-
actionsIn?: string;
|
|
24
|
-
isFilterable?: boolean;
|
|
25
|
-
isSortbackGroungColor?: boolean;
|
|
26
|
-
isautoshowfiltericon?: boolean;
|
|
27
|
-
isshowfilterrow?: boolean;
|
|
28
|
-
pagermode?: string;
|
|
29
|
-
isGroupable?: boolean;
|
|
30
|
-
isRowlevelEdit?: boolean;
|
|
31
|
-
isRowlevelDelete?: boolean;
|
|
32
|
-
isRowlevelView?: boolean;
|
|
33
|
-
primaryKeycolumnName?: string;
|
|
34
|
-
gridId?: string;
|
|
35
|
-
id?: string;
|
|
36
|
-
groups?: any;
|
|
37
|
-
groupColumns?: string;
|
|
38
|
-
gridColumnArr?: Array<string> | any;
|
|
39
|
-
theme?: string;
|
|
40
|
-
pagesizeoptions?: string;
|
|
41
|
-
defaultPageSize?: string;
|
|
42
|
-
currentScreenId?: string;
|
|
43
|
-
customNavigate?: string;
|
|
44
|
-
gridName?: string;
|
|
45
|
-
gridState?: string | any;
|
|
46
|
-
iscolumnsreorder?: boolean;
|
|
47
|
-
isStateB?: boolean;
|
|
48
|
-
addScreenId?: string;
|
|
49
|
-
editScreenId?: string;
|
|
50
|
-
viewScreenId?: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface SourceModel {
|
|
54
|
-
datatype?: string;
|
|
55
|
-
datafields?: Array<DataFieldsModel>;
|
|
56
|
-
id?: string;
|
|
57
|
-
localdata?: any;
|
|
58
|
-
pagesize?: string;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface DataFieldsModel {
|
|
62
|
-
name?: string;
|
|
63
|
-
type?: string;
|
|
64
|
-
seq?: number;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface ColumnDetailModel {
|
|
68
|
-
text?: string;
|
|
69
|
-
dataField?: string;
|
|
70
|
-
width?: string;
|
|
71
|
-
cellsalign?: string;
|
|
72
|
-
cellsformat?: string;
|
|
73
|
-
columnType?: string;
|
|
74
|
-
columnGroup?: string;
|
|
75
|
-
editable?: boolean;
|
|
76
|
-
buttonclick?: any;
|
|
77
|
-
renderer?: any;
|
|
78
|
-
columntype?: string;
|
|
79
|
-
filtertype?: string;
|
|
80
|
-
seq?: number;
|
|
81
|
-
align?: string;
|
|
82
|
-
sortable?: boolean;
|
|
83
|
-
hidden?: boolean;
|
|
84
|
-
filterable?: boolean;
|
|
85
|
-
cellsrenderer?: any;
|
|
86
|
-
filterParameter?: string;
|
|
87
|
-
addScreenId?: string;
|
|
88
|
-
editScreenId?: string;
|
|
89
|
-
viewScreenId?: string;
|
|
90
|
-
appFieldId?: string;
|
|
91
|
-
isPrimaryKey?: boolean;
|
|
92
|
-
LookUpDetails?: any;
|
|
93
|
-
dropDownLookup?: any;
|
|
94
|
-
SystemDBFieldName?: any;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface ColumngroupModel {
|
|
98
|
-
text?: string;
|
|
99
|
-
align?: string;
|
|
100
|
-
name?: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export interface ActionModel {
|
|
104
|
-
name?: string;
|
|
105
|
-
imgSrc?: string;
|
|
106
|
-
buttonWidth?: number;
|
|
107
|
-
buttonHeight?: number;
|
|
108
|
-
buttonValue?: string;
|
|
109
|
-
imgPosition?: string;
|
|
110
|
-
textPosition?: string;
|
|
111
|
-
textImageRelation?: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface ColumnLevelActions {
|
|
115
|
-
name?: string;
|
|
116
|
-
rowId?: number;
|
|
117
|
-
valueToShow?: string;
|
|
118
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { RecordInfo } from "./common-api.interface"
|
|
2
|
-
|
|
3
|
-
export interface OrgInfoResponse {
|
|
4
|
-
RequestId: string
|
|
5
|
-
IsSuccess: boolean
|
|
6
|
-
Result: Result[]
|
|
7
|
-
StatusCode: string
|
|
8
|
-
RecordAffectted: number
|
|
9
|
-
TotalRecords: number
|
|
10
|
-
TotalExecutionTime: number
|
|
11
|
-
Log: string[]
|
|
12
|
-
Errors: any[]
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface Result {
|
|
16
|
-
RecordInfo: RecordInfo
|
|
17
|
-
LocaleSettings: string
|
|
18
|
-
OrganizationName: string
|
|
19
|
-
ID: string
|
|
20
|
-
PrimaryContact: any
|
|
21
|
-
Address: any
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface Info {
|
|
25
|
-
FavIcon: string,
|
|
26
|
-
Org_Brand_Color: string,
|
|
27
|
-
Org_Logo: string,
|
|
28
|
-
Org_Menu_Logo: string,
|
|
29
|
-
ShowSignUp: string,
|
|
30
|
-
TagLine: string,
|
|
31
|
-
profileScreenID: string,
|
|
32
|
-
workFlowName: string,
|
|
33
|
-
OrganizationName: string
|
|
34
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
export interface User {
|
|
2
|
-
id: string;
|
|
3
|
-
email: string;
|
|
4
|
-
token: string;
|
|
5
|
-
username: string;
|
|
6
|
-
bio: string;
|
|
7
|
-
image: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface UserResponse {
|
|
11
|
-
user: User;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface UserStore {
|
|
15
|
-
id: any
|
|
16
|
-
email: string
|
|
17
|
-
name: string
|
|
18
|
-
avatar: string
|
|
19
|
-
status: string
|
|
20
|
-
token: string
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface LoginResponse {
|
|
24
|
-
RequestId: string
|
|
25
|
-
IsSuccess: boolean
|
|
26
|
-
Result: Result
|
|
27
|
-
StatusCode: string
|
|
28
|
-
RecordAffectted: number
|
|
29
|
-
TotalRecords: number
|
|
30
|
-
TotalExecutionTime: number
|
|
31
|
-
Log: any[]
|
|
32
|
-
Errors: any[]
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface Result {
|
|
36
|
-
user: User
|
|
37
|
-
Token: string
|
|
38
|
-
RefreshToken: string
|
|
39
|
-
Success: boolean
|
|
40
|
-
Errors: any
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface User {
|
|
44
|
-
Id: any
|
|
45
|
-
PersonData: PersonData
|
|
46
|
-
UserName: string
|
|
47
|
-
Teams: any
|
|
48
|
-
Roles: Role[]
|
|
49
|
-
OrgDetails: any
|
|
50
|
-
MailingAddress: any
|
|
51
|
-
Locale: any
|
|
52
|
-
Attributes: Attributes
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface PersonData {
|
|
56
|
-
FirstName: string
|
|
57
|
-
MiddleName: any
|
|
58
|
-
ProfileImageURL: any
|
|
59
|
-
LastName: string
|
|
60
|
-
EmailID: any
|
|
61
|
-
Contacts: any
|
|
62
|
-
NotificationDetails: string
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
interface Role {
|
|
66
|
-
ID: string
|
|
67
|
-
RoleName: string
|
|
68
|
-
Description: any
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface Attributes {
|
|
72
|
-
IsEnabled: string
|
|
73
|
-
LocaleSettings: any
|
|
74
|
-
LastLoginTime: string
|
|
75
|
-
PersonId: string
|
|
76
|
-
Id: string
|
|
77
|
-
UserName: string
|
|
78
|
-
NormalizedUserName: string
|
|
79
|
-
Email: string
|
|
80
|
-
NormalizedEmail: string
|
|
81
|
-
EmailConfirmed: string
|
|
82
|
-
PasswordHash: string
|
|
83
|
-
SecurityStamp: string
|
|
84
|
-
ConcurrencyStamp: string
|
|
85
|
-
PhoneNumber: any
|
|
86
|
-
PhoneNumberConfirmed: string
|
|
87
|
-
TwoFactorEnabled: string
|
|
88
|
-
LockoutEnd: any
|
|
89
|
-
LockoutEnabled: string
|
|
90
|
-
AccessFailedCount: string
|
|
91
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-inferrable-types */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
ConjuctionClause,
|
|
6
|
-
RelationalOperator,
|
|
7
|
-
FilterValueType,
|
|
8
|
-
SortSequence,
|
|
9
|
-
} from '../enums/dsq.enum';
|
|
10
|
-
import { JoinType, QueryType } from '../enums/query.enum';
|
|
11
|
-
import { LookUpDetails } from './data-source-queries.class';
|
|
12
|
-
|
|
13
|
-
export class APIQuery {
|
|
14
|
-
QueryObjectID: string | any;
|
|
15
|
-
QueryType: QueryType | any;
|
|
16
|
-
Joins: JoinDetails[];
|
|
17
|
-
WhereClause: APIFilterCriteria;
|
|
18
|
-
|
|
19
|
-
constructor() {
|
|
20
|
-
this.Joins = new Array<JoinDetails>();
|
|
21
|
-
this.WhereClause = new APIFilterCriteria();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export class APIInsertQuery extends APIQuery {
|
|
26
|
-
Values: APIValueSets[] = [];
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export class APIUpdateQuery extends APIQuery {
|
|
30
|
-
Values: APIValueSets[] = [];
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export class APIDeleteQuery extends APIQuery {}
|
|
34
|
-
|
|
35
|
-
export class APISelectQuery extends APIQuery {
|
|
36
|
-
ResultField_AppfieldIds: string[] = [];
|
|
37
|
-
Sort: APISort[] = [];
|
|
38
|
-
Distinct: boolean = false;
|
|
39
|
-
NoLock: boolean = false;
|
|
40
|
-
TopCount?: number;
|
|
41
|
-
LoadLookUpValues: boolean = false;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export class JoinDetails {
|
|
45
|
-
JoinType: JoinType | any;
|
|
46
|
-
Relationship: ChildRelationShip | any;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export class ChildRelationShip {
|
|
50
|
-
RelSourceObjectID: string | any;
|
|
51
|
-
RelSourceFieldID: string | any;
|
|
52
|
-
RelTargetObjectID: string | any;
|
|
53
|
-
RelTargetFieldID: string | any;
|
|
54
|
-
LocalId!: string;
|
|
55
|
-
childDetails!: LookUpDetails;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export class APIFilterCriteria {
|
|
59
|
-
Filters: APIFilter[] | any;
|
|
60
|
-
FilterLogic: string | any;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export class APIFilter {
|
|
64
|
-
ConjuctionClause: ConjuctionClause | any;
|
|
65
|
-
FieldID: string | any;
|
|
66
|
-
RelationalOperator: RelationalOperator | any;
|
|
67
|
-
ValueType: FilterValueType | any;
|
|
68
|
-
value: string | any;
|
|
69
|
-
Sequence: number | any;
|
|
70
|
-
GroupID: number | any;
|
|
71
|
-
parameterName: string | any;
|
|
72
|
-
Value: string | any;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export class APIValueSets {
|
|
76
|
-
AppFieldID: string | any;
|
|
77
|
-
Value: string | any;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export class APISort {
|
|
81
|
-
ID: string | any;
|
|
82
|
-
FieldID: string | any;
|
|
83
|
-
SortSequence: SortSequence | any;
|
|
84
|
-
Sequence: number | any;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export class APIParameters {
|
|
88
|
-
ID: string | any;
|
|
89
|
-
ParameterName: string | any;
|
|
90
|
-
DataSourceQueryID: string | any;
|
|
91
|
-
MappingFieldName: string | any;
|
|
92
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
|
|
3
|
-
import { ObjectCreationType } from '../enums/dsq.enum';
|
|
4
|
-
import { DeploymentStatus } from '../enums/permission.enum';
|
|
5
|
-
import { ChildRelationShip } from './api-query.class';
|
|
6
|
-
import {
|
|
7
|
-
Configurations,
|
|
8
|
-
EmailTemplate,
|
|
9
|
-
Profile,
|
|
10
|
-
Resources,
|
|
11
|
-
Role,
|
|
12
|
-
} from './common.class';
|
|
13
|
-
import { AppFields, DataSourceQueries } from './data-source-queries.class';
|
|
14
|
-
|
|
15
|
-
export class Application {
|
|
16
|
-
ID: string | any;
|
|
17
|
-
AppName: string | any;
|
|
18
|
-
DisplayName: string | any;
|
|
19
|
-
PlatformVersion: string | any;
|
|
20
|
-
AppVersion: string | any;
|
|
21
|
-
Description: string | any;
|
|
22
|
-
AppObjects: AppObject[] = [];
|
|
23
|
-
AppScreens: AppScreen[] = [];
|
|
24
|
-
AppMenus: AppMenu[] = [];
|
|
25
|
-
AppConfigurations: Configurations[] = [];
|
|
26
|
-
Roles?: Role[] = [];
|
|
27
|
-
Profiles?: Profile[] = [];
|
|
28
|
-
WorkFlows: any[] = [];
|
|
29
|
-
Plugins: any[] = [];
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export class AppObject {
|
|
33
|
-
ID: string | any;
|
|
34
|
-
ObjectName: string | any;
|
|
35
|
-
DisplayName: string | any;
|
|
36
|
-
Description: string | any;
|
|
37
|
-
EnableTracking!: boolean | false;
|
|
38
|
-
AllowSearchable!: boolean | false;
|
|
39
|
-
CreationType: ObjectCreationType | any;
|
|
40
|
-
AllowReports!: boolean | false;
|
|
41
|
-
AllowActivities!: boolean | false;
|
|
42
|
-
AllowSharing!: boolean | false;
|
|
43
|
-
DeploymentStatus: DeploymentStatus | any;
|
|
44
|
-
Fields: AppFields[] = [];
|
|
45
|
-
ChildRelationShips: ChildRelationShip[] = [];
|
|
46
|
-
DataSourceQueries: DataSourceQueries[] = [];
|
|
47
|
-
SystemDBTableName: string | any;
|
|
48
|
-
AccessList: ObjectAccess[] = [];
|
|
49
|
-
EmailTemplates: EmailTemplate[] = [];
|
|
50
|
-
Resources: Resources[] = [];
|
|
51
|
-
IsSystem!: boolean | false;
|
|
52
|
-
IsVisible!: boolean | false;
|
|
53
|
-
IsDeprecated!: boolean | false;
|
|
54
|
-
ObjectID_Tosave: string | any;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export class ObjectAccess {
|
|
58
|
-
ID!: string;
|
|
59
|
-
ProfileID!: Profile;
|
|
60
|
-
IsVisible!: boolean;
|
|
61
|
-
IsReadOnly!: boolean;
|
|
62
|
-
CanCreate!: boolean;
|
|
63
|
-
CanEdit!: boolean;
|
|
64
|
-
CanDelete!: boolean;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export class AppMenu {
|
|
68
|
-
ID: string | any;
|
|
69
|
-
MenuName: string | any;
|
|
70
|
-
DisplayName: string | any;
|
|
71
|
-
ScreenID: string | any;
|
|
72
|
-
ShortCut: string | any;
|
|
73
|
-
Icon: string | any;
|
|
74
|
-
ParentID?: number;
|
|
75
|
-
Sequence?: number;
|
|
76
|
-
Url: string | any;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export class AppScreen {
|
|
80
|
-
ID: string | any;
|
|
81
|
-
Name: string | any;
|
|
82
|
-
Description: string | any;
|
|
83
|
-
DataSourceQuery: DataSourceQueries | any;
|
|
84
|
-
Container: string | any;
|
|
85
|
-
ScreenType: number | any;
|
|
86
|
-
DataSourceQueryID: string | any;
|
|
87
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
|
|
3
|
-
export class Role {
|
|
4
|
-
ID: string | any;
|
|
5
|
-
RoleName: string | any;
|
|
6
|
-
Description: string | any;
|
|
7
|
-
ParentRole: Role | any;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export class Configurations {
|
|
11
|
-
ID: string | any;
|
|
12
|
-
Setting_Key: string | any;
|
|
13
|
-
Value: string | any;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export class Profile {
|
|
17
|
-
ID!: string;
|
|
18
|
-
ProfileName!: string;
|
|
19
|
-
Description!: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export class Resources {
|
|
23
|
-
ID!: string;
|
|
24
|
-
Value!: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export class EmailTemplate {
|
|
28
|
-
ID!: string;
|
|
29
|
-
Template!: string;
|
|
30
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
|
|
3
|
-
import { DataTypes } from '../enums/controllers.enum';
|
|
4
|
-
import {
|
|
5
|
-
SortSequence,
|
|
6
|
-
ConjuctionClause,
|
|
7
|
-
RelationalOperator,
|
|
8
|
-
ObjectCreationType,
|
|
9
|
-
} from '../enums/dsq.enum';
|
|
10
|
-
import { AppObject } from './app-object.class';
|
|
11
|
-
import { Profile } from './common.class';
|
|
12
|
-
|
|
13
|
-
export class DataSourceQueries {
|
|
14
|
-
ID!: string;
|
|
15
|
-
ObjectID!: AppObject;
|
|
16
|
-
ObjectID_Tosave!: string;
|
|
17
|
-
QueryName!: string;
|
|
18
|
-
DisplayName!: string;
|
|
19
|
-
Fields: DataSourceQueries_Fields[] = [];
|
|
20
|
-
Filters!: FilterCriteria;
|
|
21
|
-
Sort: Sort[] = [];
|
|
22
|
-
Parameters: Parameters[] = [];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export class DataSourceQueries_Fields {
|
|
26
|
-
Field!: AppFields;
|
|
27
|
-
SeqNo!: number;
|
|
28
|
-
Field_GridAttributes!: string;
|
|
29
|
-
LookupDetails!: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export class Parameters {
|
|
33
|
-
ID!: string;
|
|
34
|
-
ParameterName!: string;
|
|
35
|
-
DataSourceQueryID!: string;
|
|
36
|
-
MappingFieldName!: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export class Sort {
|
|
40
|
-
ID!: string;
|
|
41
|
-
Field!: AppFields;
|
|
42
|
-
SortSequence!: SortSequence;
|
|
43
|
-
Sequence!: number;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export class FilterCriteria {
|
|
47
|
-
Filters!: Filter;
|
|
48
|
-
FilterLogic!: string;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export class Filter {
|
|
52
|
-
ID!: string;
|
|
53
|
-
ConjuctionClause!: ConjuctionClause;
|
|
54
|
-
Field!: string;
|
|
55
|
-
RelationalOperator!: RelationalOperator;
|
|
56
|
-
ValueType: any;
|
|
57
|
-
value!: string;
|
|
58
|
-
Sequence!: number;
|
|
59
|
-
GroupID!: number;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export class AppFields {
|
|
63
|
-
ID!: string;
|
|
64
|
-
ObjectID!: AppObject;
|
|
65
|
-
FieldName!: string;
|
|
66
|
-
DisplayName!: string;
|
|
67
|
-
FieldType!: FieldType;
|
|
68
|
-
Description!: string;
|
|
69
|
-
CreationType!: ObjectCreationType;
|
|
70
|
-
IsRequired!: boolean;
|
|
71
|
-
IsUnique!: boolean;
|
|
72
|
-
IsSearchable!: boolean;
|
|
73
|
-
IsConfidential!: boolean;
|
|
74
|
-
SystemDBFieldName!: string;
|
|
75
|
-
IsSystem!: boolean;
|
|
76
|
-
IsVisible!: boolean;
|
|
77
|
-
IsDeprecated!: boolean;
|
|
78
|
-
LookUpDetails!: LookUpDetails;
|
|
79
|
-
AccessList!: FieldAccess[];
|
|
80
|
-
Data!: string;
|
|
81
|
-
IsPrimaryKey!: boolean;
|
|
82
|
-
Field!: AppFields;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export class FieldType {
|
|
86
|
-
DataType!: DataTypes;
|
|
87
|
-
RelationalOperator!: RelationalOperator[];
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export class LookUpDetails {
|
|
91
|
-
LookupObject!: string;
|
|
92
|
-
LookupField!: string;
|
|
93
|
-
DisplayField!: string;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export class FieldAccess {
|
|
97
|
-
ID!: string;
|
|
98
|
-
ProfileID!: Profile;
|
|
99
|
-
IsVisible!: boolean;
|
|
100
|
-
IsReadOnly!: boolean;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export class UpdateQueryParameter {
|
|
104
|
-
FieldName!: string;
|
|
105
|
-
FieldValue!: string | number;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export class ScreenParameter {
|
|
109
|
-
event: any;
|
|
110
|
-
formJson: any;
|
|
111
|
-
formIOObject: any;
|
|
112
|
-
serviceList: any;
|
|
113
|
-
dailogRef: any;
|
|
114
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
/**
|
|
3
|
-
* Returns the filter value type as a string.
|
|
4
|
-
* @param type The filter value type.
|
|
5
|
-
* @returns The filter value type as a string.
|
|
6
|
-
*/
|
|
7
|
-
export function getFilterValueTypeInString(type: number): string {
|
|
8
|
-
switch (type) {
|
|
9
|
-
case 1:
|
|
10
|
-
return 'Literal';
|
|
11
|
-
case 2:
|
|
12
|
-
return 'Parameter';
|
|
13
|
-
case 3:
|
|
14
|
-
return 'Property';
|
|
15
|
-
case 4:
|
|
16
|
-
return 'Global';
|
|
17
|
-
default:
|
|
18
|
-
return '';
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Returns the conjunction clause name based on the type.
|
|
24
|
-
* @param type The conjunction clause type.
|
|
25
|
-
* @returns The conjunction clause name.
|
|
26
|
-
*/
|
|
27
|
-
export function getConjuctionClauseName(type: number): string {
|
|
28
|
-
return type === 1 ? 'and' : 'or';
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Returns the conjunction clause value based on the type.
|
|
33
|
-
* @param type The conjunction clause name.
|
|
34
|
-
* @returns The conjunction clause value.
|
|
35
|
-
*/
|
|
36
|
-
export function getConjuctionClause(type: string): number {
|
|
37
|
-
return type === 'and' ? 1 : 2;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Returns the filter type based on the element.
|
|
42
|
-
* @param element The filter element.
|
|
43
|
-
* @returns The filter type.
|
|
44
|
-
*/
|
|
45
|
-
export function getFilterType(element: any): string {
|
|
46
|
-
switch (element.ValueType) {
|
|
47
|
-
case 1:
|
|
48
|
-
return element.Value;
|
|
49
|
-
case 2:
|
|
50
|
-
return '@' + element.Value;
|
|
51
|
-
case 3:
|
|
52
|
-
return '((' + element.Value + '))';
|
|
53
|
-
case 4:
|
|
54
|
-
return '[[' + element.Value + ']]';
|
|
55
|
-
default:
|
|
56
|
-
return '';
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Returns the filter value type as an integer.
|
|
62
|
-
* @param type The filter value type.
|
|
63
|
-
* @returns The filter value type as an integer.
|
|
64
|
-
*/
|
|
65
|
-
export function getFilterValueTypeInInt(type: string): string {
|
|
66
|
-
switch (type) {
|
|
67
|
-
case 'Literal':
|
|
68
|
-
return '1';
|
|
69
|
-
case 'Parameter':
|
|
70
|
-
return '2';
|
|
71
|
-
case 'Property':
|
|
72
|
-
return '3';
|
|
73
|
-
case 'Global':
|
|
74
|
-
return '4';
|
|
75
|
-
default:
|
|
76
|
-
return '0';
|
|
77
|
-
}
|
|
78
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
/**
|
|
3
|
-
* Returns the form builder type based on the data type.
|
|
4
|
-
* @param dataType The data type.
|
|
5
|
-
* @returns The form builder type.
|
|
6
|
-
*/
|
|
7
|
-
export function getFormBuilderType(dataType: number): string {
|
|
8
|
-
if ([1, 7, 13].includes(dataType)) return 'textfield';
|
|
9
|
-
else if ([2, 3, 4].includes(dataType)) return 'number';
|
|
10
|
-
else if ([5, 6].includes(dataType)) return 'datetime';
|
|
11
|
-
else return 'textfield';
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Returns the field type based on the data type and whether it's a lookup.
|
|
16
|
-
* @param dataType The data type.
|
|
17
|
-
* @param isLookup Indicates if it's a lookup field.
|
|
18
|
-
* @returns The field type.
|
|
19
|
-
*/
|
|
20
|
-
export function getFieldsType(dataType: number, isLookup: any): string {
|
|
21
|
-
if (isLookup && dataType !== 6) return 'string';
|
|
22
|
-
if ([1, 2, 16].includes(dataType)) return 'number';
|
|
23
|
-
else if (dataType === 3) return 'boolean';
|
|
24
|
-
else if (
|
|
25
|
-
[4, ...Array.from({ length: 9 }, (_, i) => i + 7)].includes(dataType)
|
|
26
|
-
)
|
|
27
|
-
return 'string';
|
|
28
|
-
else if (dataType === 5) return 'Date';
|
|
29
|
-
else if (dataType === 6) return 'date';
|
|
30
|
-
else return 'string';
|
|
31
|
-
}
|