@captureid/datatypes 1.0.24 → 1.0.26
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 +10 -1
- package/esm2022/lib/model/common/image-object.mjs +1 -1
- package/esm2022/lib/model/common/user-object.mjs +1 -1
- package/esm2022/lib/model/messaging/notification-object.mjs +1 -1
- package/fesm2022/captureid-datatypes.mjs +10 -1
- package/fesm2022/captureid-datatypes.mjs.map +1 -1
- package/lib/enums.d.ts +8 -0
- package/lib/model/common/image-object.d.ts +1 -1
- package/lib/model/common/user-object.d.ts +3 -2
- package/lib/model/messaging/notification-object.d.ts +4 -3
- package/package.json +1 -1
package/lib/enums.d.ts
CHANGED
|
@@ -141,6 +141,14 @@ export declare enum Operators {
|
|
|
141
141
|
AND = 1,
|
|
142
142
|
OR = 2
|
|
143
143
|
}
|
|
144
|
+
export declare enum ImageType {
|
|
145
|
+
UNKNOWN = 0,
|
|
146
|
+
AVATAR = 1,
|
|
147
|
+
ITEM = 2,
|
|
148
|
+
ADVERTISEMENT = 3,
|
|
149
|
+
BUILDING = 4,
|
|
150
|
+
CUSTOM = 5
|
|
151
|
+
}
|
|
144
152
|
export declare enum DatabaseEventType {
|
|
145
153
|
EVENT_UNKNOWN = 0,
|
|
146
154
|
EVENT_ADDED = 1,
|
|
@@ -6,7 +6,7 @@ export interface Image {
|
|
|
6
6
|
blob: Blob;
|
|
7
7
|
}
|
|
8
8
|
export declare class Image implements Image {
|
|
9
|
-
constructor(width: number, height: number, url
|
|
9
|
+
constructor(width: number, height: number, url?: string, blob?: Blob);
|
|
10
10
|
}
|
|
11
11
|
export interface ImageObject {
|
|
12
12
|
data: Image[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RegistrationState } from "../../enums";
|
|
2
2
|
import { DataObject } from "../data-object";
|
|
3
|
+
import { Image } from '../common/image-object';
|
|
3
4
|
import { Context } from "./context";
|
|
4
5
|
export interface User {
|
|
5
6
|
id?: string;
|
|
@@ -23,7 +24,7 @@ export interface User {
|
|
|
23
24
|
state?: string;
|
|
24
25
|
dateOfBirth?: string;
|
|
25
26
|
context?: Context;
|
|
26
|
-
avatarImg?:
|
|
27
|
+
avatarImg?: Image;
|
|
27
28
|
credentialsNonExpired?: boolean;
|
|
28
29
|
accountNonLocked?: boolean;
|
|
29
30
|
accountNonExpired?: boolean;
|
|
@@ -32,7 +33,7 @@ export interface User {
|
|
|
32
33
|
clientid?: string;
|
|
33
34
|
}
|
|
34
35
|
export declare class User implements User {
|
|
35
|
-
constructor(id?: string, use2FA?: boolean, created?: Date, regstate?: RegistrationState, creator?: string, changed?: Date, changedBy?: string, firstname?: string, lastname?: string, email?: string, role?: string, phone?: string, mobile?: string, city?: string, zipcode?: string, street?: string, no?: string, country?: string, state?: string, dateOfBirth?: string, context?: Context, avatarImg?:
|
|
36
|
+
constructor(id?: string, use2FA?: boolean, created?: Date, regstate?: RegistrationState, creator?: string, changed?: Date, changedBy?: string, firstname?: string, lastname?: string, email?: string, role?: string, phone?: string, mobile?: string, city?: string, zipcode?: string, street?: string, no?: string, country?: string, state?: string, dateOfBirth?: string, context?: Context, avatarImg?: Image, credentialsNonExpired?: boolean, accountNonLocked?: boolean, accountNonExpired?: boolean, username?: string, enabled?: boolean, clientid?: string);
|
|
36
37
|
}
|
|
37
38
|
export interface UserObject {
|
|
38
39
|
data: User[];
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { DataObject } from '../data-object';
|
|
2
|
+
import { Image } from '../common/image-object';
|
|
2
3
|
import { Topic } from './topic-object';
|
|
3
4
|
export interface Notification {
|
|
4
5
|
id?: string;
|
|
5
6
|
name: string;
|
|
6
7
|
description: string;
|
|
7
|
-
icon:
|
|
8
|
-
image:
|
|
8
|
+
icon: Image;
|
|
9
|
+
image: Image;
|
|
9
10
|
action: string;
|
|
10
11
|
topics: Topic[];
|
|
11
12
|
title: string;
|
|
@@ -15,7 +16,7 @@ export interface Notification {
|
|
|
15
16
|
endtime: string;
|
|
16
17
|
}
|
|
17
18
|
export declare class Notification implements Notification {
|
|
18
|
-
constructor(id?: string, name?: string, description?: string, icon?:
|
|
19
|
+
constructor(id?: string, name?: string, description?: string, icon?: Image, image?: Image, action?: string, topics?: Topic[], title?: string, text?: string, startdate?: Date, starttime?: string, endtime?: string);
|
|
19
20
|
}
|
|
20
21
|
export interface NotificationObject {
|
|
21
22
|
data: Notification[];
|