@captureid/datatypes 1.0.14 → 1.0.16
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 +4 -1
- package/esm2022/lib/model/common/client-object.mjs +1 -1
- package/esm2022/lib/model/common/user-object.mjs +3 -3
- package/esm2022/lib/model/messaging/notification-object.mjs +28 -0
- package/esm2022/lib/model/messaging/subscription-object.mjs +22 -0
- package/esm2022/lib/model/messaging/topic-object.mjs +22 -0
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/captureid-datatypes.mjs +130 -64
- package/fesm2022/captureid-datatypes.mjs.map +1 -1
- package/lib/enums.d.ts +4 -1
- package/lib/model/common/client-object.d.ts +4 -0
- package/lib/model/common/user-object.d.ts +2 -2
- package/lib/model/messaging/notification-object.d.ts +24 -0
- package/lib/model/messaging/subscription-object.d.ts +18 -0
- package/lib/model/messaging/topic-object.d.ts +17 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
package/lib/enums.d.ts
CHANGED
|
@@ -83,7 +83,10 @@ export declare enum DataType {
|
|
|
83
83
|
EMAILTEMPLATE = 81,
|
|
84
84
|
JOURNAL = 82,
|
|
85
85
|
FILEIMPORT = 83,
|
|
86
|
-
BUILDINGACCESS = 84
|
|
86
|
+
BUILDINGACCESS = 84,
|
|
87
|
+
TOPIC = 85,
|
|
88
|
+
SUBSCRIPTION = 86,
|
|
89
|
+
NOTIFICATION = 87
|
|
87
90
|
}
|
|
88
91
|
export declare enum BookingType {
|
|
89
92
|
UNKNOWN = 0,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { EMailTemplateType, WebTemplateType } from "../../enums";
|
|
2
2
|
import { DataObject } from "../data-object";
|
|
3
|
+
import { ShelfLabel } from "../esl/esl-object";
|
|
3
4
|
import { Company } from "./company-object";
|
|
5
|
+
import { User } from "./user-object";
|
|
4
6
|
export interface WebTemplates {
|
|
5
7
|
id?: string;
|
|
6
8
|
type: WebTemplateType;
|
|
@@ -43,6 +45,8 @@ export interface Client {
|
|
|
43
45
|
logo: string;
|
|
44
46
|
webtemplates: WebTemplates[];
|
|
45
47
|
emailtemplates: EmailTemplates[];
|
|
48
|
+
shelflabels: ShelfLabel[];
|
|
49
|
+
users: User[];
|
|
46
50
|
}
|
|
47
51
|
export declare class Client implements Client {
|
|
48
52
|
}
|
|
@@ -29,10 +29,10 @@ export interface User {
|
|
|
29
29
|
accountNonExpired?: boolean;
|
|
30
30
|
username?: string;
|
|
31
31
|
enabled?: boolean;
|
|
32
|
-
|
|
32
|
+
clientid?: string;
|
|
33
33
|
}
|
|
34
34
|
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?: Blob, credentialsNonExpired?: boolean, accountNonLocked?: boolean, accountNonExpired?: boolean, username?: string, enabled?: boolean,
|
|
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?: Blob, credentialsNonExpired?: boolean, accountNonLocked?: boolean, accountNonExpired?: boolean, username?: string, enabled?: boolean, clientid?: string);
|
|
36
36
|
}
|
|
37
37
|
export interface UserObject {
|
|
38
38
|
data: User[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DataObject } from '../data-object';
|
|
2
|
+
import { Topic } from './topic-object';
|
|
3
|
+
export interface Notification {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
image: string;
|
|
9
|
+
action: string;
|
|
10
|
+
topic: Topic;
|
|
11
|
+
text: string;
|
|
12
|
+
date: Date;
|
|
13
|
+
timeslot: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare class Notification implements Notification {
|
|
16
|
+
constructor(id?: string, name?: string, description?: string, icon?: string, image?: string, action?: string, topic?: Topic, text?: string, date?: Date, timeslot?: string[]);
|
|
17
|
+
}
|
|
18
|
+
export interface NotificationObject {
|
|
19
|
+
data: Notification[];
|
|
20
|
+
}
|
|
21
|
+
export declare class NotificationObject extends DataObject implements NotificationObject {
|
|
22
|
+
constructor(data: Notification[]);
|
|
23
|
+
getEntryCount(): number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DataObject } from "../data-object";
|
|
2
|
+
import { Topic } from "./topic-object";
|
|
3
|
+
export interface Subscription {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
token: string;
|
|
7
|
+
topic: Topic[];
|
|
8
|
+
}
|
|
9
|
+
export declare class Subscription implements Subscription {
|
|
10
|
+
constructor(id?: string, name?: string, token?: string, topic?: Topic[]);
|
|
11
|
+
}
|
|
12
|
+
export interface SubscriptionObject {
|
|
13
|
+
data: Subscription[];
|
|
14
|
+
}
|
|
15
|
+
export declare class SubscriptionObject extends DataObject implements SubscriptionObject {
|
|
16
|
+
constructor(data: Subscription[]);
|
|
17
|
+
getEntryCount(): number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DataObject } from "../data-object";
|
|
2
|
+
export interface Topic {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
action: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class Topic implements Topic {
|
|
9
|
+
constructor(id?: string, name?: string, description?: string, action?: boolean);
|
|
10
|
+
}
|
|
11
|
+
export interface TopicObject {
|
|
12
|
+
data: Topic[];
|
|
13
|
+
}
|
|
14
|
+
export declare class TopicObject extends DataObject implements TopicObject {
|
|
15
|
+
constructor(data: Topic[]);
|
|
16
|
+
getEntryCount(): number;
|
|
17
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -38,6 +38,9 @@ export * from './lib/model/common/ticket-object';
|
|
|
38
38
|
export * from './lib/model/common/fileimport-object';
|
|
39
39
|
export * from './lib/model/common/buildingaccess-object';
|
|
40
40
|
export * from './lib/model/configuration/menu-object';
|
|
41
|
+
export * from './lib/model/messaging/topic-object';
|
|
42
|
+
export * from './lib/model/messaging/subscription-object';
|
|
43
|
+
export * from './lib/model/messaging/notification-object';
|
|
41
44
|
export * from './lib/model/erp/items/dimension-object';
|
|
42
45
|
export * from './lib/model/erp/items/gtin';
|
|
43
46
|
export * from './lib/model/erp/items/inventory-object';
|