@limetech/lime-web-components 5.35.0 → 5.36.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## [5.36.1](https://github.com/Lundalogik/lime-web-components/compare/v5.36.0...v5.36.1) (2024-09-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+
7
+ * **notifications:** update interface according to server response ([488da53](https://github.com/Lundalogik/lime-web-components/commit/488da53cc2c1068d16283c374ff68871f418b94a)), closes [Lundalogik/crm-feature#4354](https://github.com/Lundalogik/crm-feature/issues/4354)
8
+
9
+ ## [5.36.0](https://github.com/Lundalogik/lime-web-components/compare/v5.35.0...v5.36.0) (2024-09-11)
10
+
11
+
12
+ ### Features
13
+
14
+
15
+ * **notifications:** be able to filter on read when loading notifications ([e6839b7](https://github.com/Lundalogik/lime-web-components/commit/e6839b7432cd1bcd5ec11561cf64dd5a1e110d96))
16
+
1
17
  ## [5.35.0](https://github.com/Lundalogik/lime-web-components/compare/v5.34.1...v5.35.0) (2024-09-09)
2
18
 
3
19
 
@@ -1,3 +1,4 @@
1
+ import { LimeObject } from '../limeobject';
1
2
  /**
2
3
  * A Notification object
3
4
  *
@@ -13,10 +14,6 @@ export type Notification<T = unknown> = {
13
14
  * Type of notification
14
15
  */
15
16
  type?: NotificationType;
16
- /**
17
- * ID of the user the notification belongs to
18
- */
19
- userId: number;
20
17
  /**
21
18
  * Date when the notification was marked as read
22
19
  */
@@ -24,19 +21,11 @@ export type Notification<T = unknown> = {
24
21
  /**
25
22
  * Date when the notification was created
26
23
  */
27
- createdTime: Date;
28
- /**
29
- * ID and limetype of the user object that created the notification
30
- */
31
- createdUser?: CreatedUser;
32
- /**
33
- * Limetype that the notification is attached to
34
- */
35
- limetype?: string;
24
+ timestamp: Date;
36
25
  /**
37
- * ID of the object the notification is attached to
26
+ * {@link LimeObject} that the notification is attached to
38
27
  */
39
- objectId?: number;
28
+ limeobject?: LimeObject;
40
29
  /**
41
30
  * Data attached to the notification
42
31
  */
@@ -1 +1 @@
1
- {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/notification-service/notification.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;OAEG;IACH,WAAW,EAAE,IAAI,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,CAAC;CACZ,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/notification-service/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAExB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAEhB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,CAAC;CACZ,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -56,16 +56,6 @@ export type NotificationResponse = {
56
56
  items: Notification[];
57
57
  count: NotificationCount;
58
58
  };
59
- /**
60
- * The status of the notification.
61
- *
62
- * - 'read': Whether the notification is read.
63
- * - 'unread': Whether the notification is unread.
64
- *
65
- * @alpha
66
- * @group NotificationRepository
67
- */
68
- export type NotificationStatus = 'read' | 'unread';
69
59
  /**
70
60
  * The options to load notifications with
71
61
  *
@@ -78,8 +68,10 @@ export interface NotificationLoadOptions {
78
68
  */
79
69
  limit?: number;
80
70
  /**
81
- * The status to filter the notifications on
71
+ * The properties to filter notifications by
82
72
  */
83
- status?: NotificationStatus;
73
+ filter?: {
74
+ read?: boolean;
75
+ };
84
76
  }
85
77
  //# 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;;;;;;OAMG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAE1E;;;;;OAKG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;IAEtD;;;;OAIG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElD;;;;;;OAMG;IACH,UAAU,CACN,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,OAAO,GACd,OAAO,CAAC,YAAY,CAAC,CAAC;CAC5B;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;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC/B"}
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,OAAO,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAE1E;;;;;OAKG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;IAEtD;;;;OAIG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElD;;;;;;OAMG;IACH,UAAU,CACN,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,OAAO,GACd,OAAO,CAAC,YAAY,CAAC,CAAC;CAC5B;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;IACf;;OAEG;IACH,MAAM,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,OAAO,CAAC;KAClB,CAAC;CACL"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-web-components",
3
- "version": "5.35.0",
3
+ "version": "5.36.1",
4
4
  "description": "Lime Web Components",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@commitlint/config-conventional": "^19.4.1",
37
- "@microsoft/api-extractor": "^7.47.7",
37
+ "@microsoft/api-extractor": "^7.47.8",
38
38
  "@types/jest": "^27.5.0",
39
39
  "@typescript-eslint/eslint-plugin": "^7.5.0",
40
40
  "@typescript-eslint/parser": "^7.5.0",