@bondsports/types 2.3.21 → 2.3.27

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 (99) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +1 -0
  3. package/dist/types/cart/types/interfaces/validate-cart.interfaces.d.ts +0 -9
  4. package/dist/types/cart/types/interfaces/validate-cart.interfaces.js +0 -1
  5. package/dist/types/cart/types/interfaces/validate-cart.interfaces.js.map +1 -1
  6. package/dist/types/dto/events.dto.d.ts +2 -0
  7. package/dist/types/dto/events.dto.js.map +1 -1
  8. package/dist/types/entity/Invoice.d.ts +2 -2
  9. package/dist/types/entity/Invoice.js.map +1 -1
  10. package/dist/types/entity/InvoiceHistory.d.ts +34 -0
  11. package/dist/types/entity/InvoiceHistory.js +8 -0
  12. package/dist/types/entity/InvoiceHistory.js.map +1 -0
  13. package/dist/types/entity/index.d.ts +1 -0
  14. package/dist/types/entity/index.js +1 -0
  15. package/dist/types/entity/index.js.map +1 -1
  16. package/dist/types/folders/dto/folder.dto.d.ts +17 -14
  17. package/dist/types/folders/dto/folder.dto.js +2 -2
  18. package/dist/types/folders/dto/folder.dto.js.map +1 -1
  19. package/dist/types/folders/entities/folder-content.entity.d.ts +1 -0
  20. package/dist/types/folders/entities/folder-content.entity.js.map +1 -1
  21. package/dist/types/folders/entities/folder.entity.d.ts +4 -9
  22. package/dist/types/folders/entities/folder.entity.js +1 -16
  23. package/dist/types/folders/entities/folder.entity.js.map +1 -1
  24. package/dist/types/folders/types/classes.d.ts +6 -4
  25. package/dist/types/folders/types/classes.js.map +1 -1
  26. package/dist/types/folders/types/folders.enums.d.ts +22 -0
  27. package/dist/types/folders/types/folders.enums.js +35 -0
  28. package/dist/types/folders/types/folders.enums.js.map +1 -0
  29. package/dist/types/folders/types/index.d.ts +8 -7
  30. package/dist/types/folders/types/index.js +2 -2
  31. package/dist/types/folders/types/index.js.map +1 -1
  32. package/dist/types/folders/types/interfaces/folder-content.interfaces.d.ts +19 -0
  33. package/dist/types/folders/types/{consts.js → session-participants.consts.js} +3 -2
  34. package/dist/types/folders/types/session-participants.consts.js.map +1 -0
  35. package/dist/types/invoice/dto/index.d.ts +1 -0
  36. package/dist/types/invoice/dto/index.js +1 -0
  37. package/dist/types/invoice/dto/index.js.map +1 -1
  38. package/dist/types/invoice/dto/invoice-history.dto.d.ts +28 -0
  39. package/dist/types/invoice/dto/invoice-history.dto.js +8 -0
  40. package/dist/types/invoice/dto/invoice-history.dto.js.map +1 -0
  41. package/dist/types/invoice/dto/invoice.dto.d.ts +13 -1
  42. package/dist/types/invoice/dto/invoice.dto.js +9 -1
  43. package/dist/types/invoice/dto/invoice.dto.js.map +1 -1
  44. package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +23 -0
  45. package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
  46. package/dist/types/notifications/dto/backoffice.notify.dto.d.ts +0 -1
  47. package/dist/types/notifications/dto/backoffice.notify.dto.js.map +1 -1
  48. package/dist/types/notifications/dto/notification.response.dto.d.ts +1 -0
  49. package/dist/types/notifications/dto/notification.response.dto.js.map +1 -1
  50. package/dist/types/notifications/types/interfaces/notification.interfaces.d.ts +5 -0
  51. package/dist/types/payment/dto/payment.dto.d.ts +2 -0
  52. package/dist/types/payment/dto/payment.dto.js.map +1 -1
  53. package/dist/types/payment/types/enums/payment.enums.d.ts +6 -1
  54. package/dist/types/payment/types/enums/payment.enums.js +7 -1
  55. package/dist/types/payment/types/enums/payment.enums.js.map +1 -1
  56. package/dist/types/product-pricing/types/consts/product-resource.consts.d.ts +1 -1
  57. package/dist/types/product-pricing/types/interfaces/index.d.ts +2 -1
  58. package/dist/types/product-pricing/types/interfaces/index.js +2 -1
  59. package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
  60. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +1 -1
  61. package/dist/types/product-pricing/types/interfaces/{porduct-resource.interfaces.d.ts → product-resource.interfaces.d.ts} +8 -0
  62. package/dist/types/product-pricing/types/interfaces/{porduct-resource.interfaces.js → product-resource.interfaces.js} +1 -1
  63. package/dist/types/product-pricing/types/interfaces/product-resource.interfaces.js.map +1 -0
  64. package/dist/types/product-pricing/types/interfaces/valdiate-resources.interface.d.ts +9 -0
  65. package/dist/types/product-pricing/types/interfaces/valdiate-resources.interface.js +4 -0
  66. package/dist/types/product-pricing/types/interfaces/valdiate-resources.interface.js.map +1 -0
  67. package/dist/types/purchase/dto/purchase.dto.d.ts +2 -1
  68. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  69. package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +1 -13
  70. package/dist/types/resources/dto/resource.dto.d.ts +1 -1
  71. package/dist/types/services/enums.service.d.ts +2 -4
  72. package/dist/types/services/enums.service.js +3 -6
  73. package/dist/types/services/enums.service.js.map +1 -1
  74. package/dist/types/session-participants/dto/get.session.participant.dto.d.ts +11 -5
  75. package/dist/types/session-participants/dto/get.session.participant.dto.js +5 -2
  76. package/dist/types/session-participants/dto/get.session.participant.dto.js.map +1 -1
  77. package/dist/types/session-participants/dto/index.d.ts +2 -0
  78. package/dist/types/session-participants/dto/index.js +2 -0
  79. package/dist/types/session-participants/dto/index.js.map +1 -1
  80. package/dist/types/session-participants/dto/move-session-participants.dto.d.ts +9 -0
  81. package/dist/types/session-participants/dto/move-session-participants.dto.js +10 -0
  82. package/dist/types/session-participants/dto/move-session-participants.dto.js.map +1 -0
  83. package/dist/types/session-participants/dto/notify-session-participants.dto.d.ts +7 -0
  84. package/dist/types/session-participants/dto/notify-session-participants.dto.js +7 -0
  85. package/dist/types/session-participants/dto/notify-session-participants.dto.js.map +1 -0
  86. package/dist/types/session-participants/types/consts.d.ts +6 -2
  87. package/dist/types/session-participants/types/consts.js +10 -3
  88. package/dist/types/session-participants/types/consts.js.map +1 -1
  89. package/dist/types/session-participants/types/interfaces.d.ts +15 -2
  90. package/dist/types/util/models/types/orm.types.d.ts +6 -0
  91. package/dist/types/waitlist/types/waitlist.interface.d.ts +6 -1
  92. package/dist/types/waitlist/types/waitlist.interface.js.map +1 -1
  93. package/package.json +1 -1
  94. package/dist/types/folders/types/consts.js.map +0 -1
  95. package/dist/types/folders/types/enums.d.ts +0 -11
  96. package/dist/types/folders/types/enums.js +0 -17
  97. package/dist/types/folders/types/enums.js.map +0 -1
  98. package/dist/types/product-pricing/types/interfaces/porduct-resource.interfaces.js.map +0 -1
  99. /package/dist/types/folders/types/{consts.d.ts → session-participants.consts.d.ts} +0 -0
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MoveSessionParticipantsResponseDto = exports.MoveSessionParticipantsDto = void 0;
4
+ class MoveSessionParticipantsDto {
5
+ }
6
+ exports.MoveSessionParticipantsDto = MoveSessionParticipantsDto;
7
+ class MoveSessionParticipantsResponseDto {
8
+ }
9
+ exports.MoveSessionParticipantsResponseDto = MoveSessionParticipantsResponseDto;
10
+ //# sourceMappingURL=move-session-participants.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"move-session-participants.dto.js","sourceRoot":"","sources":["../../../../src/types/session-participants/dto/move-session-participants.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC"}
@@ -0,0 +1,7 @@
1
+ import { BaseNotificationDto } from '../../notifications/dto/backoffice.notify.dto';
2
+ import { SessionParticipantsOptionsDto } from './get.session.participant.dto';
3
+ export declare class NotifySessionParticipantsDto {
4
+ notification: BaseNotificationDto;
5
+ filters: SessionParticipantsOptionsDto;
6
+ excludedIds: number[];
7
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotifySessionParticipantsDto = void 0;
4
+ class NotifySessionParticipantsDto {
5
+ }
6
+ exports.NotifySessionParticipantsDto = NotifySessionParticipantsDto;
7
+ //# sourceMappingURL=notify-session-participants.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notify-session-participants.dto.js","sourceRoot":"","sources":["../../../../src/types/session-participants/dto/notify-session-participants.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,4BAA4B;CAMxC;AAND,oEAMC"}
@@ -1,6 +1,10 @@
1
- import { MetaType } from '../../folders/entities/folder.entity';
2
1
  import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
2
+ import { MetaTypeEnum } from '../../folders/types/folders.enums';
3
3
  export declare const MASS_GET_PARTICIPANTS_CHUNK_SIZE = 100;
4
- export declare const GROUPS_FOLDER_META_TYPES: MetaType[];
4
+ export declare const FolderMetaTypeDomain: {
5
+ SYSTEM_CONTROLLED: MetaTypeEnum;
6
+ USER_CONTROLLED: MetaTypeEnum;
7
+ ALL_SESSION_PARTICIPANTS: MetaTypeEnum[];
8
+ };
5
9
  export declare const FOLDER_PAYMENT_STATUS_OPTIONS: PaymentStatusEnum[];
6
10
  export declare const FOLDER_PAYMENT_STATUSES_LENGTH: number;
@@ -1,10 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FOLDER_PAYMENT_STATUSES_LENGTH = exports.FOLDER_PAYMENT_STATUS_OPTIONS = exports.GROUPS_FOLDER_META_TYPES = exports.MASS_GET_PARTICIPANTS_CHUNK_SIZE = void 0;
4
- const folder_entity_1 = require("../../folders/entities/folder.entity");
3
+ exports.FOLDER_PAYMENT_STATUSES_LENGTH = exports.FOLDER_PAYMENT_STATUS_OPTIONS = exports.FolderMetaTypeDomain = exports.MASS_GET_PARTICIPANTS_CHUNK_SIZE = void 0;
5
4
  const payment_enums_1 = require("../../payment/types/enums/payment.enums");
5
+ const folders_enums_1 = require("../../folders/types/folders.enums");
6
6
  exports.MASS_GET_PARTICIPANTS_CHUNK_SIZE = 100;
7
- exports.GROUPS_FOLDER_META_TYPES = [folder_entity_1.MetaType.GROUP, folder_entity_1.MetaType.UNSPECIFIED];
7
+ exports.FolderMetaTypeDomain = {
8
+ // MetaType.UNSPECIFIED implicitly indicates Folders created by the system for segments (ie. quasi-shadow Folders for ProgramSeasons-acting-as-segments)
9
+ // It is *not* used for the root ProgramSeason Folder (despite it being a system-created Folder)
10
+ SYSTEM_CONTROLLED: folders_enums_1.MetaTypeEnum.UNSPECIFIED,
11
+ // MetaType.GROUP is Used by Session Participants to indicate the root ProgramSeason Folder and any additional Folders created by the user
12
+ USER_CONTROLLED: folders_enums_1.MetaTypeEnum.GROUP,
13
+ ALL_SESSION_PARTICIPANTS: [folders_enums_1.MetaTypeEnum.GROUP, folders_enums_1.MetaTypeEnum.UNSPECIFIED],
14
+ };
8
15
  exports.FOLDER_PAYMENT_STATUS_OPTIONS = [
9
16
  payment_enums_1.PaymentStatusEnum.FULLY_PAID,
10
17
  payment_enums_1.PaymentStatusEnum.NOT_PAID,
@@ -1 +1 @@
1
- {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/types/session-participants/types/consts.ts"],"names":[],"mappings":";;;AAAA,wEAAgE;AAChE,2EAA4E;AAE/D,QAAA,gCAAgC,GAAG,GAAG,CAAC;AACvC,QAAA,wBAAwB,GAAG,CAAC,wBAAQ,CAAC,KAAK,EAAE,wBAAQ,CAAC,WAAW,CAAC,CAAC;AAClE,QAAA,6BAA6B,GAAG;IAC5C,iCAAiB,CAAC,UAAU;IAC5B,iCAAiB,CAAC,QAAQ;IAC1B,iCAAiB,CAAC,eAAe;CACjC,CAAC;AAEW,QAAA,8BAA8B,GAAG,qCAA6B,CAAC,MAAM,CAAC"}
1
+ {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/types/session-participants/types/consts.ts"],"names":[],"mappings":";;;AAAA,2EAA4E;AAC5E,qEAAiE;AAEpD,QAAA,gCAAgC,GAAG,GAAG,CAAC;AAEvC,QAAA,oBAAoB,GAAG;IACnC,wJAAwJ;IACxJ,gGAAgG;IAChG,iBAAiB,EAAE,4BAAY,CAAC,WAAW;IAC3C,0IAA0I;IAC1I,eAAe,EAAE,4BAAY,CAAC,KAAK;IACnC,wBAAwB,EAAE,CAAC,4BAAY,CAAC,KAAK,EAAE,4BAAY,CAAC,WAAW,CAAC;CACxE,CAAC;AAEW,QAAA,6BAA6B,GAAG;IAC5C,iCAAiB,CAAC,UAAU;IAC5B,iCAAiB,CAAC,QAAQ;IAC1B,iCAAiB,CAAC,eAAe;CACjC,CAAC;AAEW,QAAA,8BAA8B,GAAG,qCAA6B,CAAC,MAAM,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
2
2
  import { ProductsUsers } from '../../entity/ProductsUsers';
3
3
  import { CurrencyEnum, GenderEnum } from '../../services/enums.service';
4
- import { MetaType } from '../../folders/entities/folder.entity';
4
+ import { MetaTypeEnum } from '../../folders/types/folders.enums';
5
+ import { FindSessionParticipantsOptionsDto } from '../dto/get.session.participant.dto';
6
+ import { RawSessionParticipant } from '../types/classes';
7
+ import { IGetQueryGeneratorOptions } from '../../util/models/types/orm.types';
5
8
  export interface ISessionParticipant {
6
9
  id?: number;
7
10
  sessionId: number;
@@ -27,10 +30,11 @@ export interface ISessionParticipant {
27
30
  }
28
31
  export interface IGroupFilters {
29
32
  paymentStatuses?: PaymentStatusEnum[];
30
- metaTypes?: MetaType[];
33
+ metaTypes?: MetaTypeEnum[];
31
34
  includeSubFolders?: boolean;
32
35
  includeAdditionalGroupFields?: boolean;
33
36
  groupCategories?: string[];
37
+ registrationAccess?: number[];
34
38
  }
35
39
  export interface IRawSessionParticipant {
36
40
  id?: number;
@@ -58,3 +62,12 @@ export interface IRawSessionParticipant {
58
62
  export interface ICreateSessionParticipant {
59
63
  productUser?: ProductsUsers;
60
64
  }
65
+ export interface IMassGetSessionParticipantsParams {
66
+ organizationId: number;
67
+ programSessionId: number;
68
+ options: FindSessionParticipantsOptionsDto;
69
+ excludedFolderContentIds: number[];
70
+ restrictToUserControlledSubFolders: boolean;
71
+ queryOptions?: IGetQueryGeneratorOptions;
72
+ processChunk: (participants: RawSessionParticipant[]) => Promise<void>;
73
+ }
@@ -2,3 +2,9 @@ export declare enum LockModeEnum {
2
2
  EXCLUSIVE = "pessimistic_write",
3
3
  SHARED = "pessimistic_read"
4
4
  }
5
+ export interface IGetQueryGeneratorOptions {
6
+ chunkSize?: number;
7
+ raw?: boolean;
8
+ signal?: AbortSignal;
9
+ disablePagination?: boolean;
10
+ }
@@ -1,8 +1,9 @@
1
+ import { WaitlistEntryOrderBy, WaitlistFilterInternalOptionsEnum, WaitlistFilterOptionsEnum, WaitlistFilterParamsEnum, WaitlistOwnerTypeEnum } from './waitlist.enums';
2
+ import { WaitlistEntry } from '../entities/waitlistEntry.entity';
1
3
  import { SelectOptionsDto } from '../../dto/general.dto';
2
4
  import { AvailabilityStatusEnum, ResourceNameTypeEnum } from '../../services/enums.service';
3
5
  import { IMassActionFilter, IPaginationQuery } from '../../util/models/interfaces/general.interfaces';
4
6
  import { ResourcesOptionsDto } from '../dto/waitlist.dto';
5
- import { WaitlistEntryOrderBy, WaitlistFilterInternalOptionsEnum, WaitlistFilterOptionsEnum, WaitlistFilterParamsEnum, WaitlistOwnerTypeEnum } from './waitlist.enums';
6
7
  export interface IMassActionWaitlistEntry {
7
8
  id: number;
8
9
  cartId?: number;
@@ -61,3 +62,7 @@ export interface IAttendanceInfo {
61
62
  spotsLeftMap?: Map<number, number>;
62
63
  parentStatus?: AvailabilityStatusEnum;
63
64
  }
65
+ export interface IExistingWaitlistEntry {
66
+ existingEntry: WaitlistEntry;
67
+ entryToCreate: ICreateWaitlistEntry;
68
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"waitlist.interface.js","sourceRoot":"","sources":["../../../../src/types/waitlist/types/waitlist.interface.ts"],"names":[],"mappings":";;AAIA,qDAM0B"}
1
+ {"version":3,"file":"waitlist.interface.js","sourceRoot":"","sources":["../../../../src/types/waitlist/types/waitlist.interface.ts"],"names":[],"mappings":";;AAAA,qDAM0B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.3.21",
3
+ "version": "2.3.27",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/types/folders/types/consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AAChE,QAAA,0BAA0B,GAAG,EAAE,CAAC"}
@@ -1,11 +0,0 @@
1
- export declare enum GroupsSortByFieldsEnum {
2
- NAME = "name",
3
- PARENT_NAME = "parentName",
4
- CONTENT_COUNT = "contentCount",
5
- WAIVERS_COUNT = "waiversCount",
6
- PAID_AMOUNT = "paidAmount"
7
- }
8
- export declare enum FolderSortColumn {
9
- NAME = "name",
10
- CATEGORY = "category"
11
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FolderSortColumn = exports.GroupsSortByFieldsEnum = void 0;
4
- var GroupsSortByFieldsEnum;
5
- (function (GroupsSortByFieldsEnum) {
6
- GroupsSortByFieldsEnum["NAME"] = "name";
7
- GroupsSortByFieldsEnum["PARENT_NAME"] = "parentName";
8
- GroupsSortByFieldsEnum["CONTENT_COUNT"] = "contentCount";
9
- GroupsSortByFieldsEnum["WAIVERS_COUNT"] = "waiversCount";
10
- GroupsSortByFieldsEnum["PAID_AMOUNT"] = "paidAmount";
11
- })(GroupsSortByFieldsEnum = exports.GroupsSortByFieldsEnum || (exports.GroupsSortByFieldsEnum = {}));
12
- var FolderSortColumn;
13
- (function (FolderSortColumn) {
14
- FolderSortColumn["NAME"] = "name";
15
- FolderSortColumn["CATEGORY"] = "category";
16
- })(FolderSortColumn = exports.FolderSortColumn || (exports.FolderSortColumn = {}));
17
- //# sourceMappingURL=enums.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/folders/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAMX;AAND,WAAY,sBAAsB;IACjC,uCAAa,CAAA;IACb,oDAA0B,CAAA;IAC1B,wDAA8B,CAAA;IAC9B,wDAA8B,CAAA;IAC9B,oDAA0B,CAAA;AAC3B,CAAC,EANW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAMjC;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,iCAAa,CAAA;IACb,yCAAqB,CAAA;AACtB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"porduct-resource.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/porduct-resource.interfaces.ts"],"names":[],"mappings":""}