@captureid/datatypes 1.0.16 → 1.0.19
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/esm2022/lib/enums.mjs +3 -1
- package/esm2022/lib/model/messaging/notification-object.mjs +7 -5
- package/esm2022/lib/model/messaging/subscription-object.mjs +4 -4
- package/esm2022/lib/model/messaging/topic-object.mjs +3 -3
- package/fesm2022/captureid-datatypes.mjs +13 -9
- package/fesm2022/captureid-datatypes.mjs.map +1 -1
- package/lib/enums.d.ts +3 -1
- package/lib/model/messaging/notification-object.d.ts +6 -4
- package/lib/model/messaging/subscription-object.d.ts +4 -3
- package/lib/model/messaging/topic-object.d.ts +2 -2
- package/package.json +1 -1
package/lib/enums.d.ts
CHANGED
|
@@ -7,13 +7,15 @@ export interface Notification {
|
|
|
7
7
|
icon: string;
|
|
8
8
|
image: string;
|
|
9
9
|
action: string;
|
|
10
|
-
|
|
10
|
+
topics: Topic[];
|
|
11
|
+
title: string;
|
|
11
12
|
text: string;
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
startdate: Date;
|
|
14
|
+
starttime: string;
|
|
15
|
+
endtime: string;
|
|
14
16
|
}
|
|
15
17
|
export declare class Notification implements Notification {
|
|
16
|
-
constructor(id?: string, name?: string, description?: string, icon?: string, image?: string, action?: string,
|
|
18
|
+
constructor(id?: string, name?: string, description?: string, icon?: string, image?: string, action?: string, topics?: Topic[], title?: string, text?: string, startdate?: Date, starttime?: string, endtime?: string);
|
|
17
19
|
}
|
|
18
20
|
export interface NotificationObject {
|
|
19
21
|
data: Notification[];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { User } from "../common/user-object";
|
|
1
2
|
import { DataObject } from "../data-object";
|
|
2
3
|
import { Topic } from "./topic-object";
|
|
3
4
|
export interface Subscription {
|
|
4
5
|
id: string;
|
|
5
|
-
|
|
6
|
+
user: User;
|
|
6
7
|
token: string;
|
|
7
|
-
|
|
8
|
+
topics: Topic[];
|
|
8
9
|
}
|
|
9
10
|
export declare class Subscription implements Subscription {
|
|
10
|
-
constructor(id?: string,
|
|
11
|
+
constructor(id?: string, user?: User, token?: string, topics?: Topic[]);
|
|
11
12
|
}
|
|
12
13
|
export interface SubscriptionObject {
|
|
13
14
|
data: Subscription[];
|
|
@@ -3,10 +3,10 @@ export interface Topic {
|
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
6
|
-
|
|
6
|
+
active: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare class Topic implements Topic {
|
|
9
|
-
constructor(id?: string, name?: string, description?: string,
|
|
9
|
+
constructor(id?: string, name?: string, description?: string, active?: boolean);
|
|
10
10
|
}
|
|
11
11
|
export interface TopicObject {
|
|
12
12
|
data: Topic[];
|