@captureid/datatypes 1.0.66 → 1.0.67

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
@@ -100,7 +100,8 @@ export declare enum DataType {
100
100
  ADDRESSTYPE = 98,
101
101
  ADDRESSTOCOMPANY = 99,
102
102
  PREORDER = 100,
103
- PREORDERTOCUSTOMER = 101
103
+ PREORDERTOCUSTOMER = 101,
104
+ SECURITYPROFILE = 102
104
105
  }
105
106
  export declare enum BookingType {
106
107
  UNKNOWN = 0,
@@ -0,0 +1,39 @@
1
+ import { DataObject } from "../data-object";
2
+ import { DashboardProfile } from "./userprofile-object";
3
+ export interface StorePermissions {
4
+ canRead: boolean;
5
+ canWrite: boolean;
6
+ canOperate: boolean;
7
+ }
8
+ export declare class StorePermissions implements StorePermissions {
9
+ constructor(canRead?: boolean, canWrite?: boolean, canOperate?: boolean);
10
+ }
11
+ export interface CompanyPermissions {
12
+ id: string;
13
+ name: string;
14
+ stores: {
15
+ [storeId: string]: StorePermissions;
16
+ };
17
+ }
18
+ export declare class CompanyPermissions implements CompanyPermissions {
19
+ constructor(id: string, name: string, stores?: {
20
+ [storeId: string]: StorePermissions;
21
+ });
22
+ }
23
+ export interface SecurityProfile {
24
+ id: string;
25
+ name: string;
26
+ description: string;
27
+ userid: string;
28
+ dashboardprofile: DashboardProfile;
29
+ permissions: CompanyPermissions[];
30
+ }
31
+ export declare class SecurityProfile implements SecurityProfile {
32
+ constructor(id: string, name: string, description: string, userid: string, dashboardprofile: DashboardProfile, permissions?: CompanyPermissions[]);
33
+ }
34
+ export interface SecurityProfileObject {
35
+ data: SecurityProfile[];
36
+ }
37
+ export declare class SecurityProfileObject extends DataObject implements SecurityProfileObject {
38
+ constructor(data: SecurityProfile[]);
39
+ }
@@ -0,0 +1,36 @@
1
+ import { DataObject } from "../data-object";
2
+ export interface WidgetConfiguration {
3
+ id: string;
4
+ name: string;
5
+ value: string | number | boolean;
6
+ }
7
+ export declare class WidgetConfiguration implements WidgetConfiguration {
8
+ constructor(id: string, name: string, value: string | number | boolean);
9
+ }
10
+ export interface DashboardWidget {
11
+ id: string;
12
+ name: string;
13
+ configuration: WidgetConfiguration[];
14
+ }
15
+ export declare class DashboardWidget implements DashboardWidget {
16
+ constructor(id: string, name: string, configuration: WidgetConfiguration[]);
17
+ }
18
+ export interface DashboardProfile {
19
+ id: string;
20
+ name: string;
21
+ widgets: DashboardWidget[];
22
+ }
23
+ export declare class DashboardProfile implements DashboardProfile {
24
+ constructor(id: string, name: string, widgets: DashboardWidget[]);
25
+ }
26
+ export interface Userprofile {
27
+ id: string;
28
+ name: string;
29
+ dashboard: DashboardProfile;
30
+ }
31
+ export interface UserprofileObject extends DataObject {
32
+ data: Userprofile[];
33
+ }
34
+ export declare class UserprofileObject extends DataObject implements UserprofileObject {
35
+ constructor(data: Userprofile[]);
36
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/datatypes",
3
- "version": "1.0.66",
3
+ "version": "1.0.67",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"
package/public-api.d.ts CHANGED
@@ -43,6 +43,8 @@ export * from './lib/model/common/buildingaccess-object';
43
43
  export * from './lib/model/common/store-object';
44
44
  export * from './lib/model/common/calendar-object';
45
45
  export * from './lib/model/common/pos-terminal-object';
46
+ export * from './lib/model/common/userprofile-object';
47
+ export * from './lib/model/common/security-profile-object';
46
48
  export * from './lib/model/configuration/menu-object';
47
49
  export * from './lib/model/messaging/topic-object';
48
50
  export * from './lib/model/messaging/subscription-object';