@bondsports/types 2.4.50-a-1 → 2.4.50-a-2

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.
@@ -1,20 +1,15 @@
1
- export declare class FindShiftsFiltersDto {
2
- statuses?: string;
3
- stationIds?: string;
4
- openingUsersIds?: string;
5
- closingUsersIds?: string;
6
- closingManagersIds?: string;
7
- reconcilingUsersIds?: string;
8
- startDate?: Date;
9
- endDate?: Date;
10
- }
11
- export declare class FindShiftsFormattedFilters {
12
- statuses?: string[];
1
+ import { PaginationSearchQuery } from '../../dto/general.dto';
2
+ import { ShiftStatusEnum } from '../../services/enums.service';
3
+ import { ShiftOrderByEnum } from '../types/enums/shift.enums';
4
+ export declare class FindShiftsFiltersDto extends PaginationSearchQuery<ShiftOrderByEnum> {
5
+ statuses?: ShiftStatusEnum[];
13
6
  stationIds?: number[];
14
7
  openingUsersIds?: number[];
15
8
  closingUsersIds?: number[];
16
9
  closingManagersIds?: number[];
17
10
  reconcilingUsersIds?: number[];
11
+ facilityIds?: number[];
18
12
  startDate?: Date;
19
13
  endDate?: Date;
14
+ orderBy?: ShiftOrderByEnum;
20
15
  }
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FindShiftsFormattedFilters = exports.FindShiftsFiltersDto = void 0;
4
- class FindShiftsFiltersDto {
3
+ exports.FindShiftsFiltersDto = void 0;
4
+ const general_dto_1 = require("../../dto/general.dto");
5
+ class FindShiftsFiltersDto extends general_dto_1.PaginationSearchQuery {
5
6
  }
6
7
  exports.FindShiftsFiltersDto = FindShiftsFiltersDto;
7
- class FindShiftsFormattedFilters {
8
- }
9
- exports.FindShiftsFormattedFilters = FindShiftsFormattedFilters;
10
8
  //# sourceMappingURL=find-shifts-filters.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"find-shifts-filters.dto.js","sourceRoot":"","sources":["../../../../src/types/shifts/dto/find-shifts-filters.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,oBAAoB;CAgBhC;AAhBD,oDAgBC;AAED,MAAa,0BAA0B;CAStC;AATD,gEASC"}
1
+ {"version":3,"file":"find-shifts-filters.dto.js","sourceRoot":"","sources":["../../../../src/types/shifts/dto/find-shifts-filters.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8D;AAI9D,MAAa,oBAAqB,SAAQ,mCAAuC;CAoBhF;AApBD,oDAoBC"}
@@ -3,3 +3,4 @@ export * from './find-shifts-by-ids.dto';
3
3
  export * from './find-shifts-filters.dto';
4
4
  export * from './management-closing-shifts.dto';
5
5
  export * from './open-shift.dto';
6
+ export * from './shift.dto';
@@ -19,4 +19,5 @@ __exportStar(require("./find-shifts-by-ids.dto"), exports);
19
19
  __exportStar(require("./find-shifts-filters.dto"), exports);
20
20
  __exportStar(require("./management-closing-shifts.dto"), exports);
21
21
  __exportStar(require("./open-shift.dto"), exports);
22
+ __exportStar(require("./shift.dto"), exports);
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/shifts/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,2DAAyC;AACzC,4DAA0C;AAC1C,kEAAgD;AAChD,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/shifts/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,2DAAyC;AACzC,4DAA0C;AAC1C,kEAAgD;AAChD,mDAAiC;AACjC,8CAA4B"}
@@ -0,0 +1,29 @@
1
+ import { StationDto } from '../../dto/station.dto';
2
+ import { PaymentMethodTypeEnum } from '../../payment/types/enums/payment.enums';
3
+ import { ShiftStatusEnum } from '../../services/enums.service';
4
+ import { SimpleUserDto } from '../../user/dto/user.dto';
5
+ export declare class SimpleShiftDto {
6
+ id: number;
7
+ station?: StationDto;
8
+ status: ShiftStatusEnum;
9
+ openingDate: string;
10
+ openingTime: string;
11
+ closingDate?: string;
12
+ closingTime?: string;
13
+ openingUser?: SimpleUserDto;
14
+ closingUser?: SimpleUserDto;
15
+ }
16
+ export declare class ShiftDto extends SimpleShiftDto {
17
+ openingCashAmount: number;
18
+ closingCashAmount?: number;
19
+ managementClosingCashAmount?: number;
20
+ managementClosingDate?: string;
21
+ managementClosingTime?: string;
22
+ reconcilingUserId?: number;
23
+ reconciliationAmount?: number;
24
+ reconcilingDate?: string;
25
+ reconcilingTime?: string;
26
+ reconciliationInvoiceId?: number;
27
+ sumsOnShift?: Record<PaymentMethodTypeEnum, number>;
28
+ currentCashDifference?: number;
29
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShiftDto = exports.SimpleShiftDto = void 0;
4
+ class SimpleShiftDto {
5
+ }
6
+ exports.SimpleShiftDto = SimpleShiftDto;
7
+ class ShiftDto extends SimpleShiftDto {
8
+ }
9
+ exports.ShiftDto = ShiftDto;
10
+ //# sourceMappingURL=shift.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shift.dto.js","sourceRoot":"","sources":["../../../../src/types/shifts/dto/shift.dto.ts"],"names":[],"mappings":";;;AAMA,MAAa,cAAc;CAkB1B;AAlBD,wCAkBC;AAED,MAAa,QAAS,SAAQ,cAAc;CAwB3C;AAxBD,4BAwBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"shift.entity.js","sourceRoot":"","sources":["../../../../src/types/shifts/entities/shift.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAMjG,MAAa,KAAM,SAAQ,mEAAgC;CAmD1D;AAnDD,sBAmDC"}
1
+ {"version":3,"file":"shift.entity.js","sourceRoot":"","sources":["../../../../src/types/shifts/entities/shift.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAMjG,MAAa,KAAM,SAAQ,mEAAgC;CAsD1D;AAtDD,sBAsDC"}
@@ -1,2 +1,3 @@
1
1
  export * from './dto';
2
2
  export * from './entities';
3
+ export * from './types';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dto"), exports);
18
18
  __exportStar(require("./entities"), exports);
19
+ __exportStar(require("./types"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/shifts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/shifts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './shift.enums';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./shift.enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/shifts/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -0,0 +1,5 @@
1
+ export declare enum ShiftOrderByEnum {
2
+ ID = "id",
3
+ OPENING_DATE = "openingDate",
4
+ CLOSING_DATE = "closingDate"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShiftOrderByEnum = void 0;
4
+ var ShiftOrderByEnum;
5
+ (function (ShiftOrderByEnum) {
6
+ ShiftOrderByEnum["ID"] = "id";
7
+ ShiftOrderByEnum["OPENING_DATE"] = "openingDate";
8
+ ShiftOrderByEnum["CLOSING_DATE"] = "closingDate";
9
+ })(ShiftOrderByEnum = exports.ShiftOrderByEnum || (exports.ShiftOrderByEnum = {}));
10
+ //# sourceMappingURL=shift.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shift.enums.js","sourceRoot":"","sources":["../../../../../src/types/shifts/types/enums/shift.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,6BAAS,CAAA;IACT,gDAA4B,CAAA;IAC5B,gDAA4B,CAAA;AAC7B,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B"}
@@ -0,0 +1 @@
1
+ export * from './enums';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/shifts/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.50-a-1",
3
+ "version": "2.4.50-a-2",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {