@techextensor/tab-core-utility 2.2.140 → 2.2.142

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.
@@ -1,20 +1,18 @@
1
+ import { Observable } from "rxjs";
2
+ import { CommonApiResponse } from "../interfaces/common-api.interface";
1
3
  import * as i0 from "@angular/core";
2
4
  export declare class TabReleaseService {
3
5
  private readonly apiService;
4
6
  /**
5
7
  * Retrieves the difference between the metadata JSONs of two releases.
6
- * @param data Object containing Release IDs
7
- * @param headers Optional headers for the request
8
8
  * @returns Observable of the API response
9
9
  */
10
- getMetaDataJsonDiff(data?: any, headers?: any): any;
10
+ getMetaDataJsonDiff(): Observable<CommonApiResponse>;
11
11
  /**
12
12
  * Retrieves the difference between the data JSONs of two releases.
13
- * @param data Object containing Release IDs
14
- * @param headers Optional headers for the request
15
13
  * @returns Observable of the API response
16
14
  */
17
- getDataJsonDiff(data?: any, headers?: any): any;
15
+ getDataJsonDiff(): any;
18
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TabReleaseService, never>;
19
17
  static ɵprov: i0.ɵɵInjectableDeclaration<TabReleaseService>;
20
18
  }
@@ -16,7 +16,11 @@ export declare enum ReleaseContentType {
16
16
  Data = 2,
17
17
  Script = 3
18
18
  }
19
- export interface BuildFormComponentType {
20
- CommonFilter: 'CommonFilter';
21
- BulkUpdate: 'BulkUpdate';
19
+ export declare enum BuildFormComponentType {
20
+ CommonFilter = "CommonFilter",
21
+ BulkUpdate = "BulkUpdate"
22
+ }
23
+ export declare enum JsonType {
24
+ AppObjectAccess = 1,
25
+ Language = 2
22
26
  }
@@ -1,72 +1,113 @@
1
+ import { Observable } from 'rxjs';
2
+ import { CloneDsqPayload, CommonApiResponse, GetDataJsonByTypePayload, PerformanceAnalyticsPayload, RefreshGlobalSearchDataPayload, RegisterAppObjectsPayload, ReportPayload, ScreenPerformancePayload, SyncAppFieldsPayload } from '../../interfaces/common-api.interface';
1
3
  import * as i0 from "@angular/core";
2
4
  export declare class AppHelper {
3
5
  private readonly apiService;
4
- private readonly localStorageService;
5
- private readonly idbService;
6
6
  /**
7
7
  * Rebuilds the application.
8
- * @param data Optional data for rebuilding the application
9
8
  * @returns Result of the rebuild operation
10
9
  */
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;
10
+ rebuildApp(): Observable<CommonApiResponse>;
18
11
  /**
19
12
  * Retrieves screen data.
20
13
  * @param params Optional parameters for retrieving screen data
21
14
  * @returns Screen data
22
15
  */
23
- getScreen(params?: any): import("rxjs").Observable<any> | null;
16
+ getScreen(params?: any): Observable<any> | null;
24
17
  /**
25
18
  * Retrieves schema data.
26
- * @param params Optional parameters for retrieving schema data
27
19
  * @returns Subscription for getting schema data
28
20
  */
29
- getSchema(params?: any): import("rxjs").Observable<any> | null;
30
- storeSchemaIntoIDB(): void;
31
- getPermission(params?: any): import("rxjs").Observable<any> | null;
32
- registerAppObjects(params?: any): import("rxjs").Observable<any> | null;
21
+ getSchema(): Observable<CommonApiResponse>;
22
+ /**
23
+ * Retrieves permission data.
24
+ * @returns Subscription for getting permission data
25
+ */
26
+ getPermission(): Observable<CommonApiResponse>;
27
+ /**
28
+ * Registers application objects.
29
+ * @param payload Parameters for registering application objects
30
+ * @returns Result of the registration operation
31
+ */
32
+ registerAppObjects(payload: RegisterAppObjectsPayload): Observable<CommonApiResponse>;
33
33
  /**
34
34
  * Clones a DataSourceQuery (DSQ) with the given parameters.
35
- * @param params parameters for cloning the DSQ
35
+ * @param payload parameters for cloning the DSQ
36
36
  * @returns The result of the cloning operation
37
37
  */
38
- cloneDsq(params: any): import("rxjs").Observable<any> | null;
38
+ cloneDsq(payload: CloneDsqPayload): Observable<CommonApiResponse>;
39
39
  /**
40
40
  * Retrieves data in JSON format based on the given JSON type and request tokens.
41
- * @param jsonType The type of JSON data to retrieve
42
- * @param reqtokens Request tokens for the data retrieval
41
+ * @param payload Payload containing the JSON type and request tokens
43
42
  * @returns The JSON data retrieved
44
43
  */
45
- getDataJsonByType(jsonType: number, reqtokens?: any): import("rxjs").Observable<any> | null;
44
+ getDataJsonByType(payload: GetDataJsonByTypePayload): Observable<CommonApiResponse>;
46
45
  /**
47
46
  * Syncs the fields of the application object with the given parameters.
48
- * @param params Optional parameters for the synchronization
47
+ * @param payload Parameters for syncing the fields
49
48
  * @returns The result of the synchronization operation
50
49
  */
51
- syncAppFields(params?: any): import("rxjs").Observable<any> | null;
50
+ syncAppFields(payload: SyncAppFieldsPayload): Observable<CommonApiResponse>;
51
+ /**
52
+ * Sets the tab components for the given tenant
53
+ * @param connectionId The ID of the connection
54
+ * @returns An observable of the response from the API
55
+ */
56
+ setTabComponents(connectionId: string): Observable<CommonApiResponse>;
57
+ /**
58
+ * Gets the result of the validation for the given connection
59
+ * @param connectionId The ID of the connection
60
+ * @returns An observable of the response from the API
61
+ */
62
+ performValidation(connectionId: string): Observable<CommonApiResponse>;
63
+ /**
64
+ * Tests the connection for the given connection ID.
65
+ * @param connectionId The ID of the connection
66
+ * @returns An observable of the response from the API
67
+ */
68
+ testConnection(connectionId: string): Observable<CommonApiResponse>;
69
+ /**
70
+ * Refreshes the global search data using the provided payload.
71
+ * @param data Payload containing the query object ID for refreshing search data
72
+ * @returns An observable of the API response
73
+ */
74
+ refreshGlobalSearchData(data: RefreshGlobalSearchDataPayload): Observable<CommonApiResponse>;
52
75
  /**
53
76
  * Exports a report based on the given parameters.
54
- * @param params Optional parameters for exporting the report
77
+ * @param payload Parameters for exporting the report
55
78
  * @returns The result of the export operation
56
79
  */
57
- exportReport(params?: any): import("rxjs").Observable<any> | null;
80
+ exportReport(payload: ReportPayload): Observable<CommonApiResponse>;
58
81
  /**
59
82
  * Downloads a report file based on the given parameters.
60
- * @param params Optional parameters for downloading the report file
83
+ * @param payload Parameters for downloading the report file
61
84
  * @returns The result of the download operation
62
85
  */
63
- downloadReportFile(params?: any): import("rxjs").Observable<any> | null;
86
+ downloadReport(payload: ReportPayload): Observable<CommonApiResponse>;
64
87
  /**
65
88
  * Sends a report based on the given parameters.
66
- * @param params Optional parameters for sending the report
89
+ * @param payload Parameters for sending the report
67
90
  * @returns The result of the send operation
68
91
  */
69
- sendReport(params?: any): import("rxjs").Observable<any> | null;
92
+ sendReport(payload: ReportPayload): Observable<CommonApiResponse>;
93
+ /**
94
+ * Retrieves the detailed analytics of a screen's performance.
95
+ * @param data - Data to be sent to the API
96
+ * @returns Response from the API
97
+ */
98
+ getDetailOfPerformanceAnalytics(data: PerformanceAnalyticsPayload): Observable<CommonApiResponse>;
99
+ /**
100
+ * Get summary of performance analytics
101
+ * @param data - Data to be sent to the API
102
+ * @returns Response from the API
103
+ */
104
+ getSummaryOfPerformanceAnalytics(data: PerformanceAnalyticsPayload): Observable<CommonApiResponse>;
105
+ /**
106
+ * Insert Screen Performance Statistics
107
+ * @param data - Data to insert
108
+ * @returns Response from the API
109
+ */
110
+ insertScreenPerformanceStatistics(data: ScreenPerformancePayload): Observable<CommonApiResponse>;
70
111
  static ɵfac: i0.ɵɵFactoryDeclaration<AppHelper, never>;
71
112
  static ɵprov: i0.ɵɵInjectableDeclaration<AppHelper>;
72
113
  }
@@ -1,51 +1,20 @@
1
1
  import { Observable } from 'rxjs';
2
+ import { CommonApiResponse, UploadMediaFilesPayload } from '../../interfaces/common-api.interface';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class MediaUploadHelper {
4
5
  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
6
  /**
12
7
  * Uploads multiple media objects to the server.
13
- * @param mediaObjects An array of media objects to upload.
8
+ * @param payload An array of media objects to upload.
14
9
  * @returns An Observable that emits the response from the server.
15
10
  */
16
- uploadMultipleMediaFile(mediaObjects: any, headers?: any): Observable<any>;
17
- /**
18
- * Retrieves a file from the server by its media ID.
19
- * @param mediaId The ID of the media file to retrieve.
20
- * @returns An Observable that emits the file as a Blob.
21
- */
22
- getFileByMediaId(mediaId: number, params?: any): Observable<Blob>;
23
- /**
24
- * Downloads all files from the given URL.
25
- * @param endPointName The URL to download files from.
26
- * @returns An Observable that emits the downloaded files as a Blob.
27
- */
28
- downloadAllFiles(endPointName: any): Observable<Blob>;
29
- /**
30
- * Downloads PDF files from the given URL.
31
- * @param endPointName The URL to download PDF files from.
32
- * @param data The data to send along with the request.
33
- * @returns An Observable that emits the downloaded PDF files as a Blob.
34
- */
35
- downloadPdfFiles(endPointName: any, data: any): Observable<Blob>;
36
- /**
37
- * Retrieves an image from the server by its media ID.
38
- * @param mediaId The ID of the media file to retrieve.
39
- * @returns An Observable that emits the image as a Blob.
40
- */
41
- getImageByMediaId(mediaId: any, params?: any): Observable<Blob>;
11
+ uploadMediaFiles(payload: UploadMediaFilesPayload, headers?: any): Observable<CommonApiResponse>;
42
12
  /**
43
13
  * Removes a file from the server by its media ID.
44
14
  * @param mediaId The ID of the media file to remove.
45
- * @param params Optional parameters to send with the request.
46
15
  * @returns An Observable that emits the deleted file as a Blob.
47
16
  */
48
- removeFileByMediaId(mediaId: any, body?: any): Observable<Blob | null>;
17
+ removeMediaFile(mediaId: string): Observable<CommonApiResponse>;
49
18
  static ɵfac: i0.ɵɵFactoryDeclaration<MediaUploadHelper, never>;
50
19
  static ɵprov: i0.ɵɵInjectableDeclaration<MediaUploadHelper>;
51
20
  }
@@ -1,3 +1,4 @@
1
+ import { JsonType } from "../enums/common.enum";
1
2
  export interface ApiResponse {
2
3
  requestId: string;
3
4
  isSuccess: boolean;
@@ -14,7 +15,7 @@ export interface RecordInfo {
14
15
  export interface CommonApiResponse {
15
16
  RequestId: string;
16
17
  IsSuccess: boolean;
17
- Result: string | any[];
18
+ Result: any;
18
19
  StatusCode: string;
19
20
  RecordAffectted: number;
20
21
  TotalRecords: number;
@@ -37,8 +38,54 @@ export interface TemplateParsePayload {
37
38
  }
38
39
  export interface NextStatusPayload {
39
40
  recordId: string;
40
- appObjectId: string;
41
+ appObjectId?: string;
41
42
  }
42
43
  export interface UpdateStatusPayload extends NextStatusPayload {
43
44
  nextPossibleStatusId: string;
44
45
  }
46
+ export interface RegisterAppObjectsPayload {
47
+ ConnectionId: string;
48
+ Tables: string[];
49
+ Views: string[];
50
+ }
51
+ export interface CloneDsqPayload {
52
+ DSQId: string;
53
+ QueryName: string;
54
+ }
55
+ export interface GetDataJsonByTypePayload {
56
+ JsonType: JsonType;
57
+ Reqtokens?: any;
58
+ }
59
+ export interface SyncAppFieldsPayload {
60
+ ConnectionId: string;
61
+ AppObjectId: string;
62
+ }
63
+ export interface RefreshGlobalSearchDataPayload {
64
+ QueryObjectID: string;
65
+ }
66
+ export interface UploadMediaFilePayload {
67
+ Base64String: string;
68
+ FileName: string;
69
+ }
70
+ export interface UploadMediaFilesPayload {
71
+ UploadFiles: UploadMediaFilePayload[];
72
+ }
73
+ export interface ReportPayload {
74
+ DataReportId: string;
75
+ Reqtokens: any;
76
+ }
77
+ export interface PerformanceAnalyticsPayload {
78
+ type: string;
79
+ value: string;
80
+ fromDate: string;
81
+ toDate: string;
82
+ limit?: number;
83
+ }
84
+ export interface ScreenPerformancePayload {
85
+ value: string;
86
+ loadTime: number;
87
+ tags: {
88
+ dsqIds: string[];
89
+ appObjectIds: string[];
90
+ };
91
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techextensor/tab-core-utility",
3
- "version": "2.2.140",
3
+ "version": "2.2.142",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",