@techextensor/tab-core-utility 2.2.188 → 2.2.191

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.
Files changed (73) hide show
  1. package/esm2022/index.mjs +1 -5
  2. package/esm2022/lib/tab-core-utility/app/constants/api-constants.mjs +15 -27
  3. package/esm2022/lib/tab-core-utility/app/constants/common.mjs +50 -14
  4. package/esm2022/lib/tab-core-utility/app/constants/storage-constants.mjs +2 -2
  5. package/esm2022/lib/tab-core-utility/app/crud/tab-crud.service.mjs +54 -41
  6. package/esm2022/lib/tab-core-utility/app/crud/tab-delete.service.mjs +30 -84
  7. package/esm2022/lib/tab-core-utility/app/crud/tab-formio.service.mjs +12 -141
  8. package/esm2022/lib/tab-core-utility/app/crud/tab-get.service.mjs +35 -136
  9. package/esm2022/lib/tab-core-utility/app/crud/tab-insert.service.mjs +38 -89
  10. package/esm2022/lib/tab-core-utility/app/crud/tab-update.service.mjs +129 -159
  11. package/esm2022/lib/tab-core-utility/app/enums/query.enum.mjs +7 -7
  12. package/esm2022/lib/tab-core-utility/app/helpers/common/app.helpers.mjs +19 -26
  13. package/esm2022/lib/tab-core-utility/app/helpers/common/dsq.helpers.mjs +11 -9
  14. package/esm2022/lib/tab-core-utility/app/helpers/common/meta-data.helpers.mjs +13 -13
  15. package/esm2022/lib/tab-core-utility/app/helpers/common/req-res.helpers.mjs +45 -7
  16. package/esm2022/lib/tab-core-utility/app/helpers/common/where-clause.helpers.mjs +76 -79
  17. package/esm2022/lib/tab-core-utility/app/helpers/screen/grid.helpers.mjs +4 -8
  18. package/esm2022/lib/tab-core-utility/app/helpers/screen/screen.helpers.mjs +33 -8
  19. package/esm2022/lib/tab-core-utility/app/interfaces/common.interface.mjs +1 -1
  20. package/esm2022/lib/tab-core-utility/app/models/api-query.class.mjs +1 -39
  21. package/esm2022/lib/tab-core-utility/app/models/app-field.model.mjs +7 -36
  22. package/esm2022/lib/tab-core-utility/app/models/app-object.model.mjs +47 -84
  23. package/esm2022/lib/tab-core-utility/app/models/app-screen.model.mjs +13 -24
  24. package/esm2022/lib/tab-core-utility/app/models/data-source-query.model.mjs +23 -57
  25. package/esm2022/lib/tab-core-utility/app/models/filter.model.mjs +10 -21
  26. package/esm2022/lib/tab-core-utility/app/models/parameter.model.mjs +6 -12
  27. package/esm2022/lib/tab-core-utility/app/models/sort.model.mjs +4 -11
  28. package/esm2022/lib/tab-core-utility/app/utils/json.util.mjs +16 -17
  29. package/esm2022/lib/tab-core-utility/app/utils/req-res.util.mjs +55 -1
  30. package/esm2022/lib/tab-core-utility/app/utils/tab-app.util.mjs +164 -1
  31. package/esm2022/lib/tab-core-utility/core/http-client/api.service.mjs +1 -78
  32. package/index.d.ts +0 -4
  33. package/lib/tab-core-utility/app/constants/api-constants.d.ts +12 -15
  34. package/lib/tab-core-utility/app/constants/common.d.ts +0 -9
  35. package/lib/tab-core-utility/app/constants/storage-constants.d.ts +1 -1
  36. package/lib/tab-core-utility/app/crud/tab-crud.service.d.ts +1 -8
  37. package/lib/tab-core-utility/app/crud/tab-delete.service.d.ts +10 -20
  38. package/lib/tab-core-utility/app/crud/tab-formio.service.d.ts +6 -33
  39. package/lib/tab-core-utility/app/crud/tab-get.service.d.ts +3 -45
  40. package/lib/tab-core-utility/app/crud/tab-insert.service.d.ts +21 -16
  41. package/lib/tab-core-utility/app/crud/tab-update.service.d.ts +19 -34
  42. package/lib/tab-core-utility/app/enums/query.enum.d.ts +6 -3
  43. package/lib/tab-core-utility/app/helpers/common/app.helpers.d.ts +8 -5
  44. package/lib/tab-core-utility/app/helpers/common/dsq.helpers.d.ts +0 -3
  45. package/lib/tab-core-utility/app/helpers/common/meta-data.helpers.d.ts +3 -3
  46. package/lib/tab-core-utility/app/helpers/common/req-res.helpers.d.ts +51 -7
  47. package/lib/tab-core-utility/app/helpers/common/where-clause.helpers.d.ts +0 -1
  48. package/lib/tab-core-utility/app/helpers/screen/grid.helpers.d.ts +1 -2
  49. package/lib/tab-core-utility/app/helpers/screen/screen.helpers.d.ts +0 -1
  50. package/lib/tab-core-utility/app/interfaces/common.interface.d.ts +2 -51
  51. package/lib/tab-core-utility/app/models/api-query.class.d.ts +9 -54
  52. package/lib/tab-core-utility/app/models/app-field.model.d.ts +2 -4
  53. package/lib/tab-core-utility/app/models/app-object.model.d.ts +3 -5
  54. package/lib/tab-core-utility/app/models/app-screen.model.d.ts +2 -2
  55. package/lib/tab-core-utility/app/models/data-source-query.model.d.ts +2 -7
  56. package/lib/tab-core-utility/app/models/filter.model.d.ts +2 -2
  57. package/lib/tab-core-utility/app/models/parameter.model.d.ts +2 -2
  58. package/lib/tab-core-utility/app/models/sort.model.d.ts +1 -1
  59. package/lib/tab-core-utility/app/utils/json.util.d.ts +2 -3
  60. package/lib/tab-core-utility/app/utils/req-res.util.d.ts +9 -1
  61. package/lib/tab-core-utility/app/utils/tab-app.util.d.ts +61 -0
  62. package/lib/tab-core-utility/core/http-client/api.service.d.ts +0 -46
  63. package/package.json +2 -3
  64. package/esm2022/lib/tab-core-utility/app/helpers/response.adapter.mjs +0 -38
  65. package/esm2022/lib/tab-core-utility/app/interfaces/signalr.interface.mjs +0 -42
  66. package/esm2022/lib/tab-core-utility/core/service/signalr/operation-tracker.service.mjs +0 -90
  67. package/esm2022/lib/tab-core-utility/core/service/signalr/signalr-infrastructure.service.mjs +0 -268
  68. package/esm2022/lib/tab-core-utility/core/service/signalr/signalr.service.mjs +0 -207
  69. package/lib/tab-core-utility/app/helpers/response.adapter.d.ts +0 -22
  70. package/lib/tab-core-utility/app/interfaces/signalr.interface.d.ts +0 -84
  71. package/lib/tab-core-utility/core/service/signalr/operation-tracker.service.d.ts +0 -40
  72. package/lib/tab-core-utility/core/service/signalr/signalr-infrastructure.service.d.ts +0 -73
  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 in new API format (camelCase)
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
- * NEW: Uses formio service endpoint - returns new API format directly
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
- * Process form request - handles both SYNC and ASYNC operations transparently
29
- *
30
- * SYNC Operation: Backend returns insertedId immediately → Fetch full record → Return
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,7 +18,7 @@ export declare class TabGetService {
20
18
  */
21
19
  getRecord(params: any): any;
22
20
  /**
23
- * Get History from Kibana microservice
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
@@ -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
- * NEW: Uses new CRUD microservice endpoint with transformed payload
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
39
  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;
82
40
  /**
83
41
  * Executes a select query by its ID, using the provided parameters.
84
42
  *
@@ -90,7 +48,7 @@ export declare class TabGetService {
90
48
  executeSelectQueryById(selectQueryId: string, parameters?: any, additionalConfig?: any): Observable<CommonApiResponse>;
91
49
  removeWhereClauseForEmptyParams(filters: any[], parameters: Record<string, any>): any[];
92
50
  /**
93
- * Get Search Data from Kibana microservice
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 { Observable } from 'rxjs';
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 apiService;
7
- private readonly signalRService;
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<CommonApiResponse>;
14
+ insertByScreenId(screenId: string, data: any): import("rxjs").Observable<any> | null;
16
15
  /**
17
- * Insert using /records/insert endpoint with SYNC/ASYNC support
18
- * @param objectId The ID of the object
19
- * @param data The data to insert
20
- * @param headers Optional headers
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<CommonApiResponse>;
21
+ insertByObjectId(objectId: string, data: any, headers?: any): import("rxjs").Observable<any> | null;
24
22
  /**
25
- * Handle async insert - wait for SignalR notification
26
- * @param response Initial response with correlationId
27
- * @returns Observable with insertedId from SignalR notification
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
- private handleAsyncInsert;
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 { Observable } from 'rxjs';
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 apiService;
8
- private readonly signalRService;
9
- private readonly metadataHelper;
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
- * Update using /records/update endpoint with SYNC/ASYNC support
12
- * @param objectId The object ID
13
- * @param data The data to update
14
- * @param headers Optional headers
15
- * @returns Observable with update result
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
- updateUsingScreenId(screenId: string, data: any, objectIdToSave?: string, headers?: any): Observable<CommonApiResponse> | null;
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 with custom table name and query fields
35
- * Uses custom queryFieldsArray for where clause instead of primary key
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 tableName The table name
39
- * @param queryFieldsArray Query fields array for custom where clause
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
- updateUsingDSQ(dsqId: string, data: any, tableName?: string, queryFieldsArray?: any, headers?: any): Observable<CommonApiResponse> | null;
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
  }
@@ -1,8 +1,11 @@
1
1
  export declare enum QueryType {
2
2
  Select = 0,
3
- Upsert = 1,
4
- BulkUpdate = 2,
5
- BulkInsert = 3
3
+ Insert = 1,
4
+ Update = 2,
5
+ Delete = 3,
6
+ Upsert = 4,
7
+ BulkUpdate = 5,
8
+ BulkInsert = 6
6
9
  }
7
10
  export declare enum JoinType {
8
11
  LeftJoin = 1,
@@ -10,9 +10,14 @@ export declare class AppHelper {
10
10
  */
11
11
  rebuildApp(payload?: any, headers?: any): Observable<CommonApiResponse>;
12
12
  /**
13
- * Retrieves schema data from the new metadata API.
14
- * Uses metadataService microservice endpoint
15
- * @returns Subscription for getting schema data (result is object, not stringified JSON)
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
  */
@@ -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 raw items to search in.
31
- * @param matchFn The condition to match against raw items.
32
- * @param modelFactory The factory to create a new model from raw item.
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
- * NEW: Returns new format for /records/delete endpoint
24
- * @param tableName The table name (entityName) to delete data from
25
- * @param whereClause The filter criteria for the delete operation (NEW format with lowercase)
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
- entityName: string;
30
- whereClause: APIFilterCriteria;
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': string;
31
+ 'customOptions.dataSourceQueryId': any;
33
32
  logic: {
34
33
  name: string;
35
34
  trigger: {
@@ -1,6 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ScreenHelper {
3
- private readonly metadataHelper;
4
3
  /**
5
4
  * Retrieves screen data based on the provided screen ID.
6
5
  * @param screenId The ID of the screen to retrieve.
@@ -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
- filters: APIFilter[] | any;
41
- filterLogic: string | any;
40
+ Filters: APIFilter[] | any;
41
+ FilterLogic: string | any;
42
42
  SQLQuery: string | any;
43
43
  }
44
44
  export declare class APIFilter {
45
- conjunction: ConjuctionClause | any;
46
- fieldName: string | any;
47
- operator: RelationalOperator | any;
48
- valueType: FilterValueType | any;
45
+ ConjuctionClause: ConjuctionClause | any;
46
+ FieldID: string | any;
47
+ RelationalOperator: RelationalOperator | any;
48
+ ValueType: FilterValueType | any;
49
49
  value: string | any;
50
- sequence: number | any;
51
- groupId: number | any;
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 in the old API format (PascalCase).
53
- * This ensures backward compatibility with code expecting the old format.
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
  }
@@ -40,14 +40,13 @@ export declare class AppObjectModel {
40
40
  readonly AccessList: Array<ObjectAccess>;
41
41
  readonly Resources: Array<Resources>;
42
42
  readonly ChildRelationShips: Array<ChildRelationShip>;
43
+ readonly parsedAppObjectConfiguration: any;
43
44
  readonly AppId: string | null;
44
45
  private readonly fieldMap;
45
46
  private readonly dsqMap;
46
47
  private allFields;
47
48
  private allDSQs;
48
- private parsedAppObjectJson;
49
49
  constructor(raw: any, metadataHelper: MetadataHelper);
50
- private parseAppObjectJson;
51
50
  /**
52
51
  * Returns all fields associated with this AppObject. The fields are cached so that subsequent calls
53
52
  * are faster. The cache is stored in a map by ID.
@@ -122,10 +121,9 @@ export declare class AppObjectModel {
122
121
  dsqs: DataSourceQueryModel[];
123
122
  };
124
123
  /**
125
- * Converts the current object to JSON in the old API format (PascalCase).
126
- * This ensures backward compatibility with code expecting the old format.
124
+ * Converts the current object to a JSON object.
127
125
  *
128
- * @returns {any} The data in old API format.
126
+ * @returns {any} The raw data as a JSON object.
129
127
  */
130
128
  toJSON(): any;
131
129
  }
@@ -25,9 +25,9 @@ export declare class AppScreenModel {
25
25
  */
26
26
  search(term: string): boolean;
27
27
  /**
28
- * Converts the model to JSON in the old API format (PascalCase).
28
+ * Converts the current object to a JSON object.
29
29
  *
30
- * @returns A JSON representation in old format.
30
+ * @returns A JSON representation of the current object.
31
31
  */
32
32
  toJSON(): any;
33
33
  }