@techextensor/tab-sdk 0.0.3 → 0.0.6
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/lib/app/analytics.service.mjs +51 -0
- package/esm2022/lib/app/app.service.mjs +145 -0
- package/esm2022/lib/app/file.service.mjs +41 -0
- package/esm2022/lib/app/release.service.mjs +38 -0
- package/esm2022/lib/app/report.service.mjs +48 -0
- package/esm2022/lib/app/translator.service.mjs +77 -0
- package/esm2022/lib/auth/auth.service.mjs +95 -0
- package/esm2022/lib/crud/crud.service.mjs +161 -0
- package/esm2022/lib/enum/store.enum.mjs +6 -0
- package/esm2022/lib/enum/ui.enum.mjs +13 -0
- package/esm2022/lib/http/http.service.mjs +58 -0
- package/esm2022/lib/interface/http.interface.mjs +2 -0
- package/esm2022/lib/interface/ui.interface.mjs +2 -0
- package/esm2022/lib/store/store.service.mjs +719 -0
- package/esm2022/lib/tab-sdk.service.mjs +52 -18
- package/esm2022/lib/ui/form.service.mjs +58 -76
- package/esm2022/lib/ui/ui.service.mjs +297 -2
- package/esm2022/lib/util/util.service.mjs +53 -0
- package/esm2022/lib/workflow/transition.service.mjs +40 -0
- package/fesm2022/techextensor-tab-sdk.mjs +1855 -341
- package/fesm2022/techextensor-tab-sdk.mjs.map +1 -1
- package/lib/app/analytics.service.d.ts +28 -0
- package/lib/app/app.service.d.ts +81 -0
- package/lib/app/file.service.d.ts +22 -0
- package/lib/app/release.service.d.ts +23 -0
- package/lib/app/report.service.d.ts +28 -0
- package/lib/app/translator.service.d.ts +49 -0
- package/lib/auth/auth.service.d.ts +58 -0
- package/lib/crud/crud.service.d.ts +88 -0
- package/lib/enum/store.enum.d.ts +4 -0
- package/lib/enum/ui.enum.d.ts +10 -0
- package/lib/http/http.service.d.ts +35 -0
- package/lib/interface/http.interface.d.ts +8 -0
- package/lib/interface/ui.interface.d.ts +24 -0
- package/lib/store/store.service.d.ts +406 -0
- package/lib/tab-sdk.service.d.ts +24 -8
- package/lib/ui/form.service.d.ts +35 -44
- package/lib/ui/ui.service.d.ts +154 -0
- package/lib/util/util.service.d.ts +14 -0
- package/lib/workflow/transition.service.d.ts +21 -0
- package/package.json +2 -2
- package/esm2022/lib/common/utils.service.mjs +0 -163
- package/esm2022/lib/core/auth.service.mjs +0 -48
- package/esm2022/lib/data/data.service.mjs +0 -81
- package/lib/common/utils.service.d.ts +0 -58
- package/lib/core/auth.service.d.ts +0 -28
- package/lib/data/data.service.d.ts +0 -36
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { LoginUserRequest, CommonApiResponse, RegisterTenant, ResetPasswordUserRequest, RefreshTokenRequest, UserDetailsRequest, ChangePasswordUserRequest } from '@techextensor/tab-core-utility';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AuthUtilService {
|
|
4
|
+
private readonly _authService;
|
|
5
|
+
/**
|
|
6
|
+
* Authenticates a user based on the provided login credentials.
|
|
7
|
+
*
|
|
8
|
+
* @param credentials The login credentials.
|
|
9
|
+
* @returns The response from the server.
|
|
10
|
+
*/
|
|
11
|
+
login(credentials: LoginUserRequest): Promise<CommonApiResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Registers a new tenant based on the provided details.
|
|
14
|
+
*
|
|
15
|
+
* @param tenantDetails The tenant details.
|
|
16
|
+
* @returns The response from the server.
|
|
17
|
+
*/
|
|
18
|
+
registerTenant(tenantDetails: RegisterTenant): Promise<CommonApiResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Registers a new user based on the provided user details.
|
|
21
|
+
*
|
|
22
|
+
* @param userDetails The user details.
|
|
23
|
+
* @param headers Optional headers to pass to the server.
|
|
24
|
+
* @returns The response from the server.
|
|
25
|
+
*/
|
|
26
|
+
registerUser(userDetails: any, headers?: Record<string, string>): Promise<CommonApiResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Resets a user's password based on the provided reset password credentials.
|
|
29
|
+
*
|
|
30
|
+
* @param credentials The reset password credentials.
|
|
31
|
+
* @returns The response from the server.
|
|
32
|
+
*/
|
|
33
|
+
resetPassword(credentials: ResetPasswordUserRequest): Promise<CommonApiResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Changes a user's password based on the provided credentials.
|
|
36
|
+
*
|
|
37
|
+
* @param credentials The credentials containing the user's current and new password.
|
|
38
|
+
* @returns The response from the server.
|
|
39
|
+
*/
|
|
40
|
+
changePassword(credentials: ChangePasswordUserRequest): Promise<CommonApiResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Refreshes a user's token based on the provided refresh token details.
|
|
43
|
+
*
|
|
44
|
+
* @param tokenDetails The refresh token details.
|
|
45
|
+
* @returns The response from the server.
|
|
46
|
+
*/
|
|
47
|
+
refreshToken(tokenDetails: RefreshTokenRequest): Promise<CommonApiResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Gets the user details for the provided user details request.
|
|
50
|
+
*
|
|
51
|
+
* @param userDetailsRequest The user details request.
|
|
52
|
+
* @param headers Optional headers to pass to the server.
|
|
53
|
+
* @returns The response from the server.
|
|
54
|
+
*/
|
|
55
|
+
getUserDetails(userDetailsRequest: UserDetailsRequest, headers?: Record<string, string>): Promise<CommonApiResponse>;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthUtilService, never>;
|
|
57
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthUtilService>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { APISelectQuery, CommonApiResponse, DeletePayload, GetPayload, InsertPayload, UpdatePayload, ImprotDataPayload, RcordHistoryPayload, SearchDataPayload } from '@techextensor/tab-core-utility';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CrudService {
|
|
4
|
+
private readonly _tabCrudService;
|
|
5
|
+
private readonly _tabGetService;
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves a record from the database using the provided payload.
|
|
8
|
+
*
|
|
9
|
+
* @param payload - The payload containing information to retrieve the record.
|
|
10
|
+
* @param headers - Optional headers to pass to the server.
|
|
11
|
+
* @returns A promise that resolves to a common API response containing the retrieved record.
|
|
12
|
+
*/
|
|
13
|
+
get(payload: GetPayload, headers?: any): Promise<CommonApiResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Inserts a record into the database using the provided payload.
|
|
16
|
+
*
|
|
17
|
+
* @param payload - The payload containing information to insert the record.
|
|
18
|
+
* @param headers - Optional headers to pass to the server.
|
|
19
|
+
* @returns A promise that resolves to a common API response containing the inserted record.
|
|
20
|
+
*/
|
|
21
|
+
insert(payload: InsertPayload, headers?: any): Promise<CommonApiResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Updates a record in the database using the provided payload.
|
|
24
|
+
*
|
|
25
|
+
* @param payload - The payload containing information to update the record.
|
|
26
|
+
* @param headers - Optional headers to pass to the server.
|
|
27
|
+
* @returns A promise that resolves to a common API response containing the updated record.
|
|
28
|
+
*/
|
|
29
|
+
update(payload: UpdatePayload, headers?: any): Promise<CommonApiResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Deletes a record from the database using the provided payload.
|
|
32
|
+
*
|
|
33
|
+
* @param payload - The payload containing information to delete the record.
|
|
34
|
+
* @param headers - Optional headers to pass to the server.
|
|
35
|
+
* @returns A promise that resolves to a common API response containing the deleted record.
|
|
36
|
+
*/
|
|
37
|
+
delete(payload: DeletePayload, headers?: any): Promise<CommonApiResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Executes a stored procedure using the provided payload.
|
|
40
|
+
*
|
|
41
|
+
* @param sp - The name of the stored procedure to execute.
|
|
42
|
+
* @param headers - Optional headers to pass to the server.
|
|
43
|
+
* @returns A promise that resolves to a common API response containing the result of executing the stored procedure.
|
|
44
|
+
*/
|
|
45
|
+
executeSp(sp: string, headers?: any): Promise<CommonApiResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Executes a select query using the provided select query ID.
|
|
48
|
+
*
|
|
49
|
+
* @param selectQueryId - The ID of the select query to execute.
|
|
50
|
+
* @param parameters - Optional parameters to pass to the select query.
|
|
51
|
+
* @returns A promise that resolves to a common API response containing the result of executing the select query.
|
|
52
|
+
*/
|
|
53
|
+
executeSelectQuery(selectQueryId: string, parameters?: any): Promise<CommonApiResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Executes a select query using the provided select query data.
|
|
56
|
+
*
|
|
57
|
+
* @param data - The select query data.
|
|
58
|
+
* @param parameters - Optional parameters to pass to the select query.
|
|
59
|
+
* @returns A promise that resolves to a common API response containing the result of executing the select query.
|
|
60
|
+
*/
|
|
61
|
+
executeSelectExecutor(data: APISelectQuery, parameters?: any): Promise<CommonApiResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Gets the search data using the provided search query and limit.
|
|
64
|
+
*
|
|
65
|
+
* @param searchQuery - The search query to search for.
|
|
66
|
+
* @param limit - The number of records to limit the results to.
|
|
67
|
+
* @param parameters - Optional parameters to pass to the search query.
|
|
68
|
+
* @returns A promise that resolves to a common API response containing the search data.
|
|
69
|
+
*/
|
|
70
|
+
getSearchData(payload: SearchDataPayload, parameters?: any): Promise<CommonApiResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Retrieves the history of records for a specified app object.
|
|
73
|
+
*
|
|
74
|
+
* @param appObjectId - The ID of the app object to retrieve the record history for.
|
|
75
|
+
* @param recordIds - An array of record IDs to retrieve the history for.
|
|
76
|
+
* @returns A promise that resolves to a common API response containing the record history.
|
|
77
|
+
*/
|
|
78
|
+
getRecordHistory(payload: RcordHistoryPayload): Promise<CommonApiResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Imports data into the database.
|
|
81
|
+
*
|
|
82
|
+
* @param data - The data to import.
|
|
83
|
+
* @returns A promise that resolves to a common API response containing the result of importing the data.
|
|
84
|
+
*/
|
|
85
|
+
import(payload: ImprotDataPayload): Promise<any>;
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudService, never>;
|
|
87
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CrudService>;
|
|
88
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { HttpExecuteRequestPayload } from '@techextensor/tab-core-utility';
|
|
2
|
+
import { RequestStatus } from '../interface/http.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class HttpService {
|
|
5
|
+
private readonly _tabGetService;
|
|
6
|
+
/**
|
|
7
|
+
* Executes an HTTP request using the provided payload.
|
|
8
|
+
*
|
|
9
|
+
* @param payload - The payload containing information to execute the HTTP request.
|
|
10
|
+
* @returns A promise that resolves to the response from the server.
|
|
11
|
+
*/
|
|
12
|
+
executeRequest(payload: HttpExecuteRequestPayload): Promise<any>;
|
|
13
|
+
/**
|
|
14
|
+
* Generates an HTTP request for the given data source query name.
|
|
15
|
+
*
|
|
16
|
+
* @param dataSourceQueryName - The name of the data source query for which to generate the HTTP request.
|
|
17
|
+
* @returns A promise that resolves to the generated HTTP request.
|
|
18
|
+
*/
|
|
19
|
+
generateRequest(dataSourceQueryName: string): Promise<any>;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the request status for the given URL.
|
|
22
|
+
*
|
|
23
|
+
* @param status - The request status to set.
|
|
24
|
+
*/
|
|
25
|
+
setRequestStatus(status: RequestStatus): void;
|
|
26
|
+
/**
|
|
27
|
+
* Gets the request status for the given URL.
|
|
28
|
+
*
|
|
29
|
+
* @param url - The URL for which to get the request status.
|
|
30
|
+
* @returns The request status for the given URL.
|
|
31
|
+
*/
|
|
32
|
+
getRequestStatus(url: string): RequestStatus | undefined;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>;
|
|
34
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ScreenDisplayMode } from "../enum/ui.enum";
|
|
2
|
+
export interface BaseScreenOptions {
|
|
3
|
+
screenId: string;
|
|
4
|
+
reqtokens?: any;
|
|
5
|
+
submission?: any;
|
|
6
|
+
title?: string;
|
|
7
|
+
width?: string | number;
|
|
8
|
+
height?: string | number;
|
|
9
|
+
customClass?: string;
|
|
10
|
+
refresher?: () => void;
|
|
11
|
+
closer?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export interface ScreenOpenOptions extends BaseScreenOptions {
|
|
14
|
+
mode: ScreenDisplayMode;
|
|
15
|
+
}
|
|
16
|
+
export interface NavigationOptions {
|
|
17
|
+
screenId: string;
|
|
18
|
+
reqtokens?: Record<string, any>;
|
|
19
|
+
}
|
|
20
|
+
export interface NavigateToSubdomainOptions {
|
|
21
|
+
subDomain: string;
|
|
22
|
+
appCode: string;
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class StoreService {
|
|
3
|
+
private readonly _localStorageService;
|
|
4
|
+
private readonly _sessionStorageService;
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves the tenant ID from the local storage.
|
|
7
|
+
*/
|
|
8
|
+
get tenantId(): string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Sets the tenant ID in the organization info.
|
|
11
|
+
*
|
|
12
|
+
* @param value - The tenant ID to set.
|
|
13
|
+
*/
|
|
14
|
+
set tenantId(value: string | null);
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves the tenant name from the organization info.
|
|
17
|
+
*/
|
|
18
|
+
get tenantName(): string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the tenant name in the organization info.
|
|
21
|
+
*
|
|
22
|
+
* @param value - The tenant name to set.
|
|
23
|
+
*/
|
|
24
|
+
set tenantName(value: string | null);
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves the subdomain from the organization info.
|
|
27
|
+
*
|
|
28
|
+
* @returns The subdomain if it exists, otherwise `null`.
|
|
29
|
+
*/
|
|
30
|
+
get subdomain(): string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Sets the subdomain in the organization info.
|
|
33
|
+
*
|
|
34
|
+
* @param value - The subdomain to set.
|
|
35
|
+
*/
|
|
36
|
+
set subdomain(value: string | null);
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves the app ID from the app info.
|
|
39
|
+
*
|
|
40
|
+
* @returns The app ID if it exists, otherwise `null`.
|
|
41
|
+
*/
|
|
42
|
+
get appId(): string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the app ID in the app info.
|
|
45
|
+
*
|
|
46
|
+
* @param value - The app ID to set.
|
|
47
|
+
*/
|
|
48
|
+
set appId(value: string | null);
|
|
49
|
+
/**
|
|
50
|
+
* Retrieves the app name from the app info.
|
|
51
|
+
*
|
|
52
|
+
* @returns The app name if it exists, otherwise `null`.
|
|
53
|
+
*/
|
|
54
|
+
get appName(): string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Sets the app name in the app info.
|
|
57
|
+
*
|
|
58
|
+
* @param value - The app name to set.
|
|
59
|
+
*/
|
|
60
|
+
set appName(value: string | null);
|
|
61
|
+
/**
|
|
62
|
+
* Retrieves the environment ID from the environment info.
|
|
63
|
+
*
|
|
64
|
+
* @returns The environment ID if it exists, otherwise `null`.
|
|
65
|
+
*/
|
|
66
|
+
get environmentId(): string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Sets the environment ID in the environment info.
|
|
69
|
+
*
|
|
70
|
+
* @param value - The environment ID to set.
|
|
71
|
+
*/
|
|
72
|
+
set environmentId(value: string | null);
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves the environment name from the environment info.
|
|
75
|
+
*
|
|
76
|
+
* @returns The environment name if it exists, otherwise `null`.
|
|
77
|
+
*/
|
|
78
|
+
get environmentName(): string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Sets the environment name in the environment info.
|
|
81
|
+
*
|
|
82
|
+
* @param value - The environment name to set.
|
|
83
|
+
*/
|
|
84
|
+
set environmentName(value: string | null);
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves the token from the token info.
|
|
87
|
+
*
|
|
88
|
+
* @returns The token if it exists, otherwise `null`.
|
|
89
|
+
*/
|
|
90
|
+
get token(): string | null;
|
|
91
|
+
/**
|
|
92
|
+
* Sets the token in the token info.
|
|
93
|
+
*
|
|
94
|
+
* @param value - The token to set.
|
|
95
|
+
*/
|
|
96
|
+
set token(value: string | null);
|
|
97
|
+
/**
|
|
98
|
+
* Retrieves the refresh token from the token info.
|
|
99
|
+
*
|
|
100
|
+
* @returns The refresh token if it exists, otherwise `null`.
|
|
101
|
+
*/
|
|
102
|
+
get refreshToken(): string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Sets the refresh token in the token info.
|
|
105
|
+
*
|
|
106
|
+
* @param value - The refresh token to set.
|
|
107
|
+
*/
|
|
108
|
+
set refreshToken(value: string | null);
|
|
109
|
+
/**
|
|
110
|
+
* Retrieves the refresh token expiry time from the token info.
|
|
111
|
+
*
|
|
112
|
+
* @returns The refresh token expiry time if it exists, otherwise `null`.
|
|
113
|
+
*/
|
|
114
|
+
get refreshTokenExpiry(): string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Sets the refresh token expiry time in the token info.
|
|
117
|
+
*
|
|
118
|
+
* @param value - The refresh token expiry time to set.
|
|
119
|
+
*/
|
|
120
|
+
set refreshTokenExpiry(value: string | null);
|
|
121
|
+
/**
|
|
122
|
+
* Retrieves the static token from the token info.
|
|
123
|
+
*
|
|
124
|
+
* @returns The static token if it exists, otherwise `null`.
|
|
125
|
+
*/
|
|
126
|
+
get staticToken(): string | null;
|
|
127
|
+
/**
|
|
128
|
+
* Sets the static token in the token info.
|
|
129
|
+
*
|
|
130
|
+
* @param value - The static token to set.
|
|
131
|
+
*/
|
|
132
|
+
set staticToken(value: string | null);
|
|
133
|
+
/**
|
|
134
|
+
* Retrieves the user ID from the user info.
|
|
135
|
+
*
|
|
136
|
+
* @returns The user ID if it exists, otherwise `null`.
|
|
137
|
+
*/
|
|
138
|
+
get userId(): string | null;
|
|
139
|
+
/**
|
|
140
|
+
* Retrieves the user's roles from the user information.
|
|
141
|
+
*
|
|
142
|
+
* @returns An array of user roles if they exist, otherwise `null`.
|
|
143
|
+
*/
|
|
144
|
+
get userRoles(): any[] | null;
|
|
145
|
+
/**
|
|
146
|
+
* Retrieves the user's teams from the user information.
|
|
147
|
+
*
|
|
148
|
+
* @returns An array of user teams if they exist, otherwise `null`.
|
|
149
|
+
*/
|
|
150
|
+
get userTeams(): any[] | null;
|
|
151
|
+
/**
|
|
152
|
+
* Removes the tenant ID from the organization information.
|
|
153
|
+
*/
|
|
154
|
+
removeTenantId(): void;
|
|
155
|
+
/**
|
|
156
|
+
* Removes the tenant name from the organization information.
|
|
157
|
+
*/
|
|
158
|
+
removeTenantName(): void;
|
|
159
|
+
/**
|
|
160
|
+
* Removes the subdomain from the organization information.
|
|
161
|
+
*
|
|
162
|
+
* This removes the subdomain property from the organization information
|
|
163
|
+
* stored in local storage.
|
|
164
|
+
*/
|
|
165
|
+
removeSubdomain(): void;
|
|
166
|
+
/**
|
|
167
|
+
* Removes the app ID from the app information.
|
|
168
|
+
*
|
|
169
|
+
* This removes the app ID property from the app information stored in local storage.
|
|
170
|
+
*/
|
|
171
|
+
removeAppId(): void;
|
|
172
|
+
/**
|
|
173
|
+
* Removes the app name from the app information.
|
|
174
|
+
*
|
|
175
|
+
* This removes the app name property from the app information stored in local storage.
|
|
176
|
+
*/
|
|
177
|
+
removeAppName(): void;
|
|
178
|
+
/**
|
|
179
|
+
* Removes the environment ID from the environment information.
|
|
180
|
+
*
|
|
181
|
+
* This removes the ID property from the environment information
|
|
182
|
+
* stored in local storage.
|
|
183
|
+
*/
|
|
184
|
+
removeEnvironmentId(): void;
|
|
185
|
+
/**
|
|
186
|
+
* Removes the environment name from the environment information.
|
|
187
|
+
*
|
|
188
|
+
* This removes the Name property from the environment information
|
|
189
|
+
* stored in local storage.
|
|
190
|
+
*/
|
|
191
|
+
removeEnvironmentName(): void;
|
|
192
|
+
/**
|
|
193
|
+
* Removes the token from the token info.
|
|
194
|
+
*
|
|
195
|
+
* This removes the token property from the token information stored in session
|
|
196
|
+
* storage.
|
|
197
|
+
*/
|
|
198
|
+
removeToken(): void;
|
|
199
|
+
/**
|
|
200
|
+
* Removes the refresh token from the token information.
|
|
201
|
+
*
|
|
202
|
+
* This removes the refresh token property from the token information stored in session
|
|
203
|
+
* storage.
|
|
204
|
+
*/
|
|
205
|
+
removeRefreshToken(): void;
|
|
206
|
+
/**
|
|
207
|
+
* Removes the refresh token expiry time from the token information.
|
|
208
|
+
*
|
|
209
|
+
* This removes the refresh token expiry time property from the token information stored in session
|
|
210
|
+
* storage.
|
|
211
|
+
*/
|
|
212
|
+
removeRefreshTokenExpiry(): void;
|
|
213
|
+
/**
|
|
214
|
+
* Removes the static token from the token information.
|
|
215
|
+
*
|
|
216
|
+
* This removes the static token property from the token information stored in session
|
|
217
|
+
* storage.
|
|
218
|
+
*/
|
|
219
|
+
removeStaticToken(): void;
|
|
220
|
+
/**
|
|
221
|
+
* Removes the specified key from the organization information.
|
|
222
|
+
*
|
|
223
|
+
* This removes the specified key from the organization information stored in local storage.
|
|
224
|
+
*
|
|
225
|
+
* @param key The key to remove from the organization information.
|
|
226
|
+
*/
|
|
227
|
+
private removeFromOrgInfo;
|
|
228
|
+
/**
|
|
229
|
+
* Removes the specified key from the app information.
|
|
230
|
+
*
|
|
231
|
+
* This removes the specified key from the app information stored in session
|
|
232
|
+
* storage.
|
|
233
|
+
*
|
|
234
|
+
* @param key The key to remove from the app information.
|
|
235
|
+
*/
|
|
236
|
+
private removeFromAppInfo;
|
|
237
|
+
/**
|
|
238
|
+
* Removes the specified key from the environment information.
|
|
239
|
+
*
|
|
240
|
+
* This removes the specified key from the environment information stored in session
|
|
241
|
+
* storage.
|
|
242
|
+
*
|
|
243
|
+
* @param key The key to remove from the environment information.
|
|
244
|
+
*/
|
|
245
|
+
private removeFromEnvironmentInfo;
|
|
246
|
+
/**
|
|
247
|
+
* Removes the specified key from the token information.
|
|
248
|
+
*
|
|
249
|
+
* This removes the specified key from the token information stored in session
|
|
250
|
+
* storage.
|
|
251
|
+
*
|
|
252
|
+
* @param key The key to remove from the token information.
|
|
253
|
+
*/
|
|
254
|
+
private removeFromTokenInfo;
|
|
255
|
+
/**
|
|
256
|
+
* Retrieves the organization information from local storage.
|
|
257
|
+
*
|
|
258
|
+
* @returns The organization information object or null if it doesn't exist.
|
|
259
|
+
*/
|
|
260
|
+
getOrgInfo(): any;
|
|
261
|
+
/**
|
|
262
|
+
* Saves the organization information to local storage.
|
|
263
|
+
*
|
|
264
|
+
* @param orgInfo - The organization information to store.
|
|
265
|
+
*/
|
|
266
|
+
setOrgInfo(orgInfo: any): void;
|
|
267
|
+
/**
|
|
268
|
+
* Retrieves the app information from session storage.
|
|
269
|
+
*
|
|
270
|
+
* @returns The app information object or null if it doesn't exist.
|
|
271
|
+
*/
|
|
272
|
+
getAppInfo(): any;
|
|
273
|
+
/**
|
|
274
|
+
* Saves the app information to session storage.
|
|
275
|
+
*
|
|
276
|
+
* @param appInfo - The app information to store.
|
|
277
|
+
*/
|
|
278
|
+
setAppInfo(appInfo: any): void;
|
|
279
|
+
/**
|
|
280
|
+
* Retrieves the environment information from session storage.
|
|
281
|
+
*
|
|
282
|
+
* @returns The environment information object or null if it doesn't exist.
|
|
283
|
+
*/
|
|
284
|
+
getEnvironmentInfo(): any;
|
|
285
|
+
/**
|
|
286
|
+
* Saves the environment information to session storage.
|
|
287
|
+
*
|
|
288
|
+
* @param envInfo - The environment information to store.
|
|
289
|
+
*/
|
|
290
|
+
setEnvironmentInfo(envInfo: any): void;
|
|
291
|
+
/**
|
|
292
|
+
* Retrieves the token information from session storage.
|
|
293
|
+
*
|
|
294
|
+
* @returns The token information object or null if it doesn't exist.
|
|
295
|
+
*/
|
|
296
|
+
getTokenInfo(): any;
|
|
297
|
+
/**
|
|
298
|
+
* Saves the token information to session storage.
|
|
299
|
+
*
|
|
300
|
+
* @param tokenInfo - The token information to store.
|
|
301
|
+
*/
|
|
302
|
+
setTokenInfo(tokenInfo: any): void;
|
|
303
|
+
/**
|
|
304
|
+
* Retrieves the user information from local storage.
|
|
305
|
+
*
|
|
306
|
+
* @returns The user information object or null if it doesn't exist.
|
|
307
|
+
*/
|
|
308
|
+
getUserInfo(): any;
|
|
309
|
+
/**
|
|
310
|
+
* Sets the user information in local storage.
|
|
311
|
+
*
|
|
312
|
+
* @param userInfo The user information to store.
|
|
313
|
+
*/
|
|
314
|
+
setUserInfo(userInfo: any): void;
|
|
315
|
+
/**
|
|
316
|
+
* Sets a key-value pair in local storage.
|
|
317
|
+
*
|
|
318
|
+
* @param key The key to store the value under.
|
|
319
|
+
* @param data The value to store.
|
|
320
|
+
*/
|
|
321
|
+
setLocal(key: string, data: any): void;
|
|
322
|
+
/**
|
|
323
|
+
* Retrieves a value from local storage by key.
|
|
324
|
+
*
|
|
325
|
+
* @param key The key associated with the value to retrieve.
|
|
326
|
+
* @returns The value stored in local storage, or null if it doesn't exist.
|
|
327
|
+
*/
|
|
328
|
+
getLocal(key: string): any;
|
|
329
|
+
/**
|
|
330
|
+
* Removes a key-value pair from local storage.
|
|
331
|
+
*
|
|
332
|
+
* @param key The key associated with the value to remove.
|
|
333
|
+
*/
|
|
334
|
+
removeLocal(key: string): void;
|
|
335
|
+
/**
|
|
336
|
+
* Clears all local storage data.
|
|
337
|
+
*/
|
|
338
|
+
clearLocal(): void;
|
|
339
|
+
/**
|
|
340
|
+
* Sets a key-value pair in session storage.
|
|
341
|
+
*
|
|
342
|
+
* @param key The key to store the value under.
|
|
343
|
+
* @param data The value to store.
|
|
344
|
+
*/
|
|
345
|
+
setSession(key: string, data: any): void;
|
|
346
|
+
/**
|
|
347
|
+
* Retrieves a value from session storage by key.
|
|
348
|
+
*
|
|
349
|
+
* @param key The key associated with the value to retrieve.
|
|
350
|
+
* @returns The value stored in session storage, or null if it doesn't exist.
|
|
351
|
+
*/
|
|
352
|
+
getSession(key: string): any;
|
|
353
|
+
/**
|
|
354
|
+
* Removes a key-value pair from session storage.
|
|
355
|
+
*
|
|
356
|
+
* @param key The key associated with the value to remove.
|
|
357
|
+
*/
|
|
358
|
+
removeSession(key: string): void;
|
|
359
|
+
/**
|
|
360
|
+
* Clears all session storage data.
|
|
361
|
+
*/
|
|
362
|
+
clearSession(): void;
|
|
363
|
+
/**
|
|
364
|
+
* Clears all authentication-related data from local and session storage.
|
|
365
|
+
*
|
|
366
|
+
* This method is typically used after a user logs out.
|
|
367
|
+
*/
|
|
368
|
+
clearAuth(): void;
|
|
369
|
+
/**
|
|
370
|
+
* Generic getter method for retrieving data from either local or session storage.
|
|
371
|
+
*
|
|
372
|
+
* @param storage The type of storage to retrieve from.
|
|
373
|
+
* @param key The key associated with the data to retrieve.
|
|
374
|
+
* @returns The retrieved data, deserialized from JSON if it was stored as a string.
|
|
375
|
+
*/
|
|
376
|
+
private getFromStorage;
|
|
377
|
+
/**
|
|
378
|
+
* Sets a key-value pair in the specified storage type.
|
|
379
|
+
*
|
|
380
|
+
* @param storage The type of storage to use (local or session).
|
|
381
|
+
* @param key The key under which the data should be stored.
|
|
382
|
+
* @param data The data to store.
|
|
383
|
+
*/
|
|
384
|
+
private setToStorage;
|
|
385
|
+
/**
|
|
386
|
+
* Removes a key-value pair from the specified storage type.
|
|
387
|
+
*
|
|
388
|
+
* This method removes the given key from either local or session storage
|
|
389
|
+
* based on the specified storage type.
|
|
390
|
+
*
|
|
391
|
+
* @param storage The type of storage to remove from (local or session).
|
|
392
|
+
* @param key The key associated with the value to remove.
|
|
393
|
+
*/
|
|
394
|
+
private removeFromStorage;
|
|
395
|
+
/**
|
|
396
|
+
* Clears all key-value pairs from the specified storage type.
|
|
397
|
+
*
|
|
398
|
+
* This method clears all key-value pairs from either local or session storage
|
|
399
|
+
* based on the specified storage type.
|
|
400
|
+
*
|
|
401
|
+
* @param storage The type of storage to clear (local or session).
|
|
402
|
+
*/
|
|
403
|
+
private clearStorage;
|
|
404
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StoreService, never>;
|
|
405
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StoreService>;
|
|
406
|
+
}
|
package/lib/tab-sdk.service.d.ts
CHANGED
|
@@ -1,19 +1,35 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { MetadataHelper } from '@techextensor/tab-core-utility';
|
|
3
3
|
import { UiService } from './ui/ui.service';
|
|
4
|
+
import { AuthUtilService } from './auth/auth.service';
|
|
4
5
|
import { FormService } from './ui/form.service';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { TransitionService } from './workflow/transition.service';
|
|
7
|
+
import { AppService } from './app/app.service';
|
|
8
|
+
import { FileService } from './app/file.service';
|
|
9
|
+
import { ReportService } from './app/report.service';
|
|
10
|
+
import { ReleaseService } from './app/release.service';
|
|
11
|
+
import { AnalyticsService } from './app/analytics.service';
|
|
12
|
+
import { TranslatorService } from './app/translator.service';
|
|
13
|
+
import { CrudService } from './crud/crud.service';
|
|
14
|
+
import { HttpService } from './http/http.service';
|
|
15
|
+
import { StoreService } from './store/store.service';
|
|
8
16
|
import * as i0 from "@angular/core";
|
|
9
17
|
export declare class TabSdk {
|
|
10
|
-
static
|
|
18
|
+
static app: AppService;
|
|
19
|
+
static auth: AuthUtilService;
|
|
11
20
|
static ui: UiService;
|
|
12
21
|
static form: FormService;
|
|
13
|
-
static
|
|
14
|
-
static utils: UtilsService;
|
|
22
|
+
static transition: TransitionService;
|
|
15
23
|
static metadataUtils: MetadataHelper;
|
|
16
|
-
static
|
|
24
|
+
static file: FileService;
|
|
25
|
+
static report: ReportService;
|
|
26
|
+
static release: ReleaseService;
|
|
27
|
+
static analytics: AnalyticsService;
|
|
28
|
+
static translator: TranslatorService;
|
|
29
|
+
static crud: CrudService;
|
|
30
|
+
static http: HttpService;
|
|
31
|
+
static store: StoreService;
|
|
32
|
+
static util: any;
|
|
17
33
|
/**
|
|
18
34
|
* Initialize the SDK with necessary services
|
|
19
35
|
*/
|