starti.app 2.0.96 → 2.0.100

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.
@@ -21,6 +21,17 @@ export declare class PushNotification extends EventTargetWithType<{
21
21
  * ```
22
22
  */
23
23
  getToken(): Promise<string>;
24
+ /**
25
+ * This method checks the current access status for push notifications.
26
+ * @returns PermissionStatus indicating the current access status
27
+ *
28
+ * @example
29
+ * ```typescript
30
+ * const { granted } = await pushNotification.checkAccess();
31
+ * console.log(granted);
32
+ * ```
33
+ */
34
+ checkAccess(): Promise<import("../App/typings").PermissionStatus>;
24
35
  /**
25
36
  * This method requests access to send push notifications to the user.
26
37
  *
@@ -9,6 +9,7 @@ export type PushNotificationIntegration = {
9
9
  setBadgeCount(count: number): void;
10
10
  initialize(): void;
11
11
  requestAccess(): boolean;
12
+ checkAccess(): PermissionStatus;
12
13
  getFCMToken(): string | undefined;
13
14
  firebasePushNotificationTopicsUnsubscribe(topics: string[]): boolean;
14
15
  firebasePushNotificationSubscribeToTopics(topics: string[]): boolean;
@@ -3,6 +3,7 @@ export declare class SemVer {
3
3
  private major;
4
4
  private minor;
5
5
  private patch;
6
+ private revision?;
6
7
  constructor(version: string);
7
8
  private isValidVersion;
8
9
  isGreaterThan(other: SemVer): boolean;
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.96",
5
+ "version": "2.0.100",
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",