@bondsports/types 2.4.48-a-2 → 2.4.48-a-4

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.
@@ -0,0 +1,11 @@
1
+ import { FacilityDto, SimpleFacilityDto } from '../../facilities/dto/facilities.dto';
2
+ import { EmployeeFacilitiesViewEnum } from '../types/enums';
3
+ export declare class EmployeeFacilitiesDto {
4
+ employeeId: number;
5
+ defaultFacilityId: number | null;
6
+ facilityIds: number[];
7
+ accessibleFacilities: SimpleFacilityDto[] | FacilityDto[];
8
+ }
9
+ export declare class GetEmployeeFacilitiesQueryDto {
10
+ view?: EmployeeFacilitiesViewEnum;
11
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetEmployeeFacilitiesQueryDto = exports.EmployeeFacilitiesDto = void 0;
4
+ const enums_1 = require("../types/enums");
5
+ class EmployeeFacilitiesDto {
6
+ }
7
+ exports.EmployeeFacilitiesDto = EmployeeFacilitiesDto;
8
+ class GetEmployeeFacilitiesQueryDto {
9
+ constructor() {
10
+ this.view = enums_1.EmployeeFacilitiesViewEnum.SUMMARY;
11
+ }
12
+ }
13
+ exports.GetEmployeeFacilitiesQueryDto = GetEmployeeFacilitiesQueryDto;
14
+ //# sourceMappingURL=employee-facilities.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"employee-facilities.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee-facilities.dto.ts"],"names":[],"mappings":";;;AAEA,0CAA4D;AAE5D,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,MAAa,6BAA6B;IAA1C;QACC,SAAI,GAAgC,kCAA0B,CAAC,OAAO,CAAC;IACxE,CAAC;CAAA;AAFD,sEAEC"}
@@ -1 +1,2 @@
1
+ export * from './employee-facilities.dto';
1
2
  export * from './employee.dto';
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./employee-facilities.dto"), exports);
17
18
  __exportStar(require("./employee.dto"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,iDAA+B"}
@@ -23,3 +23,7 @@ export declare enum MembershipSortByEnum {
23
23
  ACTIVITIES = "activities",
24
24
  MEMEMBERSHIP_TYPE = "membershipType"
25
25
  }
26
+ export declare enum EmployeeFacilitiesViewEnum {
27
+ SUMMARY = "SUMMARY",
28
+ FULL = "FULL"
29
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MembershipSortByEnum = exports.OrganizationUserOrderBy = exports.UserOrderBy = exports.EmployeeStatus = void 0;
3
+ exports.EmployeeFacilitiesViewEnum = exports.MembershipSortByEnum = exports.OrganizationUserOrderBy = exports.UserOrderBy = exports.EmployeeStatus = void 0;
4
4
  var EmployeeStatus;
5
5
  (function (EmployeeStatus) {
6
6
  EmployeeStatus["ACTIVE"] = "active";
@@ -30,4 +30,9 @@ var MembershipSortByEnum;
30
30
  MembershipSortByEnum["ACTIVITIES"] = "activities";
31
31
  MembershipSortByEnum["MEMEMBERSHIP_TYPE"] = "membershipType";
32
32
  })(MembershipSortByEnum = exports.MembershipSortByEnum || (exports.MembershipSortByEnum = {}));
33
+ var EmployeeFacilitiesViewEnum;
34
+ (function (EmployeeFacilitiesViewEnum) {
35
+ EmployeeFacilitiesViewEnum["SUMMARY"] = "SUMMARY";
36
+ EmployeeFacilitiesViewEnum["FULL"] = "FULL";
37
+ })(EmployeeFacilitiesViewEnum = exports.EmployeeFacilitiesViewEnum || (exports.EmployeeFacilitiesViewEnum = {}));
33
38
  //# sourceMappingURL=enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/employees/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;AACpB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACtB,8BAAe,CAAA;IACf,uCAAwB,CAAA;IACxB,qCAAsB,CAAA;IACtB,uCAAwB,CAAA;AACzB,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;AAED,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAClC,4CAAiB,CAAA;IACjB,wEAA6C,CAAA;IAC7C,oEAAyC,CAAA;IACzC,uDAA4B,CAAA;AAC7B,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC;AAED,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC/B,qCAAa,CAAA;IACb,wDAAgC,CAAA;IAChC,0CAAkB,CAAA;IAClB,yCAAiB,CAAA;IACjB,iDAAyB,CAAA;IACzB,4DAAoC,CAAA;AACrC,CAAC,EAPW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAO/B"}
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/employees/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;AACpB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACtB,8BAAe,CAAA;IACf,uCAAwB,CAAA;IACxB,qCAAsB,CAAA;IACtB,uCAAwB,CAAA;AACzB,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;AAED,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAClC,4CAAiB,CAAA;IACjB,wEAA6C,CAAA;IAC7C,oEAAyC,CAAA;IACzC,uDAA4B,CAAA;AAC7B,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC;AAED,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC/B,qCAAa,CAAA;IACb,wDAAgC,CAAA;IAChC,0CAAkB,CAAA;IAClB,yCAAiB,CAAA;IACjB,iDAAyB,CAAA;IACzB,4DAAoC,CAAA;AACrC,CAAC,EAPW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAO/B;AAED,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACrC,iDAAmB,CAAA;IACnB,2CAAa,CAAA;AACd,CAAC,EAHW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAGrC"}
@@ -1,4 +1,5 @@
1
- export interface IEmployeeFacilities {
1
+ import { Facility } from '../../../facilities/entities/Facility';
2
+ export interface ICreateEmployeeFacilityAccessInput {
2
3
  organizationId: number;
3
4
  userId: number;
4
5
  facilityIds: number[];
@@ -7,6 +8,12 @@ export interface IEmployeeFacilityAccessState {
7
8
  defaultFacilityId: number | null;
8
9
  facilityIds: number[];
9
10
  }
11
+ export interface IEmployeeFacilities {
12
+ defaultFacilityId: number | null;
13
+ employeeId: number;
14
+ accessibleFacilities: Facility[];
15
+ facilityIds: number[];
16
+ }
10
17
  export interface IFindFacilityAccessFilter {
11
18
  organizationId: number;
12
19
  facilityIds?: number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.48-a-2",
3
+ "version": "2.4.48-a-4",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {