@bondsports/types 2.2.279-team-a-5 → 2.2.279-team-a-7

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,11 +1,11 @@
1
1
  import { MediaDto } from '../../media/dto/media.dto';
2
2
  import { CustomerTypeEnum, GenderEnum, OrderByEnum, ResourceNameTypeEnum } from '../../services/enums.service';
3
- import { Role } from '../../roles/entities/Role';
4
3
  import { EmployeeStatus, OrganizationUserOrderBy, UserOrderBy } from '../types/enums';
5
4
  import { PaginationQuery } from '../../dto/general.dto';
6
5
  import { OrganizationUsers } from '../../organization/entities/OrganizationUsers';
7
6
  import { Address } from '../../address/entities/Address';
8
7
  import { User } from '../../user/entities/User';
8
+ import { RoleDto, SimpleRoleDto } from '../../roles/dto/role.dto';
9
9
  export declare class ByEmployeeIdDto {
10
10
  employeeId: number;
11
11
  }
@@ -29,7 +29,7 @@ export declare class EmployeeDto {
29
29
  deletedAt?: Date;
30
30
  }
31
31
  export declare class EmployeeWithRoles extends EmployeeDto {
32
- roles?: Role[];
32
+ roles?: SimpleRoleDto[];
33
33
  }
34
34
  export declare class EmployeeWithRoleIds extends EmployeeWithRoles {
35
35
  rolesIds?: number[];
@@ -38,7 +38,7 @@ export declare class BuildEmployee {
38
38
  user: User;
39
39
  customerId: number;
40
40
  organizationUser: OrganizationUsers;
41
- roles: Role[];
41
+ roles: RoleDto[];
42
42
  }
43
43
  export declare class CreateEmployeeDto {
44
44
  firstName: string;
@@ -107,6 +107,8 @@ export declare class UpdateEmployeeDto {
107
107
  export declare class GetEmployeesByFilterOptions extends PaginationQuery {
108
108
  statuses?: EmployeeStatus[];
109
109
  rolesIds?: number[];
110
+ excludedRolesIds?: number[];
111
+ includeRoles?: boolean;
110
112
  search?: string;
111
113
  orderBy?: UserOrderBy | OrganizationUserOrderBy;
112
114
  order?: OrderByEnum;
@@ -28,6 +28,10 @@ class UpdateEmployeeDto {
28
28
  }
29
29
  exports.UpdateEmployeeDto = UpdateEmployeeDto;
30
30
  class GetEmployeesByFilterOptions extends general_dto_1.PaginationQuery {
31
+ constructor() {
32
+ super(...arguments);
33
+ this.includeRoles = true;
34
+ }
31
35
  }
32
36
  exports.GetEmployeesByFilterOptions = GetEmployeesByFilterOptions;
33
37
  //# sourceMappingURL=employee.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAwD;AAKxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC;AAED,MAAa,iBAAkB,SAAQ,WAAW;CAEjD;AAFD,8CAEC;AAED,MAAa,mBAAoB,SAAQ,iBAAiB;CAEzD;AAFD,kDAEC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,uCAAuC;AACvC,MAAa,iBAAiB;CAwD7B;AAxDD,8CAwDC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;CAY/D;AAZD,kEAYC"}
1
+ {"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AAMxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC;AAED,MAAa,iBAAkB,SAAQ,WAAW;CAEjD;AAFD,8CAEC;AAED,MAAa,mBAAoB,SAAQ,iBAAiB;CAEzD;AAFD,kDAEC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,uCAAuC;AACvC,MAAa,iBAAiB;CAwD7B;AAxDD,8CAwDC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;IAAhE;;QAOC,iBAAY,GAAa,IAAI,CAAC;IAS/B,CAAC;CAAA;AAhBD,kEAgBC"}
@@ -42,7 +42,7 @@ export declare class ScheduledPaymentDto {
42
42
  originalPlannedDate?: Date;
43
43
  }
44
44
  export declare class FutureInstallmentsIdsDto {
45
- paymentsIds: number[];
45
+ paymentsIds?: number[];
46
46
  }
47
47
  export declare class CancelFutureInstallmentsDto extends FutureInstallmentsIdsDto {
48
48
  invoiceId: number;
@@ -14,7 +14,8 @@ export declare enum PaymentFilterByEnum {
14
14
  PAYMENT_STATUS = "paymentStatus",
15
15
  STATUS = "status",
16
16
  ID = "id",
17
- CREATED_AT = "createdAt"
17
+ CREATED_AT = "createdAt",
18
+ PRICE = "price"
18
19
  }
19
20
  export declare enum ReasonTypeEnum {
20
21
  REFUND = "refund",
@@ -20,6 +20,7 @@ var PaymentFilterByEnum;
20
20
  PaymentFilterByEnum["STATUS"] = "status";
21
21
  PaymentFilterByEnum["ID"] = "id";
22
22
  PaymentFilterByEnum["CREATED_AT"] = "createdAt";
23
+ PaymentFilterByEnum["PRICE"] = "price";
23
24
  })(PaymentFilterByEnum = exports.PaymentFilterByEnum || (exports.PaymentFilterByEnum = {}));
24
25
  var ReasonTypeEnum;
25
26
  (function (ReasonTypeEnum) {
@@ -1 +1 @@
1
- {"version":3,"file":"payment.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/payment.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC5B,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,0CAAqB,CAAA;IACrB,wDAAmC,CAAA;IACnC,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,4DAAuC,CAAA;AACxC,CAAC,EAXW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAW5B;AAED,IAAY,mBAKX;AALD,W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Y,wBAKX;AALD,WAAY,wBAAwB;IACnC,6CAAiB,CAAA;IACjB,2CAAe,CAAA;IACf,+CAAmB,CAAA;IACnB,+CAAmB,CAAA;AACpB,CAAC,EALW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAKnC;AAED,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IAClC,4CAAiB,CAAA;IACjB,kDAAuB,CAAA;IACvB,4CAAiB,CAAA;IACjB,gDAAqB,CAAA;IACrB,8CAAmB,CAAA;IACnB,kEAAuC,CAAA;AACxC,CAAC,EAPW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAOlC;AAEY,QAAA,wCAAwC,GAAG;IACvD,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,OAAO;IAC/B,uBAAuB,CAAC,SAAS;CACjC,CAAC;AAEW,QAAA,6BAA6B,GAAG;IAC5C,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,iBAAiB;CACzC,CAAC;AAEF;;;;GAIG;AACU,QAAA,yBAAyB,GAAG,CAAC,uBAAuB,CAAC,MAAM,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;AAErH;;GAEG;AACH;;;GAGG;AACU,QAAA,yBAAyB,GAAG,CAAC,uBAAuB,CAAC,MAAM,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;AAErH,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,2CAAqB,CAAA;IACrB,8CAAwB,CAAA;AACzB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
1
+ {"version":3,"file":"payment.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/payment.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC5B,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;IACnB,0CAAqB,CAAA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BAAkB,QAG7B"}
@@ -154,6 +154,7 @@ export declare class SimpleSessionDto extends IdAndNameDto {
154
154
  startDate: Date;
155
155
  endDate: Date;
156
156
  programType?: ProgramTypesEnum;
157
+ productCount?: number;
157
158
  }
158
159
  export declare class SpaceResourcePairDto {
159
160
  resourceType: ResourceNameTypeEnum;
@@ -250,4 +251,5 @@ export declare class RelatedSessionsDto {
250
251
  export declare class GetRelatedProgramSessionsDto {
251
252
  related?: RelatedSessionsDto;
252
253
  statuses?: PublishingStatusEnum[];
254
+ includeProductsCount?: boolean;
253
255
  }
@@ -1 +1 @@
1
- {"version":3,"file":"program-seasons.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-seasons.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAyF;AAEzF,yFAAoF;AACpF,8EAAyG;AACzG,gEAAuF;AAiBvF,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,WAAY,SAAQ,0BAAY;CAE5C;AAFD,kCAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,wBAAyB,SAAQ,4CAAyB;CAEtE;AAFD,4DAEC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AACD,MAAa,wBAAyB,SAAQ,6BAAe;CAU5D;AAVD,4DAUC;AAED,MAAa,qCAAsC,SAAQ,sCAAmB;CAE7E;AAFD,sFAEC;AAED,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,qBAAsB,SAAQ,wBAAwB;CAElE;AAFD,sDAEC;AAED,MAAa,6BAA8B,SAAQ,6BAAe;CAMjE;AAND,sEAMC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,oBAAoB;CA8EhC;AA9ED,oDA8EC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAE/D;AAFD,wDAEC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAE/D;AAFD,wDAEC;AAED,MAAa,4BAA4B;CAGxC;AAHD,oEAGC;AAED,MAAa,6BAA6B;CAwDzC;AAxDD,sEAwDC;AAED,MAAa,yBAA0B,SAAQ,0BAAY;CAAG;AAA9D,8DAA8D;AAE9D,MAAa,gBAAiB,SAAQ,0BAAY;CAUjD;AAVD,4CAUC;AAED,MAAa,oBAAoB;CAWhC;AAXD,oDAWC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,+BAA+B;CAO3C;AAPD,0EAOC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,eAAe;CAK3B;AALD,0CAKC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,oBAAoB;CAShC;AATD,oDASC;AAED,MAAa,uBAAwB,SAAQ,oBAAoB;CAUhE;AAVD,0DAUC;AAED,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,6BAA8B,SAAQ,qCAAuB;CAAG;AAA7E,sEAA6E;AAE7E,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED;;GAEG;AACH,MAAa,uBAAwB,SAAQ,2CAAmB;CAY/D;AAZD,0DAYC;AAED;;GAEG;AACH,MAAa,yBAA0B,SAAQ,2CAAmB;CAajE;AAbD,8DAaC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAMrE;AAND,8EAMC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC"}
1
+ {"version":3,"file":"program-seasons.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-seasons.dto.ts"],"names":[],"mappings":";;;AAE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FD,gEAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,eAAe;CAK3B;AALD,0CAKC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,oBAAoB;CAShC;AATD,oDASC;AAED,MAAa,uBAAwB,SAAQ,oBAAoB;CAUhE;AAVD,0DAUC;AAED,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,6BAA8B,SAAQ,qCAAuB;CAAG;AAA7E,sEAA6E;AAE7E,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED;;GAEG;AACH,MAAa,uBAAwB,SAAQ,2CAAmB;CAY/D;AAZD,0DAYC;AAED;;GAEG;AACH,MAAa,yBAA0B,SAAQ,2CAAmB;CAajE;AAbD,8DAaC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAMrE;AAND,8EAMC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAMxC;AAND,oEAMC"}
@@ -17,22 +17,19 @@ export declare class CreateRoleDto extends OptionalFacilityIdDto {
17
17
  permissionGroupsIds: number[];
18
18
  usersIds: number[];
19
19
  }
20
- export declare class RoleDto extends OptionalFacilityIdDto {
20
+ export declare class SimpleRoleDto extends OptionalFacilityIdDto {
21
21
  id: number;
22
22
  name: string;
23
23
  description?: string;
24
24
  deletedAt?: Date;
25
25
  isEditable?: boolean;
26
26
  type?: number;
27
+ activeUsersCount?: number;
28
+ }
29
+ export declare class RoleDto extends SimpleRoleDto {
27
30
  permissionGroups: PermissionGroupDto[];
28
31
  usersRoles: UserRoleDto[];
29
32
  }
30
- export declare class SimpleRoleDto extends OptionalFacilityIdDto {
31
- id: number;
32
- name: string;
33
- type?: number;
34
- deletedAt?: Date;
35
- }
36
33
  export declare class GetRolesFiltersDto extends PaginatedSearchDto {
37
34
  platforms?: PlatformsEnum[];
38
35
  facilityId?: number;
@@ -41,6 +38,7 @@ export declare class GetRolesFiltersDto extends PaginatedSearchDto {
41
38
  isEditable?: boolean;
42
39
  rolesTypes?: RoleTypesEnum[];
43
40
  includeBondy?: boolean;
41
+ countUserRoles?: boolean;
44
42
  }
45
43
  export declare class ByOrganizationIdAndRole extends ByOrganizationIdDto {
46
44
  role: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EditRoleDto = exports.DeprecatedRoleDto = exports.GetRolesOptionsDto = exports.DeleteRolesOptionsDto = exports.UpdateRoleDto = exports.RoleIdsAndUserIdDto = exports.RoleIdsDto = exports.RequiredRoleIdsDto = exports.ByOrganizationIdAndRole = exports.GetRolesFiltersDto = exports.SimpleRoleDto = exports.RoleDto = exports.CreateRoleDto = exports.ByRoleIdDto = void 0;
3
+ exports.EditRoleDto = exports.DeprecatedRoleDto = exports.GetRolesOptionsDto = exports.DeleteRolesOptionsDto = exports.UpdateRoleDto = exports.RoleIdsAndUserIdDto = exports.RoleIdsDto = exports.RequiredRoleIdsDto = exports.ByOrganizationIdAndRole = exports.GetRolesFiltersDto = exports.RoleDto = exports.SimpleRoleDto = exports.CreateRoleDto = exports.ByRoleIdDto = void 0;
4
4
  const facilities_dto_1 = require("../../dto/facilities.dto");
5
5
  const general_dto_1 = require("../../dto/general.dto");
6
6
  const organization_dto_1 = require("../../organization/dto/organization.dto");
@@ -10,20 +10,21 @@ exports.ByRoleIdDto = ByRoleIdDto;
10
10
  class CreateRoleDto extends facilities_dto_1.OptionalFacilityIdDto {
11
11
  }
12
12
  exports.CreateRoleDto = CreateRoleDto;
13
- class RoleDto extends facilities_dto_1.OptionalFacilityIdDto {
13
+ class SimpleRoleDto extends facilities_dto_1.OptionalFacilityIdDto {
14
+ }
15
+ exports.SimpleRoleDto = SimpleRoleDto;
16
+ class RoleDto extends SimpleRoleDto {
14
17
  constructor() {
15
18
  super(...arguments);
16
19
  this.permissionGroups = [];
17
20
  }
18
21
  }
19
22
  exports.RoleDto = RoleDto;
20
- class SimpleRoleDto extends facilities_dto_1.OptionalFacilityIdDto {
21
- }
22
- exports.SimpleRoleDto = SimpleRoleDto;
23
23
  class GetRolesFiltersDto extends general_dto_1.PaginatedSearchDto {
24
24
  constructor() {
25
25
  super(...arguments);
26
26
  this.includeBondy = false;
27
+ this.countUserRoles = false;
27
28
  }
28
29
  }
29
30
  exports.GetRolesFiltersDto = GetRolesFiltersDto;
@@ -1 +1 @@
1
- {"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/role.dto.ts"],"names":[],"mappings":";;;AAAA,6DAAiE;AACjE,uDAA2D;AAC3D,8EAA8E;AAO9E,MAAa,WAAY,SAAQ,sCAAqB;CAErD;AAFD,kCAEC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAYvD;AAZD,sCAYC;AAED,MAAa,OAAQ,SAAQ,sCAAqB;IAAlD;;QAaC,qBAAgB,GAAyB,EAAE,CAAC;IAG7C,CAAC;CAAA;AAhBD,0BAgBC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAQvD;AARD,sCAQC;AAED,MAAa,kBAAmB,SAAQ,gCAAkB;IAA1D;;QAaC,iBAAY,GAAI,KAAK,CAAC;IACvB,CAAC;CAAA;AAdD,gDAcC;AAED,MAAa,uBAAwB,SAAQ,sCAAmB;CAE/D;AAFD,0DAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAQvD;AARD,sCAQC;AAED,MAAa,qBAAsB,SAAQ,UAAU;IAArD;;QACC,qBAAgB,GAAI,IAAI,CAAC;IAC1B,CAAC;CAAA;AAFD,sDAEC;AAED,MAAa,kBAAkB;IAA/B;QACC,uBAAkB,GAAI,KAAK,CAAC;QAE5B,4BAAuB,GAAI,KAAK,CAAC;QAEjC,6BAAwB,GAAI,KAAK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,SAAQ,OAAO;CAE7C;AAFD,8CAEC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC"}
@@ -11,4 +11,5 @@ export declare class Role extends BondBaseEntity {
11
11
  facilityId: number;
12
12
  permissionGroups: PermissionGroup[];
13
13
  usersRoles: UserRole[];
14
+ activeUsersCount?: number;
14
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Role.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAI7D,MAAa,IAAK,SAAQ,+BAAc;CAkBvC;AAlBD,oBAkBC"}
1
+ {"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Role.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAI7D,MAAa,IAAK,SAAQ,+BAAc;CAoBvC;AApBD,oBAoBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.279-team-a-5",
3
+ "version": "2.2.279-team-a-7",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {