@bondsports/types 2.4.28 → 2.4.29-squad-c-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.
Files changed (114) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/entity/Events.d.ts +2 -0
  3. package/dist/types/entity/Events.js.map +1 -1
  4. package/dist/types/filters/dto/filters.dto.d.ts +4 -1
  5. package/dist/types/filters/dto/filters.dto.js.map +1 -1
  6. package/dist/types/filters/entities/Filter.d.ts +2 -0
  7. package/dist/types/filters/entities/Filter.js.map +1 -1
  8. package/dist/types/filters/types/consts.d.ts +2 -0
  9. package/dist/types/filters/types/consts.js +2 -0
  10. package/dist/types/filters/types/consts.js.map +1 -1
  11. package/dist/types/filters/types/enums/filter.enums.d.ts +2 -1
  12. package/dist/types/filters/types/enums/filter.enums.js +1 -0
  13. package/dist/types/filters/types/enums/filter.enums.js.map +1 -1
  14. package/dist/types/filters/types/interfaces/filters.interfaces.d.ts +1 -0
  15. package/dist/types/folders/types/index.d.ts +1 -0
  16. package/dist/types/folders/types/index.js +3 -0
  17. package/dist/types/folders/types/index.js.map +1 -1
  18. package/dist/types/index.d.ts +1 -0
  19. package/dist/types/index.js +1 -0
  20. package/dist/types/index.js.map +1 -1
  21. package/dist/types/league/index.d.ts +1 -0
  22. package/dist/types/league/index.js +1 -0
  23. package/dist/types/league/index.js.map +1 -1
  24. package/dist/types/league/types/index.d.ts +23 -0
  25. package/dist/types/league/types/index.js +31 -0
  26. package/dist/types/league/types/index.js.map +1 -0
  27. package/dist/types/league-standings/types/standings.enums.d.ts +1 -0
  28. package/dist/types/league-standings/types/standings.enums.js +1 -0
  29. package/dist/types/league-standings/types/standings.enums.js.map +1 -1
  30. package/dist/types/leagues-scheduler/dto/leagues-scheduler-metadata.dto.d.ts +4 -3
  31. package/dist/types/leagues-scheduler/dto/leagues-scheduler-metadata.dto.js +1 -1
  32. package/dist/types/leagues-scheduler/dto/leagues-scheduler-metadata.dto.js.map +1 -1
  33. package/dist/types/leagues-scheduler/types/interfaces.d.ts +0 -10
  34. package/dist/types/online-booking/index.d.ts +1 -0
  35. package/dist/types/online-booking/index.js +18 -0
  36. package/dist/types/online-booking/index.js.map +1 -0
  37. package/dist/types/online-booking/types/classes/index.d.ts +1 -0
  38. package/dist/types/online-booking/types/classes/index.js +18 -0
  39. package/dist/types/online-booking/types/classes/index.js.map +1 -0
  40. package/dist/types/online-booking/types/classes/portals.classes.d.ts +20 -0
  41. package/dist/types/online-booking/types/classes/portals.classes.js +11 -0
  42. package/dist/types/online-booking/types/classes/portals.classes.js.map +1 -0
  43. package/dist/types/online-booking/types/consts/index.d.ts +1 -0
  44. package/dist/types/online-booking/types/consts/index.js +18 -0
  45. package/dist/types/online-booking/types/consts/index.js.map +1 -0
  46. package/dist/types/online-booking/types/consts/portals.consts.d.ts +4 -0
  47. package/dist/types/online-booking/types/consts/portals.consts.js +19 -0
  48. package/dist/types/online-booking/types/consts/portals.consts.js.map +1 -0
  49. package/dist/types/online-booking/types/dto/index.d.ts +1 -0
  50. package/dist/types/online-booking/types/dto/index.js +18 -0
  51. package/dist/types/online-booking/types/dto/index.js.map +1 -0
  52. package/dist/types/online-booking/types/dto/portals.dto.d.ts +59 -0
  53. package/dist/types/online-booking/types/dto/portals.dto.js +36 -0
  54. package/dist/types/online-booking/types/dto/portals.dto.js.map +1 -0
  55. package/dist/types/online-booking/types/enums/index.d.ts +1 -0
  56. package/dist/types/online-booking/types/enums/index.js +18 -0
  57. package/dist/types/online-booking/types/enums/index.js.map +1 -0
  58. package/dist/types/online-booking/types/enums/portals.enums.d.ts +12 -0
  59. package/dist/types/online-booking/types/enums/portals.enums.js +18 -0
  60. package/dist/types/online-booking/types/enums/portals.enums.js.map +1 -0
  61. package/dist/types/online-booking/types/index.d.ts +5 -0
  62. package/dist/types/online-booking/types/index.js +22 -0
  63. package/dist/types/online-booking/types/index.js.map +1 -0
  64. package/dist/types/online-booking/types/interfaces/index.d.ts +1 -0
  65. package/dist/types/online-booking/types/interfaces/index.js +18 -0
  66. package/dist/types/online-booking/types/interfaces/index.js.map +1 -0
  67. package/dist/types/online-booking/types/interfaces/portals.interfaces.d.ts +21 -0
  68. package/dist/types/online-booking/types/interfaces/portals.interfaces.js +3 -0
  69. package/dist/types/online-booking/types/interfaces/portals.interfaces.js.map +1 -0
  70. package/dist/types/product-pricing/dto/index.d.ts +1 -0
  71. package/dist/types/product-pricing/dto/index.js +1 -0
  72. package/dist/types/product-pricing/dto/index.js.map +1 -1
  73. package/dist/types/product-pricing/dto/product-categories.dto.d.ts +44 -0
  74. package/dist/types/product-pricing/dto/product-categories.dto.js +30 -0
  75. package/dist/types/product-pricing/dto/product-categories.dto.js.map +1 -0
  76. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +5 -0
  77. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  78. package/dist/types/product-pricing/dto/product.dto.d.ts +3 -0
  79. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  80. package/dist/types/product-pricing/dto/rental-product.dto.d.ts +6 -0
  81. package/dist/types/product-pricing/dto/rental-product.dto.js.map +1 -1
  82. package/dist/types/product-pricing/entities/index.d.ts +1 -0
  83. package/dist/types/product-pricing/entities/index.js +1 -0
  84. package/dist/types/product-pricing/entities/index.js.map +1 -1
  85. package/dist/types/product-pricing/entities/product-category.entity.d.ts +12 -0
  86. package/dist/types/product-pricing/entities/product-category.entity.js +8 -0
  87. package/dist/types/product-pricing/entities/product-category.entity.js.map +1 -0
  88. package/dist/types/product-pricing/entities/product.entity.d.ts +4 -0
  89. package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
  90. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  91. package/dist/types/product-pricing/types/consts/index.js +1 -0
  92. package/dist/types/product-pricing/types/consts/index.js.map +1 -1
  93. package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +534 -0
  94. package/dist/types/product-pricing/types/consts/product-category.consts.js +116 -0
  95. package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -0
  96. package/dist/types/product-pricing/types/enums/index.d.ts +1 -0
  97. package/dist/types/product-pricing/types/enums/index.js +1 -0
  98. package/dist/types/product-pricing/types/enums/index.js.map +1 -1
  99. package/dist/types/product-pricing/types/enums/product-categories.enums.d.ts +12 -0
  100. package/dist/types/product-pricing/types/enums/product-categories.enums.js +17 -0
  101. package/dist/types/product-pricing/types/enums/product-categories.enums.js.map +1 -0
  102. package/dist/types/product-pricing/types/enums/product.enums.d.ts +3 -1
  103. package/dist/types/product-pricing/types/enums/product.enums.js +2 -0
  104. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  105. package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
  106. package/dist/types/product-pricing/types/interfaces/index.js +1 -0
  107. package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
  108. package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.d.ts +26 -0
  109. package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js +3 -0
  110. package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js.map +1 -0
  111. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +5 -0
  112. package/dist/types/programs-seasons/types/interfaces/program-session.interfaces.d.ts +7 -0
  113. package/dist/types/standings-integration/dto/standings.dto.d.ts +1 -1
  114. package/package.json +4 -3
@@ -77,6 +77,8 @@ export declare class Event extends OrganizationConnectionBaseEntity {
77
77
  homeTeamFolder?: Folder;
78
78
  awayTeamParent?: Folder;
79
79
  homeTeamParent?: Folder;
80
+ groupFolder?: Folder;
81
+ parentGroupFolder?: Folder;
80
82
  registrationWindowStatus: RegistrationWindowStatusEnum;
81
83
  resources?: Resource[];
82
84
  participantsNumber?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Events.js","sourceRoot":"","sources":["../../../src/types/entity/Events.ts"],"names":[],"mappings":";;;AAoBA,yFAAsF;AAItF,MAAa,KAAM,SAAQ,mEAAgC;CA0I1D;AA1ID,sBA0IC"}
1
+ {"version":3,"file":"Events.js","sourceRoot":"","sources":["../../../src/types/entity/Events.ts"],"names":[],"mappings":";;;AAoBA,yFAAsF;AAItF,MAAa,KAAM,SAAQ,mEAAgC;CA4I1D;AA5ID,sBA4IC"}
@@ -1,5 +1,6 @@
1
1
  import { PaginationQuery } from '../../dto/general.dto';
2
2
  import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
3
+ import { PublishingStatusEnum } from '../../programs/types/enums/program.enums';
3
4
  import { FilterGroupEnum, FilterTypeEnum } from '../types/enums/filter.enums';
4
5
  import { IGetPaginatedFiltersOptions } from '../types/interfaces/filters.interfaces';
5
6
  export declare class ByOrganizationFilterDto {
@@ -45,11 +46,13 @@ export declare class CreateFilterDto extends BaseFilterValuesDto {
45
46
  facilityId?: number;
46
47
  organizationId?: number;
47
48
  userId?: number;
49
+ status?: PublishingStatusEnum;
48
50
  }
49
51
  export declare class UpdateFilterDto {
50
52
  id: number;
51
53
  name?: string;
52
- options?: any;
54
+ options?: unknown;
55
+ status?: PublishingStatusEnum;
53
56
  isDefault?: boolean;
54
57
  }
55
58
  export declare class UpdateFiltersDto {
@@ -1 +1 @@
1
- {"version":3,"file":"filters.dto.js","sourceRoot":"","sources":["../../../../src/types/filters/dto/filters.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAI9E,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,aAAc,SAAQ,sCAAmB;CAErD;AAFD,sCAEC;AAED,MAAa,uBAAwB,SAAQ,uBAAuB;CAEnE;AAFD,0DAEC;AAED,MAAa,kBAAmB,SAAQ,uBAAuB;CAE9D;AAFD,gDAEC;AAED,MAAa,4BACZ,SAAQ,6BAAe;CAQvB;AATD,oEASC;AAED,MAAa,SAAS;CAkBrB;AAlBD,8BAkBC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,eAAgB,SAAQ,mBAAmB;CAMvD;AAND,0CAMC;AAED,MAAa,eAAe;CAQ3B;AARD,0CAQC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,eAAgB,SAAQ,uBAAuB;CAE3D;AAFD,0CAEC"}
1
+ {"version":3,"file":"filters.dto.js","sourceRoot":"","sources":["../../../../src/types/filters/dto/filters.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAK9E,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,aAAc,SAAQ,sCAAmB;CAErD;AAFD,sCAEC;AAED,MAAa,uBAAwB,SAAQ,uBAAuB;CAEnE;AAFD,0DAEC;AAED,MAAa,kBAAmB,SAAQ,uBAAuB;CAE9D;AAFD,gDAEC;AAED,MAAa,4BACZ,SAAQ,6BAAe;CAQvB;AATD,oEASC;AAED,MAAa,SAAS;CAkBrB;AAlBD,8BAkBC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,eAAgB,SAAQ,mBAAmB;CAQvD;AARD,0CAQC;AAED,MAAa,eAAe;CAU3B;AAVD,0CAUC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,eAAgB,SAAQ,uBAAuB;CAE3D;AAFD,0CAEC"}
@@ -1,4 +1,5 @@
1
1
  import { BondBaseEntity } from '../../entity/BondBaseEntity';
2
+ import { PublishingStatusEnum } from '../../programs/types/enums/program.enums';
2
3
  import { FilterTypeEnum } from '../types/enums/filter.enums';
3
4
  import { UserFavoriteFilter } from './UserFavoriteFilter';
4
5
  export declare class Filter extends BondBaseEntity {
@@ -9,6 +10,7 @@ export declare class Filter extends BondBaseEntity {
9
10
  name: string;
10
11
  creatorId?: number;
11
12
  type: FilterTypeEnum;
13
+ status?: PublishingStatusEnum;
12
14
  deletedAt?: Date;
13
15
  userFavorites?: UserFavoriteFilter[];
14
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Filter.js","sourceRoot":"","sources":["../../../../src/types/filters/entities/Filter.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAK7D,MAAa,MAAO,SAAQ,+BAAc;CAkBzC;AAlBD,wBAkBC"}
1
+ {"version":3,"file":"Filter.js","sourceRoot":"","sources":["../../../../src/types/filters/entities/Filter.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAM7D,MAAa,MAAO,SAAQ,+BAAc;CAoBzC;AApBD,wBAoBC"}
@@ -1,5 +1,7 @@
1
+ import { OnlineBookingPortalOptions } from '../../online-booking/types/classes/portals.classes';
1
2
  import { CalendarFilterOptions } from './classes/filter.classes';
2
3
  export declare const BOND_DEFAULT_ORGANIZATION_ID = 0;
3
4
  export declare const FILTER_TYPES_MAP: {
4
5
  calendar: typeof CalendarFilterOptions;
6
+ online_booking: typeof OnlineBookingPortalOptions;
5
7
  };
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FILTER_TYPES_MAP = exports.BOND_DEFAULT_ORGANIZATION_ID = void 0;
4
+ const portals_classes_1 = require("../../online-booking/types/classes/portals.classes");
4
5
  const filter_classes_1 = require("./classes/filter.classes");
5
6
  const filter_enums_1 = require("./enums/filter.enums");
6
7
  exports.BOND_DEFAULT_ORGANIZATION_ID = 0;
7
8
  exports.FILTER_TYPES_MAP = {
8
9
  [filter_enums_1.FilterTypeEnum.CALENDAR]: filter_classes_1.CalendarFilterOptions,
10
+ [filter_enums_1.FilterTypeEnum.ONLINE_BOOKING]: portals_classes_1.OnlineBookingPortalOptions,
9
11
  };
10
12
  //# sourceMappingURL=consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/types/filters/types/consts.ts"],"names":[],"mappings":";;;AAAA,6DAAiE;AACjE,uDAAsD;AAEzC,QAAA,4BAA4B,GAAG,CAAC,CAAC;AAEjC,QAAA,gBAAgB,GAAG;IAC/B,CAAC,6BAAc,CAAC,QAAQ,CAAC,EAAE,sCAAqB;CAChD,CAAC"}
1
+ {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/types/filters/types/consts.ts"],"names":[],"mappings":";;;AAAA,wFAAgG;AAEhG,6DAAiE;AACjE,uDAAsD;AAEzC,QAAA,4BAA4B,GAAG,CAAC,CAAC;AAEjC,QAAA,gBAAgB,GAAG;IAC/B,CAAC,6BAAc,CAAC,QAAQ,CAAC,EAAE,sCAAqB;IAChD,CAAC,6BAAc,CAAC,cAAc,CAAC,EAAE,4CAA0B;CAC3D,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export declare enum FilterTypeEnum {
2
- CALENDAR = "calendar"
2
+ CALENDAR = "calendar",
3
+ ONLINE_BOOKING = "online_booking"
3
4
  }
4
5
  export declare enum FilterGroupEnum {
5
6
  CUSTOM = "custom",
@@ -4,6 +4,7 @@ exports.FilterGroupEnum = exports.FilterTypeEnum = void 0;
4
4
  var FilterTypeEnum;
5
5
  (function (FilterTypeEnum) {
6
6
  FilterTypeEnum["CALENDAR"] = "calendar";
7
+ FilterTypeEnum["ONLINE_BOOKING"] = "online_booking";
7
8
  })(FilterTypeEnum = exports.FilterTypeEnum || (exports.FilterTypeEnum = {}));
8
9
  var FilterGroupEnum;
9
10
  (function (FilterGroupEnum) {
@@ -1 +1 @@
1
- {"version":3,"file":"filter.enums.js","sourceRoot":"","sources":["../../../../../src/types/filters/types/enums/filter.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAEX;AAFD,WAAY,cAAc;IACzB,uCAAqB,CAAA;AACtB,CAAC,EAFW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAEzB;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IAC1B,oCAAiB,CAAA;IACjB,gDAA6B,CAAA;IAC7B,oCAAiB,CAAA;AAClB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
1
+ {"version":3,"file":"filter.enums.js","sourceRoot":"","sources":["../../../../../src/types/filters/types/enums/filter.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,uCAAqB,CAAA;IACrB,mDAAiC,CAAA;AAClC,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IAC1B,oCAAiB,CAAA;IACjB,gDAA6B,CAAA;IAC7B,oCAAiB,CAAA;AAClB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
@@ -3,6 +3,7 @@ export interface IGetFilterOptions {
3
3
  organizationId?: number;
4
4
  facilityId?: number;
5
5
  userId?: number;
6
+ alias?: string;
6
7
  }
7
8
  export interface IGetPaginatedFiltersOptions extends IGetFilterOptions {
8
9
  search?: string;
@@ -61,6 +61,7 @@ export interface IFolderConfirmationMailData {
61
61
  name: string;
62
62
  parentFolder?: Folder;
63
63
  }
64
+ export { ILeagueEventMetadata, LEAGUE_EVENT_FOLDER_ID_KEYS } from '../../league/types';
64
65
  export * from './classes';
65
66
  export * from './folders.enums';
66
67
  export * from './index';
@@ -14,6 +14,9 @@ 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
+ exports.LEAGUE_EVENT_FOLDER_ID_KEYS = void 0;
18
+ var types_1 = require("../../league/types");
19
+ Object.defineProperty(exports, "LEAGUE_EVENT_FOLDER_ID_KEYS", { enumerable: true, get: function () { return types_1.LEAGUE_EVENT_FOLDER_ID_KEYS; } });
17
20
  __exportStar(require("./classes"), exports);
18
21
  __exportStar(require("./folders.enums"), exports);
19
22
  __exportStar(require("./index"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/folders/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAsEA,4CAA0B;AAC1B,kDAAgC;AAChC,0CAAwB;AACxB,+CAA6B;AAC7B,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/folders/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAuEA,4CAAuF;AAAxD,oHAAA,2BAA2B,OAAA;AAC1D,4CAA0B;AAC1B,kDAAgC;AAChC,0CAAwB;AACxB,+CAA6B;AAC7B,gEAA8C"}
@@ -32,6 +32,7 @@ export * from './membership';
32
32
  export * from './monitor-config';
33
33
  export * from './notes';
34
34
  export * from './notifications';
35
+ export * from './online-booking';
35
36
  export * from './online-rentals';
36
37
  export * from './organization';
37
38
  export * from './payment';
@@ -48,6 +48,7 @@ __exportStar(require("./membership"), exports);
48
48
  __exportStar(require("./monitor-config"), exports);
49
49
  __exportStar(require("./notes"), exports);
50
50
  __exportStar(require("./notifications"), exports);
51
+ __exportStar(require("./online-booking"), exports);
51
52
  __exportStar(require("./online-rentals"), exports);
52
53
  __exportStar(require("./organization"), exports);
53
54
  __exportStar(require("./payment"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,yCAAuB;AACvB,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,sDAAoC;AACpC,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,yCAAuB;AACvB,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,sDAAoC;AACpC,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC;AACjC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
@@ -1 +1,2 @@
1
1
  export * from './entities';
2
+ export * from './types';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./types"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/league/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/league/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1,23 @@
1
+ import { GameTypeEnum } from '../../leagues-scheduler/types/enums';
2
+ /**
3
+ * Metadata for league events and games.
4
+ * Used for event metadata storage and folder mapping.
5
+ */
6
+ export interface ILeagueEventMetadata {
7
+ awayTeamId?: number;
8
+ homeTeamId?: number;
9
+ awayParentId?: number;
10
+ homeParentId?: number;
11
+ gameType?: GameTypeEnum;
12
+ isMaintenance?: boolean;
13
+ maintenanceName?: string;
14
+ scheduledBy?: string;
15
+ groupId?: number;
16
+ parentGroupId?: number;
17
+ }
18
+ /**
19
+ * Keys in ILeagueEventMetadata that represent folder IDs.
20
+ * Used for iterating over folder references in event metadata.
21
+ */
22
+ export declare const LEAGUE_EVENT_FOLDER_ID_KEYS: ReadonlyArray<keyof ILeagueEventMetadata>;
23
+ export * from './index';
@@ -0,0 +1,31 @@
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
+ exports.LEAGUE_EVENT_FOLDER_ID_KEYS = void 0;
18
+ /**
19
+ * Keys in ILeagueEventMetadata that represent folder IDs.
20
+ * Used for iterating over folder references in event metadata.
21
+ */
22
+ exports.LEAGUE_EVENT_FOLDER_ID_KEYS = [
23
+ 'awayTeamId',
24
+ 'homeTeamId',
25
+ 'awayParentId',
26
+ 'homeParentId',
27
+ 'groupId',
28
+ 'parentGroupId',
29
+ ];
30
+ __exportStar(require("./index"), exports);
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/league/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAmBA;;;GAGG;AACU,QAAA,2BAA2B,GAA8C;IACrF,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,cAAc;IACd,SAAS;IACT,eAAe;CACf,CAAC;AACF,0CAAwB"}
@@ -40,6 +40,7 @@ export declare enum StandingsColumnsEnum {
40
40
  WINS = "wins",
41
41
  LOSSES = "losses",
42
42
  TIES = "ties",
43
+ WIN_PERCENTAGE = "win_percentage",
43
44
  POINTS = "league_points",
44
45
  POINTS_SCORED = "points_scored",
45
46
  POINTS_AGAINST = "points_against",
@@ -51,6 +51,7 @@ var StandingsColumnsEnum;
51
51
  StandingsColumnsEnum["WINS"] = "wins";
52
52
  StandingsColumnsEnum["LOSSES"] = "losses";
53
53
  StandingsColumnsEnum["TIES"] = "ties";
54
+ StandingsColumnsEnum["WIN_PERCENTAGE"] = "win_percentage";
54
55
  StandingsColumnsEnum["POINTS"] = "league_points";
55
56
  StandingsColumnsEnum["POINTS_SCORED"] = "points_scored";
56
57
  StandingsColumnsEnum["POINTS_AGAINST"] = "points_against";
@@ -1 +1 @@
1
- {"version":3,"file":"standings.enums.js","sourceRoot":"","sources":["../../../../src/types/league-standings/types/standings.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cA6CX;AA7CD,WAAY,cAAc;IACzB,yBAAyB;IACzB,iDAA+B,CAAA;IAC/B,+BAAa,CAAA;IACb,mCAAiB,CAAA;IACjB,mDAAiC,CAAA;IACjC,6DAA2C,CAAA;IAC3C,6DAA2C,CAAA;IAC3C,iDAA+B,CAAA;IAC/B,mDAAiC,CAAA;IACjC,2DAAyC,CAAA;IACzC,qFAAmE,CAAA;IACnE,iDAA+B,CAAA;IAC/B,qDAAmC,CAAA;IAEnC,kCAAkC;IAClC,qDAAmC,CAAA;IACnC,iDAA+B,CAAA;IAC/B,qDAAmC,CAAA;IACnC,iDAA+B,CAAA;IAC/B,2CAAyB,CAAA;IACzB,uDAAqC,CAAA;IACrC,6DAA2C,CAAA;IAC3C,yDAAuC,CAAA;IACvC,iDAA+B,CAAA;IAE/B,kBAAkB;IAClB,6BAAW,CAAA;IACX,mEAAiD,CAAA;IACjD,iCAAe,CAAA;IAEf,sBAAsB;IACtB,mEAAiD,CAAA;IAEjD,6BAA6B;IAC7B,qDAAmC,CAAA;IACnC,6BAAW,CAAA;IACX,mDAAiC,CAAA;IAEjC,sBAAsB;IACtB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,CAAA;IAC7B,wCAAmB,CAAA;AACpB,CAAC,EArFW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAqF5B"}
1
+ {"version":3,"file":"standings.enums.js","sourceRoot":"","sources":["../../../../src/types/league-standings/types/standings.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cA6CX;AA7CD,WAAY,cAAc;IACzB,yBAAyB;IACzB,iDAA+B,CAAA;IAC/B,+BAAa,CAAA;IACb,mCAAiB,CAAA;IACjB,mDAAiC,CAAA;IACjC,6DAA2C,CAAA;IAC3C,6DAA2C,CAAA;IAC3C,iDAA+B,CAAA;IAC/B,mDAAiC,CAAA;IACjC,2DAAyC,CAAA;IACzC,qFAAmE,CAAA;IACnE,iDAA+B,CAAA;IAC/B,qDAAmC,CAAA;IAEnC,kCAAkC;IAClC,qDAAmC,CAAA;IACnC,iDAA+B,CAAA;IAC/B,qDAAmC,CAAA;IACnC,iDAA+B,CAAA;IAC/B,2CAAyB,CAAA;IACzB,uDAAqC,CAAA;IACrC,6DAA2C,CAAA;IAC3C,yDAAuC,CAAA;IACvC,iDAA+B,CAAA;IAE/B,kBAAkB;IAClB,6BAAW,CAAA;IACX,mEAAiD,CAAA;IACjD,iCAAe,CAAA;IAEf,sBAAsB;IACtB,mEAAiD,CAAA;IAEjD,6BAA6B;IAC7B,qDAAmC,CAAA;IACnC,6BAAW,CAAA;IACX,mDAAiC,CAAA;IAEjC,sBAAsB;IACtB,+CAA6B,CAAA;IAC7B,uDAAqC,CAAA;IACrC,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,qFAAmE,CAAA;AACpE,CAAC,EA7CW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QA6CzB;AAED,IAAY,oBA0CX;AA1CD,WAAY,oBAAoB;IAC/B,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,qDAA6B,CAAA;IAC7B,qCAAa,CAAA;IACb,yCAAiB,CAAA;IACjB,qCAAa,CAAA;IACb,yDAAiC,CAAA;I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ACrD,0DAAqC,CAAA;IACrC,oEAA+C,CAAA;IAC/C,0CAAqB,CAAA;IACrB,8DAAyC,CAAA;IACzC,8DAAyC,CAAA;IACzC,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;IACvB,sDAAiC,CAAA;IACjC,wDAAmC,CAAA;IACnC,oDAA+B,CAAA;IAE/B,oBAAoB;IACpB,kCAAa,CAAA;IACb,kCAAa,CAAA;IACb,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,gCAAW,CAAA;IACX,oCAAe,CAAA;IACf,8CAAyB,CAAA;IACzB,kDAA6B,CAAA;IAC7B,sCAAiB,CAAA;IAEjB,aAAa;IACb,sDAAiC,CAAA;IACjC,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,oCAAe,CAAA;IACf,wCAAmB,CAAA;IACnB,kCAAa,CAAA;IACb,sDAAiC,CAAA;IACjC,kCAAa,CAAA;IAEb,WAAW;IACX,kDAA6B,CAAA;IAC7B,0DAAqC,CAAA;IACrC,4CAAuB,CAAA;IAEvB,gBAAgB;IAChB,8CAAyB,CAAA;IACzB,oDAA+B,CAAA;IAC/B,8DAAyC,CAAA;IACzC,gDAA2B,CAAA;IAC3B,0CAAqB,CAAA;IACrB,oDAA+B,CAAA;IAC/B,8DAAyC,CAAA;IACzC,oDAA+B,CAAA;IAC/B,oCAAe,CAAA;IACf,kDAA6B,CAAA;IAC7B,wCAAmB,CAAA;AACpB,CAAC,EArFW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAqF5B"}
@@ -1,9 +1,10 @@
1
- import { ILeagueGameMetadata, IDraftSchedule, ILeagueScheduleData, GameTypeEnum, ScheduleStatusEnum } from '../types/interfaces';
1
+ import { ILeagueEventMetadata } from '../../league/types';
2
+ import { IDraftSchedule, ILeagueScheduleData, GameTypeEnum, ScheduleStatusEnum } from '../types/interfaces';
2
3
  import { ScheduleConfigDto, GeneratedScheduleDto } from './leagues-scheduler.dto';
3
4
  export { GameTypeEnum, ScheduleStatusEnum } from '../types/interfaces';
4
5
  /**
5
6
  * League Game Metadata DTO - Simplified schema
6
- * For services/utilities, import and use ILeagueGameMetadata from types/interfaces.ts
7
+ * For services/utilities, import and use ILeagueEventMetadata from league/types
7
8
  * Stored in Event.metadata JSONB field for efficient querying with GIN index
8
9
  *
9
10
  * Simplified to contain only essential game data:
@@ -14,7 +15,7 @@ export { GameTypeEnum, ScheduleStatusEnum } from '../types/interfaces';
14
15
  *
15
16
  * Game/round/week numbers are maintained elsewhere, not in metadata.
16
17
  */
17
- export declare class LeagueGameMetadataDto implements ILeagueGameMetadata {
18
+ export declare class LeagueGameMetadataDto implements ILeagueEventMetadata {
18
19
  homeTeamId: number;
19
20
  awayTeamId: number;
20
21
  gameType: GameTypeEnum;
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "GameTypeEnum", { enumerable: true, get: function
7
7
  Object.defineProperty(exports, "ScheduleStatusEnum", { enumerable: true, get: function () { return interfaces_1.ScheduleStatusEnum; } });
8
8
  /**
9
9
  * League Game Metadata DTO - Simplified schema
10
- * For services/utilities, import and use ILeagueGameMetadata from types/interfaces.ts
10
+ * For services/utilities, import and use ILeagueEventMetadata from league/types
11
11
  * Stored in Event.metadata JSONB field for efficient querying with GIN index
12
12
  *
13
13
  * Simplified to contain only essential game data:
@@ -1 +1 @@
1
- {"version":3,"file":"leagues-scheduler-metadata.dto.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/leagues-scheduler-metadata.dto.ts"],"names":[],"mappings":";;;AAWA,6CAA6C;AAC7C,kDAAuE;AAA9D,0GAAA,YAAY,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,qBAAqB;CAgBjC;AAhBD,sDAgBC;AAED,gDAAgD;AAEhD;;;;GAIG;AACH,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AAED;;;;;GAKG;AACH,MAAa,qBAAqB;CAUjC;AAVD,sDAUC"}
1
+ {"version":3,"file":"leagues-scheduler-metadata.dto.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/leagues-scheduler-metadata.dto.ts"],"names":[],"mappings":";;;AAMA,6CAA6C;AAC7C,kDAAuE;AAA9D,0GAAA,YAAY,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,qBAAqB;CAgBjC;AAhBD,sDAgBC;AAED,gDAAgD;AAEhD;;;;GAIG;AACH,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AAED;;;;;GAKG;AACH,MAAa,qBAAqB;CAUjC;AAVD,sDAUC"}
@@ -122,16 +122,6 @@ export interface IGeneratedSchedule {
122
122
  maintenanceEvents?: IMaintenanceEvent[];
123
123
  totalGames: number;
124
124
  }
125
- export interface ILeagueGameMetadata {
126
- awayParentId: number;
127
- awayTeamId: number;
128
- homeParentId: number;
129
- homeTeamId: number;
130
- gameType: GameTypeEnum;
131
- isMaintenance?: boolean;
132
- maintenanceName?: string;
133
- scheduledBy: string;
134
- }
135
125
  export interface IDraftSchedule {
136
126
  draftId: number;
137
127
  createdAt: string;
@@ -0,0 +1 @@
1
+ export * from './types';
@@ -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("./types"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/online-booking/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './portals.classes';
@@ -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("./portals.classes"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/classes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
@@ -0,0 +1,20 @@
1
+ import { SportsEnum } from '../../../activities/types/activities.enums';
2
+ import { Facility } from '../../../entity/Facility';
3
+ import { Filter } from '../../../filters/entities/Filter';
4
+ import { ProductCategory } from '../../../product-pricing/entities/product-category.entity';
5
+ import { OnlineBookingViewsEnum } from '../enums/portals.enums';
6
+ export declare class OnlineBookingPortalOptions {
7
+ facilitiesIds: number[];
8
+ defaultFacilityId?: number;
9
+ categoriesIds: number[];
10
+ defaultCategoryId: number;
11
+ activities?: SportsEnum[];
12
+ defaultActivity?: SportsEnum;
13
+ views: OnlineBookingViewsEnum[];
14
+ defaultView: OnlineBookingViewsEnum;
15
+ }
16
+ export declare class Portal extends Filter {
17
+ categories?: ProductCategory[];
18
+ facilities?: Facility[];
19
+ options: OnlineBookingPortalOptions;
20
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Portal = exports.OnlineBookingPortalOptions = void 0;
4
+ const Filter_1 = require("../../../filters/entities/Filter");
5
+ class OnlineBookingPortalOptions {
6
+ }
7
+ exports.OnlineBookingPortalOptions = OnlineBookingPortalOptions;
8
+ class Portal extends Filter_1.Filter {
9
+ }
10
+ exports.Portal = Portal;
11
+ //# sourceMappingURL=portals.classes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portals.classes.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/classes/portals.classes.ts"],"names":[],"mappings":";;;AAGA,6DAA0D;AAI1D,MAAa,0BAA0B;CAgBtC;AAhBD,gEAgBC;AAED,MAAa,MAAO,SAAQ,eAAM;CAMjC;AAND,wBAMC"}
@@ -0,0 +1 @@
1
+ export * from './portals.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("./portals.consts"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -0,0 +1,4 @@
1
+ import { PublishingStatusEnum } from '../../../programs/types/enums/program.enums';
2
+ import { OnlineBookingPortalsOrderByEnum } from '../enums/portals.enums';
3
+ export declare const PORTALS_ORDERINGS: Record<OnlineBookingPortalsOrderByEnum, string>;
4
+ export declare const PORTAL_PUBLISH_STATUSES: PublishingStatusEnum[];
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PORTAL_PUBLISH_STATUSES = exports.PORTALS_ORDERINGS = void 0;
4
+ const program_enums_1 = require("../../../programs/types/enums/program.enums");
5
+ const portals_enums_1 = require("../enums/portals.enums");
6
+ exports.PORTALS_ORDERINGS = {
7
+ [portals_enums_1.OnlineBookingPortalsOrderByEnum.NAME]: 'portal.name',
8
+ [portals_enums_1.OnlineBookingPortalsOrderByEnum.STATUS]: 'portal.status',
9
+ [portals_enums_1.OnlineBookingPortalsOrderByEnum.CATEGORIES_COUNT]: `JSONB_ARRAY_LENGTH(portal.options -> 'categoriesIds')`,
10
+ [portals_enums_1.OnlineBookingPortalsOrderByEnum.FACILITIES_COUNT]: `JSONB_ARRAY_LENGTH(portal.options -> 'facilitiesIds')`,
11
+ [portals_enums_1.OnlineBookingPortalsOrderByEnum.ID]: 'portal.id',
12
+ };
13
+ exports.PORTAL_PUBLISH_STATUSES = [
14
+ program_enums_1.PublishingStatusEnum.DRAFT,
15
+ program_enums_1.PublishingStatusEnum.PUBLISHED,
16
+ program_enums_1.PublishingStatusEnum.UNPUBLISHED,
17
+ program_enums_1.PublishingStatusEnum.ARCHIVE,
18
+ ];
19
+ //# sourceMappingURL=portals.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portals.consts.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/consts/portals.consts.ts"],"names":[],"mappings":";;;AAAA,+EAAmF;AACnF,0DAAyE;AAE5D,QAAA,iBAAiB,GAAoD;IACjF,CAAC,+CAA+B,CAAC,IAAI,CAAC,EAAE,aAAa;IACrD,CAAC,+CAA+B,CAAC,MAAM,CAAC,EAAE,eAAe;IACzD,CAAC,+CAA+B,CAAC,gBAAgB,CAAC,EAAE,uDAAuD;IAC3G,CAAC,+CAA+B,CAAC,gBAAgB,CAAC,EAAE,uDAAuD;IAC3G,CAAC,+CAA+B,CAAC,EAAE,CAAC,EAAE,WAAW;CACjD,CAAC;AAEW,QAAA,uBAAuB,GAA2B;IAC9D,oCAAoB,CAAC,KAAK;IAC1B,oCAAoB,CAAC,SAAS;IAC9B,oCAAoB,CAAC,WAAW;IAChC,oCAAoB,CAAC,OAAO;CAC5B,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './portals.dto';
@@ -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("./portals.dto"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -0,0 +1,59 @@
1
+ import { SportsEnum } from '../../../activities/types/activities.enums';
2
+ import { SimpleFacilityDto } from '../../../dto/facilities.dto';
3
+ import { IdAndNameDto, PaginationQuery } from '../../../dto/general.dto';
4
+ import { ByOrganizationIdDto } from '../../../organization/dto/organization.dto';
5
+ import { PublishingStatusEnum } from '../../../programs/types/enums/program.enums';
6
+ import { OrderByEnum } from '../../../services/enums.service';
7
+ import { OnlineBookingViewsEnum, OnlineBookingPortalsOrderByEnum } from '../enums/portals.enums';
8
+ import { IGetOnlineBookingPortal, IGetOnlineBookingPortals, IIncludePortalRelations } from '../interfaces/portals.interfaces';
9
+ export declare class OnlineBookingPortalOptionsDto {
10
+ facilitiesIds: number[];
11
+ defaultFacilityId?: number;
12
+ categoriesIds: number[];
13
+ defaultCategoryId: number;
14
+ activities?: SportsEnum[];
15
+ defaultActivity?: SportsEnum;
16
+ views: OnlineBookingViewsEnum[];
17
+ defaultView: OnlineBookingViewsEnum;
18
+ }
19
+ export declare class CreateOnlineBookingPortalDto {
20
+ name: string;
21
+ status?: PublishingStatusEnum;
22
+ options: OnlineBookingPortalOptionsDto;
23
+ }
24
+ export declare class UpdateOnlineBookingPortalDto extends CreateOnlineBookingPortalDto {
25
+ id: number;
26
+ }
27
+ export declare class UpdateOnlineBookingPortalsDto {
28
+ portals: UpdateOnlineBookingPortalDto[];
29
+ }
30
+ export declare class GetOrganizationsOnlineBookingPortalsDto extends PaginationQuery implements IGetOnlineBookingPortals {
31
+ activities?: SportsEnum[];
32
+ categoriesIds?: number[];
33
+ facilitiesIds?: number[];
34
+ order?: OrderByEnum;
35
+ orderBy?: OnlineBookingPortalsOrderByEnum;
36
+ search?: string;
37
+ statuses?: PublishingStatusEnum[];
38
+ includeCategories?: boolean;
39
+ includeFacilities?: boolean;
40
+ }
41
+ export declare class OnlineBookingPortalDto extends IdAndNameDto {
42
+ options: OnlineBookingPortalOptionsDto;
43
+ status: PublishingStatusEnum;
44
+ facilities?: SimpleFacilityDto[];
45
+ categories?: IdAndNameDto[];
46
+ }
47
+ export declare class ByOrganizationIdAndPortalIdDto extends ByOrganizationIdDto {
48
+ portalId: number;
49
+ }
50
+ export declare class IncludePortalRelationsDto implements IIncludePortalRelations {
51
+ includeCategories?: boolean;
52
+ includeFacilities?: boolean;
53
+ }
54
+ export declare class GetOnlineBookingPortal extends IncludePortalRelationsDto implements IGetOnlineBookingPortal {
55
+ status?: PublishingStatusEnum;
56
+ }
57
+ export declare class UpdatePortalStatusDto {
58
+ status: PublishingStatusEnum;
59
+ }