@captureid/datatypes 0.0.74 → 0.0.77

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/lib/enums.d.ts CHANGED
@@ -57,7 +57,13 @@ export declare enum DataType {
57
57
  MESSAGE = 55,
58
58
  ESLTEMPLATE = 56,
59
59
  ITEMSHORT = 57,
60
- CART = 58
60
+ CART = 58,
61
+ PAYMENT = 59,
62
+ LOGENTRY = 60,
63
+ STATISTIC = 61,
64
+ ROLE = 62,
65
+ USERACCESS = 63,
66
+ MENU = 64
61
67
  }
62
68
  export declare enum BookingType {
63
69
  UNKNOWN = 0,
@@ -207,15 +213,18 @@ export declare namespace Unit {
207
213
  function valueOf(str: string): number;
208
214
  function values(): any[];
209
215
  }
210
- export declare enum LoggingLevel {
216
+ export declare enum Severity {
211
217
  UNKNOWN = 0,
212
- ERROR = 1,
213
- WARNING = 2,
214
- INFO = 3,
215
- DEBUG = 4,
216
- TRACE = 5
217
- }
218
- export declare namespace LoggingLevel {
218
+ EMERGENCY = 1,
219
+ ALERT = 2,
220
+ CRITICAL = 3,
221
+ ERROR = 4,
222
+ WARNING = 5,
223
+ NOTICE = 6,
224
+ INFORMATION = 7,
225
+ DEBUG = 8
226
+ }
227
+ export declare namespace Severity {
219
228
  function valueOf(str: string): number;
220
229
  function values(): any[];
221
230
  }
package/lib/logging.d.ts CHANGED
@@ -1,9 +1,11 @@
1
+ import { Severity } from "./enums";
1
2
  export interface Logging {
3
+ severity: Severity;
2
4
  level: number;
3
5
  message: string;
4
6
  exception: string;
5
7
  timestamp: Date;
6
8
  }
7
9
  export declare class Logging implements Logging {
8
- constructor(level?: number, message?: string, exception?: string, timestamp?: Date);
10
+ constructor(severity?: Severity, level?: number, message?: string, exception?: string, timestamp?: Date);
9
11
  }
@@ -3,6 +3,7 @@ export interface RegisterRequest {
3
3
  firstname?: string;
4
4
  lastname?: string;
5
5
  email?: string;
6
+ phone?: string;
6
7
  password?: string;
7
8
  address?: Address;
8
9
  role?: string;
@@ -10,5 +11,5 @@ export interface RegisterRequest {
10
11
  }
11
12
  export declare class RegisterRequest implements RegisterRequest {
12
13
  use2fa?: boolean | undefined;
13
- constructor(firstname: string, lastname: string, email: string, password: string, address: Address, role: string, use2fa: boolean);
14
+ constructor(firstname: string, lastname: string, email: string, phone: string, password: string, address: Address, role: string, use2fa: boolean);
14
15
  }
@@ -3,10 +3,12 @@ import { Address } from "./address-object";
3
3
  export interface Manufacturer {
4
4
  id: string;
5
5
  name: string;
6
+ email: string;
7
+ website: string;
6
8
  addresses: Address[];
7
9
  }
8
10
  export declare class Manufacturer implements Manufacturer {
9
- constructor(id?: string, name?: string, addresses?: Address[]);
11
+ constructor(id?: string, name?: string, email?: string, website?: string, addresses?: Address[]);
10
12
  }
11
13
  export interface ManufacturerObject {
12
14
  data: Manufacturer[];
@@ -0,0 +1,42 @@
1
+ import { DataObject } from "../data-object";
2
+ import { User } from "./user-object";
3
+ export interface Role {
4
+ id: string;
5
+ name: string;
6
+ description: string;
7
+ }
8
+ export declare class Role implements Role {
9
+ constructor(id?: string, name?: string, description?: string);
10
+ }
11
+ export interface RoleObject {
12
+ data: Role[];
13
+ }
14
+ export interface Resource {
15
+ id: string;
16
+ name: string;
17
+ description: string;
18
+ roles?: Role[];
19
+ }
20
+ export declare class Resource implements Resource {
21
+ constructor(id: string, name: string, description: string, roles?: Role[]);
22
+ }
23
+ export interface UserAccess {
24
+ id: string;
25
+ name: string;
26
+ roles?: Role[];
27
+ users?: User[];
28
+ }
29
+ export declare class UserAccess implements UserAccess {
30
+ constructor(id: string, name: string, roles?: Role[], users?: User[]);
31
+ }
32
+ export declare class RoleObject extends DataObject implements RoleObject {
33
+ constructor(data: Role[]);
34
+ getEntryCount(): number;
35
+ }
36
+ export interface UserAccessObject {
37
+ data: UserAccess[];
38
+ }
39
+ export declare class UserAccessObject extends DataObject implements UserAccessObject {
40
+ constructor(data: UserAccess[]);
41
+ getEntryCount(): number;
42
+ }
@@ -0,0 +1,36 @@
1
+ import { Context } from "../common/context";
2
+ import { Resource } from '../common/role-object';
3
+ import { DataObject } from "../data-object";
4
+ export interface menuitem {
5
+ name: string;
6
+ resource: Resource;
7
+ children: menuitem[];
8
+ icon?: string;
9
+ link?: string;
10
+ }
11
+ export interface menu {
12
+ context: Context;
13
+ resource: Resource;
14
+ name: string;
15
+ children: menuitem[];
16
+ order: number;
17
+ icon?: string;
18
+ link?: string;
19
+ }
20
+ export declare class Menu implements menu {
21
+ context: Context;
22
+ resource: Resource;
23
+ name: string;
24
+ children: menuitem[];
25
+ order: number;
26
+ icon?: string;
27
+ link?: string;
28
+ constructor(context: Context, resource: Resource, name: string, children: menuitem[], order: number, icon?: string, link?: string);
29
+ }
30
+ export interface MenuObject {
31
+ data: menu[];
32
+ }
33
+ export declare class MenuObject extends DataObject implements MenuObject {
34
+ constructor(data: menu[]);
35
+ getEntryCount(): number;
36
+ }
@@ -0,0 +1,16 @@
1
+ import { DataObject } from "../data-object";
2
+ export interface StatisticData {
3
+ id: string;
4
+ name: string;
5
+ value: number;
6
+ }
7
+ export declare class StatisticData implements StatisticData {
8
+ constructor(id?: string, name?: string, value?: number);
9
+ }
10
+ export interface StatisticObject {
11
+ data: StatisticData[];
12
+ }
13
+ export declare class StatisticObject extends DataObject implements StatisticObject {
14
+ constructor(data: StatisticData[]);
15
+ getEntryCount(): number;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/datatypes",
3
- "version": "0.0.74",
3
+ "version": "0.0.77",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"
package/public-api.d.ts CHANGED
@@ -29,6 +29,8 @@ export * from './lib/model/common/vendor-object';
29
29
  export * from './lib/model/common/accesspoint-object';
30
30
  export * from './lib/model/common/message-object';
31
31
  export * from './lib/model/common/cart-object';
32
+ export * from './lib/model/common/role-object';
33
+ export * from './lib/model/configuration/menu-object';
32
34
  export * from './lib/model/erp/items/dimension-object';
33
35
  export * from './lib/model/erp/items/gtin';
34
36
  export * from './lib/model/erp/items/inventory-object';
@@ -53,3 +55,4 @@ export * from './lib/model/print/print-label-object';
53
55
  export * from './lib/model/print/printer-object';
54
56
  export * from './lib/model/print/queue-object';
55
57
  export * from './lib/model/rfid/reader-object';
58
+ export * from './lib/model/statistic/statistic-object';