@suprsend/web-sdk 3.1.0 → 4.0.1

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.
@@ -162,19 +162,16 @@ export interface INotificationStore {
162
162
  store: IStore;
163
163
  pageInfo: {
164
164
  total: number;
165
- currentPage: number;
166
- totalPages: number;
165
+ hasMore: boolean;
167
166
  pageSize: number;
168
167
  };
169
168
  meta: Record<string, number>;
170
169
  apiStatus: ApiResponseStatus;
171
- _firstFetchedTimeStamp: number | null;
170
+ isFirstFetch: boolean;
172
171
  }
173
172
  export interface IFeedData extends Omit<INotificationStore, '_firstFetchedTimeStamp'> {
174
173
  }
175
174
  export interface IInboxFetchOptions {
176
- page?: number;
177
175
  pageSize?: number;
178
- storeId?: IStore;
179
176
  }
180
177
  export {};
@@ -12,3 +12,4 @@ export declare function windowSupport(): boolean;
12
12
  export declare function setLocalStorageData(key: string, value: string): void;
13
13
  export declare function getLocalStorageData(key: string): any;
14
14
  export declare function removeLocalStorageData(key: string): void;
15
+ export declare function sha256Hash(input: string): Promise<string>;
@@ -1,9 +1,11 @@
1
1
  import { SuprSend } from './index';
2
2
 
3
+ export declare const SUPRSEND_ENDPOINT_KEY = "ss_wp_hash";
3
4
  export default class WebPush {
4
5
  private config;
5
6
  constructor(config: SuprSend);
6
7
  private getPushSubscription;
8
+ private checkAndUpdateOnServer;
7
9
  private handleRegisterPush;
8
10
  /**
9
11
  * Used to register push service. This method will
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suprsend/web-sdk",
3
- "version": "3.1.0",
3
+ "version": "4.0.1",
4
4
  "description": "The client side javascript library for interacting with SuprSend",
5
5
  "author": "SuprSend Developers",
6
6
  "type": "module",