@techextensor/tab-sdk 0.0.6 → 0.0.8

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.
@@ -2,6 +2,7 @@ import { CommonApiResponse, UploadMediaFilesPayload } from '@techextensor/tab-co
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class FileService {
4
4
  private _mediaUploadHelper;
5
+ private apiService;
5
6
  /**
6
7
  * Uploads media files using the provided payload and optional headers.
7
8
  *
@@ -17,6 +18,17 @@ export declare class FileService {
17
18
  * @returns A promise that resolves to a common API response.
18
19
  */
19
20
  removeMediaFile(mediaId: string): Promise<CommonApiResponse>;
21
+ /**
22
+ * Processes an FTP URL and returns a processed URL.
23
+ *
24
+ * @param params - The parameters containing data, an optional defaultHeader, and an optional imgElement.
25
+ * @returns A promise that resolves to the processed URL or null if an error occurs.
26
+ */
27
+ processFtpUrl(params: {
28
+ data: string;
29
+ defaultHeader?: boolean;
30
+ imgElement?: HTMLImageElement;
31
+ }): Promise<any>;
20
32
  static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
21
33
  static ɵprov: i0.ɵɵInjectableDeclaration<FileService>;
22
34
  }
@@ -20,5 +20,5 @@ export interface NavigationOptions {
20
20
  export interface NavigateToSubdomainOptions {
21
21
  subDomain: string;
22
22
  appCode: string;
23
- url: string;
23
+ url?: string;
24
24
  }
@@ -34,6 +34,18 @@ export declare class StoreService {
34
34
  * @param value - The subdomain to set.
35
35
  */
36
36
  set subdomain(value: string | null);
37
+ /**
38
+ * Retrieves the locale settings from the organization info.
39
+ *
40
+ * @returns The locale settings if they exist, otherwise `null`.
41
+ */
42
+ get orgLocaleSettings(): any;
43
+ /**
44
+ * Sets the locale settings in the organization info.
45
+ *
46
+ * @param value - The locale settings to set.
47
+ */
48
+ set orgLocaleSettings(value: any);
37
49
  /**
38
50
  * Retrieves the app ID from the app info.
39
51
  *
@@ -40,7 +40,11 @@ export declare class UiService {
40
40
  *
41
41
  * @param url - The URL to navigate to.
42
42
  */
43
- navigateToUrl(url: string): void;
43
+ navigateToUrl(params: {
44
+ url: string;
45
+ extras?: any;
46
+ replaceUrl?: boolean;
47
+ }): void;
44
48
  /**
45
49
  * Navigates to a specified subdomain using the provided options.
46
50
  *
@@ -53,36 +57,49 @@ export declare class UiService {
53
57
  * @returns The screen ID if present in the URL, otherwise undefined.
54
58
  */
55
59
  getActiveUrlScreenId(): string | undefined;
60
+ /**
61
+ * Retrieves the active redirect URL by combining the active screen ID and any query parameters.
62
+ *
63
+ * @returns The constructed redirect URL or undefined if no screen ID is present.
64
+ */
65
+ getActiveRedirectUrl(): string | undefined;
56
66
  /**
57
67
  * Show a notification to the user.
58
68
  *
59
69
  * @param options The options for the notification.
60
70
  */
61
- notify(options: NotificationOptions): void;
71
+ notify(options: NotificationOptions): import("ngx-toastr").ActiveToast<any>;
62
72
  /**
63
73
  * Displays a success notification to the user.
64
74
  *
65
75
  * @param options - The options for the notification, including message, title, and configuration.
66
76
  */
67
- showSuccess(options: BaseNotificationOptions): void;
77
+ showSuccess(options: BaseNotificationOptions): import("ngx-toastr").ActiveToast<any>;
68
78
  /**
69
79
  * Displays a warning notification to the user.
70
80
  *
71
81
  * @param options - The options for the notification, including message, title, and configuration.
72
82
  */
73
- showWarning(options: BaseNotificationOptions): void;
83
+ showWarning(options: BaseNotificationOptions): import("ngx-toastr").ActiveToast<any>;
74
84
  /**
75
85
  * Displays an info notification to the user.
76
86
  *
77
87
  * @param options - The options for the notification, including message, title, and configuration.
78
88
  */
79
- showInfo(options: BaseNotificationOptions): void;
89
+ showInfo(options: BaseNotificationOptions): import("ngx-toastr").ActiveToast<any>;
80
90
  /**
81
91
  * Displays an error notification to the user.
82
92
  *
83
93
  * @param options - The options for the notification, including message, title, and configuration.
84
94
  */
85
- showError(options: BaseNotificationOptions): void;
95
+ showError(options: BaseNotificationOptions): import("ngx-toastr").ActiveToast<any>;
96
+ /**
97
+ * Clears a notification by ID.
98
+ *
99
+ * @param notificationId - The ID of the notification to clear.
100
+ * @returns The cleared notification, or null if the notification doesn't exist.
101
+ */
102
+ clearNotification(notificationId: number): void;
86
103
  /**
87
104
  * Displays a confirmation dialog to the user and returns a promise that resolves
88
105
  * to a boolean indicating whether the user confirmed the action.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@techextensor/tab-sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",
7
- "@techextensor/tab-core-utility": "^2.2.149"
7
+ "@techextensor/tab-core-utility": "^2.2.151"
8
8
  },
9
9
  "dependencies": {
10
10
  "tslib": "^2.3.0"
package/public-api.d.ts CHANGED
@@ -1 +1,5 @@
1
1
  export * from './lib/tab-sdk.service';
2
+ export * from './lib/enum/ui.enum';
3
+ export * from './lib/enum/store.enum';
4
+ export * from './lib/interface/ui.interface';
5
+ export * from './lib/interface/http.interface';