@tnf-dev/core 1.0.1-15 → 1.0.1-17
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/cjs/dto/index.d.cts +1 -1
- package/dist/cjs/dto/notifications/index.d.cts +1 -1
- package/dist/cjs/dto/notifications/notification.interface.cjs +1 -1
- package/dist/cjs/dto/notifications/notification.interface.d.cts +4 -10
- package/dist/cjs/index.d.cts +1 -1
- package/dist/esm/dto/index.d.ts +1 -1
- package/dist/esm/dto/notifications/index.d.ts +1 -1
- package/dist/esm/dto/notifications/notification.interface.d.ts +4 -10
- package/dist/esm/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/dto/index.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { Notification, NotificationAction, NotificationData, NotificationPayload
|
1
|
+
export { Notification, NotificationAction, NotificationData, NotificationPayload } from './notifications/notification.interface.cjs';
|
2
2
|
export { PaginationRequest } from './request/request.interface.cjs';
|
3
3
|
export { BaseResponse, ErrorResponse, PaginatedResponse, SingleResponse } from './response/response.interface.cjs';
|
4
4
|
import './base/record.interface.cjs';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { Notification, NotificationAction, NotificationData, NotificationPayload
|
1
|
+
export { Notification, NotificationAction, NotificationData, NotificationPayload } from './notification.interface.cjs';
|
2
2
|
import '../base/record.interface.cjs';
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var f=(i,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of c(t))!s.call(i,o)&&o!==n&&e(i,o,{get:()=>t[o],enumerable:!(a=r(t,o))||a.enumerable});return i};var d=i=>f(e({},"__esModule",{value:!0}),i);var
|
1
|
+
"use strict";var e=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var f=(i,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of c(t))!s.call(i,o)&&o!==n&&e(i,o,{get:()=>t[o],enumerable:!(a=r(t,o))||a.enumerable});return i};var d=i=>f(e({},"__esModule",{value:!0}),i);var g={};module.exports=d(g);
|
@@ -1,17 +1,12 @@
|
|
1
1
|
import { BaseRecord } from '../base/record.interface.cjs';
|
2
2
|
|
3
3
|
interface NotificationAction {
|
4
|
-
type: 'primary' | 'secondary';
|
5
4
|
label: string;
|
6
5
|
href: string;
|
7
6
|
target?: '_blank' | '_self';
|
8
7
|
rel?: string;
|
9
|
-
|
10
|
-
|
11
|
-
type: 'primary';
|
12
|
-
}
|
13
|
-
interface NotificationSecondaryAction extends NotificationAction {
|
14
|
-
type: 'secondary';
|
8
|
+
background_color?: string;
|
9
|
+
foreground_color?: string;
|
15
10
|
}
|
16
11
|
interface NotificationPayload extends Record<string, any> {
|
17
12
|
}
|
@@ -22,10 +17,9 @@ interface Notification extends BaseRecord {
|
|
22
17
|
message: string;
|
23
18
|
isRead: boolean;
|
24
19
|
icon?: string;
|
25
|
-
|
26
|
-
secondary_action?: NotificationSecondaryAction;
|
20
|
+
actionButtons?: Array<NotificationAction>;
|
27
21
|
payload?: NotificationPayload;
|
28
22
|
data?: NotificationData;
|
29
23
|
}
|
30
24
|
|
31
|
-
export type { Notification, NotificationAction, NotificationData, NotificationPayload
|
25
|
+
export type { Notification, NotificationAction, NotificationData, NotificationPayload };
|
package/dist/cjs/index.d.cts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { HttpClient, HttpClientOptions, RequestOptions } from './client/http.cjs';
|
2
|
-
export { Notification, NotificationAction, NotificationData, NotificationPayload
|
2
|
+
export { Notification, NotificationAction, NotificationData, NotificationPayload } from './dto/notifications/notification.interface.cjs';
|
3
3
|
export { PaginationRequest } from './dto/request/request.interface.cjs';
|
4
4
|
export { BaseResponse, ErrorResponse, PaginatedResponse, SingleResponse } from './dto/response/response.interface.cjs';
|
5
5
|
import './dto/base/record.interface.cjs';
|
package/dist/esm/dto/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { Notification, NotificationAction, NotificationData, NotificationPayload
|
1
|
+
export { Notification, NotificationAction, NotificationData, NotificationPayload } from './notifications/notification.interface.js';
|
2
2
|
export { PaginationRequest } from './request/request.interface.js';
|
3
3
|
export { BaseResponse, ErrorResponse, PaginatedResponse, SingleResponse } from './response/response.interface.js';
|
4
4
|
import './base/record.interface.js';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { Notification, NotificationAction, NotificationData, NotificationPayload
|
1
|
+
export { Notification, NotificationAction, NotificationData, NotificationPayload } from './notification.interface.js';
|
2
2
|
import '../base/record.interface.js';
|
@@ -1,17 +1,12 @@
|
|
1
1
|
import { BaseRecord } from '../base/record.interface.js';
|
2
2
|
|
3
3
|
interface NotificationAction {
|
4
|
-
type: 'primary' | 'secondary';
|
5
4
|
label: string;
|
6
5
|
href: string;
|
7
6
|
target?: '_blank' | '_self';
|
8
7
|
rel?: string;
|
9
|
-
|
10
|
-
|
11
|
-
type: 'primary';
|
12
|
-
}
|
13
|
-
interface NotificationSecondaryAction extends NotificationAction {
|
14
|
-
type: 'secondary';
|
8
|
+
background_color?: string;
|
9
|
+
foreground_color?: string;
|
15
10
|
}
|
16
11
|
interface NotificationPayload extends Record<string, any> {
|
17
12
|
}
|
@@ -22,10 +17,9 @@ interface Notification extends BaseRecord {
|
|
22
17
|
message: string;
|
23
18
|
isRead: boolean;
|
24
19
|
icon?: string;
|
25
|
-
|
26
|
-
secondary_action?: NotificationSecondaryAction;
|
20
|
+
actionButtons?: Array<NotificationAction>;
|
27
21
|
payload?: NotificationPayload;
|
28
22
|
data?: NotificationData;
|
29
23
|
}
|
30
24
|
|
31
|
-
export type { Notification, NotificationAction, NotificationData, NotificationPayload
|
25
|
+
export type { Notification, NotificationAction, NotificationData, NotificationPayload };
|
package/dist/esm/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { HttpClient, HttpClientOptions, RequestOptions } from './client/http.js';
|
2
|
-
export { Notification, NotificationAction, NotificationData, NotificationPayload
|
2
|
+
export { Notification, NotificationAction, NotificationData, NotificationPayload } from './dto/notifications/notification.interface.js';
|
3
3
|
export { PaginationRequest } from './dto/request/request.interface.js';
|
4
4
|
export { BaseResponse, ErrorResponse, PaginatedResponse, SingleResponse } from './dto/response/response.interface.js';
|
5
5
|
import './dto/base/record.interface.js';
|
package/package.json
CHANGED