@techextensor/tab-core-utility 2.2.9 → 2.2.11
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 -63
- package/index.d.ts +0 -52
- package/package.json +1 -1
- package/esm2022/lib/tab-core-utility/app/constants/api-constants.mjs +0 -33
- package/esm2022/lib/tab-core-utility/app/constants/common.mjs +0 -33
- package/esm2022/lib/tab-core-utility/app/constants/error-messages.mjs +0 -13
- package/esm2022/lib/tab-core-utility/app/constants/storage-constants.mjs +0 -16
- package/esm2022/lib/tab-core-utility/app/crud/tab-delete.service.mjs +0 -145
- package/esm2022/lib/tab-core-utility/app/crud/tab-get.service.mjs +0 -131
- package/esm2022/lib/tab-core-utility/app/crud/tab-insert.service.mjs +0 -77
- package/esm2022/lib/tab-core-utility/app/crud/tab-update.service.mjs +0 -105
- package/esm2022/lib/tab-core-utility/app/crud/tab-workflow.service.mjs +0 -43
- package/esm2022/lib/tab-core-utility/app/enums/controllers.enum.mjs +0 -26
- package/esm2022/lib/tab-core-utility/app/enums/dsq.enum.mjs +0 -48
- package/esm2022/lib/tab-core-utility/app/enums/permission.enum.mjs +0 -20
- package/esm2022/lib/tab-core-utility/app/enums/query.enum.mjs +0 -14
- package/esm2022/lib/tab-core-utility/app/enums/workflow.enum.mjs +0 -37
- package/esm2022/lib/tab-core-utility/app/helpers/common/app.helpers.mjs +0 -70
- package/esm2022/lib/tab-core-utility/app/helpers/common/dsq.helpers.mjs +0 -70
- package/esm2022/lib/tab-core-utility/app/helpers/common/req-res.helpers.mjs +0 -64
- package/esm2022/lib/tab-core-utility/app/helpers/common/template.helpers.mjs +0 -58
- package/esm2022/lib/tab-core-utility/app/helpers/common/where-clause.helpers.mjs +0 -208
- package/esm2022/lib/tab-core-utility/app/helpers/screen/forms.helpers.mjs +0 -38
- package/esm2022/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.mjs +0 -78
- package/esm2022/lib/tab-core-utility/app/helpers/screen/grid.helpers.mjs +0 -112
- package/esm2022/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.mjs +0 -77
- package/esm2022/lib/tab-core-utility/app/helpers/screen/plugin.helpers.mjs +0 -55
- package/esm2022/lib/tab-core-utility/app/helpers/screen/screen.helpers.mjs +0 -26
- package/esm2022/lib/tab-core-utility/app/interfaces/grid.interface.mjs +0 -3
- package/esm2022/lib/tab-core-utility/app/interfaces/orgInfo.interface.mjs +0 -2
- package/esm2022/lib/tab-core-utility/app/interfaces/schema.interface.mjs +0 -2
- package/esm2022/lib/tab-core-utility/app/models/api-query.class.mjs +0 -47
- package/esm2022/lib/tab-core-utility/app/models/app-object.class.mjs +0 -30
- package/esm2022/lib/tab-core-utility/app/models/common.class.mjs +0 -12
- package/esm2022/lib/tab-core-utility/app/models/data-source-queries.class.mjs +0 -31
- package/esm2022/lib/tab-core-utility/app/utils/filter.util.mjs +0 -75
- package/esm2022/lib/tab-core-utility/app/utils/form-builder.util.mjs +0 -39
- package/esm2022/lib/tab-core-utility/app/utils/json.util.mjs +0 -138
- package/esm2022/lib/tab-core-utility/app/utils/operators.util.mjs +0 -129
- package/esm2022/lib/tab-core-utility/app/utils/req-res.util.mjs +0 -168
- package/esm2022/lib/tab-core-utility/app/utils/tab-app.util.mjs +0 -99
- package/esm2022/lib/tab-core-utility/auth/idb-storage.service.mjs +0 -69
- package/esm2022/lib/tab-core-utility/auth/session-storage.service.mjs +0 -52
- package/esm2022/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.mjs +0 -26
- package/esm2022/lib/tab-core-utility/core/error-handler/error-handler.store.mjs +0 -21
- package/esm2022/lib/tab-core-utility/core/error-handler/models/error-handler.state.mjs +0 -5
- package/esm2022/lib/tab-core-utility/core/util/auth.utils.mjs +0 -21
- package/esm2022/lib/tab-core-utility/store/auth.store.mjs +0 -43
- package/esm2022/lib/tab-core-utility/store/orginfo.store.mjs +0 -42
- package/lib/tab-core-utility/app/constants/api-constants.d.ts +0 -30
- package/lib/tab-core-utility/app/constants/common.d.ts +0 -8
- package/lib/tab-core-utility/app/constants/error-messages.d.ts +0 -6
- package/lib/tab-core-utility/app/constants/storage-constants.d.ts +0 -15
- package/lib/tab-core-utility/app/crud/tab-delete.service.d.ts +0 -51
- package/lib/tab-core-utility/app/crud/tab-get.service.d.ts +0 -58
- package/lib/tab-core-utility/app/crud/tab-insert.service.d.ts +0 -37
- package/lib/tab-core-utility/app/crud/tab-update.service.d.ts +0 -14
- package/lib/tab-core-utility/app/crud/tab-workflow.service.d.ts +0 -20
- package/lib/tab-core-utility/app/enums/controllers.enum.d.ts +0 -24
- package/lib/tab-core-utility/app/enums/dsq.enum.d.ts +0 -42
- package/lib/tab-core-utility/app/enums/permission.enum.d.ts +0 -16
- package/lib/tab-core-utility/app/enums/query.enum.d.ts +0 -11
- package/lib/tab-core-utility/app/enums/workflow.enum.d.ts +0 -30
- package/lib/tab-core-utility/app/helpers/common/app.helpers.d.ts +0 -32
- package/lib/tab-core-utility/app/helpers/common/dsq.helpers.d.ts +0 -32
- package/lib/tab-core-utility/app/helpers/common/req-res.helpers.d.ts +0 -62
- package/lib/tab-core-utility/app/helpers/common/template.helpers.d.ts +0 -25
- package/lib/tab-core-utility/app/helpers/common/where-clause.helpers.d.ts +0 -82
- package/lib/tab-core-utility/app/helpers/screen/forms.helpers.d.ts +0 -11
- package/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.d.ts +0 -33
- package/lib/tab-core-utility/app/helpers/screen/grid.helpers.d.ts +0 -63
- package/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.d.ts +0 -38
- package/lib/tab-core-utility/app/helpers/screen/plugin.helpers.d.ts +0 -25
- package/lib/tab-core-utility/app/helpers/screen/screen.helpers.d.ts +0 -11
- package/lib/tab-core-utility/app/interfaces/grid.interface.d.ts +0 -110
- package/lib/tab-core-utility/app/interfaces/orgInfo.interface.d.ts +0 -31
- package/lib/tab-core-utility/app/interfaces/schema.interface.d.ts +0 -11
- package/lib/tab-core-utility/app/models/api-query.class.d.ts +0 -69
- package/lib/tab-core-utility/app/models/app-object.class.d.ts +0 -74
- package/lib/tab-core-utility/app/models/common.class.d.ts +0 -24
- package/lib/tab-core-utility/app/models/data-source-queries.class.d.ts +0 -95
- package/lib/tab-core-utility/app/utils/filter.util.d.ts +0 -30
- package/lib/tab-core-utility/app/utils/form-builder.util.d.ts +0 -13
- package/lib/tab-core-utility/app/utils/json.util.d.ts +0 -25
- package/lib/tab-core-utility/app/utils/operators.util.d.ts +0 -21
- package/lib/tab-core-utility/app/utils/req-res.util.d.ts +0 -61
- package/lib/tab-core-utility/app/utils/tab-app.util.d.ts +0 -48
- package/lib/tab-core-utility/auth/idb-storage.service.d.ts +0 -14
- package/lib/tab-core-utility/auth/session-storage.service.d.ts +0 -22
- package/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.d.ts +0 -3
- package/lib/tab-core-utility/core/error-handler/error-handler.store.d.ts +0 -10
- package/lib/tab-core-utility/core/error-handler/models/error-handler.state.d.ts +0 -5
- package/lib/tab-core-utility/core/util/auth.utils.d.ts +0 -9
- package/lib/tab-core-utility/store/auth.store.d.ts +0 -19
- package/lib/tab-core-utility/store/orginfo.store.d.ts +0 -22
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { AppObject } from '../models/app-object.class';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TabInsertService {
|
|
4
|
-
private readonly dsqHelper;
|
|
5
|
-
private readonly screenHelper;
|
|
6
|
-
private readonly whereClauseHelper;
|
|
7
|
-
private readonly requestResponseHelper;
|
|
8
|
-
/**
|
|
9
|
-
* Inserts data by screen ID.
|
|
10
|
-
* @param screenId The ID of the screen.
|
|
11
|
-
* @param data The data to insert.
|
|
12
|
-
* @returns An Observable with the insert result.
|
|
13
|
-
*/
|
|
14
|
-
insertByScreenId(screenId: string, data: any): import("rxjs").Observable<any> | null;
|
|
15
|
-
/**
|
|
16
|
-
* Inserts data by object ID.
|
|
17
|
-
* @param objectId The ID of the object.
|
|
18
|
-
* @param data The data to insert.
|
|
19
|
-
* @returns An Observable with the insert result.
|
|
20
|
-
*/
|
|
21
|
-
insertByObjectId(objectId: string, data: any): import("rxjs").Observable<any> | null;
|
|
22
|
-
/**
|
|
23
|
-
* Prepares data for insertion.
|
|
24
|
-
* @param appObject The app object.
|
|
25
|
-
* @param data The data to insert.
|
|
26
|
-
* @returns An Observable with the prepared data.
|
|
27
|
-
*/
|
|
28
|
-
prepareInsert(appObject: AppObject, data: any): import("rxjs").Observable<any> | null;
|
|
29
|
-
/**
|
|
30
|
-
* Inserts data.
|
|
31
|
-
* @param data The data to insert.
|
|
32
|
-
* @returns An Observable with the insert result.
|
|
33
|
-
*/
|
|
34
|
-
insert(data: any): import("rxjs").Observable<any> | null;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TabInsertService, never>;
|
|
36
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TabInsertService>;
|
|
37
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { APIUpdateQuery } from "../models/api-query.class";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TabUpdateService {
|
|
4
|
-
private readonly dsqHelper;
|
|
5
|
-
private readonly screenHelper;
|
|
6
|
-
private readonly whereClauseHelper;
|
|
7
|
-
private readonly requestResponseHelper;
|
|
8
|
-
update(data: APIUpdateQuery): import("rxjs").Observable<any> | null;
|
|
9
|
-
updateUsingDSQ(dsqId: string, data: any, tableName: string, queryFieldsArray?: any): import("rxjs").Observable<any> | null;
|
|
10
|
-
updateUsingScreenId(screenId: string, data: any, objectIdToSave?: string): import("rxjs").Observable<any> | null;
|
|
11
|
-
updateScreen(screenId: string, screenData: any): import("rxjs").Observable<any> | null;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TabUpdateService, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TabUpdateService>;
|
|
14
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class TabWorkflowService {
|
|
3
|
-
private readonly apiService;
|
|
4
|
-
/**
|
|
5
|
-
* Executes a TAB workflow.
|
|
6
|
-
* @param endPoint The endpoint for the workflow.
|
|
7
|
-
* @param data The data to send with the request.
|
|
8
|
-
* @returns An observable of the workflow execution result.
|
|
9
|
-
*/
|
|
10
|
-
executeTABWorkflow(endPoint: string, data: string): import("rxjs").Observable<any> | null;
|
|
11
|
-
/**
|
|
12
|
-
* Executes an ELSA workflow.
|
|
13
|
-
* @param endPoint The endpoint for the workflow.
|
|
14
|
-
* @param data The data to send with the request.
|
|
15
|
-
* @returns An observable of the workflow execution result.
|
|
16
|
-
*/
|
|
17
|
-
executeELSAWorkflow(endPoint: string, data: string): import("rxjs").Observable<any> | null;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TabWorkflowService, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TabWorkflowService>;
|
|
20
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare enum DataTypes {
|
|
2
|
-
AutoNumber = 1,
|
|
3
|
-
Number = 2,
|
|
4
|
-
CheckBox = 3,
|
|
5
|
-
Currency = 4,
|
|
6
|
-
Date = 5,
|
|
7
|
-
DateTime = 6,
|
|
8
|
-
Email = 7,
|
|
9
|
-
GeoLocation = 8,
|
|
10
|
-
Percent = 9,
|
|
11
|
-
PhoneNumber = 10,
|
|
12
|
-
PickList = 11,
|
|
13
|
-
PickList_MultiSelect = 12,
|
|
14
|
-
Text = 13,
|
|
15
|
-
TextArea = 14,
|
|
16
|
-
TextArea_RICHEDITOR = 15,
|
|
17
|
-
URL = 16,
|
|
18
|
-
UniqueIdentifier = 17,
|
|
19
|
-
Insert_TimeStamp = 18,
|
|
20
|
-
Update_TimeStamp = 19,
|
|
21
|
-
NextNumber = 20,
|
|
22
|
-
Array = 21,
|
|
23
|
-
JSON = 22
|
|
24
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export declare enum ConjuctionClause {
|
|
2
|
-
AND = 1,
|
|
3
|
-
OR = 2,
|
|
4
|
-
AND_NOT = 3,
|
|
5
|
-
OR_NOT = 4
|
|
6
|
-
}
|
|
7
|
-
export declare enum RelationalOperator {
|
|
8
|
-
GreaterThan = 1,
|
|
9
|
-
LessThan = 2,
|
|
10
|
-
EqualTo = 3,
|
|
11
|
-
IN = 4,
|
|
12
|
-
NOTIN = 5,
|
|
13
|
-
IsNULL = 6,
|
|
14
|
-
IsNotNULL = 7,
|
|
15
|
-
NotEqualTo = 8,
|
|
16
|
-
GreaterThanOREqualTo = 9,
|
|
17
|
-
LessThanOREqualTo = 10,
|
|
18
|
-
Contains = 11,
|
|
19
|
-
NotContains = 12,
|
|
20
|
-
StartsWith = 13,
|
|
21
|
-
NotStartsWith = 14,
|
|
22
|
-
EndsWith = 15,
|
|
23
|
-
NotEndsWith = 16,
|
|
24
|
-
Between = 17,
|
|
25
|
-
NotBetween = 18,
|
|
26
|
-
SplitContains = 19,
|
|
27
|
-
NotSplitContains = 20
|
|
28
|
-
}
|
|
29
|
-
export declare enum FilterValueType {
|
|
30
|
-
Literal = 1,
|
|
31
|
-
Parameter = 2,
|
|
32
|
-
Property = 3,
|
|
33
|
-
Global = 4
|
|
34
|
-
}
|
|
35
|
-
export declare enum SortSequence {
|
|
36
|
-
Asc = 1,
|
|
37
|
-
Desc = 2
|
|
38
|
-
}
|
|
39
|
-
export declare enum ObjectCreationType {
|
|
40
|
-
Standard = 1,
|
|
41
|
-
Custom = 2
|
|
42
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare enum AccessType {
|
|
2
|
-
READ = "READ",
|
|
3
|
-
CREATE = "CREATE",
|
|
4
|
-
UPDATE = "UPDATE",
|
|
5
|
-
DELETE = "DELETE"
|
|
6
|
-
}
|
|
7
|
-
export declare enum AccessPermission {
|
|
8
|
-
None = 1,
|
|
9
|
-
Own = 2,
|
|
10
|
-
Team = 3,
|
|
11
|
-
All = 4
|
|
12
|
-
}
|
|
13
|
-
export declare enum DeploymentStatus {
|
|
14
|
-
InDevelopment = 1,
|
|
15
|
-
Deployed = 2
|
|
16
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare enum WorkFlowTriggerType {
|
|
2
|
-
EventBased = 1,
|
|
3
|
-
DateBased = 2
|
|
4
|
-
}
|
|
5
|
-
export declare enum WorkFlowEventExecution_WorkFlowTriggerEvent {
|
|
6
|
-
Created = 1,
|
|
7
|
-
Edited = 2,
|
|
8
|
-
CreatedOrEdited = 3,
|
|
9
|
-
Deleted = 4
|
|
10
|
-
}
|
|
11
|
-
export declare enum WorkFlowEventExecution_WorkFlowTriggerFieldCriteria {
|
|
12
|
-
WhenAnyFieldIsUpdated = 1,
|
|
13
|
-
WhenAnySelectedFieldIsUpdated = 2,
|
|
14
|
-
WhenSelectedAllFieldsAreUpdated = 3
|
|
15
|
-
}
|
|
16
|
-
export declare enum WorkFlowEventExecution_WorkFlowTriggerOccurence {
|
|
17
|
-
Everytime = 1,
|
|
18
|
-
FirstTime = 2
|
|
19
|
-
}
|
|
20
|
-
export declare enum WorkFlowTimeExecution_DaysRelationalOperator {
|
|
21
|
-
Before = 1,
|
|
22
|
-
After = 2
|
|
23
|
-
}
|
|
24
|
-
export declare enum WorkFlowTimeExecution_ExecutionCycle {
|
|
25
|
-
Once = 1,
|
|
26
|
-
Weekly = 2,
|
|
27
|
-
Monthly = 3,
|
|
28
|
-
Yearly = 4,
|
|
29
|
-
Daily = 5
|
|
30
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class AppHelper {
|
|
3
|
-
private readonly apiService;
|
|
4
|
-
private readonly localStorageService;
|
|
5
|
-
private readonly idbService;
|
|
6
|
-
/**
|
|
7
|
-
* Rebuilds the application.
|
|
8
|
-
* @param data Optional data for rebuilding the application
|
|
9
|
-
* @returns Result of the rebuild operation
|
|
10
|
-
*/
|
|
11
|
-
rebuildApp(data?: any): import("rxjs").Observable<any> | null;
|
|
12
|
-
/**
|
|
13
|
-
* Publishes the application.
|
|
14
|
-
* @param params Optional parameters for publishing the application
|
|
15
|
-
* @returns Result of the publish operation
|
|
16
|
-
*/
|
|
17
|
-
publishApp(params?: any): import("rxjs").Observable<any> | null;
|
|
18
|
-
/**
|
|
19
|
-
* Retrieves screen data.
|
|
20
|
-
* @param params Optional parameters for retrieving screen data
|
|
21
|
-
* @returns Screen data
|
|
22
|
-
*/
|
|
23
|
-
getScreen(params?: any): import("rxjs").Observable<any> | null;
|
|
24
|
-
/**
|
|
25
|
-
* Retrieves schema data.
|
|
26
|
-
* @param params Optional parameters for retrieving schema data
|
|
27
|
-
* @returns Subscription for getting schema data
|
|
28
|
-
*/
|
|
29
|
-
getSchema(params?: any): import("rxjs").Observable<any> | null;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppHelper, never>;
|
|
31
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AppHelper>;
|
|
32
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { QueryType } from '../../enums/query.enum';
|
|
2
|
-
import { AccessType } from '../../enums/permission.enum';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DSQHelper {
|
|
5
|
-
private readonly apiService;
|
|
6
|
-
/**
|
|
7
|
-
* Executes a query based on the query type
|
|
8
|
-
* @param data The data to be executed
|
|
9
|
-
* @param queryType The type of query to be executed
|
|
10
|
-
* @returns The result of the query execution
|
|
11
|
-
*/
|
|
12
|
-
executeQuery(data: any, queryType: QueryType): import("rxjs").Observable<any> | null;
|
|
13
|
-
/**
|
|
14
|
-
* Executes an HTTP POST request with the provided data and URL
|
|
15
|
-
* @param data The data to be sent in the POST request
|
|
16
|
-
* @param endPointName The URL to send the POST request to
|
|
17
|
-
* @returns The result of the POST request if headers are available, otherwise null
|
|
18
|
-
*/
|
|
19
|
-
private execution;
|
|
20
|
-
/**
|
|
21
|
-
* Checks if the user has access to the specified object based on roles and access type
|
|
22
|
-
* @param dsqId The DataSourceQuery ID to check access for
|
|
23
|
-
* @param accessType The type of access to check (e.g., read, write)
|
|
24
|
-
* @param roles The roles of the user with IDs
|
|
25
|
-
* @returns True if the user has access, false otherwise
|
|
26
|
-
*/
|
|
27
|
-
doesHaveObjectAccess(dsqId: string, accessType: AccessType, roles: [{
|
|
28
|
-
ID: string;
|
|
29
|
-
}]): boolean;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DSQHelper, never>;
|
|
31
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DSQHelper>;
|
|
32
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { APIFilterCriteria, APIValueSets } from '../../models/api-query.class';
|
|
2
|
-
import { QueryType } from '../../enums/query.enum';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class RequestResponseHelper {
|
|
5
|
-
/**
|
|
6
|
-
* Generates the payload for inserting data into a table
|
|
7
|
-
* @param table The table name to insert data into
|
|
8
|
-
* @param whereClause The filter criteria for the insert operation
|
|
9
|
-
* @param value The value sets to be inserted
|
|
10
|
-
* @returns The payload for the insert operation
|
|
11
|
-
*/
|
|
12
|
-
insertPayload(table: string, whereClause: APIFilterCriteria, value: APIValueSets[]): {
|
|
13
|
-
QueryObjectID: string;
|
|
14
|
-
QueryType: QueryType;
|
|
15
|
-
Joins: never[];
|
|
16
|
-
WhereClause: APIFilterCriteria;
|
|
17
|
-
Values: APIValueSets[];
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Generates the payload for deleting data from a table
|
|
21
|
-
* @param tableName The table name to delete data from
|
|
22
|
-
* @param whereClause The filter criteria for the delete operation
|
|
23
|
-
* @returns The payload for the delete operation
|
|
24
|
-
*/
|
|
25
|
-
deletePayload(tableName: string, whereClause: APIFilterCriteria): {
|
|
26
|
-
QueryObjectID: string;
|
|
27
|
-
QueryType: QueryType;
|
|
28
|
-
Joins: never[];
|
|
29
|
-
WhereClause: APIFilterCriteria;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Generates the payload for updating data in a table
|
|
33
|
-
* @param tableName The table name to update data in
|
|
34
|
-
* @param whereClause The filter criteria for the update operation
|
|
35
|
-
* @param value The value sets to be updated
|
|
36
|
-
* @returns The payload for the update operation
|
|
37
|
-
*/
|
|
38
|
-
updateRequestPayload(tableName: string, whereClause: APIFilterCriteria, value: APIValueSets[]): {
|
|
39
|
-
QueryObjectID: string;
|
|
40
|
-
QueryType: QueryType;
|
|
41
|
-
Joins: never[];
|
|
42
|
-
WhereClause: APIFilterCriteria;
|
|
43
|
-
Values: APIValueSets[];
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Creates a payload object based on the input parameters
|
|
47
|
-
* @param table The table name for the payload
|
|
48
|
-
* @param whereClause The filter criteria for the payload
|
|
49
|
-
* @param value The value sets for the payload
|
|
50
|
-
* @param queryType The type of query for the payload
|
|
51
|
-
* @returns The payload object with QueryObjectID, QueryType, Joins, WhereClause, and Values
|
|
52
|
-
*/
|
|
53
|
-
createPayload(table: string, whereClause: APIFilterCriteria, value: APIValueSets[], queryType: QueryType): {
|
|
54
|
-
QueryObjectID: string;
|
|
55
|
-
QueryType: QueryType;
|
|
56
|
-
Joins: never[];
|
|
57
|
-
WhereClause: APIFilterCriteria;
|
|
58
|
-
Values: APIValueSets[];
|
|
59
|
-
};
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestResponseHelper, never>;
|
|
61
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RequestResponseHelper>;
|
|
62
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TemplateHelper {
|
|
4
|
-
private readonly apiService;
|
|
5
|
-
private engine;
|
|
6
|
-
/**
|
|
7
|
-
* Parses the template using local rendering.
|
|
8
|
-
*
|
|
9
|
-
* @param template - The template to be parsed.
|
|
10
|
-
* @param templateVariables - The variables to be used for template rendering.
|
|
11
|
-
* @returns The rendered template result.
|
|
12
|
-
*/
|
|
13
|
-
templateParseLocally(template: string, templateVariables: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* Parses the template universally, either using local rendering or server-side rendering.
|
|
16
|
-
*
|
|
17
|
-
* @param data - The data to be used for template parsing.
|
|
18
|
-
* @param shouldFailOnServerParse - Indicates whether to fail on server-side parse if local parsing fails.
|
|
19
|
-
* @returns An observable that emits the parsed template result.
|
|
20
|
-
*/
|
|
21
|
-
templateParseUniversal(data: any, onFailedParseOnServer?: boolean): Observable<any>;
|
|
22
|
-
private templateParse;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateHelper, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TemplateHelper>;
|
|
25
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { APIFilterCriteria } from '../../models/api-query.class';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class WhereClauseHelper {
|
|
4
|
-
/**
|
|
5
|
-
* Binds the where clause for deleting records based on field, value, field name, and CRUD table name
|
|
6
|
-
* @param fields The fields to bind the where clause
|
|
7
|
-
* @param value The value to match in the where clause
|
|
8
|
-
* @param fieldName The field name to match in the where clause
|
|
9
|
-
* @param crudTableName The CRUD table name for the where clause
|
|
10
|
-
* @returns The bound where clause for delete operation
|
|
11
|
-
*/
|
|
12
|
-
bindWhereClauseForDelete(fields: any, value: any, fieldName: string, crudTableName: string): import("rxjs").Observable<APIFilterCriteria>;
|
|
13
|
-
/**
|
|
14
|
-
* Binds the where clause for deleting records with multiple primary keys
|
|
15
|
-
* @param data The data containing primary key values
|
|
16
|
-
* @param fieldName The field name of the primary key
|
|
17
|
-
* @param crudTableName The CRUD table name for the where clause
|
|
18
|
-
* @returns The bound where clause for delete operation with multiple primary keys
|
|
19
|
-
*/
|
|
20
|
-
bindWhereClauseForDeleteWithMultiplePrimaryKeys(data: any, fieldName: string, crudTableName: string): APIFilterCriteria;
|
|
21
|
-
/**
|
|
22
|
-
* Binds the where clause for an insert operation
|
|
23
|
-
* @returns The bound where clause for insert operation
|
|
24
|
-
*/
|
|
25
|
-
bindWhereClauseForInsert(): APIFilterCriteria;
|
|
26
|
-
/**
|
|
27
|
-
* Binds an empty where clause
|
|
28
|
-
* @returns The bound empty where clause
|
|
29
|
-
*/
|
|
30
|
-
bindWhereClauseEmpty(): APIFilterCriteria;
|
|
31
|
-
/**
|
|
32
|
-
* Binds the where clause based on provided parameters
|
|
33
|
-
* @param fields The fields to bind the where clause
|
|
34
|
-
* @param value The value to match in the where clause
|
|
35
|
-
* @param fieldName The field name to match in the where clause
|
|
36
|
-
* @param crudTableName The CRUD table name for the where clause
|
|
37
|
-
* @returns The bound where clause
|
|
38
|
-
*/
|
|
39
|
-
private bindWhereClause;
|
|
40
|
-
/**
|
|
41
|
-
* Binds the where clause for deleting records with multiple primary keys
|
|
42
|
-
* @param data The data containing primary key values
|
|
43
|
-
* @param primaryKeys The array of primary key fields
|
|
44
|
-
* @param crudTableName The CRUD table name for the where clause
|
|
45
|
-
* @returns The bound where clause for delete operation with multiple primary keys
|
|
46
|
-
*/
|
|
47
|
-
bindWhereClauseForMultiplePrimaryKeys(data: any, primaryKeys: any, crudTableName: string): APIFilterCriteria;
|
|
48
|
-
/**
|
|
49
|
-
* Binds the where clause for updating records
|
|
50
|
-
* @param tableName The name of the table to update
|
|
51
|
-
* @param queryFieldsArray The array of fields and values for the update query
|
|
52
|
-
* @returns The bound where clause for update operation
|
|
53
|
-
*/
|
|
54
|
-
bindWhereClauseForUpdate(tableName: string, queryFieldsArray: any): APIFilterCriteria;
|
|
55
|
-
/**
|
|
56
|
-
* Binds the where clause for deleting records by table and primary key
|
|
57
|
-
* @param tableName The name of the table from which to delete records
|
|
58
|
-
* @param primaryKey The name of the primary key field
|
|
59
|
-
* @param primaryKeyValue The value of the primary key
|
|
60
|
-
* @returns The bound where clause for delete operation using table and primary key
|
|
61
|
-
*/
|
|
62
|
-
bindWhereClauseForDeleteByTable(tableName: string, primaryKey: string, primaryKeyValue: string): APIFilterCriteria;
|
|
63
|
-
/**
|
|
64
|
-
* Binds the where clause for deleting records using IN operator by table
|
|
65
|
-
* @param tableName The name of the table from which to delete records
|
|
66
|
-
* @param primaryKey The name of the primary key field
|
|
67
|
-
* @param values The array of values for the IN operator
|
|
68
|
-
* @returns The bound where clause for delete operation using IN operator and table
|
|
69
|
-
*/
|
|
70
|
-
bindWhereClauseForDeleteUsingInOperatorByTable(tableName: string, primaryKey: string, values: []): APIFilterCriteria;
|
|
71
|
-
/**
|
|
72
|
-
* Binds the where clause for updating records in a grid
|
|
73
|
-
* @param Fields The fields to bind the where clause
|
|
74
|
-
* @param value The value to match in the where clause
|
|
75
|
-
* @param fieldName The field name to match in the where clause
|
|
76
|
-
* @param crudTableName The CRUD table name for the where clause
|
|
77
|
-
* @returns The bound where clause for update operation in a grid
|
|
78
|
-
*/
|
|
79
|
-
bindWhereClauseForUpdateGrid(Fields: any, value: any, fieldName: string, crudTableName: string): import("rxjs").Observable<APIFilterCriteria>;
|
|
80
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WhereClauseHelper, never>;
|
|
81
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WhereClauseHelper>;
|
|
82
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class FormDataHelper {
|
|
3
|
-
/**
|
|
4
|
-
* Sets form data based on the provided data object.
|
|
5
|
-
* @param data$ An Observable emitting the data object containing form data.
|
|
6
|
-
* @returns An Observable emitting an object containing the modified form data.
|
|
7
|
-
*/
|
|
8
|
-
setFormData(data: any): any;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormDataHelper, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormDataHelper>;
|
|
11
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ColumnDetailModel } from '../../interfaces/grid.interface';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class GridColumnDataHelper {
|
|
4
|
-
private readonly gridHelper;
|
|
5
|
-
/**
|
|
6
|
-
* Retrieves column data based on the provided fields.
|
|
7
|
-
* @param fields The fields to generate column data from.
|
|
8
|
-
* @returns An Observable emitting an array of column data.
|
|
9
|
-
*/
|
|
10
|
-
getColumnData(fields: any): import("rxjs").Observable<ColumnDetailModel[]>;
|
|
11
|
-
/**
|
|
12
|
-
* Maps field data to a ColumnDetailModel.
|
|
13
|
-
* @param field The field data to map.
|
|
14
|
-
* @returns The mapped ColumnDetailModel.
|
|
15
|
-
*/
|
|
16
|
-
private mapToColumnDetailModel;
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves the renderer value based on the provided key.
|
|
19
|
-
* @param key The key to retrieve the renderer value for.
|
|
20
|
-
* @returns The renderer value.
|
|
21
|
-
*/
|
|
22
|
-
private getRendererValue;
|
|
23
|
-
/**
|
|
24
|
-
* Renderer function for rendering row links.
|
|
25
|
-
* @param row The row number.
|
|
26
|
-
* @param column The column information.
|
|
27
|
-
* @param value The value to render.
|
|
28
|
-
* @returns The HTML string for rendering the row link.
|
|
29
|
-
*/
|
|
30
|
-
private rowLinkRenderer;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridColumnDataHelper, never>;
|
|
32
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GridColumnDataHelper>;
|
|
33
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|