@techextensor/tab-core-utility 2.2.190 → 2.2.192
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 +1 -5
- package/esm2022/lib/tab-core-utility/app/constants/api-constants.mjs +15 -31
- package/esm2022/lib/tab-core-utility/app/constants/common.mjs +50 -14
- package/esm2022/lib/tab-core-utility/app/constants/storage-constants.mjs +3 -2
- package/esm2022/lib/tab-core-utility/app/crud/tab-blueprint.service.mjs +5 -5
- package/esm2022/lib/tab-core-utility/app/crud/tab-crud.service.mjs +54 -41
- package/esm2022/lib/tab-core-utility/app/crud/tab-delete.service.mjs +30 -84
- package/esm2022/lib/tab-core-utility/app/crud/tab-formio.service.mjs +12 -141
- package/esm2022/lib/tab-core-utility/app/crud/tab-get.service.mjs +41 -142
- package/esm2022/lib/tab-core-utility/app/crud/tab-insert.service.mjs +38 -89
- package/esm2022/lib/tab-core-utility/app/crud/tab-update.service.mjs +129 -159
- package/esm2022/lib/tab-core-utility/app/enums/query.enum.mjs +7 -7
- package/esm2022/lib/tab-core-utility/app/helpers/common/app.helpers.mjs +21 -28
- package/esm2022/lib/tab-core-utility/app/helpers/common/dsq.helpers.mjs +11 -9
- package/esm2022/lib/tab-core-utility/app/helpers/common/meta-data.helpers.mjs +13 -13
- package/esm2022/lib/tab-core-utility/app/helpers/common/req-res.helpers.mjs +45 -7
- package/esm2022/lib/tab-core-utility/app/helpers/common/where-clause.helpers.mjs +76 -79
- package/esm2022/lib/tab-core-utility/app/helpers/screen/grid.helpers.mjs +4 -8
- package/esm2022/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.mjs +4 -4
- package/esm2022/lib/tab-core-utility/app/helpers/screen/screen.helpers.mjs +33 -8
- package/esm2022/lib/tab-core-utility/app/interfaces/common.interface.mjs +1 -1
- package/esm2022/lib/tab-core-utility/app/models/api-query.class.mjs +1 -39
- package/esm2022/lib/tab-core-utility/app/models/app-field.model.mjs +7 -36
- package/esm2022/lib/tab-core-utility/app/models/app-object.model.mjs +47 -84
- package/esm2022/lib/tab-core-utility/app/models/app-screen.model.mjs +13 -24
- package/esm2022/lib/tab-core-utility/app/models/data-source-query.model.mjs +23 -57
- package/esm2022/lib/tab-core-utility/app/models/filter.model.mjs +10 -21
- package/esm2022/lib/tab-core-utility/app/models/parameter.model.mjs +6 -12
- package/esm2022/lib/tab-core-utility/app/models/sort.model.mjs +4 -11
- package/esm2022/lib/tab-core-utility/app/utils/json.util.mjs +16 -17
- package/esm2022/lib/tab-core-utility/app/utils/req-res.util.mjs +55 -1
- package/esm2022/lib/tab-core-utility/app/utils/tab-app.util.mjs +164 -1
- package/esm2022/lib/tab-core-utility/core/http-client/api.service.mjs +1 -78
- package/index.d.ts +0 -4
- package/lib/tab-core-utility/app/constants/api-constants.d.ts +12 -19
- package/lib/tab-core-utility/app/constants/common.d.ts +0 -9
- package/lib/tab-core-utility/app/constants/storage-constants.d.ts +2 -1
- package/lib/tab-core-utility/app/crud/tab-blueprint.service.d.ts +2 -2
- package/lib/tab-core-utility/app/crud/tab-crud.service.d.ts +1 -8
- package/lib/tab-core-utility/app/crud/tab-delete.service.d.ts +10 -20
- package/lib/tab-core-utility/app/crud/tab-formio.service.d.ts +6 -33
- package/lib/tab-core-utility/app/crud/tab-get.service.d.ts +6 -48
- package/lib/tab-core-utility/app/crud/tab-insert.service.d.ts +21 -16
- package/lib/tab-core-utility/app/crud/tab-update.service.d.ts +19 -34
- package/lib/tab-core-utility/app/enums/query.enum.d.ts +6 -3
- package/lib/tab-core-utility/app/helpers/common/app.helpers.d.ts +9 -6
- package/lib/tab-core-utility/app/helpers/common/dsq.helpers.d.ts +0 -3
- package/lib/tab-core-utility/app/helpers/common/meta-data.helpers.d.ts +3 -3
- package/lib/tab-core-utility/app/helpers/common/req-res.helpers.d.ts +51 -7
- package/lib/tab-core-utility/app/helpers/common/where-clause.helpers.d.ts +0 -1
- package/lib/tab-core-utility/app/helpers/screen/grid.helpers.d.ts +1 -2
- package/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.d.ts +1 -1
- package/lib/tab-core-utility/app/helpers/screen/screen.helpers.d.ts +0 -1
- package/lib/tab-core-utility/app/interfaces/common.interface.d.ts +2 -51
- package/lib/tab-core-utility/app/models/api-query.class.d.ts +9 -54
- package/lib/tab-core-utility/app/models/app-field.model.d.ts +2 -4
- package/lib/tab-core-utility/app/models/app-object.model.d.ts +3 -5
- package/lib/tab-core-utility/app/models/app-screen.model.d.ts +2 -2
- package/lib/tab-core-utility/app/models/data-source-query.model.d.ts +2 -7
- package/lib/tab-core-utility/app/models/filter.model.d.ts +2 -2
- package/lib/tab-core-utility/app/models/parameter.model.d.ts +2 -2
- package/lib/tab-core-utility/app/models/sort.model.d.ts +1 -1
- package/lib/tab-core-utility/app/utils/json.util.d.ts +2 -3
- package/lib/tab-core-utility/app/utils/req-res.util.d.ts +9 -1
- package/lib/tab-core-utility/app/utils/tab-app.util.d.ts +61 -0
- package/lib/tab-core-utility/core/http-client/api.service.d.ts +0 -46
- package/package.json +2 -3
- package/esm2022/lib/tab-core-utility/app/helpers/response.adapter.mjs +0 -38
- package/esm2022/lib/tab-core-utility/app/interfaces/signalr.interface.mjs +0 -42
- package/esm2022/lib/tab-core-utility/core/service/signalr/operation-tracker.service.mjs +0 -90
- package/esm2022/lib/tab-core-utility/core/service/signalr/signalr-infrastructure.service.mjs +0 -268
- package/esm2022/lib/tab-core-utility/core/service/signalr/signalr.service.mjs +0 -207
- package/lib/tab-core-utility/app/helpers/response.adapter.d.ts +0 -22
- package/lib/tab-core-utility/app/interfaces/signalr.interface.d.ts +0 -84
- package/lib/tab-core-utility/core/service/signalr/operation-tracker.service.d.ts +0 -40
- package/lib/tab-core-utility/core/service/signalr/signalr-infrastructure.service.d.ts +0 -73
- package/lib/tab-core-utility/core/service/signalr/signalr.service.d.ts +0 -122
|
@@ -4,53 +4,26 @@ import { BuildFormComponentType } from "../enums/common.enum";
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class TabFormioService {
|
|
6
6
|
private readonly apiService;
|
|
7
|
-
private readonly signalRService;
|
|
8
7
|
/**
|
|
9
8
|
* Fetches screen data from the server based on the screen ID and optional configuration.
|
|
10
|
-
* NEW: Uses metadata service endpoint - returns new API format directly
|
|
11
9
|
*
|
|
12
10
|
* @param screenId - The ID of the screen to retrieve.
|
|
13
11
|
* @param config - Optional configuration including layoutId and version.
|
|
14
12
|
* @param params - Additional parameters for the API call.
|
|
15
|
-
* @returns The screen data
|
|
13
|
+
* @returns The screen data if headers are available, otherwise null.
|
|
16
14
|
*/
|
|
17
15
|
getScreen(screenId: string, config?: GetScreenConfig, params?: any): Observable<CommonApiResponse>;
|
|
18
16
|
/**
|
|
19
17
|
* Retrieves the submission data from the server.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* @param screenId - The ID of the screen to retrieve data for
|
|
23
|
-
* @param requestPayload - Request payload containing Reqtokens and other parameters
|
|
24
|
-
* @returns The screen data in new API format (camelCase)
|
|
18
|
+
* @param data - Object containing screenId and reqtokens
|
|
19
|
+
* @returns A Subject emitting the submission data or undefined.
|
|
25
20
|
*/
|
|
26
21
|
getScreenData(screenId: string, requestPayload: any): Observable<CommonApiResponse>;
|
|
27
22
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
* ASYNC Operation: Backend returns correlationId → Wait for SignalR notification → Fetch full record → Return
|
|
32
|
-
*
|
|
33
|
-
* Developer code stays the same for both cases - platform handles complexity
|
|
34
|
-
*
|
|
35
|
-
* @param data Object containing submission data (ScreenId, Data)
|
|
36
|
-
* @returns Observable with full record data (always returns complete record)
|
|
37
|
-
*/
|
|
23
|
+
* Called when the form is submitted.
|
|
24
|
+
* @param data Object containing submission data.
|
|
25
|
+
*/
|
|
38
26
|
processRequest(data: ProcessRequestPayload): Observable<CommonApiResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* Handle SYNC operation - fetch full record immediately
|
|
41
|
-
*/
|
|
42
|
-
private handleSyncOperation;
|
|
43
|
-
/**
|
|
44
|
-
* Handle ASYNC operation - wait for SignalR notification, then fetch full record
|
|
45
|
-
*/
|
|
46
|
-
private handleAsyncOperation;
|
|
47
|
-
/**
|
|
48
|
-
* Fetch full record from CRUD service
|
|
49
|
-
* @param objectName - Entity/Table name
|
|
50
|
-
* @param recordId - Record ID to fetch
|
|
51
|
-
* @param primaryKeyField - Primary key field name (defaults to 'Id')
|
|
52
|
-
*/
|
|
53
|
-
private fetchFullRecord;
|
|
54
27
|
/**
|
|
55
28
|
* Retrieves the formIO components for the given appObjectId and type.
|
|
56
29
|
* @param appObjectId - The ID of the app object.
|
|
@@ -5,10 +5,8 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class TabGetService {
|
|
6
6
|
private readonly apiService;
|
|
7
7
|
private readonly dsqHelper;
|
|
8
|
-
private readonly metadataHelper;
|
|
9
8
|
/**
|
|
10
9
|
* Execute RAW DSQ with Name
|
|
11
|
-
* NEW: Uses new backend endpoint and CRUD microservice
|
|
12
10
|
* @param data - Object containing AppObjectName and DSQName
|
|
13
11
|
* @returns Response from the API
|
|
14
12
|
*/
|
|
@@ -20,12 +18,12 @@ export declare class TabGetService {
|
|
|
20
18
|
*/
|
|
21
19
|
getRecord(params: any): any;
|
|
22
20
|
/**
|
|
23
|
-
* Get History
|
|
21
|
+
* Get History
|
|
24
22
|
* @param appObjectId - ID of the application object
|
|
25
23
|
* @param recordIds - Array of record IDs
|
|
26
24
|
* @returns Response from the API
|
|
27
25
|
*/
|
|
28
|
-
getHistory(payload: RcordHistoryPayload): Observable<CommonApiResponse>;
|
|
26
|
+
getHistory(payload: RcordHistoryPayload, customHeaders?: any): Observable<CommonApiResponse>;
|
|
29
27
|
/**
|
|
30
28
|
* PMJAY Import
|
|
31
29
|
* @param data - Data for PMJAY import
|
|
@@ -34,51 +32,11 @@ export declare class TabGetService {
|
|
|
34
32
|
pmjayImport(data: ImprotDataPayload): any;
|
|
35
33
|
/**
|
|
36
34
|
* Executes a select query with optional parameters
|
|
37
|
-
*
|
|
38
|
-
* @param data - The select query data (old format)
|
|
35
|
+
* @param data - The select query data
|
|
39
36
|
* @param parameters - Optional parameters to be applied to the query
|
|
40
|
-
* @param additionalConfig - Optional additional configuration
|
|
41
37
|
* @returns Result of the select query execution
|
|
42
38
|
*/
|
|
43
|
-
selectExecutor(data: APISelectQuery, parameters?: any, additionalConfig?: any): Observable<CommonApiResponse>;
|
|
44
|
-
/**
|
|
45
|
-
* Prepares select query data by applying parameters and additional configuration
|
|
46
|
-
* @param data - The select query data
|
|
47
|
-
* @param parameters - Optional parameters to replace in filters
|
|
48
|
-
* @param additionalConfig - Optional additional configuration to merge
|
|
49
|
-
* @returns Prepared APISelectQuery with parameters applied
|
|
50
|
-
*/
|
|
51
|
-
private prepareSelectQueryData;
|
|
52
|
-
/**
|
|
53
|
-
* Transforms old APISelectQuery format to new CRUD API format
|
|
54
|
-
* @param apiSelectQuery - The old format select query
|
|
55
|
-
* @returns CRUDSelectPayload - The new format payload
|
|
56
|
-
*/
|
|
57
|
-
private transformToCRUDPayload;
|
|
58
|
-
/**
|
|
59
|
-
* Gets entity name from QueryObjectID
|
|
60
|
-
*/
|
|
61
|
-
private getEntityName;
|
|
62
|
-
/**
|
|
63
|
-
* Transforms Joins to includes array
|
|
64
|
-
*/
|
|
65
|
-
private transformJoinsToIncludes;
|
|
66
|
-
/**
|
|
67
|
-
* Transforms TopCount to Pager object
|
|
68
|
-
*/
|
|
69
|
-
private transformPager;
|
|
70
|
-
/**
|
|
71
|
-
* Transforms WhereClause to new format
|
|
72
|
-
*/
|
|
73
|
-
private transformWhereClause;
|
|
74
|
-
/**
|
|
75
|
-
* Transforms a single filter to new format
|
|
76
|
-
*/
|
|
77
|
-
private transformFilter;
|
|
78
|
-
/**
|
|
79
|
-
* Transforms Sort array to new format
|
|
80
|
-
*/
|
|
81
|
-
private transformSort;
|
|
39
|
+
selectExecutor(data: APISelectQuery, parameters?: any, additionalConfig?: any, headers?: any): Observable<CommonApiResponse>;
|
|
82
40
|
/**
|
|
83
41
|
* Executes a select query by its ID, using the provided parameters.
|
|
84
42
|
*
|
|
@@ -87,10 +45,10 @@ export declare class TabGetService {
|
|
|
87
45
|
* @returns The result of the select query execution.
|
|
88
46
|
* @throws An error if the API response status code is not '200'.
|
|
89
47
|
*/
|
|
90
|
-
executeSelectQueryById(selectQueryId: string, parameters?: any, additionalConfig?: any): Observable<CommonApiResponse>;
|
|
48
|
+
executeSelectQueryById(selectQueryId: string, parameters?: any, additionalConfig?: any, headers?: any): Observable<CommonApiResponse>;
|
|
91
49
|
removeWhereClauseForEmptyParams(filters: any[], parameters: Record<string, any>): any[];
|
|
92
50
|
/**
|
|
93
|
-
* Get Search Data
|
|
51
|
+
* Get Search Data
|
|
94
52
|
* @param searchQuery - Search Query string
|
|
95
53
|
* @param limit - Limit of search results
|
|
96
54
|
* @returns Response from the API
|
|
@@ -1,32 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CommonApiResponse } from '../interfaces/common.interface';
|
|
1
|
+
import { AppObject } from '../models/app-object.class';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class TabInsertService {
|
|
4
|
+
private readonly dsqHelper;
|
|
5
5
|
private readonly screenHelper;
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly metadataHelper;
|
|
6
|
+
private readonly whereClauseHelper;
|
|
7
|
+
private readonly requestResponseHelper;
|
|
9
8
|
/**
|
|
10
9
|
* Inserts data by screen ID.
|
|
11
10
|
* @param screenId The ID of the screen.
|
|
12
11
|
* @param data The data to insert.
|
|
13
12
|
* @returns An Observable with the insert result.
|
|
14
13
|
*/
|
|
15
|
-
insertByScreenId(screenId: string, data: any): Observable<
|
|
14
|
+
insertByScreenId(screenId: string, data: any): import("rxjs").Observable<any> | null;
|
|
16
15
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @param objectId The ID of the object
|
|
19
|
-
* @param data The data to insert
|
|
20
|
-
* @
|
|
21
|
-
* @returns Observable with insertedId
|
|
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.
|
|
22
20
|
*/
|
|
23
|
-
insertByObjectId(objectId: string, data: any, headers?: any): Observable<
|
|
21
|
+
insertByObjectId(objectId: string, data: any, headers?: any): import("rxjs").Observable<any> | null;
|
|
24
22
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @param
|
|
27
|
-
* @
|
|
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, headers?: 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.
|
|
28
33
|
*/
|
|
29
|
-
|
|
34
|
+
insert(data: any, headers?: any): import("rxjs").Observable<any> | null;
|
|
30
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabInsertService, never>;
|
|
31
36
|
static ɵprov: i0.ɵɵInjectableDeclaration<TabInsertService>;
|
|
32
37
|
}
|
|
@@ -1,46 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CommonApiResponse } from '../interfaces/common.interface';
|
|
1
|
+
import { APIUpdateQuery } from "../models/api-query.class";
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class TabUpdateService {
|
|
4
|
+
private readonly dsqHelper;
|
|
5
5
|
private readonly screenHelper;
|
|
6
6
|
private readonly whereClauseHelper;
|
|
7
|
-
private readonly
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
private readonly requestResponseHelper;
|
|
8
|
+
update(data: APIUpdateQuery, headers?: any): import("rxjs").Observable<any> | null;
|
|
9
|
+
updateUsingDSQ(dsqId: string, data: any, tableName: string, queryFieldsArray?: any, headers?: any): import("rxjs").Observable<any> | null;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* @param
|
|
15
|
-
* @
|
|
16
|
-
|
|
17
|
-
updateByObjectId(objectId: string, data: any, headers?: any): Observable<CommonApiResponse> | null;
|
|
18
|
-
/**
|
|
19
|
-
* Handle async update - wait for SignalR notification
|
|
20
|
-
* @param response Initial response with correlationId
|
|
21
|
-
* @returns Observable with update result
|
|
22
|
-
*/
|
|
23
|
-
private handleAsyncUpdate;
|
|
24
|
-
/**
|
|
25
|
-
* Update using screen ID
|
|
26
|
-
* @param screenId The screen ID
|
|
27
|
-
* @param data The data to update
|
|
28
|
-
* @param objectIdToSave Optional object ID to save
|
|
29
|
-
* @param headers Optional headers
|
|
30
|
-
* @returns Observable with update result
|
|
11
|
+
* Parth B Thakkar - 2024-11-06
|
|
12
|
+
* Updates a record in the database based on the provided object ID.
|
|
13
|
+
* Same code as updateUsingScreenId with minor modifications like using the object ID directly instead of the screen ID.
|
|
14
|
+
* @param objectId The object ID of the record to update.
|
|
15
|
+
* @param data The data to update the record with.
|
|
16
|
+
* @returns The response from the update operation.
|
|
31
17
|
*/
|
|
32
|
-
|
|
18
|
+
updateByObjectId(objectId: string, data: any): import("rxjs").Observable<any> | null;
|
|
19
|
+
updateUsingScreenId(screenId: string, data: any, objectIdToSave?: string, headers?: any): import("rxjs").Observable<any> | null;
|
|
20
|
+
updateScreen(screenId: string, screenData: any): import("rxjs").Observable<any> | null;
|
|
33
21
|
/**
|
|
34
|
-
* Update using DSQ ID
|
|
35
|
-
*
|
|
36
|
-
* @param dsqId The DSQ ID
|
|
22
|
+
* Update records using the provided DSQ ID, data, filters
|
|
23
|
+
* @param dsqId The ID of the DataSourceQuery to use for the update
|
|
37
24
|
* @param data The data to update
|
|
38
|
-
* @param
|
|
39
|
-
* @
|
|
40
|
-
* @param headers Optional headers
|
|
41
|
-
* @returns Observable with update result
|
|
25
|
+
* @param filters The filters to apply to the update
|
|
26
|
+
* @returns The response from the update operation
|
|
42
27
|
*/
|
|
43
|
-
|
|
28
|
+
updateUsingDsqIdFiltersAndCustomViewId(dsqId: string, data: any, filters: any): import("rxjs").Observable<any> | null;
|
|
44
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabUpdateService, never>;
|
|
45
30
|
static ɵprov: i0.ɵɵInjectableDeclaration<TabUpdateService>;
|
|
46
31
|
}
|
|
@@ -10,9 +10,14 @@ export declare class AppHelper {
|
|
|
10
10
|
*/
|
|
11
11
|
rebuildApp(payload?: any, headers?: any): Observable<CommonApiResponse>;
|
|
12
12
|
/**
|
|
13
|
-
* Retrieves
|
|
14
|
-
*
|
|
15
|
-
* @returns
|
|
13
|
+
* Retrieves screen data.
|
|
14
|
+
* @param params Optional parameters for retrieving screen data
|
|
15
|
+
* @returns Screen data
|
|
16
|
+
*/
|
|
17
|
+
getScreen(params?: any): Observable<any> | null;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves schema data.
|
|
20
|
+
* @returns Subscription for getting schema data
|
|
16
21
|
*/
|
|
17
22
|
getSchema(): Observable<CommonApiResponse>;
|
|
18
23
|
/**
|
|
@@ -76,14 +81,12 @@ export declare class AppHelper {
|
|
|
76
81
|
refreshRecordInfoData(data: RefreshRecordInfoDataPayload): Observable<CommonApiResponse>;
|
|
77
82
|
/**
|
|
78
83
|
* Exports a report based on the given parameters.
|
|
79
|
-
* Uses Report microservice with camelCase payload
|
|
80
84
|
* @param payload Parameters for exporting the report
|
|
81
85
|
* @returns The result of the export operation
|
|
82
86
|
*/
|
|
83
87
|
exportReport(payload: ReportPayload): Observable<CommonApiResponse>;
|
|
84
88
|
/**
|
|
85
89
|
* Downloads a report file based on the given parameters.
|
|
86
|
-
* Uses Report microservice with camelCase payload
|
|
87
90
|
* @param payload Parameters for downloading the report file
|
|
88
91
|
* @returns The result of the download operation
|
|
89
92
|
*/
|
|
@@ -111,7 +114,7 @@ export declare class AppHelper {
|
|
|
111
114
|
* @param data - Data to insert
|
|
112
115
|
* @returns Response from the API
|
|
113
116
|
*/
|
|
114
|
-
insertScreenPerformanceStatistics(data: ScreenPerformancePayload): Observable<CommonApiResponse>;
|
|
117
|
+
insertScreenPerformanceStatistics(data: ScreenPerformancePayload, customHeaders?: any): Observable<CommonApiResponse>;
|
|
115
118
|
/**
|
|
116
119
|
* Retrieves all documents.
|
|
117
120
|
* @param headers Optional headers for the request.
|
|
@@ -3,11 +3,8 @@ import { AccessType } from '../../enums/permission.enum';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DSQHelper {
|
|
5
5
|
private readonly apiService;
|
|
6
|
-
private readonly metadataHelper;
|
|
7
6
|
/**
|
|
8
7
|
* Executes a query based on the query type
|
|
9
|
-
* NOTE: INSERT, UPDATE, and DELETE now use new /records/* endpoints
|
|
10
|
-
* This helper now only handles legacy endpoints: BulkInsert and Select
|
|
11
8
|
* @param data The data to be executed
|
|
12
9
|
* @param queryType The type of query to be executed
|
|
13
10
|
* @returns The result of the query execution
|
|
@@ -27,9 +27,9 @@ export declare class MetadataHelper {
|
|
|
27
27
|
* the given condition, it creates a new model using the given model factory and adds it to the map.
|
|
28
28
|
* @param map The map to search in.
|
|
29
29
|
* @param key The key to search for.
|
|
30
|
-
* @param sourceList The list of
|
|
31
|
-
* @param matchFn The condition to match
|
|
32
|
-
* @param modelFactory The factory to create a new model
|
|
30
|
+
* @param sourceList The list of items to search in.
|
|
31
|
+
* @param matchFn The condition to match.
|
|
32
|
+
* @param modelFactory The factory to create a new model if the key does not exist.
|
|
33
33
|
* @returns The value associated with the given key, or null if no match is found.
|
|
34
34
|
*/
|
|
35
35
|
private getFromMapOrCreate;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
import { APIBulkInsertFieldsValueSets, APIFilterCriteria } from '../../models/api-query.class';
|
|
1
|
+
import { APIBulkInsertFieldsValueSets, APIFilterCriteria, APIValueSets } from '../../models/api-query.class';
|
|
2
2
|
import { QueryType } from '../../enums/query.enum';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
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
|
+
};
|
|
5
19
|
/**
|
|
6
20
|
* Generates the payload for inserting data into a table in bulk
|
|
7
21
|
* @param table The table name to insert data into
|
|
@@ -20,14 +34,44 @@ export declare class RequestResponseHelper {
|
|
|
20
34
|
};
|
|
21
35
|
/**
|
|
22
36
|
* Generates the payload for deleting data from a table
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
25
|
-
* @
|
|
26
|
-
* @returns The payload for the delete operation in NEW format
|
|
37
|
+
* @param tableName The table name to delete data from
|
|
38
|
+
* @param whereClause The filter criteria for the delete operation
|
|
39
|
+
* @returns The payload for the delete operation
|
|
27
40
|
*/
|
|
28
41
|
deletePayload(tableName: string, whereClause: APIFilterCriteria): {
|
|
29
|
-
|
|
30
|
-
|
|
42
|
+
QueryObjectID: string;
|
|
43
|
+
QueryType: QueryType;
|
|
44
|
+
Joins: never[];
|
|
45
|
+
WhereClause: APIFilterCriteria;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Generates the payload for updating data in a table
|
|
49
|
+
* @param tableName The table name to update data in
|
|
50
|
+
* @param whereClause The filter criteria for the update operation
|
|
51
|
+
* @param value The value sets to be updated
|
|
52
|
+
* @returns The payload for the update operation
|
|
53
|
+
*/
|
|
54
|
+
updateRequestPayload(tableName: string, whereClause: APIFilterCriteria, value: APIValueSets[]): {
|
|
55
|
+
QueryObjectID: string;
|
|
56
|
+
QueryType: QueryType;
|
|
57
|
+
Joins: never[];
|
|
58
|
+
WhereClause: APIFilterCriteria;
|
|
59
|
+
Values: APIValueSets[];
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Creates a payload object based on the input parameters
|
|
63
|
+
* @param table The table name for the payload
|
|
64
|
+
* @param whereClause The filter criteria for the payload
|
|
65
|
+
* @param value The value sets for the payload
|
|
66
|
+
* @param queryType The type of query for the payload
|
|
67
|
+
* @returns The payload object with QueryObjectID, QueryType, Joins, WhereClause, and Values
|
|
68
|
+
*/
|
|
69
|
+
createPayload(table: string, whereClause: APIFilterCriteria, value: APIValueSets[], queryType: QueryType): {
|
|
70
|
+
QueryObjectID: string;
|
|
71
|
+
QueryType: QueryType;
|
|
72
|
+
Joins: never[];
|
|
73
|
+
WhereClause: APIFilterCriteria;
|
|
74
|
+
Values: APIValueSets[];
|
|
31
75
|
};
|
|
32
76
|
/**
|
|
33
77
|
* Creates a payload object for bulk insert operations
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { APIFilterCriteria } from '../../models/api-query.class';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class WhereClauseHelper {
|
|
4
|
-
private readonly metadataHelper;
|
|
5
4
|
/**
|
|
6
5
|
* Binds the where clause for deleting records based on field, value, field name, and CRUD table name
|
|
7
6
|
* @param fields The fields to bind the where clause
|
|
@@ -2,7 +2,6 @@ import { AppObject } from '../../models/app-object.class';
|
|
|
2
2
|
import { JqWidghtModel } from '../../interfaces/grid.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class GridHelper {
|
|
5
|
-
private readonly metadataHelper;
|
|
6
5
|
/**
|
|
7
6
|
* Generates a grid schema for the master app object.
|
|
8
7
|
* @param masterAppObj The master app object.
|
|
@@ -29,7 +28,7 @@ export declare class GridHelper {
|
|
|
29
28
|
key: any;
|
|
30
29
|
input: boolean;
|
|
31
30
|
redrawOn: any;
|
|
32
|
-
'customOptions.dataSourceQueryId':
|
|
31
|
+
'customOptions.dataSourceQueryId': any;
|
|
33
32
|
logic: {
|
|
34
33
|
name: string;
|
|
35
34
|
trigger: {
|
|
@@ -14,7 +14,7 @@ export declare class MediaUploadHelper {
|
|
|
14
14
|
* @param mediaId The ID of the media file to remove.
|
|
15
15
|
* @returns An Observable that emits the deleted file as a Blob.
|
|
16
16
|
*/
|
|
17
|
-
removeMediaFile(mediaId: string): Observable<CommonApiResponse>;
|
|
17
|
+
removeMediaFile(mediaId: string, customHeaders?: any): Observable<CommonApiResponse>;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<MediaUploadHelper, never>;
|
|
19
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<MediaUploadHelper>;
|
|
20
20
|
}
|
|
@@ -14,14 +14,15 @@ export interface RecordInfo {
|
|
|
14
14
|
primaryKey: string;
|
|
15
15
|
}
|
|
16
16
|
export interface CommonApiResponse {
|
|
17
|
+
RequestId: string;
|
|
17
18
|
IsSuccess: boolean;
|
|
18
19
|
Result: any;
|
|
20
|
+
StatusCode: string;
|
|
19
21
|
RecordAffectted: number;
|
|
20
22
|
TotalRecords: number;
|
|
21
23
|
TotalExecutionTime: number;
|
|
22
24
|
Log: any[];
|
|
23
25
|
Errors: any[];
|
|
24
|
-
CorrelationId?: string;
|
|
25
26
|
}
|
|
26
27
|
export interface GetScreenConfig {
|
|
27
28
|
layoutId?: string;
|
|
@@ -164,53 +165,3 @@ export interface executeTABWorkflowPayload {
|
|
|
164
165
|
AppObjectId: string;
|
|
165
166
|
Reqtokens?: any;
|
|
166
167
|
}
|
|
167
|
-
/**
|
|
168
|
-
* Standard API response format (camelCase - NEW BACKEND)
|
|
169
|
-
* All new APIs return this consistent structure
|
|
170
|
-
*/
|
|
171
|
-
export interface StandardApiResponse {
|
|
172
|
-
/** Indicates if the request was successful */
|
|
173
|
-
isSuccess: boolean;
|
|
174
|
-
/** Error information (null if successful) */
|
|
175
|
-
error: ApiError | null;
|
|
176
|
-
/** Response data (null if error) */
|
|
177
|
-
result: any | null;
|
|
178
|
-
/** Request execution time in milliseconds */
|
|
179
|
-
executionTimeMs: number;
|
|
180
|
-
/** Log entries from the request */
|
|
181
|
-
logs: string[];
|
|
182
|
-
/** Additional metadata about the request */
|
|
183
|
-
metadata: Record<string, any>;
|
|
184
|
-
/** Number of records affected (for mutations) */
|
|
185
|
-
affectedRecords?: number;
|
|
186
|
-
/** Total number of records (for queries) */
|
|
187
|
-
totalRecords?: number;
|
|
188
|
-
/** Correlation ID for async operations (null for sync operations) */
|
|
189
|
-
correlationId?: string;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Error information in new API format
|
|
193
|
-
*/
|
|
194
|
-
export interface ApiError {
|
|
195
|
-
/** Error code (e.g., "UNEXPECTED_ERROR", "VALIDATION_ERROR") */
|
|
196
|
-
code: string;
|
|
197
|
-
/** User-friendly error message */
|
|
198
|
-
message: string;
|
|
199
|
-
/** Technical error details for debugging */
|
|
200
|
-
details: string;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Microservice URLs configuration
|
|
204
|
-
*/
|
|
205
|
-
export interface APIServiceUrls {
|
|
206
|
-
crudService: string;
|
|
207
|
-
metadataService: string;
|
|
208
|
-
formioService: string;
|
|
209
|
-
identityService: string;
|
|
210
|
-
codeExecutorService: string;
|
|
211
|
-
notificationService: string;
|
|
212
|
-
workflowService: string;
|
|
213
|
-
kibanaService: string;
|
|
214
|
-
reportService: string;
|
|
215
|
-
}
|
|
216
|
-
export type APIServiceName = keyof APIServiceUrls;
|
|
@@ -37,19 +37,20 @@ export declare class ChildRelationShip {
|
|
|
37
37
|
childDetails: LookUpDetails;
|
|
38
38
|
}
|
|
39
39
|
export declare class APIFilterCriteria {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
Filters: APIFilter[] | any;
|
|
41
|
+
FilterLogic: string | any;
|
|
42
42
|
SQLQuery: string | any;
|
|
43
43
|
}
|
|
44
44
|
export declare class APIFilter {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
ConjuctionClause: ConjuctionClause | any;
|
|
46
|
+
FieldID: string | any;
|
|
47
|
+
RelationalOperator: RelationalOperator | any;
|
|
48
|
+
ValueType: FilterValueType | any;
|
|
49
49
|
value: string | any;
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
Sequence: number | any;
|
|
51
|
+
GroupID: number | any;
|
|
52
52
|
parameterName: string | any;
|
|
53
|
+
Value: string | any;
|
|
53
54
|
}
|
|
54
55
|
export declare class APIValueSets {
|
|
55
56
|
AppFieldID: string | any;
|
|
@@ -71,49 +72,3 @@ export declare class APIParameters {
|
|
|
71
72
|
DataSourceQueryID: string | any;
|
|
72
73
|
MappingFieldName: string | any;
|
|
73
74
|
}
|
|
74
|
-
/**
|
|
75
|
-
* New CRUD API Select Query Payload
|
|
76
|
-
* Used for the new microservice-based select query endpoint
|
|
77
|
-
*/
|
|
78
|
-
export declare class CRUDSelectPayload {
|
|
79
|
-
EntityName: string | any;
|
|
80
|
-
SelectedFields: string[];
|
|
81
|
-
includes?: any[];
|
|
82
|
-
Pager?: CRUDPager;
|
|
83
|
-
whereClause?: CRUDWhereClause;
|
|
84
|
-
Distinct?: boolean;
|
|
85
|
-
Sort?: CRUDSort[];
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Pager configuration for CRUD API
|
|
89
|
-
*/
|
|
90
|
-
export declare class CRUDPager {
|
|
91
|
-
pageNumber: number;
|
|
92
|
-
pageSize: number;
|
|
93
|
-
returnTotalCount: boolean;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Where clause structure for CRUD API
|
|
97
|
-
*/
|
|
98
|
-
export declare class CRUDWhereClause {
|
|
99
|
-
filters: CRUDFilter[];
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Filter structure for CRUD API
|
|
103
|
-
*/
|
|
104
|
-
export declare class CRUDFilter {
|
|
105
|
-
fieldName: string | any;
|
|
106
|
-
operator: number | any;
|
|
107
|
-
value: any;
|
|
108
|
-
valueType: number | any;
|
|
109
|
-
conjunction: number | any;
|
|
110
|
-
groupId: number | any;
|
|
111
|
-
sequence: number | any;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Sort structure for CRUD API
|
|
115
|
-
*/
|
|
116
|
-
export declare class CRUDSort {
|
|
117
|
-
FieldName: string | any;
|
|
118
|
-
Direction: number | any;
|
|
119
|
-
}
|
|
@@ -49,10 +49,8 @@ export declare class AppFieldModel {
|
|
|
49
49
|
*/
|
|
50
50
|
search(term: string): boolean;
|
|
51
51
|
/**
|
|
52
|
-
* Converts the AppFieldModel instance to JSON
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* @returns {any} The data in old API format.
|
|
52
|
+
* Converts the AppFieldModel instance to a JSON representation.
|
|
53
|
+
* @returns {any} The raw data of the instance.
|
|
56
54
|
*/
|
|
57
55
|
toJSON(): any;
|
|
58
56
|
}
|