starti.app 2.0.56 → 2.0.59

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.
@@ -128,6 +128,15 @@ export declare class App extends EventTargetWithType<{
128
128
  enableSwipeNavigation: () => Promise<void>;
129
129
  /** Disables swipe gestures for navigation */
130
130
  disableSwipeNavigation: () => Promise<void>;
131
+ /**
132
+ * Opens the app settings.
133
+ *
134
+ * @example
135
+ * ```typescript
136
+ * await startiapp.App.openSettings();
137
+ * ```
138
+ */
139
+ openSettions: () => Promise<void>;
131
140
  /**
132
141
  * Set the app icon.
133
142
  *
@@ -33,6 +33,7 @@ type DeviceIntegration = {
33
33
  type AppIntegration = {
34
34
  download(url: string, filename: string): void;
35
35
  openBrowser(url: string): void;
36
+ openSettings(): void;
36
37
  setAppUrl(url: string): void;
37
38
  getAppUrl(): string;
38
39
  resetAppUrl(): void;
@@ -124,19 +125,19 @@ type LocationIntegration = {
124
125
  checkAccess(): PermissionStatus;
125
126
  };
126
127
  export type Integrations = {
127
- "AppIntegration": AppIntegration;
128
- "DeviceIntegration": DeviceIntegration;
129
- "QrScannerIntegration": QrScannerIntegration;
130
- "BiometricIntegration": BiometricIntegration;
131
- "CalendarIntegration": CalendarIntegration;
132
- "NFCIntegration": NFCIntegration;
133
- "PushNotificationIntegration": PushNotificationIntegration;
134
- "ShareIntegration": ShareIntegration;
135
- "NetworkIntegration": NetworkIntegration;
136
- "AlternateIconsIntegration": AlternateIconsIntegration;
137
- "IapIntegration": IapIntegration;
138
- "DeveloperIntegration": DeveloperIntegration;
139
- "StorageIntegration": StorageIntegration;
140
- "LocationIntegration": LocationIntegration;
128
+ AppIntegration: AppIntegration;
129
+ DeviceIntegration: DeviceIntegration;
130
+ QrScannerIntegration: QrScannerIntegration;
131
+ BiometricIntegration: BiometricIntegration;
132
+ CalendarIntegration: CalendarIntegration;
133
+ NFCIntegration: NFCIntegration;
134
+ PushNotificationIntegration: PushNotificationIntegration;
135
+ ShareIntegration: ShareIntegration;
136
+ NetworkIntegration: NetworkIntegration;
137
+ AlternateIconsIntegration: AlternateIconsIntegration;
138
+ IapIntegration: IapIntegration;
139
+ DeveloperIntegration: DeveloperIntegration;
140
+ StorageIntegration: StorageIntegration;
141
+ LocationIntegration: LocationIntegration;
141
142
  };
142
143
  export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "starti.app",
3
3
  "author": "starti.app",
4
4
  "license": "MIT",
5
- "version": "2.0.56",
5
+ "version": "2.0.59",
6
6
  "description": "Use this package for easy communication with the starti.app API.",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -1,13 +0,0 @@
1
- export declare class SmartBanner {
2
- constructor();
3
- private marginTop;
4
- private getHostDomain;
5
- private getSmartBannerDataUrl;
6
- private getSmartBannerData;
7
- private getSmartBannerClosed;
8
- private setSmartBannerClosed;
9
- initialize(): Promise<void>;
10
- private createIosBannerContent;
11
- private createAndroidBannerContent;
12
- private createContent;
13
- }