@techextensor/tab-core-utility 2.2.11 → 2.2.14
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/esm2022/lib/tab-core-utility/store/schema.store.mjs +68 -0
- package/index.d.ts +54 -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/lib/tab-core-utility/store/schema.store.d.ts +32 -0
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { AppObject } from '../../models/app-object.class';
|
|
2
|
+
import { JqWidghtModel } from '../../interfaces/grid.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GridHelper {
|
|
5
|
+
/**
|
|
6
|
+
* Generates a grid schema for the master app object.
|
|
7
|
+
* @param masterAppObj The master app object.
|
|
8
|
+
* @param dsqID The data source query ID.
|
|
9
|
+
* @returns The generated grid schema.
|
|
10
|
+
*/
|
|
11
|
+
generateGridSchema(masterAppObj: AppObject, dsqID: any): {
|
|
12
|
+
label: any;
|
|
13
|
+
type: string;
|
|
14
|
+
key: any;
|
|
15
|
+
input: boolean;
|
|
16
|
+
redrawOn: any;
|
|
17
|
+
'customOptions.dataSourceQueryId': any;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Generates a grid schema for the child relationship.
|
|
21
|
+
* @param childRel The child relationship.
|
|
22
|
+
* @param masterAppObj The master app object.
|
|
23
|
+
* @returns The generated child grid schema.
|
|
24
|
+
*/
|
|
25
|
+
generateChildGridSchema(childRel: any, masterAppObj: AppObject): import("rxjs").Observable<{}> | {
|
|
26
|
+
label: any;
|
|
27
|
+
type: string;
|
|
28
|
+
key: any;
|
|
29
|
+
input: boolean;
|
|
30
|
+
redrawOn: any;
|
|
31
|
+
'customOptions.dataSourceQueryId': any;
|
|
32
|
+
logic: {
|
|
33
|
+
name: string;
|
|
34
|
+
trigger: {
|
|
35
|
+
type: string;
|
|
36
|
+
javascript: string;
|
|
37
|
+
};
|
|
38
|
+
actions: {
|
|
39
|
+
name: string;
|
|
40
|
+
type: string;
|
|
41
|
+
property: {
|
|
42
|
+
label: string;
|
|
43
|
+
value: string;
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
text: string;
|
|
47
|
+
}[];
|
|
48
|
+
}[];
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Retrieves the default grid configuration.
|
|
52
|
+
* @returns The default grid configuration.
|
|
53
|
+
*/
|
|
54
|
+
getDefaultGridConfiguration(): JqWidghtModel | null;
|
|
55
|
+
/**
|
|
56
|
+
* Determines the column type based on the data type.
|
|
57
|
+
* @param dataType The data type.
|
|
58
|
+
* @returns The column type.
|
|
59
|
+
*/
|
|
60
|
+
getColumnType(dataType: number): string;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridHelper, never>;
|
|
62
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GridHelper>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MediaUploadHelper {
|
|
4
|
+
private readonly apiService;
|
|
5
|
+
/**
|
|
6
|
+
* Uploads media object to the server.
|
|
7
|
+
* @param mediaObject The media object to upload.
|
|
8
|
+
* @returns An Observable that emits the response from the server.
|
|
9
|
+
*/
|
|
10
|
+
uploadMediaFile(mediaObject: any): Observable<any>;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves a file from the server by its media ID.
|
|
13
|
+
* @param mediaId The ID of the media file to retrieve.
|
|
14
|
+
* @returns An Observable that emits the file as a Blob.
|
|
15
|
+
*/
|
|
16
|
+
getFileByMediaId(mediaId: number, params?: any): Observable<Blob>;
|
|
17
|
+
/**
|
|
18
|
+
* Downloads all files from the given URL.
|
|
19
|
+
* @param endPointName The URL to download files from.
|
|
20
|
+
* @returns An Observable that emits the downloaded files as a Blob.
|
|
21
|
+
*/
|
|
22
|
+
downloadAllFiles(endPointName: any): Observable<Blob>;
|
|
23
|
+
/**
|
|
24
|
+
* Downloads PDF files from the given URL.
|
|
25
|
+
* @param endPointName The URL to download PDF files from.
|
|
26
|
+
* @param data The data to send along with the request.
|
|
27
|
+
* @returns An Observable that emits the downloaded PDF files as a Blob.
|
|
28
|
+
*/
|
|
29
|
+
downloadPdfFiles(endPointName: any, data: any): Observable<Blob>;
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves an image from the server by its media ID.
|
|
32
|
+
* @param mediaId The ID of the media file to retrieve.
|
|
33
|
+
* @returns An Observable that emits the image as a Blob.
|
|
34
|
+
*/
|
|
35
|
+
getImageByMediaId(mediaId: any, params?: any): Observable<Blob>;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaUploadHelper, never>;
|
|
37
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MediaUploadHelper>;
|
|
38
|
+
}
|
|
@@ -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
|
+
}[];
|