@bondsports/types 2.3.51-a-0 → 2.3.51-a-1

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.
@@ -22,6 +22,9 @@ export declare class GetPaginatedSegmentsQueryDto extends GetPaginatedSessionQue
22
22
  export declare class GetSegmentsFiltersDto extends GetSegmentsFiltersPublicDto implements ISegmentsFilters {
23
23
  expand?: SegmentExpandEnum[];
24
24
  }
25
+ export declare class SegmentExpandDto {
26
+ expand?: SegmentExpandEnum[];
27
+ }
25
28
  export declare class SeasonWaitlistSettingsDto implements ISeasonWaitlistSettings {
26
29
  enabled: boolean;
27
30
  }
@@ -34,4 +37,5 @@ export declare class SeasonSettingsDto {
34
37
  export declare class SessionSegmentDto extends SessionSegmentPublicDto {
35
38
  settings?: SeasonSettingsDto;
36
39
  waitlistEntriesCount?: number;
40
+ isOverridden?: boolean;
37
41
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SessionSegmentDto = exports.SeasonSettingsDto = exports.SeasonWaitlistSettingsDto = exports.GetSegmentsFiltersDto = exports.GetPaginatedSegmentsQueryDto = exports.SegmentsBySessionQueryDto = exports.BySegmentDto = void 0;
3
+ exports.SessionSegmentDto = exports.SeasonSettingsDto = exports.SeasonWaitlistSettingsDto = exports.SegmentExpandDto = exports.GetSegmentsFiltersDto = exports.GetPaginatedSegmentsQueryDto = exports.SegmentsBySessionQueryDto = exports.BySegmentDto = void 0;
4
4
  const segment_public_dto_1 = require("../../programs/dto/segment-public.dto");
5
5
  const program_season_enums_1 = require("../types/enums/program-season.enums");
6
6
  const program_session_dto_1 = require("./program-session.dto");
@@ -16,6 +16,9 @@ exports.GetPaginatedSegmentsQueryDto = GetPaginatedSegmentsQueryDto;
16
16
  class GetSegmentsFiltersDto extends segment_public_dto_1.GetSegmentsFiltersPublicDto {
17
17
  }
18
18
  exports.GetSegmentsFiltersDto = GetSegmentsFiltersDto;
19
+ class SegmentExpandDto {
20
+ }
21
+ exports.SegmentExpandDto = SegmentExpandDto;
19
22
  class SeasonWaitlistSettingsDto {
20
23
  }
21
24
  exports.SeasonWaitlistSettingsDto = SeasonWaitlistSettingsDto;
@@ -1 +1 @@
1
- {"version":3,"file":"program-segment.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-segment.dto.ts"],"names":[],"mappings":";;;AAEA,8EAA6G;AAI7G,8EAAqH;AAKrH,+DAAkF;AAElF,MAAa,YAAa,SAAQ,kCAAY;CAE7C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,4BAA6B,SAAQ,iDAA0C;CAI3F;AAJD,oEAIC;AAED,MAAa,qBAAsB,SAAQ,gDAA2B;CAErE;AAFD,sDAEC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC;AAED,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AAPC,yCAAkB,CAAC,uBAAuB,EAE1C,yCAAkB,CAAC,iBAAiB,EAEpC,yCAAkB,CAAC,oBAAoB,EAEvC,yCAAkB,CAAC,gBAAgB;AAGrC,MAAa,iBAAkB,SAAQ,4CAAuB;CAI7D;AAJD,8CAIC"}
1
+ {"version":3,"file":"program-segment.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-segment.dto.ts"],"names":[],"mappings":";;;AAEA,8EAA6G;AAI7G,8EAAqH;AAKrH,+DAAkF;AAElF,MAAa,YAAa,SAAQ,kCAAY;CAE7C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,4BAA6B,SAAQ,iDAA0C;CAI3F;AAJD,oEAIC;AAED,MAAa,qBAAsB,SAAQ,gDAA2B;CAErE;AAFD,sDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC;AAED,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AAPC,yCAAkB,CAAC,uBAAuB,EAE1C,yCAAkB,CAAC,iBAAiB,EAEpC,yCAAkB,CAAC,oBAAoB,EAEvC,yCAAkB,CAAC,gBAAgB;AAGrC,MAAa,iBAAkB,SAAQ,4CAAuB;CAM7D;AAND,8CAMC"}
@@ -107,6 +107,7 @@ export declare class ProgramSeason extends OrganizationConnectionBaseEntity {
107
107
  spotsLeft?: number;
108
108
  isWaitlistEnabled?: boolean;
109
109
  waitlistEntriesCount?: number;
110
+ isOverridden?: boolean;
110
111
  attendeesCounts?: IUserCount;
111
112
  relatedAttendeesIds?: number[];
112
113
  productsNumber?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"ProgramSeason.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/entities/ProgramSeason.ts"],"names":[],"mappings":";;;AAqBA,oGAAiG;AAyBjG,8EAAyE;AAGzE,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,cAAc;CAQ1B;AARD,wCAQC;AAPC,yCAAkB,CAAC,uBAAuB,EAE1C,yCAAkB,CAAC,iBAAiB,EAEpC,yCAAkB,CAAC,oBAAoB,EAEvC,yCAAkB,CAAC,gBAAgB;AAGrC,MAAa,aAAc,SAAQ,mEAAgC;CA4JlE;AA5JD,sCA4JC"}
1
+ {"version":3,"file":"ProgramSeason.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/entities/ProgramSeason.ts"],"names":[],"mappings":";;;AAoBA,oGAAiG;AAwBjG,8EAAyE;AAGzE,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,cAAc;CAQ1B;AARD,wCAQC;AAPC,yCAAkB,CAAC,uBAAuB,EAE1C,yCAAkB,CAAC,iBAAiB,EAEpC,yCAAkB,CAAC,oBAAoB,EAEvC,yCAAkB,CAAC,gBAAgB;AAGrC,MAAa,aAAc,SAAQ,mEAAgC;CA8JlE;AA9JD,sCA8JC"}
@@ -0,0 +1 @@
1
+ export * from './program-season.consts';
@@ -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("./program-season.consts"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/programs-seasons/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
@@ -0,0 +1 @@
1
+ export declare const OVERRIDE_NO_MAX_PARTICIPANTS = -1;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OVERRIDE_NO_MAX_PARTICIPANTS = void 0;
4
+ exports.OVERRIDE_NO_MAX_PARTICIPANTS = -1;
5
+ //# sourceMappingURL=program-season.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"program-season.consts.js","sourceRoot":"","sources":["../../../../../src/types/programs-seasons/types/consts/program-season.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,4BAA4B,GAAG,CAAC,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './classes';
2
+ export * from './consts';
2
3
  export * from './enums';
3
4
  export * from './interfaces';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./classes"), exports);
18
+ __exportStar(require("./consts"), exports);
18
19
  __exportStar(require("./enums"), exports);
19
20
  __exportStar(require("./interfaces"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,0CAAwB;AACxB,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
@@ -1,3 +1,4 @@
1
+ import { IAttendeesNumber } from '../../../purchase/types/interfaces/purchase.interfaces';
1
2
  import { IBasicSpaceAndSlotCreator } from '../../../services/interfaces.service';
2
3
  import { ProgramSeason } from '../../entities/ProgramSeason';
3
4
  export type ProgramSeasonsSegmentsFilter = {
@@ -12,6 +13,6 @@ export type ProgramSeasonsSegmentsFilter = {
12
13
  export interface ISessionSegmentsRelatedInfo {
13
14
  resourcesBySegmentId: Record<number, IBasicSpaceAndSlotCreator[]>;
14
15
  populatedSegments: ProgramSeason[];
15
- segmentsAttendeesMap: Map<number, number>;
16
+ segmentsAttendeesMap: Map<number, IAttendeesNumber>;
16
17
  waitlistCountsMap: Map<number, number>;
17
18
  }
@@ -68,10 +68,9 @@ export interface IGetSessionOptions {
68
68
  fullFetch?: boolean;
69
69
  includeResources?: boolean;
70
70
  }
71
- export interface IAttendeesNumbers {
71
+ export interface IAttendeesAvailability {
72
72
  isExpired: boolean;
73
- maxAttendees: number;
74
- minAttendees: number;
73
+ availabilityValues: boolean[];
75
74
  }
76
75
  export interface ISeasonEmailRelatedData {
77
76
  customer: Customer;
@@ -15,15 +15,21 @@ import { UserPunchPass } from '../../../punch-pass/entities';
15
15
  import { CurrencyEnum, GenderEnum, LineItemsStatusEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
16
16
  import { User } from '../../../user/entities/User';
17
17
  import { PurchasePaymentDto, PurchaseResourceDto } from '../../dto/purchase.dto';
18
+ export interface IAttendeesNumber {
19
+ attendeesNumber: number;
20
+ maxParticipants?: number;
21
+ }
18
22
  export interface IUserCount {
19
23
  female: number;
20
24
  male: number;
21
25
  other: number;
26
+ maxParticipants?: number;
22
27
  }
23
28
  export interface IGenderCount {
24
29
  resourceId: number;
25
30
  count: number;
26
31
  gender: GenderEnum;
32
+ maxParticipants?: number;
27
33
  }
28
34
  export interface ILineItem {
29
35
  id?: number;
package/package.json CHANGED
@@ -1,58 +1,58 @@
1
- {
2
- "name": "@bondsports/types",
3
- "version": "2.3.51-a-0",
4
- "description": "backend types module for Bond-Sports",
5
- ",publishConfig": {
6
- "access": "public",
7
- "registry": "https://registry.npmjs.org/"
8
- },
9
- "main": "./dist/index.js",
10
- "scripts": {
11
- "format": "prettier --check .",
12
- "format:fix": "prettier --write .",
13
- "prelint:fix": "npm run format:fix",
14
- "prelint": "npm run format",
15
- "lint": "eslint .",
16
- "lint:fix": "eslint --fix .",
17
- "release": "standard-version",
18
- "import:types": "rimraf src/types && node ./import.js",
19
- "prebuild": "npm run clean",
20
- "build": "tsc --project tsconfig.build.json",
21
- "start": "npm run build && cd dist && node ./index.js",
22
- "clean": "rimraf dist",
23
- "prepublish": "npm run build",
24
- "version": "echo $npm_package_version"
25
- },
26
- "repository": {
27
- "type": "git",
28
- "url": "git+https://github.com/Bond-Sports/bondUtils/tree/main/packages/types.git"
29
- },
30
- "author": "Bond-Sports",
31
- "license": "ISC",
32
- "bugs": {
33
- "url": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types/issues"
34
- },
35
- "files": [
36
- "dist/**/*"
37
- ],
38
- "homepage": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types#readme",
39
- "dependencies": {
40
- "@bondsports/date-time": "^2.4.48",
41
- "@bondsports/notifications-sdk": "latest",
42
- "moment": "^2.29.1",
43
- "rimraf": "^3.0.2",
44
- "stripe": "9.1.0",
45
- "typeorm": "^0.2.32"
46
- },
47
- "devDependencies": {
48
- "@bondsports/eslint-config": "^1.0.2",
49
- "@bondsports/prettier-config": "0.0.1",
50
- "@types/node": "^13.9.1",
51
- "eslint": "^8.16.0",
52
- "prettier": "^2.6.2",
53
- "standard-version": "^9.5.0",
54
- "ts-node": "^10.8.0",
55
- "typescript": "^4.4.3"
56
- },
57
- "gitHead": "178ca9dc5ea5e94b44d765b6663e7a4ad0d19d98"
58
- }
1
+ {
2
+ "name": "@bondsports/types",
3
+ "version": "2.3.51-a-1",
4
+ "description": "backend types module for Bond-Sports",
5
+ ",publishConfig": {
6
+ "access": "public",
7
+ "registry": "https://registry.npmjs.org/"
8
+ },
9
+ "main": "./dist/index.js",
10
+ "scripts": {
11
+ "format": "prettier --check .",
12
+ "format:fix": "prettier --write .",
13
+ "prelint:fix": "npm run format:fix",
14
+ "prelint": "npm run format",
15
+ "lint": "eslint .",
16
+ "lint:fix": "eslint --fix .",
17
+ "release": "standard-version",
18
+ "import:types": "rimraf src/types && node ./import.js",
19
+ "prebuild": "npm run clean",
20
+ "build": "tsc --project tsconfig.build.json",
21
+ "start": "npm run build && cd dist && node ./index.js",
22
+ "clean": "rimraf dist",
23
+ "prepublish": "npm run build",
24
+ "version": "echo $npm_package_version"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/Bond-Sports/bondUtils/tree/main/packages/types.git"
29
+ },
30
+ "author": "Bond-Sports",
31
+ "license": "ISC",
32
+ "bugs": {
33
+ "url": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types/issues"
34
+ },
35
+ "files": [
36
+ "dist/**/*"
37
+ ],
38
+ "homepage": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types#readme",
39
+ "dependencies": {
40
+ "@bondsports/date-time": "^2.4.48",
41
+ "@bondsports/notifications-sdk": "latest",
42
+ "moment": "^2.29.1",
43
+ "rimraf": "^3.0.2",
44
+ "stripe": "9.1.0",
45
+ "typeorm": "^0.2.32"
46
+ },
47
+ "devDependencies": {
48
+ "@bondsports/eslint-config": "^1.0.2",
49
+ "@bondsports/prettier-config": "0.0.1",
50
+ "@types/node": "^13.9.1",
51
+ "eslint": "^8.16.0",
52
+ "prettier": "^2.6.2",
53
+ "standard-version": "^9.5.0",
54
+ "ts-node": "^10.8.0",
55
+ "typescript": "^4.4.3"
56
+ },
57
+ "gitHead": "ef4e27efccc026c4fa8b10945f7045b581a7962d"
58
+ }