scheduler-node-models 1.2.112 → 1.2.114

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scheduler-node-models",
3
- "version": "1.2.112",
3
+ "version": "1.2.114",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -25,10 +25,6 @@ export interface NewModPeriod {
25
25
  start: Date;
26
26
  end: Date;
27
27
  }
28
- export interface NewTeamSpecialtyContact {
29
- team: string;
30
- name: string;
31
- }
32
28
  export interface UpdateTeam {
33
29
  team: string;
34
30
  companyid?: string;
package/users/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
1
  export * from './user';
2
+ export * from './permission';
3
+ export * from './question';
2
4
  export * from './web';
package/users/index.js CHANGED
@@ -15,4 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user"), exports);
18
+ __exportStar(require("./permission"), exports);
19
+ __exportStar(require("./question"), exports);
18
20
  __exportStar(require("./web"), exports);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Class and interface for the user permission
3
+ */
4
+ export interface IPermission {
5
+ application: string;
6
+ job: string;
7
+ }
8
+ export declare class Permission implements IPermission {
9
+ application: string;
10
+ job: string;
11
+ constructor(perm?: IPermission);
12
+ compareTo(other?: Permission): number;
13
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Permission = void 0;
4
+ class Permission {
5
+ application;
6
+ job;
7
+ constructor(perm) {
8
+ this.application = (perm) ? perm.application : '';
9
+ this.job = (perm) ? perm.job : '';
10
+ }
11
+ compareTo(other) {
12
+ if (other) {
13
+ if (this.application === other.application) {
14
+ return (this.job < other.job) ? -1 : 1;
15
+ }
16
+ return (this.application < other.application) ? -1 : 1;
17
+ }
18
+ return 0;
19
+ }
20
+ }
21
+ exports.Permission = Permission;