@vitalfit/sdk 0.3.6 → 0.3.7
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/dist/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1453,7 +1453,7 @@ declare class AuditService {
|
|
|
1453
1453
|
declare class NotificationService {
|
|
1454
1454
|
private client;
|
|
1455
1455
|
constructor(client: Client);
|
|
1456
|
-
getNotifications(jwt: string): Promise<DataResponse<NotificationResponse[]>>;
|
|
1456
|
+
getNotifications(jwt: string, { page, limit, sort }: PaginationRequest): Promise<DataResponse<NotificationResponse[]>>;
|
|
1457
1457
|
getUnreadCount(jwt: string): Promise<UnreadCountResponse>;
|
|
1458
1458
|
markAsRead(notificationId: string, jwt: string): Promise<void>;
|
|
1459
1459
|
markAllAsRead(jwt: string): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1453,7 +1453,7 @@ declare class AuditService {
|
|
|
1453
1453
|
declare class NotificationService {
|
|
1454
1454
|
private client;
|
|
1455
1455
|
constructor(client: Client);
|
|
1456
|
-
getNotifications(jwt: string): Promise<DataResponse<NotificationResponse[]>>;
|
|
1456
|
+
getNotifications(jwt: string, { page, limit, sort }: PaginationRequest): Promise<DataResponse<NotificationResponse[]>>;
|
|
1457
1457
|
getUnreadCount(jwt: string): Promise<UnreadCountResponse>;
|
|
1458
1458
|
markAsRead(notificationId: string, jwt: string): Promise<void>;
|
|
1459
1459
|
markAllAsRead(jwt: string): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -2300,10 +2300,15 @@ var NotificationService = class {
|
|
|
2300
2300
|
this.markAllAsRead = this.markAllAsRead.bind(this);
|
|
2301
2301
|
this.sendBroadcast = this.sendBroadcast.bind(this);
|
|
2302
2302
|
}
|
|
2303
|
-
async getNotifications(jwt) {
|
|
2303
|
+
async getNotifications(jwt, { page = 10, limit = 10, sort = "desc" }) {
|
|
2304
2304
|
const response = await this.client.get({
|
|
2305
2305
|
url: "/notifications",
|
|
2306
|
-
jwt
|
|
2306
|
+
jwt,
|
|
2307
|
+
params: {
|
|
2308
|
+
page,
|
|
2309
|
+
limit,
|
|
2310
|
+
sort
|
|
2311
|
+
}
|
|
2307
2312
|
});
|
|
2308
2313
|
return response;
|
|
2309
2314
|
}
|
|
@@ -2493,7 +2498,7 @@ var VitalFit = class _VitalFit {
|
|
|
2493
2498
|
return _VitalFit.instance;
|
|
2494
2499
|
}
|
|
2495
2500
|
version() {
|
|
2496
|
-
return "0.3.
|
|
2501
|
+
return "0.3.7";
|
|
2497
2502
|
}
|
|
2498
2503
|
};
|
|
2499
2504
|
export {
|