@limetech/lime-web-components 5.32.0 → 5.33.0
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [5.33.0](https://github.com/Lundalogik/lime-web-components/compare/v5.32.0...v5.33.0) (2024-08-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
* **notifications:** update load response and provide load options ([dd6aa7c](https://github.com/Lundalogik/lime-web-components/commit/dd6aa7c8f83dd80416552b5acc232c518eff9d59))
|
|
8
|
+
|
|
1
9
|
## [5.32.0](https://github.com/Lundalogik/lime-web-components/compare/v5.31.0...v5.32.0) (2024-08-23)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -9,9 +9,11 @@ export interface NotificationRepository {
|
|
|
9
9
|
/**
|
|
10
10
|
* Gets all notifications
|
|
11
11
|
*
|
|
12
|
+
* @param options - options to provide when loading notifications
|
|
13
|
+
*
|
|
12
14
|
* @returns the saved notifications
|
|
13
15
|
*/
|
|
14
|
-
loadNotifications(): Promise<
|
|
16
|
+
loadNotifications(options?: NotificationLoadOptions): Promise<NotificationResponse | undefined>;
|
|
15
17
|
/**
|
|
16
18
|
* Creates a notification
|
|
17
19
|
*
|
|
@@ -39,4 +41,36 @@ export interface NotificationRepository {
|
|
|
39
41
|
*/
|
|
40
42
|
markNotificationAsRead(notificationId: number): Promise<Notification | undefined>;
|
|
41
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* The count response of loaded notifications
|
|
46
|
+
*
|
|
47
|
+
* @alpha
|
|
48
|
+
* @group NotificationRepository
|
|
49
|
+
*/
|
|
50
|
+
export type NotificationCount = {
|
|
51
|
+
total: number;
|
|
52
|
+
unread: number;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* The response of loaded notifications
|
|
56
|
+
*
|
|
57
|
+
* @alpha
|
|
58
|
+
* @group NotificationRepository
|
|
59
|
+
*/
|
|
60
|
+
export type NotificationResponse = {
|
|
61
|
+
items: Notification[];
|
|
62
|
+
count: NotificationCount;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* The options to load notifications with
|
|
66
|
+
*
|
|
67
|
+
* @alpha
|
|
68
|
+
* @group NotificationRepository
|
|
69
|
+
*/
|
|
70
|
+
export interface NotificationLoadOptions {
|
|
71
|
+
/**
|
|
72
|
+
* Maximum number of notifications to load
|
|
73
|
+
*/
|
|
74
|
+
limit?: number;
|
|
75
|
+
}
|
|
42
76
|
//# sourceMappingURL=repository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/notification-service/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACnC
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/notification-service/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;;;OAMG;IACH,iBAAiB,CACb,OAAO,CAAC,EAAE,uBAAuB,GAClC,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC,CAAC;IAE7C;;;;OAIG;IACH,kBAAkB,IAAI,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC;IAExD;;;;;OAKG;IACH,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC;IAE3E;;;;OAIG;IACH,kBAAkB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1D;;;;;OAKG;IACH,sBAAsB,CAClB,cAAc,EAAE,MAAM,GACvB,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC;CACxC;AAED;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,KAAK,EAAE,iBAAiB,CAAC;CAC5B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-web-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.33.0",
|
|
4
4
|
"description": "Lime Web Components",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"tslib": "^2.6.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@commitlint/config-conventional": "^19.
|
|
38
|
+
"@commitlint/config-conventional": "^19.4.1",
|
|
39
39
|
"@microsoft/api-extractor": "^7.47.7",
|
|
40
40
|
"@types/jest": "^27.5.0",
|
|
41
41
|
"@typescript-eslint/eslint-plugin": "^7.5.0",
|