@techextensor/tab-core-utility 2.2.11 → 2.2.13
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 +65 -65
- package/esm2022/lib/tab-core-utility/app/constants/api-constants.mjs +35 -0
- package/esm2022/lib/tab-core-utility/app/constants/common.mjs +33 -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-formio.service.mjs +40 -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 +84 -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/template.helpers.mjs +58 -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/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/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/idb-storage.service.mjs +69 -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/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/index.d.ts +53 -0
- package/lib/tab-core-utility/app/constants/api-constants.d.ts +32 -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-formio.service.d.ts +17 -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 +33 -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/template.helpers.d.ts +25 -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/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/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/idb-storage.service.d.ts +14 -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/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/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PluginHelper {
|
|
4
|
+
private readonly apiService;
|
|
5
|
+
/**
|
|
6
|
+
* Uploads a plugin object to the server.
|
|
7
|
+
* @param pluginObject The plugin object to upload.
|
|
8
|
+
* @returns An Observable emitting the response from the server.
|
|
9
|
+
*/
|
|
10
|
+
uploadPlugin(pluginObject: any): Observable<any>;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves a file from the server by its ID.
|
|
13
|
+
* @param Id The ID of the file to retrieve.
|
|
14
|
+
* @returns An Observable emitting the file as a Blob.
|
|
15
|
+
*/
|
|
16
|
+
getFile(Id: number, params?: any): Observable<Blob>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves all plugins by their type from the server.
|
|
19
|
+
* @param pluginType The type of plugins to retrieve.
|
|
20
|
+
* @returns An Observable emitting the response from the server.
|
|
21
|
+
*/
|
|
22
|
+
getAll(pluginType: number, params?: any): Observable<any>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PluginHelper, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PluginHelper>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScreenHelper {
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves screen data based on the provided screen ID.
|
|
5
|
+
* @param screenId The ID of the screen to retrieve.
|
|
6
|
+
* @returns The screen data if found, otherwise null.
|
|
7
|
+
*/
|
|
8
|
+
getScreen(screenId: string): any;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScreenHelper, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScreenHelper>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export interface JqWidghtModel {
|
|
2
|
+
width?: number | any;
|
|
3
|
+
height?: number | any;
|
|
4
|
+
source?: SourceModel;
|
|
5
|
+
columns?: Array<ColumnDetailModel>;
|
|
6
|
+
isPageable?: boolean;
|
|
7
|
+
isAutoheight?: boolean;
|
|
8
|
+
isSortable?: boolean;
|
|
9
|
+
selectionmode?: string;
|
|
10
|
+
columngroups?: Array<ColumngroupModel>;
|
|
11
|
+
isAltRow?: boolean;
|
|
12
|
+
isenabletooltips?: boolean;
|
|
13
|
+
iseditable?: boolean;
|
|
14
|
+
sourceId?: string;
|
|
15
|
+
typeOfData?: string;
|
|
16
|
+
actualData?: Array<any>;
|
|
17
|
+
dataField?: Array<DataFieldsModel>;
|
|
18
|
+
actionArray?: Array<ActionModel>;
|
|
19
|
+
isShowToolbar?: boolean;
|
|
20
|
+
isShowStatusBar?: boolean;
|
|
21
|
+
actionsIn?: string;
|
|
22
|
+
isFilterable?: boolean;
|
|
23
|
+
isSortbackGroungColor?: boolean;
|
|
24
|
+
isautoshowfiltericon?: boolean;
|
|
25
|
+
isshowfilterrow?: boolean;
|
|
26
|
+
pagermode?: string;
|
|
27
|
+
isGroupable?: boolean;
|
|
28
|
+
isRowlevelEdit?: boolean;
|
|
29
|
+
isRowlevelDelete?: boolean;
|
|
30
|
+
isRowlevelView?: boolean;
|
|
31
|
+
primaryKeycolumnName?: string;
|
|
32
|
+
gridId?: string;
|
|
33
|
+
id?: string;
|
|
34
|
+
groups?: any;
|
|
35
|
+
groupColumns?: string;
|
|
36
|
+
gridColumnArr?: Array<string> | any;
|
|
37
|
+
theme?: string;
|
|
38
|
+
pagesizeoptions?: string;
|
|
39
|
+
defaultPageSize?: string;
|
|
40
|
+
currentScreenId?: string;
|
|
41
|
+
customNavigate?: string;
|
|
42
|
+
gridName?: string;
|
|
43
|
+
gridState?: string | any;
|
|
44
|
+
iscolumnsreorder?: boolean;
|
|
45
|
+
isStateB?: boolean;
|
|
46
|
+
addScreenId?: string;
|
|
47
|
+
editScreenId?: string;
|
|
48
|
+
viewScreenId?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface SourceModel {
|
|
51
|
+
datatype?: string;
|
|
52
|
+
datafields?: Array<DataFieldsModel>;
|
|
53
|
+
id?: string;
|
|
54
|
+
localdata?: any;
|
|
55
|
+
pagesize?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface DataFieldsModel {
|
|
58
|
+
name?: string;
|
|
59
|
+
type?: string;
|
|
60
|
+
seq?: number;
|
|
61
|
+
}
|
|
62
|
+
export interface ColumnDetailModel {
|
|
63
|
+
text?: string;
|
|
64
|
+
dataField?: string;
|
|
65
|
+
width?: string;
|
|
66
|
+
cellsalign?: string;
|
|
67
|
+
cellsformat?: string;
|
|
68
|
+
columnType?: string;
|
|
69
|
+
columnGroup?: string;
|
|
70
|
+
editable?: boolean;
|
|
71
|
+
buttonclick?: any;
|
|
72
|
+
renderer?: any;
|
|
73
|
+
columntype?: string;
|
|
74
|
+
filtertype?: string;
|
|
75
|
+
seq?: number;
|
|
76
|
+
align?: string;
|
|
77
|
+
sortable?: boolean;
|
|
78
|
+
hidden?: boolean;
|
|
79
|
+
filterable?: boolean;
|
|
80
|
+
cellsrenderer?: any;
|
|
81
|
+
filterParameter?: string;
|
|
82
|
+
addScreenId?: string;
|
|
83
|
+
editScreenId?: string;
|
|
84
|
+
viewScreenId?: string;
|
|
85
|
+
appFieldId?: string;
|
|
86
|
+
isPrimaryKey?: boolean;
|
|
87
|
+
LookUpDetails?: any;
|
|
88
|
+
dropDownLookup?: any;
|
|
89
|
+
SystemDBFieldName?: any;
|
|
90
|
+
}
|
|
91
|
+
export interface ColumngroupModel {
|
|
92
|
+
text?: string;
|
|
93
|
+
align?: string;
|
|
94
|
+
name?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface ActionModel {
|
|
97
|
+
name?: string;
|
|
98
|
+
imgSrc?: string;
|
|
99
|
+
buttonWidth?: number;
|
|
100
|
+
buttonHeight?: number;
|
|
101
|
+
buttonValue?: string;
|
|
102
|
+
imgPosition?: string;
|
|
103
|
+
textPosition?: string;
|
|
104
|
+
textImageRelation?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface ColumnLevelActions {
|
|
107
|
+
name?: string;
|
|
108
|
+
rowId?: number;
|
|
109
|
+
valueToShow?: string;
|
|
110
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { RecordInfo } from "./common-api.interface";
|
|
2
|
+
export interface OrgInfoResponse {
|
|
3
|
+
RequestId: string;
|
|
4
|
+
IsSuccess: boolean;
|
|
5
|
+
Result: Result[];
|
|
6
|
+
StatusCode: string;
|
|
7
|
+
RecordAffectted: number;
|
|
8
|
+
TotalRecords: number;
|
|
9
|
+
TotalExecutionTime: number;
|
|
10
|
+
Log: string[];
|
|
11
|
+
Errors: any[];
|
|
12
|
+
}
|
|
13
|
+
export interface Result {
|
|
14
|
+
RecordInfo: RecordInfo;
|
|
15
|
+
LocaleSettings: string;
|
|
16
|
+
OrganizationName: string;
|
|
17
|
+
ID: string;
|
|
18
|
+
PrimaryContact: any;
|
|
19
|
+
Address: any;
|
|
20
|
+
}
|
|
21
|
+
export interface Info {
|
|
22
|
+
FavIcon: string;
|
|
23
|
+
Org_Brand_Color: string;
|
|
24
|
+
Org_Logo: string;
|
|
25
|
+
Org_Menu_Logo: string;
|
|
26
|
+
ShowSignUp: string;
|
|
27
|
+
TagLine: string;
|
|
28
|
+
profileScreenID: string;
|
|
29
|
+
workFlowName: string;
|
|
30
|
+
OrganizationName: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ConjuctionClause, RelationalOperator, FilterValueType, SortSequence } from '../enums/dsq.enum';
|
|
2
|
+
import { JoinType, QueryType } from '../enums/query.enum';
|
|
3
|
+
import { LookUpDetails } from './data-source-queries.class';
|
|
4
|
+
export declare class APIQuery {
|
|
5
|
+
QueryObjectID: string | any;
|
|
6
|
+
QueryType: QueryType | any;
|
|
7
|
+
Joins: JoinDetails[];
|
|
8
|
+
WhereClause: APIFilterCriteria;
|
|
9
|
+
constructor();
|
|
10
|
+
}
|
|
11
|
+
export declare class APIInsertQuery extends APIQuery {
|
|
12
|
+
Values: APIValueSets[];
|
|
13
|
+
}
|
|
14
|
+
export declare class APIUpdateQuery extends APIQuery {
|
|
15
|
+
Values: APIValueSets[];
|
|
16
|
+
}
|
|
17
|
+
export declare class APIDeleteQuery extends APIQuery {
|
|
18
|
+
}
|
|
19
|
+
export declare class APISelectQuery extends APIQuery {
|
|
20
|
+
ResultField_AppfieldIds: string[];
|
|
21
|
+
Sort: APISort[];
|
|
22
|
+
Distinct: boolean;
|
|
23
|
+
NoLock: boolean;
|
|
24
|
+
TopCount?: number;
|
|
25
|
+
LoadLookUpValues: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare class JoinDetails {
|
|
28
|
+
JoinType: JoinType | any;
|
|
29
|
+
Relationship: ChildRelationShip | any;
|
|
30
|
+
}
|
|
31
|
+
export declare class ChildRelationShip {
|
|
32
|
+
RelSourceObjectID: string | any;
|
|
33
|
+
RelSourceFieldID: string | any;
|
|
34
|
+
RelTargetObjectID: string | any;
|
|
35
|
+
RelTargetFieldID: string | any;
|
|
36
|
+
LocalId: string;
|
|
37
|
+
childDetails: LookUpDetails;
|
|
38
|
+
}
|
|
39
|
+
export declare class APIFilterCriteria {
|
|
40
|
+
Filters: APIFilter[] | any;
|
|
41
|
+
FilterLogic: string | any;
|
|
42
|
+
}
|
|
43
|
+
export declare class APIFilter {
|
|
44
|
+
ConjuctionClause: ConjuctionClause | any;
|
|
45
|
+
FieldID: string | any;
|
|
46
|
+
RelationalOperator: RelationalOperator | any;
|
|
47
|
+
ValueType: FilterValueType | any;
|
|
48
|
+
value: string | any;
|
|
49
|
+
Sequence: number | any;
|
|
50
|
+
GroupID: number | any;
|
|
51
|
+
parameterName: string | any;
|
|
52
|
+
Value: string | any;
|
|
53
|
+
}
|
|
54
|
+
export declare class APIValueSets {
|
|
55
|
+
AppFieldID: string | any;
|
|
56
|
+
Value: string | any;
|
|
57
|
+
}
|
|
58
|
+
export declare class APISort {
|
|
59
|
+
ID: string | any;
|
|
60
|
+
FieldID: string | any;
|
|
61
|
+
SortSequence: SortSequence | any;
|
|
62
|
+
Sequence: number | any;
|
|
63
|
+
}
|
|
64
|
+
export declare class APIParameters {
|
|
65
|
+
ID: string | any;
|
|
66
|
+
ParameterName: string | any;
|
|
67
|
+
DataSourceQueryID: string | any;
|
|
68
|
+
MappingFieldName: string | any;
|
|
69
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ObjectCreationType } from '../enums/dsq.enum';
|
|
2
|
+
import { DeploymentStatus } from '../enums/permission.enum';
|
|
3
|
+
import { ChildRelationShip } from './api-query.class';
|
|
4
|
+
import { Configurations, EmailTemplate, Profile, Resources, Role } from './common.class';
|
|
5
|
+
import { AppFields, DataSourceQueries } from './data-source-queries.class';
|
|
6
|
+
export declare class Application {
|
|
7
|
+
ID: string | any;
|
|
8
|
+
AppName: string | any;
|
|
9
|
+
DisplayName: string | any;
|
|
10
|
+
PlatformVersion: string | any;
|
|
11
|
+
AppVersion: string | any;
|
|
12
|
+
Description: string | any;
|
|
13
|
+
AppObjects: AppObject[];
|
|
14
|
+
AppScreens: AppScreen[];
|
|
15
|
+
AppMenus: AppMenu[];
|
|
16
|
+
AppConfigurations: Configurations[];
|
|
17
|
+
Roles?: Role[];
|
|
18
|
+
Profiles?: Profile[];
|
|
19
|
+
WorkFlows: any[];
|
|
20
|
+
Plugins: any[];
|
|
21
|
+
}
|
|
22
|
+
export declare class AppObject {
|
|
23
|
+
ID: string | any;
|
|
24
|
+
ObjectName: string | any;
|
|
25
|
+
DisplayName: string | any;
|
|
26
|
+
Description: string | any;
|
|
27
|
+
EnableTracking: boolean | false;
|
|
28
|
+
AllowSearchable: boolean | false;
|
|
29
|
+
CreationType: ObjectCreationType | any;
|
|
30
|
+
AllowReports: boolean | false;
|
|
31
|
+
AllowActivities: boolean | false;
|
|
32
|
+
AllowSharing: boolean | false;
|
|
33
|
+
DeploymentStatus: DeploymentStatus | any;
|
|
34
|
+
Fields: AppFields[];
|
|
35
|
+
ChildRelationShips: ChildRelationShip[];
|
|
36
|
+
DataSourceQueries: DataSourceQueries[];
|
|
37
|
+
SystemDBTableName: string | any;
|
|
38
|
+
AccessList: ObjectAccess[];
|
|
39
|
+
EmailTemplates: EmailTemplate[];
|
|
40
|
+
Resources: Resources[];
|
|
41
|
+
IsSystem: boolean | false;
|
|
42
|
+
IsVisible: boolean | false;
|
|
43
|
+
IsDeprecated: boolean | false;
|
|
44
|
+
ObjectID_Tosave: string | any;
|
|
45
|
+
}
|
|
46
|
+
export declare class ObjectAccess {
|
|
47
|
+
ID: string;
|
|
48
|
+
ProfileID: Profile;
|
|
49
|
+
IsVisible: boolean;
|
|
50
|
+
IsReadOnly: boolean;
|
|
51
|
+
CanCreate: boolean;
|
|
52
|
+
CanEdit: boolean;
|
|
53
|
+
CanDelete: boolean;
|
|
54
|
+
}
|
|
55
|
+
export declare class AppMenu {
|
|
56
|
+
ID: string | any;
|
|
57
|
+
MenuName: string | any;
|
|
58
|
+
DisplayName: string | any;
|
|
59
|
+
ScreenID: string | any;
|
|
60
|
+
ShortCut: string | any;
|
|
61
|
+
Icon: string | any;
|
|
62
|
+
ParentID?: number;
|
|
63
|
+
Sequence?: number;
|
|
64
|
+
Url: string | any;
|
|
65
|
+
}
|
|
66
|
+
export declare class AppScreen {
|
|
67
|
+
ID: string | any;
|
|
68
|
+
Name: string | any;
|
|
69
|
+
Description: string | any;
|
|
70
|
+
DataSourceQuery: DataSourceQueries | any;
|
|
71
|
+
Container: string | any;
|
|
72
|
+
ScreenType: number | any;
|
|
73
|
+
DataSourceQueryID: string | any;
|
|
74
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class Role {
|
|
2
|
+
ID: string | any;
|
|
3
|
+
RoleName: string | any;
|
|
4
|
+
Description: string | any;
|
|
5
|
+
ParentRole: Role | any;
|
|
6
|
+
}
|
|
7
|
+
export declare class Configurations {
|
|
8
|
+
ID: string | any;
|
|
9
|
+
Setting_Key: string | any;
|
|
10
|
+
Value: string | any;
|
|
11
|
+
}
|
|
12
|
+
export declare class Profile {
|
|
13
|
+
ID: string;
|
|
14
|
+
ProfileName: string;
|
|
15
|
+
Description: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class Resources {
|
|
18
|
+
ID: string;
|
|
19
|
+
Value: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class EmailTemplate {
|
|
22
|
+
ID: string;
|
|
23
|
+
Template: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { DataTypes } from '../enums/controllers.enum';
|
|
2
|
+
import { SortSequence, ConjuctionClause, RelationalOperator, ObjectCreationType } from '../enums/dsq.enum';
|
|
3
|
+
import { AppObject } from './app-object.class';
|
|
4
|
+
import { Profile } from './common.class';
|
|
5
|
+
export declare class DataSourceQueries {
|
|
6
|
+
ID: string;
|
|
7
|
+
ObjectID: AppObject;
|
|
8
|
+
ObjectID_Tosave: string;
|
|
9
|
+
QueryName: string;
|
|
10
|
+
DisplayName: string;
|
|
11
|
+
Fields: DataSourceQueries_Fields[];
|
|
12
|
+
Filters: FilterCriteria;
|
|
13
|
+
Sort: Sort[];
|
|
14
|
+
Parameters: Parameters[];
|
|
15
|
+
}
|
|
16
|
+
export declare class DataSourceQueries_Fields {
|
|
17
|
+
Field: AppFields;
|
|
18
|
+
SeqNo: number;
|
|
19
|
+
Field_GridAttributes: string;
|
|
20
|
+
LookupDetails: string;
|
|
21
|
+
}
|
|
22
|
+
export declare class Parameters {
|
|
23
|
+
ID: string;
|
|
24
|
+
ParameterName: string;
|
|
25
|
+
DataSourceQueryID: string;
|
|
26
|
+
MappingFieldName: string;
|
|
27
|
+
}
|
|
28
|
+
export declare class Sort {
|
|
29
|
+
ID: string;
|
|
30
|
+
Field: AppFields;
|
|
31
|
+
SortSequence: SortSequence;
|
|
32
|
+
Sequence: number;
|
|
33
|
+
}
|
|
34
|
+
export declare class FilterCriteria {
|
|
35
|
+
Filters: Filter;
|
|
36
|
+
FilterLogic: string;
|
|
37
|
+
}
|
|
38
|
+
export declare class Filter {
|
|
39
|
+
ID: string;
|
|
40
|
+
ConjuctionClause: ConjuctionClause;
|
|
41
|
+
Field: string;
|
|
42
|
+
RelationalOperator: RelationalOperator;
|
|
43
|
+
ValueType: any;
|
|
44
|
+
value: string;
|
|
45
|
+
Sequence: number;
|
|
46
|
+
GroupID: number;
|
|
47
|
+
}
|
|
48
|
+
export declare class AppFields {
|
|
49
|
+
ID: string;
|
|
50
|
+
ObjectID: AppObject;
|
|
51
|
+
FieldName: string;
|
|
52
|
+
DisplayName: string;
|
|
53
|
+
FieldType: FieldType;
|
|
54
|
+
Description: string;
|
|
55
|
+
CreationType: ObjectCreationType;
|
|
56
|
+
IsRequired: boolean;
|
|
57
|
+
IsUnique: boolean;
|
|
58
|
+
IsSearchable: boolean;
|
|
59
|
+
IsConfidential: boolean;
|
|
60
|
+
SystemDBFieldName: string;
|
|
61
|
+
IsSystem: boolean;
|
|
62
|
+
IsVisible: boolean;
|
|
63
|
+
IsDeprecated: boolean;
|
|
64
|
+
LookUpDetails: LookUpDetails;
|
|
65
|
+
AccessList: FieldAccess[];
|
|
66
|
+
Data: string;
|
|
67
|
+
IsPrimaryKey: boolean;
|
|
68
|
+
Field: AppFields;
|
|
69
|
+
}
|
|
70
|
+
export declare class FieldType {
|
|
71
|
+
DataType: DataTypes;
|
|
72
|
+
RelationalOperator: RelationalOperator[];
|
|
73
|
+
}
|
|
74
|
+
export declare class LookUpDetails {
|
|
75
|
+
LookupObject: string;
|
|
76
|
+
LookupField: string;
|
|
77
|
+
DisplayField: string;
|
|
78
|
+
}
|
|
79
|
+
export declare class FieldAccess {
|
|
80
|
+
ID: string;
|
|
81
|
+
ProfileID: Profile;
|
|
82
|
+
IsVisible: boolean;
|
|
83
|
+
IsReadOnly: boolean;
|
|
84
|
+
}
|
|
85
|
+
export declare class UpdateQueryParameter {
|
|
86
|
+
FieldName: string;
|
|
87
|
+
FieldValue: string | number;
|
|
88
|
+
}
|
|
89
|
+
export declare class ScreenParameter {
|
|
90
|
+
event: any;
|
|
91
|
+
formJson: any;
|
|
92
|
+
formIOObject: any;
|
|
93
|
+
serviceList: any;
|
|
94
|
+
dailogRef: any;
|
|
95
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the filter value type as a string.
|
|
3
|
+
* @param type The filter value type.
|
|
4
|
+
* @returns The filter value type as a string.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getFilterValueTypeInString(type: number): string;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the conjunction clause name based on the type.
|
|
9
|
+
* @param type The conjunction clause type.
|
|
10
|
+
* @returns The conjunction clause name.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getConjuctionClauseName(type: number): string;
|
|
13
|
+
/**
|
|
14
|
+
* Returns the conjunction clause value based on the type.
|
|
15
|
+
* @param type The conjunction clause name.
|
|
16
|
+
* @returns The conjunction clause value.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getConjuctionClause(type: string): number;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the filter type based on the element.
|
|
21
|
+
* @param element The filter element.
|
|
22
|
+
* @returns The filter type.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getFilterType(element: any): string;
|
|
25
|
+
/**
|
|
26
|
+
* Returns the filter value type as an integer.
|
|
27
|
+
* @param type The filter value type.
|
|
28
|
+
* @returns The filter value type as an integer.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getFilterValueTypeInInt(type: string): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the form builder type based on the data type.
|
|
3
|
+
* @param dataType The data type.
|
|
4
|
+
* @returns The form builder type.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getFormBuilderType(dataType: number): string;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the field type based on the data type and whether it's a lookup.
|
|
9
|
+
* @param dataType The data type.
|
|
10
|
+
* @param isLookup Indicates if it's a lookup field.
|
|
11
|
+
* @returns The field type.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getFieldsType(dataType: number, isLookup: any): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validates if a string is a valid JSON.
|
|
3
|
+
* @param str The string to validate.
|
|
4
|
+
* @returns True if the string is a valid JSON, false otherwise.
|
|
5
|
+
*/
|
|
6
|
+
export declare function validateJSON(str: string): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Creates dynamic data based on the input object
|
|
9
|
+
* @param obj The input object to create dynamic data from
|
|
10
|
+
* @returns The formatted array
|
|
11
|
+
*/
|
|
12
|
+
export declare function createDynamicData(obj: any): {
|
|
13
|
+
AppFieldID: string;
|
|
14
|
+
Value: any;
|
|
15
|
+
}[] | null;
|
|
16
|
+
/**
|
|
17
|
+
* Removes blank values from the input object
|
|
18
|
+
* @param dataObj The input object to remove blank values from
|
|
19
|
+
*/
|
|
20
|
+
export declare function removeBlankValue(dataObj: any): void;
|
|
21
|
+
/**
|
|
22
|
+
* Removes blank array keys from the input object
|
|
23
|
+
* @param dataObj The input object to remove blank array keys from
|
|
24
|
+
*/
|
|
25
|
+
export declare function removeBlankArrayKeys(dataObj: any): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a relational operator value to a number.
|
|
3
|
+
* @param dataType The relational operator value as a string.
|
|
4
|
+
* @returns The relational operator value as a number.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getRelationalOperatorValueToNumber(dataType: string): number;
|
|
7
|
+
/**
|
|
8
|
+
* Converts a relational operator value to a string.
|
|
9
|
+
* @param dataType The relational operator value as a number.
|
|
10
|
+
* @returns The relational operator value as a string.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getRelationalOperatorValueToString(dataType: number): string;
|
|
13
|
+
/**
|
|
14
|
+
* Returns a list of operators for the query builder based on the data type.
|
|
15
|
+
* @param dataType The data type.
|
|
16
|
+
* @returns A list of operators.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getOperatorListForQueryBuilder(dataType: any): {
|
|
19
|
+
value: string;
|
|
20
|
+
key: string;
|
|
21
|
+
}[];
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
+
import { AppObject } from '../models/app-object.class';
|
|
3
|
+
import { AppFields } from '../models/data-source-queries.class';
|
|
4
|
+
/**
|
|
5
|
+
* Delete a key from the response object
|
|
6
|
+
*
|
|
7
|
+
* @param response - The response object
|
|
8
|
+
* @param key - The key to be deleted
|
|
9
|
+
* @returns any - The updated response object
|
|
10
|
+
*/
|
|
11
|
+
export declare function deleteKeyFromResponse(response: any, key: string): any;
|
|
12
|
+
/**
|
|
13
|
+
* Remove the primary key from the response object
|
|
14
|
+
*
|
|
15
|
+
* @param response - The response object
|
|
16
|
+
* @param field - The field to be removed as primary key
|
|
17
|
+
* @returns any - The updated response object
|
|
18
|
+
*/
|
|
19
|
+
export declare function removePrimaryKey(response: any, field: string): any;
|
|
20
|
+
/**
|
|
21
|
+
* Remove multiple primary keys from the response object
|
|
22
|
+
*
|
|
23
|
+
* @param response - The response object
|
|
24
|
+
* @param fields - The array of fields to be removed as primary keys
|
|
25
|
+
* @returns any - The updated response object
|
|
26
|
+
*/
|
|
27
|
+
export declare function removeMultiplePrimaryKey(response: any, fields: any): any;
|
|
28
|
+
/**
|
|
29
|
+
* Get the HttpHeaders for API requests
|
|
30
|
+
*
|
|
31
|
+
* @returns HttpHeaders | null - The HttpHeaders object or null
|
|
32
|
+
*/
|
|
33
|
+
export declare function getHeaders(): HttpHeaders | null;
|
|
34
|
+
/**
|
|
35
|
+
* Get the primary key fields from the AppObject
|
|
36
|
+
*
|
|
37
|
+
* @param appObject - The AppObject
|
|
38
|
+
* @returns AppFields[] | null - The array of primary key fields or null
|
|
39
|
+
*/
|
|
40
|
+
export declare function getPrimaryKeyFields(appObject: AppObject): AppFields[] | null;
|
|
41
|
+
/**
|
|
42
|
+
* Get the edit record ID from the response object
|
|
43
|
+
*
|
|
44
|
+
* @param response - The response object
|
|
45
|
+
* @param fieldName - The field name for the edit record ID
|
|
46
|
+
* @returns any - The edit record ID
|
|
47
|
+
*/
|
|
48
|
+
export declare function getEditRecordId(response: any, fieldName: any): any;
|
|
49
|
+
/**
|
|
50
|
+
* Generate the fields schema based on the AppFields
|
|
51
|
+
*
|
|
52
|
+
* @param fields - The AppFields object
|
|
53
|
+
* @returns any - The generated fields schema
|
|
54
|
+
*/
|
|
55
|
+
export declare function generateFieldsSchema(fields: AppFields): {};
|
|
56
|
+
/**
|
|
57
|
+
* Get the HttpHeaders for form data requests
|
|
58
|
+
*
|
|
59
|
+
* @returns HttpHeaders | null - The HttpHeaders object or null
|
|
60
|
+
*/
|
|
61
|
+
export declare function getFormDataHeaders(): HttpHeaders | null;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AppObject } from '../models/app-object.class';
|
|
2
|
+
/** Get the DataSourceQuery ID from the selected AppObject's DataSourceQuery array
|
|
3
|
+
* @param dsqList - The list of DataSourceQueries
|
|
4
|
+
* @param table - The table name
|
|
5
|
+
* @param like - The like string
|
|
6
|
+
* @returns string - The ID of the DataSourceQuery
|
|
7
|
+
*/
|
|
8
|
+
export declare function getDsqIdfromSelectedAppObjectDSQArray(dsqList: any, table: string, like: string): any;
|
|
9
|
+
/** Get the AppObject based on the provided ID
|
|
10
|
+
* @param id - The ID of the AppObject
|
|
11
|
+
* @returns AppObject | null - The found AppObject or null
|
|
12
|
+
*/
|
|
13
|
+
export declare function getAppObject(id: string): any;
|
|
14
|
+
/**
|
|
15
|
+
* Get the AppObject from the DataSourceQuery ID
|
|
16
|
+
* @param dsqId - The DataSourceQuery ID
|
|
17
|
+
* @returns AppObject | null - The found AppObject or null
|
|
18
|
+
*/
|
|
19
|
+
export declare function getAppObjectFromDataSourceQueryID(dsqId: string): any;
|
|
20
|
+
/**
|
|
21
|
+
* Get the DataSourceQuery ID from the QueryName and table
|
|
22
|
+
* @param table - The table name
|
|
23
|
+
* @param dsq - The DataSourceQuery name
|
|
24
|
+
* @returns any - The found DataSourceQuery
|
|
25
|
+
*/
|
|
26
|
+
export declare function getDsqIDFromQueryName(table: string, dsq: string): any;
|
|
27
|
+
/**
|
|
28
|
+
* Get the Data from the DataSourceQuery ID
|
|
29
|
+
*
|
|
30
|
+
* @param dsqId - The DataSourceQuery ID
|
|
31
|
+
* @returns any - The found Data
|
|
32
|
+
*/
|
|
33
|
+
export declare function getDataFromDataSourceQueryID(dsqId: string): any;
|
|
34
|
+
/**
|
|
35
|
+
* Synchronize AppObject fields with the response
|
|
36
|
+
*
|
|
37
|
+
* @param response - The response object
|
|
38
|
+
* @param appObject - The AppObject
|
|
39
|
+
* @returns any - The synchronized response object
|
|
40
|
+
*/
|
|
41
|
+
export declare function syncAppObjectFields(response: any, appObject: AppObject): any;
|
|
42
|
+
/**
|
|
43
|
+
* Get the AppObject based on the SystemDBTableName
|
|
44
|
+
*
|
|
45
|
+
* @param tableName - The SystemDBTableName
|
|
46
|
+
* @returns AppObject | null - The found AppObject or null
|
|
47
|
+
*/
|
|
48
|
+
export declare function getAppObjectFromSystemDBTableName(tableName: string): any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class IdbService {
|
|
3
|
+
private readonly dbName;
|
|
4
|
+
private readonly dbVersion;
|
|
5
|
+
private dbPromise;
|
|
6
|
+
constructor();
|
|
7
|
+
setItem(key: string, data: any): Promise<void>;
|
|
8
|
+
private setItemIndexedDb;
|
|
9
|
+
getItem(key: string): Promise<any>;
|
|
10
|
+
private getItemIndexedDb;
|
|
11
|
+
clearIndexedDB(): Promise<void>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdbService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IdbService>;
|
|
14
|
+
}
|