@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
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class UtilsService {
|
|
3
|
-
private readonly _authService;
|
|
4
|
-
private readonly _helperFunctionService;
|
|
5
|
-
/**
|
|
6
|
-
* Extracts the event name from various event parameter structures
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* const eventName = sdk.utils.extractEventName(screenParameters.event);
|
|
10
|
-
* if (eventName === 'deleteDocument') {
|
|
11
|
-
* // Handle delete document event
|
|
12
|
-
* }
|
|
13
|
-
*/
|
|
14
|
-
extractEventName(event: any): string;
|
|
15
|
-
/**
|
|
16
|
-
* Builds an application URL with the specified path and parameters
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* // Get full URL with protocol
|
|
20
|
-
* const fullUrl = sdk.utils.buildAppUrl('screen/12345', { id: '12345' });
|
|
21
|
-
*/
|
|
22
|
-
buildAppUrl(path: string, parameters?: Record<string, any>, includeProtocol?: boolean): string;
|
|
23
|
-
/**
|
|
24
|
-
* Generates and copies a screen URL to the clipboard
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* // Copy URL to clipboard
|
|
28
|
-
* sdk.utils.copyScreenLink('12345', { id: '12345' });
|
|
29
|
-
*/
|
|
30
|
-
copyScreenLinkToClipboard(screenId: string, parameters?: Record<string, any>): any;
|
|
31
|
-
/**
|
|
32
|
-
* Downloads a blob as a file
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* // Download a blob as 'report.pdf'
|
|
36
|
-
* const pdfBlob = new Blob([pdfContent], { type: 'application/pdf' });
|
|
37
|
-
* sdk.utils.downloadBlob(pdfBlob, 'report.pdf');
|
|
38
|
-
*/
|
|
39
|
-
downloadBlob(blob: Blob, filename: string): void;
|
|
40
|
-
/**
|
|
41
|
-
* Exports HTML content as a Word document (.doc)
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* // Export editor content as Word document
|
|
45
|
-
* sdk.utils.exportAsWord(editorContent, 'report');
|
|
46
|
-
*/
|
|
47
|
-
exportAsWord(content: string, filename?: string): void;
|
|
48
|
-
/**
|
|
49
|
-
* Exports HTML content as PDF using browser print functionality
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* // Export content as PDF
|
|
53
|
-
* sdk.utils.exportAsPdf(documentContent, 'Invoice');
|
|
54
|
-
*/
|
|
55
|
-
exportAsPdf(content: string, title?: string): void;
|
|
56
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
57
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
58
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class AuthService {
|
|
3
|
-
private readonly _sessionStorageService;
|
|
4
|
-
private readonly _localStorageService;
|
|
5
|
-
/**
|
|
6
|
-
* Get the current application code/identifier
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* const appCode = sdk.config.getAppCode();
|
|
10
|
-
*/
|
|
11
|
-
getAppCode(): string;
|
|
12
|
-
/**
|
|
13
|
-
* Get the current user ID
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* const userId = sdk.auth.getCurrentUserId();
|
|
17
|
-
*/
|
|
18
|
-
getCurrentUserId(): string;
|
|
19
|
-
/**
|
|
20
|
-
* Get the current user information
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* const user = sdk.auth.getCurrentUser();
|
|
24
|
-
*/
|
|
25
|
-
getCurrentUser(): any;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
27
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
28
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class DataService {
|
|
3
|
-
private readonly _tabInsertService;
|
|
4
|
-
private readonly _tabUpdateService;
|
|
5
|
-
private readonly _tabDeleteService;
|
|
6
|
-
/**
|
|
7
|
-
* Insert a new record
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* const newRecord = await sdk.data.insert('123456', {
|
|
11
|
-
* name: 'ACME Corp',
|
|
12
|
-
* email: 'contact@acme.com'
|
|
13
|
-
* });
|
|
14
|
-
*/
|
|
15
|
-
insert(objectId: string, data: any): Promise<void>;
|
|
16
|
-
/**
|
|
17
|
-
* Update an existing record
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* await sdk.data.update('12345', {
|
|
21
|
-
* Id: '12345',
|
|
22
|
-
* name: 'ACME Corporation',
|
|
23
|
-
* status: 'active'
|
|
24
|
-
* });
|
|
25
|
-
*/
|
|
26
|
-
update(objectId: string, data: any): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Delete a record
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* await sdk.data.delete('12345', {Id: '12345'});
|
|
32
|
-
*/
|
|
33
|
-
delete(objectId: string, data: any): Promise<void>;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DataService, never>;
|
|
35
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DataService>;
|
|
36
|
-
}
|