@bondsports/types 2.3.15-team-c-7 → 2.3.15-team-c-9

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.
Files changed (33) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/dto/events.dto.d.ts +1 -0
  3. package/dist/types/dto/events.dto.js.map +1 -1
  4. package/dist/types/product-pricing/types/consts/product-resource.consts.d.ts +8 -0
  5. package/dist/types/product-pricing/types/consts/product-resource.consts.js +11 -1
  6. package/dist/types/product-pricing/types/consts/product-resource.consts.js.map +1 -1
  7. package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +1 -0
  8. package/dist/types/programs-seasons/dto/program-season-participant.dto.d.ts +20 -0
  9. package/dist/types/programs-seasons/dto/program-season-participant.dto.js +15 -1
  10. package/dist/types/programs-seasons/dto/program-season-participant.dto.js.map +1 -1
  11. package/dist/types/programs-seasons/types/classes/program-season.classes.js.map +1 -1
  12. package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +5 -0
  13. package/dist/types/programs-seasons/types/enums/program-season.enums.js +7 -1
  14. package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -1
  15. package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +62 -3
  16. package/dist/types/punch-pass/dto/punch-pass.dto.js +23 -3
  17. package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
  18. package/dist/types/punch-pass/types/consts.d.ts +2 -0
  19. package/dist/types/punch-pass/types/consts.js +13 -0
  20. package/dist/types/punch-pass/types/consts.js.map +1 -0
  21. package/dist/types/punch-pass/types/enums.d.ts +7 -2
  22. package/dist/types/punch-pass/types/enums.js +5 -0
  23. package/dist/types/punch-pass/types/enums.js.map +1 -1
  24. package/dist/types/punch-pass/types/index.d.ts +1 -0
  25. package/dist/types/punch-pass/types/index.js +1 -0
  26. package/dist/types/punch-pass/types/index.js.map +1 -1
  27. package/dist/types/punch-pass/types/interfaces.d.ts +35 -0
  28. package/dist/types/session-participants/dto/get.session.participant.dto.d.ts +3 -0
  29. package/dist/types/session-participants/dto/get.session.participant.dto.js +4 -1
  30. package/dist/types/session-participants/dto/get.session.participant.dto.js.map +1 -1
  31. package/dist/types/user/dto/user.dto.d.ts +3 -0
  32. package/dist/types/user/dto/user.dto.js.map +1 -1
  33. package/package.json +1 -1
@@ -114,6 +114,7 @@ export declare class SimpleEventDto extends IdDto {
114
114
  resources?: SimpleResourceDto[];
115
115
  parentId?: number;
116
116
  parentType?: string;
117
+ parentSessionName?: string;
117
118
  }
118
119
  export declare class SimpleAttendeeDto extends IdDto {
119
120
  createdAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"events.dto.js","sourceRoot":"","sources":["../../../src/types/dto/events.dto.ts"],"names":[],"mappings":";;;AAcA,+CAAgG;AAEhG,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,cAAc;CAsB1B;AAtBD,wCAsBC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,oCAAqC,SAAQ,mBAAmB;CAE5E;AAFD,oFAEC;AAED,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AACD,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAyCD,MAAa,2BAA4B,SAAQ,kCAAoB;CAYpE;AAZD,kEAYC;AAED,MAAa,cAAe,SAAQ,mBAAK;CAsBxC;AAtBD,wCAsBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAE3C;AAFD,8CAEC;AAED,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AAED,MAAa,kBAAkB;CA4B9B;AA5BD,gDA4BC;AAED,MAAa,gBAAiB,SAAQ,mBAAK;CAM1C;AAND,4CAMC;AAED,MAAa,sBAAuB,SAAQ,cAAc;CAIzD;AAJD,wDAIC;AAED,MAAa,sBAAuB,SAAQ,6BAAe;CAgB1D;AAhBD,wDAgBC"}
1
+ {"version":3,"file":"events.dto.js","sourceRoot":"","sources":["../../../src/types/dto/events.dto.ts"],"names":[],"mappings":";;;AAcA,+CAAgG;AAEhG,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,cAAc;CAsB1B;AAtBD,wCAsBC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,oCAAqC,SAAQ,mBAAmB;CAE5E;AAFD,oFAEC;AAED,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AACD,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAyCD,MAAa,2BAA4B,SAAQ,kCAAoB;CAYpE;AAZD,kEAYC;AAED,MAAa,cAAe,SAAQ,mBAAK;CAwBxC;AAxBD,wCAwBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAE3C;AAFD,8CAEC;AAED,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AAED,MAAa,kBAAkB;CA4B9B;AA5BD,gDA4BC;AAED,MAAa,gBAAiB,SAAQ,mBAAK;CAM1C;AAND,4CAMC;AAED,MAAa,sBAAuB,SAAQ,cAAc;CAIzD;AAJD,wDAIC;AAED,MAAa,sBAAuB,SAAQ,6BAAe;CAgB1D;AAhBD,wDAgBC"}
@@ -3,3 +3,11 @@ import { IProductResource, IResource } from '../interfaces/product-resource.inte
3
3
  export declare const uniqueByProductResource: (resource: IProductResource) => string;
4
4
  export declare const getUniqueByResource: (resource: IResource) => string;
5
5
  export declare const PRODUCT_RESOURCE_PARENT_TYPES: ResourceNameTypeEnum[];
6
+ /**
7
+ * Returns a query that checks if a product resource is a program season
8
+ */
9
+ export declare const productResourceToProgramSeasonQuery: (alias?: string, sessionAlias?: string) => string;
10
+ /**
11
+ * Returns a query that checks if a product resource is a program
12
+ */
13
+ export declare const productResourceToProgramQuery: (alias?: string, programAlias?: string) => string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PRODUCT_RESOURCE_PARENT_TYPES = exports.getUniqueByResource = exports.uniqueByProductResource = void 0;
3
+ exports.productResourceToProgramQuery = exports.productResourceToProgramSeasonQuery = exports.PRODUCT_RESOURCE_PARENT_TYPES = exports.getUniqueByResource = exports.uniqueByProductResource = void 0;
4
4
  const enums_service_1 = require("../../../services/enums.service");
5
5
  const uniqueByProductResource = (resource) => {
6
6
  return `${resource.productId}_${resource.type}_${resource.id}`;
@@ -14,4 +14,14 @@ exports.PRODUCT_RESOURCE_PARENT_TYPES = [
14
14
  enums_service_1.ResourceNameTypeEnum.PROGRAM,
15
15
  enums_service_1.ResourceNameTypeEnum.MEMBERSHIP,
16
16
  ];
17
+ /**
18
+ * Returns a query that checks if a product resource is a program season
19
+ */
20
+ const productResourceToProgramSeasonQuery = (alias = 'pr', sessionAlias = 'session') => `${sessionAlias}.organizationId = ${alias}.organizationId AND ((${alias}.resourceId = ${sessionAlias}.id AND ${alias}.resourceType = '${enums_service_1.ResourceNameTypeEnum.PROGRAM_SEASON}') OR (${alias}.resourceId = ${sessionAlias}.programId AND ${alias}.resourceType = '${enums_service_1.ResourceNameTypeEnum.PROGRAM}') OR (${alias}.resourceId = ${sessionAlias}.programType AND ${alias}.resourceType = '${enums_service_1.ResourceNameTypeEnum.PROGRAM_TYPE}'))`;
21
+ exports.productResourceToProgramSeasonQuery = productResourceToProgramSeasonQuery;
22
+ /**
23
+ * Returns a query that checks if a product resource is a program
24
+ */
25
+ const productResourceToProgramQuery = (alias = 'pr', programAlias = 'program') => `${alias}.organizationId = ${programAlias}.organizationId AND ((${alias}.resourceId = ${programAlias}.id AND ${alias}.resourceType = '${enums_service_1.ResourceNameTypeEnum.PROGRAM}') OR (${programAlias}.type = ${alias}.resourceId AND ${alias}.resourceType = '${enums_service_1.ResourceNameTypeEnum.PROGRAM_TYPE}'))`;
26
+ exports.productResourceToProgramQuery = productResourceToProgramQuery;
17
27
  //# sourceMappingURL=product-resource.consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-resource.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-resource.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAuE;AAGhE,MAAM,uBAAuB,GAAG,CAAC,QAA0B,EAAU,EAAE;IAC7E,OAAO,GAAG,QAAQ,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEK,MAAM,mBAAmB,GAAG,CAAC,QAAmB,EAAU,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAAzF,QAAA,mBAAmB,uBAAsE;AAEzF,QAAA,6BAA6B,GAAG;IAC5C,oCAAoB,CAAC,WAAW;IAChC,oCAAoB,CAAC,cAAc;IACnC,oCAAoB,CAAC,OAAO;IAC5B,oCAAoB,CAAC,UAAU;CAC/B,CAAC"}
1
+ {"version":3,"file":"product-resource.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-resource.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAuE;AAGhE,MAAM,uBAAuB,GAAG,CAAC,QAA0B,EAAU,EAAE;IAC7E,OAAO,GAAG,QAAQ,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEK,MAAM,mBAAmB,GAAG,CAAC,QAAmB,EAAU,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAAzF,QAAA,mBAAmB,uBAAsE;AAEzF,QAAA,6BAA6B,GAAG;IAC5C,oCAAoB,CAAC,WAAW;IAChC,oCAAoB,CAAC,cAAc;IACnC,oCAAoB,CAAC,OAAO;IAC5B,oCAAoB,CAAC,UAAU;CAC/B,CAAC;AAEF;;GAEG;AACI,MAAM,mCAAmC,GAAG,CAAC,QAAgB,IAAI,EAAE,eAAuB,SAAS,EAAU,EAAE,CACrH,GAAG,YAAY,qBAAqB,KAAK,yBAAyB,KAAK,iBAAiB,YAAY,WAAW,KAAK,oBAAoB,oCAAoB,CAAC,cAAc,UAAU,KAAK,iBAAiB,YAAY,kBAAkB,KAAK,oBAAoB,oCAAoB,CAAC,OAAO,UAAU,KAAK,iBAAiB,YAAY,oBAAoB,KAAK,oBAAoB,oCAAoB,CAAC,YAAY,KAAK,CAAC;AADlZ,QAAA,mCAAmC,uCAC+W;AAE/Z;;GAEG;AACI,MAAM,6BAA6B,GAAG,CAAC,QAAgB,IAAI,EAAE,eAAuB,SAAS,EAAU,EAAE,CAC/G,GAAG,KAAK,qBAAqB,YAAY,yBAAyB,KAAK,iBAAiB,YAAY,WAAW,KAAK,oBAAoB,oCAAoB,CAAC,OAAO,UAAU,YAAY,WAAW,KAAK,mBAAmB,KAAK,oBAAoB,oCAAoB,CAAC,YAAY,KAAK,CAAC;AADjR,QAAA,6BAA6B,iCACoP"}
@@ -10,5 +10,6 @@ export interface IValidateResourcesDict {
10
10
  export interface IValidateResourcesOptions {
11
11
  onErrorCallback?: (error: Error, ...args: unknown[]) => void;
12
12
  skipOptionalValidations?: boolean;
13
+ skipRegistrationLimitsValidations?: boolean;
13
14
  validateWaitlist?: boolean;
14
15
  }
@@ -1,8 +1,28 @@
1
1
  import { ScheduleDto } from '../../dto/activityTimes.dto';
2
2
  import { QuestionAndAnswerDto } from '../../dto/application.dto';
3
3
  import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
4
+ import { GenderEnum } from '../../services/enums.service';
5
+ import { ParticipantRegistrationValidationEnum } from '../types/enums/program-season.enums';
4
6
  export declare class ProgramSeasonParticipantDto {
5
7
  applicationAnswers: QuestionAndAnswerDto[];
6
8
  invoices: SimpleInvoiceDto[];
7
9
  schedule: ScheduleDto[];
8
10
  }
11
+ export declare class AgeValidationResultDto {
12
+ userId: number;
13
+ maxAge: number;
14
+ minAge: number;
15
+ }
16
+ export declare class GenderValidationResultDto {
17
+ userId: number;
18
+ gender: GenderEnum;
19
+ }
20
+ export declare class RegistrationDatesValidationResultDto {
21
+ registrationStartDate: string;
22
+ registrationEndDate: string;
23
+ }
24
+ export declare class ParticipantRegistrationValidationResultDto {
25
+ [ParticipantRegistrationValidationEnum.AGE_VALIDATION]?: AgeValidationResultDto[];
26
+ [ParticipantRegistrationValidationEnum.GENDER_VALIDATION]?: GenderValidationResultDto[];
27
+ [ParticipantRegistrationValidationEnum.REGISTRATION_DATES_VALIDATION]?: RegistrationDatesValidationResultDto;
28
+ }
@@ -1,7 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProgramSeasonParticipantDto = void 0;
3
+ exports.ParticipantRegistrationValidationResultDto = exports.RegistrationDatesValidationResultDto = exports.GenderValidationResultDto = exports.AgeValidationResultDto = exports.ProgramSeasonParticipantDto = void 0;
4
+ const program_season_enums_1 = require("../types/enums/program-season.enums");
4
5
  class ProgramSeasonParticipantDto {
5
6
  }
6
7
  exports.ProgramSeasonParticipantDto = ProgramSeasonParticipantDto;
8
+ class AgeValidationResultDto {
9
+ }
10
+ exports.AgeValidationResultDto = AgeValidationResultDto;
11
+ class GenderValidationResultDto {
12
+ }
13
+ exports.GenderValidationResultDto = GenderValidationResultDto;
14
+ class RegistrationDatesValidationResultDto {
15
+ }
16
+ exports.RegistrationDatesValidationResultDto = RegistrationDatesValidationResultDto;
17
+ class ParticipantRegistrationValidationResultDto {
18
+ }
19
+ exports.ParticipantRegistrationValidationResultDto = ParticipantRegistrationValidationResultDto;
20
+ program_season_enums_1.ParticipantRegistrationValidationEnum.AGE_VALIDATION, program_season_enums_1.ParticipantRegistrationValidationEnum.GENDER_VALIDATION, program_season_enums_1.ParticipantRegistrationValidationEnum.REGISTRATION_DATES_VALIDATION;
7
21
  //# sourceMappingURL=program-season-participant.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"program-season-participant.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-season-participant.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,2BAA2B;CAMvC;AAND,kEAMC"}
1
+ {"version":3,"file":"program-season-participant.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-season-participant.dto.ts"],"names":[],"mappings":";;;AAKA,8EAA4F;AAE5F,MAAa,2BAA2B;CAMvC;AAND,kEAMC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,oCAAoC;CAIhD;AAJD,oFAIC;AAED,MAAa,0CAA0C;CAMtD;AAND,gGAMC;AALC,4DAAqC,CAAC,cAAc,EAEpD,4DAAqC,CAAC,iBAAiB,EAEvD,4DAAqC,CAAC,6BAA6B"}
@@ -1 +1 @@
1
- {"version":3,"file":"program-season.classes.js","sourceRoot":"","sources":["../../../../../src/types/programs-seasons/types/classes/program-season.classes.ts"],"names":[],"mappings":";;;AAGA,MAAa,gBAAgB;CAM5B;AAND,4CAMC"}
1
+ {"version":3,"file":"program-season.classes.js","sourceRoot":"","sources":["../../../../../src/types/programs-seasons/types/classes/program-season.classes.ts"],"names":[],"mappings":";;;AAOA,MAAa,gBAAgB;CAM5B;AAND,4CAMC"}
@@ -29,3 +29,8 @@ export declare enum SessionTabEnum {
29
29
  PARTICIPANTS_WAITLIST = "participants/waitlist",
30
30
  PRODUCTS = "products"
31
31
  }
32
+ export declare enum ParticipantRegistrationValidationEnum {
33
+ GENDER_VALIDATION = "gender_validation",
34
+ AGE_VALIDATION = "age_validation",
35
+ REGISTRATION_DATES_VALIDATION = "registration_dates_validation"
36
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SessionTabEnum = exports.SessionSettingEnum = exports.SegmentOccurrenceTypeEnum = exports.SegmentTypeEnum = exports.EventSortByFieldsEnum = exports.SegmentSortByFieldsEnum = void 0;
3
+ exports.ParticipantRegistrationValidationEnum = exports.SessionTabEnum = exports.SessionSettingEnum = exports.SegmentOccurrenceTypeEnum = exports.SegmentTypeEnum = exports.EventSortByFieldsEnum = exports.SegmentSortByFieldsEnum = void 0;
4
4
  var SegmentSortByFieldsEnum;
5
5
  (function (SegmentSortByFieldsEnum) {
6
6
  SegmentSortByFieldsEnum["NAME"] = "name";
@@ -38,4 +38,10 @@ var SessionTabEnum;
38
38
  SessionTabEnum["PARTICIPANTS_WAITLIST"] = "participants/waitlist";
39
39
  SessionTabEnum["PRODUCTS"] = "products";
40
40
  })(SessionTabEnum = exports.SessionTabEnum || (exports.SessionTabEnum = {}));
41
+ var ParticipantRegistrationValidationEnum;
42
+ (function (ParticipantRegistrationValidationEnum) {
43
+ ParticipantRegistrationValidationEnum["GENDER_VALIDATION"] = "gender_validation";
44
+ ParticipantRegistrationValidationEnum["AGE_VALIDATION"] = "age_validation";
45
+ ParticipantRegistrationValidationEnum["REGISTRATION_DATES_VALIDATION"] = "registration_dates_validation";
46
+ })(ParticipantRegistrationValidationEnum = exports.ParticipantRegistrationValidationEnum || (exports.ParticipantRegistrationValidationEnum = {}));
41
47
  //# sourceMappingURL=program-season.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"program-season.enums.js","sourceRoot":"","sources":["../../../../../src/types/programs-seasons/types/enums/program-season.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAClC,wCAAa,CAAA;IACb,6CAAkB,CAAA;AACnB,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,2CAAkB,CAAA;IAClB,2CAAkB,CAAA;AACnB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IAC1B,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,oCAAiB,CAAA;AAClB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAED,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACpC,0CAAa,CAAA;IACb,4CAAe,CAAA;AAChB,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC7B,2DAAqC,CAAA;IACrC,mEAA6C,CAAA;IAC7C,4DAAsC,CAAA;AACvC,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAED,IAAY,cAQX;AARD,WAAY,cAAc;IACzB,yCAAuB,CAAA;IACvB,+BAAa,CAAA;IACb,uCAAqB,CAAA;IACrB,uEAAqD,CAAA;IACrD,6DAA2C,CAAA;IAC3C,iEAA+C,CAAA;IAC/C,uCAAqB,CAAA;AACtB,CAAC,EARW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAQzB"}
1
+ {"version":3,"file":"program-season.enums.js","sourceRoot":"","sources":["../../../../../src/types/programs-seasons/types/enums/program-season.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAClC,wCAAa,CAAA;IACb,6CAAkB,CAAA;AACnB,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,2CAAkB,CAAA;IAClB,2CAAkB,CAAA;AACnB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IAC1B,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,oCAAiB,CAAA;AAClB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAED,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACpC,0CAAa,CAAA;IACb,4CAAe,CAAA;AAChB,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC7B,2DAAqC,CAAA;IACrC,mEAA6C,CAAA;IAC7C,4DAAsC,CAAA;AACvC,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAED,IAAY,cAQX;AARD,WAAY,cAAc;IACzB,yCAAuB,CAAA;IACvB,+BAAa,CAAA;IACb,uCAAqB,CAAA;IACrB,uEAAqD,CAAA;IACrD,6DAA2C,CAAA;IAC3C,iEAA+C,CAAA;IAC/C,uCAAqB,CAAA;AACtB,CAAC,EARW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAQzB;AAED,IAAY,qCAIX;AAJD,WAAY,qCAAqC;IAChD,gFAAuC,CAAA;IACvC,0EAAiC,CAAA;IACjC,wGAA+D,CAAA;AAChE,CAAC,EAJW,qCAAqC,GAArC,6CAAqC,KAArC,6CAAqC,QAIhD"}
@@ -1,7 +1,12 @@
1
1
  import { TimeUnit } from '@bondsports/date-time';
2
+ import { SimpleEventDto } from '../../dto/events.dto';
3
+ import { IdDto, PaginationQuery, SimpleResourceDto } from '../../dto/general.dto';
4
+ import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
5
+ import { ByOrganizationIdAndResourceId } from '../../resources/dto/resource.dto';
6
+ import { OrderByEnum, ResourceNameTypeEnum } from '../../services/enums.service';
7
+ import { UserWithContactInfoDto } from '../../user/dto/user.dto';
2
8
  import { PunchPassOrderByEnum, PunchPassSearchByEnum, PunchPassTypeEnum } from '../types/enums';
3
- import { PaginationQuery } from '../../dto/general.dto';
4
- import { ResourceNameTypeEnum } from '../../services/enums.service';
9
+ import { IEligiblePunchPassUserResult, IGetEligiblePunchPassUsersOptions, IGetUserPunchPassesOptions } from '../types/interfaces';
5
10
  export declare class BasePunchPassFieldsDto {
6
11
  type: PunchPassTypeEnum;
7
12
  durationWindow?: number;
@@ -19,10 +24,11 @@ export declare class PunchPassDto extends BasePunchPassFieldsDto {
19
24
  productId: number;
20
25
  holders?: number[];
21
26
  }
22
- export declare class GetUserPassesOptionsDto extends PaginationQuery {
27
+ export declare class GetUserPunchPassesOptionsDto extends PaginationQuery implements IGetUserPunchPassesOptions {
23
28
  searchText?: string;
24
29
  searchBy?: PunchPassSearchByEnum;
25
30
  orderBy?: PunchPassOrderByEnum;
31
+ order?: OrderByEnum;
26
32
  startDate?: Date;
27
33
  endDate?: Date;
28
34
  includeFinancialInfo?: boolean;
@@ -30,4 +36,57 @@ export declare class GetUserPassesOptionsDto extends PaginationQuery {
30
36
  resourcesIds?: number[];
31
37
  resourceType?: ResourceNameTypeEnum;
32
38
  includeCancelled?: boolean;
39
+ includeExpired?: boolean;
40
+ includeRedeemedEvents?: boolean;
41
+ includeOrganization?: boolean;
42
+ }
43
+ export declare class UserPunchPassFinancialInfoDto {
44
+ price: number;
45
+ invoiceId: number;
46
+ paymentId: number;
47
+ paymentStatus: PaymentStatusEnum;
48
+ isRefunded: boolean;
49
+ isVoided: boolean;
50
+ purchasedOn: Date;
51
+ }
52
+ export declare class UserPunchPassDto extends IdDto {
53
+ organizationId: number;
54
+ userId: number;
55
+ punchPassId: number;
56
+ lineItemId: number;
57
+ productId: number;
58
+ productUserId: number;
59
+ startDate?: Date;
60
+ endDate?: Date;
61
+ purchasedAt: Date;
62
+ isCancelled?: boolean;
63
+ passesLeft: number;
64
+ totalPasses: number;
65
+ availablePunches?: number;
66
+ durationWindow?: number;
67
+ durationWindowUnit?: TimeUnit;
68
+ durationQuantity?: number;
69
+ financialInfo?: UserPunchPassFinancialInfoDto;
70
+ product?: SimpleResourceDto;
71
+ resources?: SimpleResourceDto[];
72
+ events: SimpleEventDto[];
73
+ organization?: SimpleResourceDto;
74
+ }
75
+ export declare class ByOrganizationIdAndResourceIdAndTypeDto extends ByOrganizationIdAndResourceId {
76
+ resourceType: ResourceNameTypeEnum;
77
+ }
78
+ export declare class ByResourceIdAndTypeDto {
79
+ resourceType: ResourceNameTypeEnum;
80
+ resourceId: number;
81
+ }
82
+ export declare class GetResourceEligiblePunchPassUsersDto extends PaginationQuery implements IGetEligiblePunchPassUsersOptions {
83
+ excludeExisting?: boolean;
84
+ includeExpired?: boolean;
85
+ includeCancelled?: boolean;
86
+ search?: string;
87
+ usersIds?: number[];
88
+ }
89
+ export declare class PunchPassUserEligibleDto extends UserWithContactInfoDto implements IEligiblePunchPassUserResult {
90
+ isCancelled?: boolean;
91
+ isExpired?: boolean;
33
92
  }
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetUserPassesOptionsDto = exports.PunchPassDto = exports.CreatePunchPassDetailsDto = exports.BasePunchPassFieldsDto = void 0;
3
+ exports.PunchPassUserEligibleDto = exports.GetResourceEligiblePunchPassUsersDto = exports.ByResourceIdAndTypeDto = exports.ByOrganizationIdAndResourceIdAndTypeDto = exports.UserPunchPassDto = exports.UserPunchPassFinancialInfoDto = exports.GetUserPunchPassesOptionsDto = exports.PunchPassDto = exports.CreatePunchPassDetailsDto = exports.BasePunchPassFieldsDto = void 0;
4
4
  const general_dto_1 = require("../../dto/general.dto");
5
+ const resource_dto_1 = require("../../resources/dto/resource.dto");
6
+ const user_dto_1 = require("../../user/dto/user.dto");
5
7
  class BasePunchPassFieldsDto {
6
8
  }
7
9
  exports.BasePunchPassFieldsDto = BasePunchPassFieldsDto;
@@ -11,7 +13,25 @@ exports.CreatePunchPassDetailsDto = CreatePunchPassDetailsDto;
11
13
  class PunchPassDto extends BasePunchPassFieldsDto {
12
14
  }
13
15
  exports.PunchPassDto = PunchPassDto;
14
- class GetUserPassesOptionsDto extends general_dto_1.PaginationQuery {
16
+ class GetUserPunchPassesOptionsDto extends general_dto_1.PaginationQuery {
15
17
  }
16
- exports.GetUserPassesOptionsDto = GetUserPassesOptionsDto;
18
+ exports.GetUserPunchPassesOptionsDto = GetUserPunchPassesOptionsDto;
19
+ class UserPunchPassFinancialInfoDto {
20
+ }
21
+ exports.UserPunchPassFinancialInfoDto = UserPunchPassFinancialInfoDto;
22
+ class UserPunchPassDto extends general_dto_1.IdDto {
23
+ }
24
+ exports.UserPunchPassDto = UserPunchPassDto;
25
+ class ByOrganizationIdAndResourceIdAndTypeDto extends resource_dto_1.ByOrganizationIdAndResourceId {
26
+ }
27
+ exports.ByOrganizationIdAndResourceIdAndTypeDto = ByOrganizationIdAndResourceIdAndTypeDto;
28
+ class ByResourceIdAndTypeDto {
29
+ }
30
+ exports.ByResourceIdAndTypeDto = ByResourceIdAndTypeDto;
31
+ class GetResourceEligiblePunchPassUsersDto extends general_dto_1.PaginationQuery {
32
+ }
33
+ exports.GetResourceEligiblePunchPassUsersDto = GetResourceEligiblePunchPassUsersDto;
34
+ class PunchPassUserEligibleDto extends user_dto_1.UserWithContactInfoDto {
35
+ }
36
+ exports.PunchPassUserEligibleDto = PunchPassUserEligibleDto;
17
37
  //# sourceMappingURL=punch-pass.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"punch-pass.dto.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/dto/punch-pass.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AAGxD,MAAa,sBAAsB;CAclC;AAdD,wDAcC;AAED,MAAa,yBAA0B,SAAQ,sBAAsB;CAAG;AAAxE,8DAAwE;AAExE,MAAa,YAAa,SAAQ,sBAAsB;CAQvD;AARD,oCAQC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CAoB3D;AApBD,0DAoBC"}
1
+ {"version":3,"file":"punch-pass.dto.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/dto/punch-pass.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAkF;AAGlF,mEAAiF;AAEjF,sDAAiE;AASjE,MAAa,sBAAsB;CAclC;AAdD,wDAcC;AAED,MAAa,yBAA0B,SAAQ,sBAAsB;CAAG;AAAxE,8DAAwE;AAExE,MAAa,YAAa,SAAQ,sBAAsB;CAQvD;AARD,oCAQC;AAED,MAAa,4BAA6B,SAAQ,6BAAe;CA4BhE;AA5BD,oEA4BC;AAED,MAAa,6BAA6B;CAczC;AAdD,sEAcC;AAED,MAAa,gBAAiB,SAAQ,mBAAK;CA0C1C;AA1CD,4CA0CC;AAED,MAAa,uCAAwC,SAAQ,4CAA6B;CAEzF;AAFD,0FAEC;AAED,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,oCAAqC,SAAQ,6BAAe;CAUxE;AAVD,oFAUC;AAED,MAAa,wBAAyB,SAAQ,iCAAsB;CAInE;AAJD,4DAIC"}
@@ -0,0 +1,2 @@
1
+ import { ResourceNameTypeEnum } from '../../services/enums.service';
2
+ export declare const VALID_PUNCH_PASS_RESOURCE_TYPES: ResourceNameTypeEnum[];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VALID_PUNCH_PASS_RESOURCE_TYPES = void 0;
4
+ const enums_service_1 = require("../../services/enums.service");
5
+ exports.VALID_PUNCH_PASS_RESOURCE_TYPES = [
6
+ enums_service_1.ResourceNameTypeEnum.PROGRAM_TYPE,
7
+ enums_service_1.ResourceNameTypeEnum.PROGRAM,
8
+ enums_service_1.ResourceNameTypeEnum.PROGRAM_SEASON,
9
+ enums_service_1.ResourceNameTypeEnum.EVENT,
10
+ enums_service_1.ResourceNameTypeEnum.SPACE,
11
+ enums_service_1.ResourceNameTypeEnum.INSTRUCTOR,
12
+ ];
13
+ //# sourceMappingURL=consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/types/consts.ts"],"names":[],"mappings":";;;AAAA,gEAAoE;AAEvD,QAAA,+BAA+B,GAA2B;IACtE,oCAAoB,CAAC,YAAY;IACjC,oCAAoB,CAAC,OAAO;IAC5B,oCAAoB,CAAC,cAAc;IACnC,oCAAoB,CAAC,KAAK;IAC1B,oCAAoB,CAAC,KAAK;IAC1B,oCAAoB,CAAC,UAAU;CAC/B,CAAC"}
@@ -1,8 +1,13 @@
1
1
  export declare enum PunchPassSearchByEnum {
2
- USER_NAME = "user_name"
2
+ USER_NAME = "user_name",
3
+ PRODUCT_NAME = "product_name"
3
4
  }
4
5
  export declare enum PunchPassOrderByEnum {
5
- START_DATE = "start_date"
6
+ START_DATE = "start_date",
7
+ PURCHASED_DATE = "purchased_date",
8
+ EXPIRY_DATE = "expiry_date",
9
+ PRODUCT_NAME = "product_name",
10
+ PUNCHES_COUNT = "punches_count"
6
11
  }
7
12
  export declare enum PunchPassFilterByEnum {
8
13
  DATE_RANGE = "date_range"
@@ -5,11 +5,16 @@ exports.PunchPassTypeEnum = exports.PunchPassFilterByEnum = exports.PunchPassOrd
5
5
  var PunchPassSearchByEnum;
6
6
  (function (PunchPassSearchByEnum) {
7
7
  PunchPassSearchByEnum["USER_NAME"] = "user_name";
8
+ PunchPassSearchByEnum["PRODUCT_NAME"] = "product_name";
8
9
  })(PunchPassSearchByEnum = exports.PunchPassSearchByEnum || (exports.PunchPassSearchByEnum = {}));
9
10
  // TODO: Add the options when ordering functionality is added
10
11
  var PunchPassOrderByEnum;
11
12
  (function (PunchPassOrderByEnum) {
12
13
  PunchPassOrderByEnum["START_DATE"] = "start_date";
14
+ PunchPassOrderByEnum["PURCHASED_DATE"] = "purchased_date";
15
+ PunchPassOrderByEnum["EXPIRY_DATE"] = "expiry_date";
16
+ PunchPassOrderByEnum["PRODUCT_NAME"] = "product_name";
17
+ PunchPassOrderByEnum["PUNCHES_COUNT"] = "punches_count";
13
18
  })(PunchPassOrderByEnum = exports.PunchPassOrderByEnum || (exports.PunchPassOrderByEnum = {}));
14
19
  // TODO: Add the options when filtering functionality is added
15
20
  var PunchPassFilterByEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/types/enums.ts"],"names":[],"mappings":";;;AAAA,8DAA8D;AAC9D,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAChC,gDAAuB,CAAA;AACxB,CAAC,EAFW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAEhC;AAED,6DAA6D;AAC7D,IAAY,oBAEX;AAFD,WAAY,oBAAoB;IAC/B,iDAAyB,CAAA;AAC1B,CAAC,EAFW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAE/B;AAED,8DAA8D;AAC9D,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAChC,kDAAyB,CAAA;AAC1B,CAAC,EAFW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAEhC;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC5B,oCAAe,CAAA;IACf,kDAA6B,CAAA;AAC9B,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/types/enums.ts"],"names":[],"mappings":";;;AAAA,8DAA8D;AAC9D,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,gDAAuB,CAAA;IACvB,sDAA6B,CAAA;AAC9B,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,6DAA6D;AAC7D,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC/B,iDAAyB,CAAA;IACzB,yDAAiC,CAAA;IACjC,mDAA2B,CAAA;IAC3B,qDAA6B,CAAA;IAC7B,uDAA+B,CAAA;AAChC,CAAC,EANW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAM/B;AAED,8DAA8D;AAC9D,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAChC,kDAAyB,CAAA;AAC1B,CAAC,EAFW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAEhC;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC5B,oCAAe,CAAA;IACf,kDAA6B,CAAA;AAC9B,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
@@ -1,3 +1,4 @@
1
+ export * from './consts';
1
2
  export * from './enums';
2
3
  export * from './interfaces';
3
4
  export * from './types';
@@ -14,6 +14,7 @@ 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("./consts"), exports);
17
18
  __exportStar(require("./enums"), exports);
18
19
  __exportStar(require("./interfaces"), exports);
19
20
  __exportStar(require("./types"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,+CAA6B;AAC7B,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,0CAAwB"}
@@ -1,3 +1,7 @@
1
+ import { GenderEnum, OrderByEnum, ResourceNameTypeEnum } from '../../services/enums.service';
2
+ import { IId } from '../../services/interfaces.service';
3
+ import { IPagination } from '../../util/models/interfaces/general.interfaces';
4
+ import { PunchPassOrderByEnum, PunchPassSearchByEnum } from './enums';
1
5
  export interface IPunchPassHoldersIds {
2
6
  punchPassId: number;
3
7
  usersIds: number[];
@@ -6,3 +10,34 @@ export interface IRedemptionEvent {
6
10
  eventId: number;
7
11
  quantity?: number;
8
12
  }
13
+ export interface IGetUserPunchPassesOptions extends IPagination {
14
+ endDate?: Date;
15
+ includeCancelled?: boolean;
16
+ includeExpired?: boolean;
17
+ includeRedeemedEvents?: boolean;
18
+ order?: OrderByEnum;
19
+ orderBy?: PunchPassOrderByEnum;
20
+ productsIds?: number[];
21
+ resourcesIds?: number[];
22
+ resourceType?: ResourceNameTypeEnum;
23
+ searchBy?: PunchPassSearchByEnum;
24
+ searchText?: string;
25
+ startDate?: Date;
26
+ }
27
+ export interface IGetEligiblePunchPassUsersOptions extends IPagination {
28
+ excludeExisting?: boolean;
29
+ includeCancelled?: boolean;
30
+ includeExpired?: boolean;
31
+ search?: string;
32
+ usersIds?: number[];
33
+ }
34
+ export interface IEligiblePunchPassUserResult extends IId {
35
+ birthDate?: Date;
36
+ email?: string;
37
+ firstName?: string;
38
+ gender?: GenderEnum;
39
+ isCancelled?: boolean;
40
+ isExpired?: boolean;
41
+ lastName?: string;
42
+ phoneNumber?: string;
43
+ }
@@ -35,3 +35,6 @@ export declare class GetGroupsOptionsDto extends PaginatedSearchDto {
35
35
  export declare class ByFolderIdsDto extends GetGroupsOptionsDto {
36
36
  folderIds: number[];
37
37
  }
38
+ export declare class UsersIdsQueryDto {
39
+ userIds: number[];
40
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ByFolderIdsDto = exports.GetGroupsOptionsDto = exports.BySessionIdAndUserIdDto = exports.BySessionIdDto = exports.FindSessionParticipantsOptionsDto = exports.SessionParticipantsOptionsDto = void 0;
3
+ exports.UsersIdsQueryDto = exports.ByFolderIdsDto = exports.GetGroupsOptionsDto = exports.BySessionIdAndUserIdDto = exports.BySessionIdDto = exports.FindSessionParticipantsOptionsDto = exports.SessionParticipantsOptionsDto = void 0;
4
4
  const general_dto_1 = require("../../dto/general.dto");
5
5
  const organization_dto_1 = require("../../organization/dto/organization.dto");
6
6
  class SessionParticipantsOptionsDto {
@@ -21,4 +21,7 @@ exports.GetGroupsOptionsDto = GetGroupsOptionsDto;
21
21
  class ByFolderIdsDto extends GetGroupsOptionsDto {
22
22
  }
23
23
  exports.ByFolderIdsDto = ByFolderIdsDto;
24
+ class UsersIdsQueryDto {
25
+ }
26
+ exports.UsersIdsQueryDto = UsersIdsQueryDto;
24
27
  //# sourceMappingURL=get.session.participant.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.session.participant.dto.js","sourceRoot":"","sources":["../../../../src/types/session-participants/dto/get.session.participant.dto.ts"],"names":[],"mappings":";;;AACA,uDAAyG;AAEzG,8EAA8E;AAM9E,MAAa,6BAA6B;CAgBzC;AAhBD,sEAgBC;AAED,MAAa,iCAAkC,SAAQ,6BAA6B;CAOnF;AAPD,8EAOC;AAED,MAAa,cAAe,SAAQ,sCAAmB;CAEtD;AAFD,wCAEC;AAED,MAAa,uBAAwB,SAAQ,cAAc;CAE1D;AAFD,0DAEC;AAED,MAAa,mBAAoB,SAAQ,gCAAkB;CAU1D;AAVD,kDAUC;AAED,MAAa,cAAe,SAAQ,mBAAmB;CAEtD;AAFD,wCAEC"}
1
+ {"version":3,"file":"get.session.participant.dto.js","sourceRoot":"","sources":["../../../../src/types/session-participants/dto/get.session.participant.dto.ts"],"names":[],"mappings":";;;AACA,uDAAyG;AAEzG,8EAA8E;AAM9E,MAAa,6BAA6B;CAgBzC;AAhBD,sEAgBC;AAED,MAAa,iCAAkC,SAAQ,6BAA6B;CAOnF;AAPD,8EAOC;AAED,MAAa,cAAe,SAAQ,sCAAmB;CAEtD;AAFD,wCAEC;AAED,MAAa,uBAAwB,SAAQ,cAAc;CAE1D;AAFD,0DAEC;AAED,MAAa,mBAAoB,SAAQ,gCAAkB;CAU1D;AAVD,kDAUC;AAED,MAAa,cAAe,SAAQ,mBAAmB;CAEtD;AAFD,wCAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC"}
@@ -1,5 +1,6 @@
1
1
  import { AddressDto } from '../../address/dto/address.dto';
2
2
  import { IdDto } from '../../dto/general.dto';
3
+ import { GenderEnum } from '../../services/enums.service';
3
4
  export declare class UserIdDto {
4
5
  userId: number;
5
6
  }
@@ -19,6 +20,8 @@ export declare class SimpleUserDto extends IdDto {
19
20
  firstName: string;
20
21
  lastName: string;
21
22
  email?: string;
23
+ gender?: GenderEnum;
24
+ birthDate?: Date;
22
25
  }
23
26
  export declare class UserWithContactInfoDto extends SimpleUserDto {
24
27
  phoneNumber: string;
@@ -1 +1 @@
1
- {"version":3,"file":"user.dto.js","sourceRoot":"","sources":["../../../../src/types/user/dto/user.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA8C;AAE9C,MAAa,SAAS;CAErB;AAFD,8BAEC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,wBAAyB,SAAQ,wBAAwB;CAErE;AAFD,4DAEC;AAED,MAAa,wBAAyB,SAAQ,SAAS;CAEtD;AAFD,4DAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,aAAc,SAAQ,mBAAK;CAMvC;AAND,sCAMC;AAED,MAAa,sBAAuB,SAAQ,aAAa;CAMxD;AAND,wDAMC;AAED,MAAa,iBAAkB,SAAQ,sBAAsB;CAE5D;AAFD,8CAEC"}
1
+ {"version":3,"file":"user.dto.js","sourceRoot":"","sources":["../../../../src/types/user/dto/user.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA8C;AAG9C,MAAa,SAAS;CAErB;AAFD,8BAEC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,wBAAyB,SAAQ,wBAAwB;CAErE;AAFD,4DAEC;AAED,MAAa,wBAAyB,SAAQ,SAAS;CAEtD;AAFD,4DAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,aAAc,SAAQ,mBAAK;CAUvC;AAVD,sCAUC;AAED,MAAa,sBAAuB,SAAQ,aAAa;CAMxD;AAND,wDAMC;AAED,MAAa,iBAAkB,SAAQ,sBAAsB;CAE5D;AAFD,8CAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.3.15-team-c-7",
3
+ "version": "2.3.15-team-c-9",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {