@bondsports/types 2.4.69-a-5 → 2.4.69-a-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/checkout-questionnaires/types/checkout-questionnaires.types.d.ts +1 -1
- package/dist/types/customers/dto/customer.dto.js.map +1 -1
- package/dist/types/dto/application.dto.js.map +1 -1
- package/dist/types/dto/events.dto.d.ts +1 -1
- package/dist/types/dto/station.dto.d.ts +4 -0
- package/dist/types/dto/station.dto.js +4 -1
- package/dist/types/dto/station.dto.js.map +1 -1
- package/dist/types/employees/dto/employee.dto.d.ts +1 -11
- package/dist/types/employees/dto/employee.dto.js +1 -4
- package/dist/types/employees/dto/employee.dto.js.map +1 -1
- package/dist/types/entity/index.d.ts +0 -3
- package/dist/types/entity/index.js +0 -3
- package/dist/types/entity/index.js.map +1 -1
- package/dist/types/folders/types/folder-restrictions.consts.d.ts +19 -0
- package/dist/types/folders/types/folder-restrictions.consts.js +20 -1
- package/dist/types/folders/types/folder-restrictions.consts.js.map +1 -1
- package/dist/types/folders/types/interfaces/folder-restrictions.interfaces.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/leagues-scheduler/types/interfaces.d.ts +5 -0
- package/dist/types/leagues-scheduler/types/interfaces.js.map +1 -1
- package/dist/types/membership/dto/eligible-members.dto.d.ts +2 -8
- package/dist/types/membership/dto/eligible-members.dto.js +1 -4
- package/dist/types/membership/dto/eligible-members.dto.js.map +1 -1
- package/dist/types/membership/types/membership.interfaces.d.ts +4 -9
- package/dist/types/notifications/dto/index.d.ts +1 -0
- package/dist/types/notifications/dto/index.js +1 -0
- package/dist/types/notifications/dto/index.js.map +1 -1
- package/dist/types/notifications/dto/notification-subscriptions.dto.d.ts +28 -0
- package/dist/types/notifications/dto/notification-subscriptions.dto.js +24 -0
- package/dist/types/notifications/dto/notification-subscriptions.dto.js.map +1 -0
- package/dist/types/notifications/dto/notification.create.dto.d.ts +5 -0
- package/dist/types/notifications/dto/notification.create.dto.js +6 -2
- package/dist/types/notifications/dto/notification.create.dto.js.map +1 -1
- package/dist/types/notifications/entities/index.d.ts +2 -0
- package/dist/types/notifications/entities/index.js +19 -0
- package/dist/types/notifications/entities/index.js.map +1 -0
- package/dist/types/notifications/entities/notification-subscription-to-facility.entity.d.ts +10 -0
- package/dist/types/notifications/entities/notification-subscription-to-facility.entity.js +8 -0
- package/dist/types/notifications/entities/notification-subscription-to-facility.entity.js.map +1 -0
- package/dist/types/notifications/entities/notification-subscription.entity.d.ts +12 -0
- package/dist/types/{entity/NotificationSubscriptions.js → notifications/entities/notification-subscription.entity.js} +2 -2
- package/dist/types/notifications/entities/notification-subscription.entity.js.map +1 -0
- package/dist/types/notifications/index.d.ts +1 -0
- package/dist/types/notifications/index.js +1 -0
- package/dist/types/notifications/index.js.map +1 -1
- package/dist/types/notifications/types/consts/notification.consts.d.ts +1 -0
- package/dist/types/notifications/types/consts/notification.consts.js +2 -1
- package/dist/types/notifications/types/consts/notification.consts.js.map +1 -1
- package/dist/types/notifications/types/enums/notification.enums.d.ts +5 -0
- package/dist/types/notifications/types/enums/notification.enums.js +7 -1
- package/dist/types/notifications/types/enums/notification.enums.js.map +1 -1
- package/dist/types/notifications/types/interfaces/index.d.ts +1 -0
- package/dist/types/notifications/types/interfaces/index.js +1 -0
- package/dist/types/notifications/types/interfaces/index.js.map +1 -1
- package/dist/types/notifications/types/interfaces/notification-subscriptions.interfaces.d.ts +28 -0
- package/dist/types/notifications/types/interfaces/notification-subscriptions.interfaces.js +3 -0
- package/dist/types/notifications/types/interfaces/notification-subscriptions.interfaces.js.map +1 -0
- package/dist/types/notifications/types/interfaces/notification.interfaces.d.ts +6 -0
- package/dist/types/product-pricing/dto/product-categories.dto.d.ts +2 -0
- package/dist/types/product-pricing/dto/product-categories.dto.js.map +1 -1
- package/dist/types/product-pricing/entities/product-category.entity.d.ts +1 -1
- package/dist/types/product-pricing/entities/station-to-product-category.entity.d.ts +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +1 -1
- package/dist/types/resources/dto/space.dto.d.ts +1 -1
- package/dist/types/resources/dto/space.dto.js.map +1 -1
- package/dist/types/resources/entities/Space.d.ts +1 -1
- package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +1 -1
- package/dist/types/services/interfaces.service.d.ts +2 -2
- package/dist/types/shifts/entities/shift.entity.d.ts +1 -1
- package/dist/types/stations/dto/index.d.ts +1 -0
- package/dist/types/stations/dto/index.js +18 -0
- package/dist/types/stations/dto/index.js.map +1 -0
- package/dist/types/stations/dto/stations.dto.d.ts +7 -0
- package/dist/types/stations/dto/stations.dto.js +11 -0
- package/dist/types/stations/dto/stations.dto.js.map +1 -0
- package/dist/types/stations/entities/index.d.ts +1 -0
- package/dist/types/stations/entities/index.js +18 -0
- package/dist/types/stations/entities/index.js.map +1 -0
- package/dist/types/stations/entities/station.entity.d.ts +17 -0
- package/dist/types/{entity/Station.js → stations/entities/station.entity.js} +2 -2
- package/dist/types/stations/entities/station.entity.js.map +1 -0
- package/dist/types/stations/index.d.ts +3 -0
- package/dist/types/stations/index.js +20 -0
- package/dist/types/stations/index.js.map +1 -0
- package/dist/types/stations/types/index.d.ts +1 -0
- package/dist/types/stations/types/index.js +18 -0
- package/dist/types/stations/types/index.js.map +1 -0
- package/dist/types/stations/types/interfaces/index.d.ts +1 -0
- package/dist/types/stations/types/interfaces/index.js +18 -0
- package/dist/types/stations/types/interfaces/index.js.map +1 -0
- package/dist/types/stations/types/interfaces/stations.interfaces.d.ts +3 -0
- package/dist/types/stations/types/interfaces/stations.interfaces.js +3 -0
- package/dist/types/stations/types/interfaces/stations.interfaces.js.map +1 -0
- package/dist/types/user/types/user.interfaces.d.ts +2 -2
- package/package.json +1 -1
- package/dist/types/entity/NotificationSubscriptions.d.ts +0 -8
- package/dist/types/entity/NotificationSubscriptions.js.map +0 -1
- package/dist/types/entity/School.d.ts +0 -9
- package/dist/types/entity/School.js +0 -8
- package/dist/types/entity/School.js.map +0 -1
- package/dist/types/entity/Station.d.ts +0 -17
- package/dist/types/entity/Station.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customer.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customer.dto.ts"],"names":[],"mappings":";;;AAMA,MAAM,eAAe;CAkCpB;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAUrD;AAVD,8CAUC;AAED,MAAa,eAAgB,SAAQ,eAAe;CAEnD;AAFD,0CAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.dto.js","sourceRoot":"","sources":["../../../src/types/dto/application.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"application.dto.js","sourceRoot":"","sources":["../../../src/types/dto/application.dto.ts"],"names":[],"mappings":";;;AAIA,+CAAsC;AAEtC,MAAa,SAAS;CAYrB;AAZD,8BAYC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,yBAAyB;CAgBrC;AAhBD,8DAgBC;AAGD,MAAM,sBAAsB;CAM3B;AAED,MAAa,qBAAsB,SAAQ,sBAAsB;CAUhE;AAVD,sDAUC;AAED,MAAa,oBAAoB;CAYhC;AAZD,oDAYC;AAED,MAAa,oBAAqB,SAAQ,mBAAK;CAI9C;AAJD,oDAIC"}
|
|
@@ -134,8 +134,8 @@ export interface IAttendeesOfSessionEventFilters {
|
|
|
134
134
|
teamFolderIds?: number[];
|
|
135
135
|
}
|
|
136
136
|
export interface INotifyEventAttendee extends IEventAttendeeBase {
|
|
137
|
-
email: string | null;
|
|
138
137
|
facilityId: number | null;
|
|
138
|
+
email: string | null;
|
|
139
139
|
organizationName: string;
|
|
140
140
|
parentSessionName: string | null;
|
|
141
141
|
programName: string;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StationDto = void 0;
|
|
3
|
+
exports.StationDetailDto = exports.StationDto = void 0;
|
|
4
4
|
const organization_dto_1 = require("../organization/dto/organization.dto");
|
|
5
5
|
class StationDto extends organization_dto_1.OrganizationBaseEntityDto {
|
|
6
6
|
}
|
|
7
7
|
exports.StationDto = StationDto;
|
|
8
|
+
class StationDetailDto extends StationDto {
|
|
9
|
+
}
|
|
10
|
+
exports.StationDetailDto = StationDetailDto;
|
|
8
11
|
//# sourceMappingURL=station.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"station.dto.js","sourceRoot":"","sources":["../../../src/types/dto/station.dto.ts"],"names":[],"mappings":";;;AACA,2EAAiF;AAEjF,MAAa,UAAW,SAAQ,4CAAyB;CAMxD;AAND,gCAMC"}
|
|
1
|
+
{"version":3,"file":"station.dto.js","sourceRoot":"","sources":["../../../src/types/dto/station.dto.ts"],"names":[],"mappings":";;;AACA,2EAAiF;AAEjF,MAAa,UAAW,SAAQ,4CAAyB;CAMxD;AAND,gCAMC;AAED,MAAa,gBAAiB,SAAQ,UAAU;CAI/C;AAJD,4CAIC"}
|
|
@@ -3,10 +3,8 @@ import { Address } from '../../address/entities/Address';
|
|
|
3
3
|
import { PaginationQuery } from '../../dto/general.dto';
|
|
4
4
|
import { SimpleFacilityDto } from '../../facilities/dto/facilities.dto';
|
|
5
5
|
import { MediaDto } from '../../media/dto/media.dto';
|
|
6
|
-
import {
|
|
7
|
-
import { RoleDto, SimpleRoleDto } from '../../roles/dto/role.dto';
|
|
6
|
+
import { SimpleRoleDto } from '../../roles/dto/role.dto';
|
|
8
7
|
import { CustomerTypeEnum, GenderEnum, OrderByEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
9
|
-
import { User } from '../../user/entities/User';
|
|
10
8
|
import { EmployeeStatus, OrganizationUserOrderBy, UserOrderBy } from '../types/enums';
|
|
11
9
|
export declare class ByEmployeeIdDto {
|
|
12
10
|
employeeId: number;
|
|
@@ -34,14 +32,6 @@ export declare class EmployeeDto {
|
|
|
34
32
|
roles?: SimpleRoleDto[];
|
|
35
33
|
facilities?: SimpleFacilityDto[];
|
|
36
34
|
}
|
|
37
|
-
export declare class BuildEmployee {
|
|
38
|
-
user: User;
|
|
39
|
-
customerId: number;
|
|
40
|
-
organizationUser: OrganizationUsers;
|
|
41
|
-
roles: RoleDto[];
|
|
42
|
-
facilityIds?: number[];
|
|
43
|
-
defaultFacilityId?: number | null;
|
|
44
|
-
}
|
|
45
35
|
export declare class CreateEmployeeDto {
|
|
46
36
|
firstName: string;
|
|
47
37
|
lastName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetEmployeesByFilterOptions = exports.UpdateEmployeeDto = exports.CreateEmployeeOptions = exports.CreateEmployeeDto = exports.
|
|
3
|
+
exports.GetEmployeesByFilterOptions = exports.UpdateEmployeeDto = exports.CreateEmployeeOptions = exports.CreateEmployeeDto = exports.EmployeeDto = exports.ByEmployeeIdDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
class ByEmployeeIdDto {
|
|
6
6
|
}
|
|
@@ -8,9 +8,6 @@ exports.ByEmployeeIdDto = ByEmployeeIdDto;
|
|
|
8
8
|
class EmployeeDto {
|
|
9
9
|
}
|
|
10
10
|
exports.EmployeeDto = EmployeeDto;
|
|
11
|
-
class BuildEmployee {
|
|
12
|
-
}
|
|
13
|
-
exports.BuildEmployee = BuildEmployee;
|
|
14
11
|
class CreateEmployeeDto {
|
|
15
12
|
}
|
|
16
13
|
exports.CreateEmployeeDto = CreateEmployeeDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;
|
|
1
|
+
{"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AAOxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CA0CvB;AA1CD,kCA0CC;AAED,MAAa,iBAAiB;CAkD7B;AAlDD,8CAkDC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,MAAa,iBAAiB;CA8B7B;AA9BD,8CA8BC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;IAAhE;;QAWC,iBAAY,GAAa,IAAI,CAAC;IAS/B,CAAC;CAAA;AApBD,kEAoBC"}
|
|
@@ -32,7 +32,6 @@ export * from './LeagueSeason';
|
|
|
32
32
|
export * from './LineItemHistory';
|
|
33
33
|
export * from './LineItems';
|
|
34
34
|
export * from './LinkedAccounts';
|
|
35
|
-
export * from './NotificationSubscriptions';
|
|
36
35
|
export * from './OrganizationConnectionBaseEntity';
|
|
37
36
|
export * from './PackageV1';
|
|
38
37
|
export * from './PasswordReset';
|
|
@@ -45,12 +44,10 @@ export * from './ProductsUsers';
|
|
|
45
44
|
export * from './PurchasedResources';
|
|
46
45
|
export * from './RegistrationConstraint';
|
|
47
46
|
export * from './ResourceGroup';
|
|
48
|
-
export * from './School';
|
|
49
47
|
export * from './SeasonAttendees';
|
|
50
48
|
export * from './SeasonDivisions';
|
|
51
49
|
export * from './SeasonPool';
|
|
52
50
|
export * from './SeasonTeam';
|
|
53
|
-
export * from './Station';
|
|
54
51
|
export * from './Team';
|
|
55
52
|
export * from './TeamInvite';
|
|
56
53
|
export * from './TeamMember';
|
|
@@ -48,7 +48,6 @@ __exportStar(require("./LeagueSeason"), exports);
|
|
|
48
48
|
__exportStar(require("./LineItemHistory"), exports);
|
|
49
49
|
__exportStar(require("./LineItems"), exports);
|
|
50
50
|
__exportStar(require("./LinkedAccounts"), exports);
|
|
51
|
-
__exportStar(require("./NotificationSubscriptions"), exports);
|
|
52
51
|
__exportStar(require("./OrganizationConnectionBaseEntity"), exports);
|
|
53
52
|
__exportStar(require("./PackageV1"), exports);
|
|
54
53
|
__exportStar(require("./PasswordReset"), exports);
|
|
@@ -61,12 +60,10 @@ __exportStar(require("./ProductsUsers"), exports);
|
|
|
61
60
|
__exportStar(require("./PurchasedResources"), exports);
|
|
62
61
|
__exportStar(require("./RegistrationConstraint"), exports);
|
|
63
62
|
__exportStar(require("./ResourceGroup"), exports);
|
|
64
|
-
__exportStar(require("./School"), exports);
|
|
65
63
|
__exportStar(require("./SeasonAttendees"), exports);
|
|
66
64
|
__exportStar(require("./SeasonDivisions"), exports);
|
|
67
65
|
__exportStar(require("./SeasonPool"), exports);
|
|
68
66
|
__exportStar(require("./SeasonTeam"), exports);
|
|
69
|
-
__exportStar(require("./Station"), exports);
|
|
70
67
|
__exportStar(require("./Team"), exports);
|
|
71
68
|
__exportStar(require("./TeamInvite"), exports);
|
|
72
69
|
__exportStar(require("./TeamMember"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,8DAA4C;AAC5C,kDAAgC;AAChC,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,kDAAgC;AAChC,0CAAwB;AACxB,sDAAoC;AACpC,sDAAoC;AACpC,4CAA0B;AAC1B,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,8DAA4C;AAC5C,kDAAgC;AAChC,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,kDAAgC;AAChC,0CAAwB;AACxB,sDAAoC;AACpC,sDAAoC;AACpC,4CAA0B;AAC1B,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,qEAAmD;AACnD,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,2DAAyC;AACzC,kDAAgC;AAChC,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,+CAA6B;AAC7B,yCAAuB;AACvB,+CAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,iDAA+B;AAC/B,kDAAgC;AAChC,6CAA2B;AAC3B,wDAAsC"}
|
|
@@ -7,6 +7,25 @@ export declare const MAX_FEMALE_USER_COUNT = "maxFemaleUserCount";
|
|
|
7
7
|
export declare const VIOLATION_TO_RULE_KEYS: Record<FolderRestrictionViolationCodeEnum, string[]>;
|
|
8
8
|
export declare const FOLDER_RESTRICTIONS_POLICY_VERSION = 1;
|
|
9
9
|
export declare const SKIP_ALL_RESTRICTIONS = "*";
|
|
10
|
+
/**
|
|
11
|
+
* Classifier (first key) for the Postgres transaction-scoped advisory lock used to serialize
|
|
12
|
+
* concurrent subfolder creations on the same parent folder. The parent folder id is passed as
|
|
13
|
+
* the second key, so locks for different parents never collide while locks for the same parent
|
|
14
|
+
* serialize. Keeping a dedicated namespace avoids clashes with any other advisory-lock usage.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SUBFOLDER_CAPACITY_ADVISORY_LOCK_NAMESPACE = 4501;
|
|
17
|
+
/**
|
|
18
|
+
* Maximum number of attempts to acquire the subfolder-capacity advisory lock before giving up. The
|
|
19
|
+
* lock is held for the lifetime of the purchase transaction (which includes the Stripe charge), so
|
|
20
|
+
* we poll with `pg_try_advisory_xact_lock` instead of blocking indefinitely on
|
|
21
|
+
* the wait at roughly 10s and lets the caller fail with a clean, retryable error instead of hanging
|
|
22
|
+
* until the gateway times out.
|
|
23
|
+
*/
|
|
24
|
+
export declare const SUBFOLDER_CAPACITY_LOCK_MAX_ATTEMPTS = 50;
|
|
25
|
+
/**
|
|
26
|
+
* Delay between subfolder-capacity advisory lock acquisition attempts.
|
|
27
|
+
*/
|
|
28
|
+
export declare const SUBFOLDER_CAPACITY_LOCK_RETRY_DELAY_MS = 200;
|
|
10
29
|
export declare const DEFAULT_MAX_SUBFOLDER_COUNT_EXEMPTION_METATYPES: MetaTypeEnum[];
|
|
11
30
|
export declare const DEFAULT_STAFF_EXEMPTION_PARTICIPANT_TYPES: ProductSubTypesEnum[];
|
|
12
31
|
export declare const DEFAULT_MAX_USER_COUNT_EXEMPTION_PARTICIPANT_TYPES: ProductSubTypesEnum[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_USER_ALLOWED_GENDERS_EXEMPTION_PARTICIPANT_TYPES = exports.DEFAULT_USER_AGE_RESTRICTION_EXEMPTION_PARTICIPANT_TYPES = exports.DEFAULT_MAX_USER_COUNT_EXEMPTION_PARTICIPANT_TYPES = exports.DEFAULT_STAFF_EXEMPTION_PARTICIPANT_TYPES = exports.DEFAULT_MAX_SUBFOLDER_COUNT_EXEMPTION_METATYPES = exports.SKIP_ALL_RESTRICTIONS = exports.FOLDER_RESTRICTIONS_POLICY_VERSION = exports.VIOLATION_TO_RULE_KEYS = exports.MAX_FEMALE_USER_COUNT = exports.MAX_MALE_USER_COUNT = exports.MAX_USER_COUNT = void 0;
|
|
3
|
+
exports.DEFAULT_USER_ALLOWED_GENDERS_EXEMPTION_PARTICIPANT_TYPES = exports.DEFAULT_USER_AGE_RESTRICTION_EXEMPTION_PARTICIPANT_TYPES = exports.DEFAULT_MAX_USER_COUNT_EXEMPTION_PARTICIPANT_TYPES = exports.DEFAULT_STAFF_EXEMPTION_PARTICIPANT_TYPES = exports.DEFAULT_MAX_SUBFOLDER_COUNT_EXEMPTION_METATYPES = exports.SUBFOLDER_CAPACITY_LOCK_RETRY_DELAY_MS = exports.SUBFOLDER_CAPACITY_LOCK_MAX_ATTEMPTS = exports.SUBFOLDER_CAPACITY_ADVISORY_LOCK_NAMESPACE = exports.SKIP_ALL_RESTRICTIONS = exports.FOLDER_RESTRICTIONS_POLICY_VERSION = exports.VIOLATION_TO_RULE_KEYS = exports.MAX_FEMALE_USER_COUNT = exports.MAX_MALE_USER_COUNT = exports.MAX_USER_COUNT = void 0;
|
|
4
4
|
const enums_service_1 = require("../../services/enums.service");
|
|
5
5
|
const folder_restrictions_enums_1 = require("./folder-restrictions.enums");
|
|
6
6
|
const folders_enums_1 = require("./folders.enums");
|
|
@@ -20,6 +20,25 @@ exports.VIOLATION_TO_RULE_KEYS = {
|
|
|
20
20
|
};
|
|
21
21
|
exports.FOLDER_RESTRICTIONS_POLICY_VERSION = 1;
|
|
22
22
|
exports.SKIP_ALL_RESTRICTIONS = '*';
|
|
23
|
+
/**
|
|
24
|
+
* Classifier (first key) for the Postgres transaction-scoped advisory lock used to serialize
|
|
25
|
+
* concurrent subfolder creations on the same parent folder. The parent folder id is passed as
|
|
26
|
+
* the second key, so locks for different parents never collide while locks for the same parent
|
|
27
|
+
* serialize. Keeping a dedicated namespace avoids clashes with any other advisory-lock usage.
|
|
28
|
+
*/
|
|
29
|
+
exports.SUBFOLDER_CAPACITY_ADVISORY_LOCK_NAMESPACE = 4501;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum number of attempts to acquire the subfolder-capacity advisory lock before giving up. The
|
|
32
|
+
* lock is held for the lifetime of the purchase transaction (which includes the Stripe charge), so
|
|
33
|
+
* we poll with `pg_try_advisory_xact_lock` instead of blocking indefinitely on
|
|
34
|
+
* the wait at roughly 10s and lets the caller fail with a clean, retryable error instead of hanging
|
|
35
|
+
* until the gateway times out.
|
|
36
|
+
*/
|
|
37
|
+
exports.SUBFOLDER_CAPACITY_LOCK_MAX_ATTEMPTS = 50;
|
|
38
|
+
/**
|
|
39
|
+
* Delay between subfolder-capacity advisory lock acquisition attempts.
|
|
40
|
+
*/
|
|
41
|
+
exports.SUBFOLDER_CAPACITY_LOCK_RETRY_DELAY_MS = 200;
|
|
23
42
|
exports.DEFAULT_MAX_SUBFOLDER_COUNT_EXEMPTION_METATYPES = [folders_enums_1.MetaTypeEnum.UNSPECIFIED, folders_enums_1.MetaTypeEnum.GROUP];
|
|
24
43
|
exports.DEFAULT_STAFF_EXEMPTION_PARTICIPANT_TYPES = [
|
|
25
44
|
enums_service_1.ProductSubTypesEnum.LEAGUE_V2_ORGANIZER,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folder-restrictions.consts.js","sourceRoot":"","sources":["../../../../src/types/folders/types/folder-restrictions.consts.ts"],"names":[],"mappings":";;;AAAA,gEAAmE;AAEnE,2EAAiF;AACjF,mDAA+C;AAElC,QAAA,cAAc,GAAG,cAAc,CAAC;AAEhC,QAAA,mBAAmB,GAAG,kBAAkB,CAAC;AAEzC,QAAA,qBAAqB,GAAG,oBAAoB,CAAC;AAE7C,QAAA,sBAAsB,GAAyD;IAC3F,CAAC,8DAAkC,CAAC,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,CAAC;IAC/E,CAAC,8DAAkC,CAAC,cAAc,CAAC,EAAE,CAAC,sBAAc,CAAC;IACrE,CAAC,8DAAkC,CAAC,mBAAmB,CAAC,EAAE,CAAC,2BAAmB,CAAC;IAC/E,CAAC,8DAAkC,CAAC,qBAAqB,CAAC,EAAE,CAAC,6BAAqB,CAAC;IACnF,CAAC,8DAAkC,CAAC,aAAa,CAAC,EAAE,CAAC,mBAAmB,CAAC;IACzE,CAAC,8DAAkC,CAAC,YAAY,CAAC,EAAE,CAAC,oBAAoB,CAAC;IACzE,CAAC,8DAAkC,CAAC,aAAa,CAAC,EAAE,CAAC,0BAA0B,CAAC;IAChF,CAAC,8DAAkC,CAAC,WAAW,CAAC,EAAE,CAAC,0BAA0B,CAAC;IAC9E,CAAC,8DAAkC,CAAC,kBAAkB,CAAC,EAAE,CAAC,oBAAoB,CAAC;CAC/E,CAAC;AAEW,QAAA,kCAAkC,GAAG,CAAC,CAAC;AAEvC,QAAA,qBAAqB,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"folder-restrictions.consts.js","sourceRoot":"","sources":["../../../../src/types/folders/types/folder-restrictions.consts.ts"],"names":[],"mappings":";;;AAAA,gEAAmE;AAEnE,2EAAiF;AACjF,mDAA+C;AAElC,QAAA,cAAc,GAAG,cAAc,CAAC;AAEhC,QAAA,mBAAmB,GAAG,kBAAkB,CAAC;AAEzC,QAAA,qBAAqB,GAAG,oBAAoB,CAAC;AAE7C,QAAA,sBAAsB,GAAyD;IAC3F,CAAC,8DAAkC,CAAC,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,CAAC;IAC/E,CAAC,8DAAkC,CAAC,cAAc,CAAC,EAAE,CAAC,sBAAc,CAAC;IACrE,CAAC,8DAAkC,CAAC,mBAAmB,CAAC,EAAE,CAAC,2BAAmB,CAAC;IAC/E,CAAC,8DAAkC,CAAC,qBAAqB,CAAC,EAAE,CAAC,6BAAqB,CAAC;IACnF,CAAC,8DAAkC,CAAC,aAAa,CAAC,EAAE,CAAC,mBAAmB,CAAC;IACzE,CAAC,8DAAkC,CAAC,YAAY,CAAC,EAAE,CAAC,oBAAoB,CAAC;IACzE,CAAC,8DAAkC,CAAC,aAAa,CAAC,EAAE,CAAC,0BAA0B,CAAC;IAChF,CAAC,8DAAkC,CAAC,WAAW,CAAC,EAAE,CAAC,0BAA0B,CAAC;IAC9E,CAAC,8DAAkC,CAAC,kBAAkB,CAAC,EAAE,CAAC,oBAAoB,CAAC;CAC/E,CAAC;AAEW,QAAA,kCAAkC,GAAG,CAAC,CAAC;AAEvC,QAAA,qBAAqB,GAAG,GAAG,CAAC;AAEzC;;;;;GAKG;AACU,QAAA,0CAA0C,GAAG,IAAI,CAAC;AAE/D;;;;;;GAMG;AACU,QAAA,oCAAoC,GAAG,EAAE,CAAC;AAEvD;;GAEG;AACU,QAAA,sCAAsC,GAAG,GAAG,CAAC;AAE7C,QAAA,+CAA+C,GAAG,CAAC,4BAAY,CAAC,WAAW,EAAE,4BAAY,CAAC,KAAK,CAAC,CAAC;AAEjG,QAAA,yCAAyC,GAAG;IACxD,mCAAmB,CAAC,mBAAmB;IACvC,mCAAmB,CAAC,eAAe;CACnC,CAAC;AAEW,QAAA,kDAAkD,GAAG,iDAAyC,CAAC;AAE/F,QAAA,wDAAwD,GAAG,iDAAyC,CAAC;AAErG,QAAA,wDAAwD,GAAG,iDAAyC,CAAC"}
|
|
@@ -158,6 +158,7 @@ export interface IFolderContentOperationOptions {
|
|
|
158
158
|
export interface IFolderRestrictionOptions {
|
|
159
159
|
participantSubtype?: ProductSubTypesEnum;
|
|
160
160
|
skipFolderContentRestrictions?: typeof SKIP_ALL_RESTRICTIONS | string[];
|
|
161
|
+
purchaseContext?: boolean;
|
|
161
162
|
}
|
|
162
163
|
/**
|
|
163
164
|
* Options for bulk folder restriction validation with optional user IDs.
|
package/dist/types/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export * from './services';
|
|
|
56
56
|
export * from './session-participants';
|
|
57
57
|
export * from './shifts';
|
|
58
58
|
export * from './standings-integration';
|
|
59
|
+
export * from './stations';
|
|
59
60
|
export * from './taxes';
|
|
60
61
|
export * from './teams';
|
|
61
62
|
export * from './templates';
|
package/dist/types/index.js
CHANGED
|
@@ -72,6 +72,7 @@ __exportStar(require("./services"), exports);
|
|
|
72
72
|
__exportStar(require("./session-participants"), exports);
|
|
73
73
|
__exportStar(require("./shifts"), exports);
|
|
74
74
|
__exportStar(require("./standings-integration"), exports);
|
|
75
|
+
__exportStar(require("./stations"), exports);
|
|
75
76
|
__exportStar(require("./taxes"), exports);
|
|
76
77
|
__exportStar(require("./teams"), exports);
|
|
77
78
|
__exportStar(require("./templates"), exports);
|
package/dist/types/index.js.map
CHANGED
|
@@ -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,4DAA0C;AAC1C,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,sDAAoC;AACpC,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,uDAAqC;AACrC,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,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,0CAAwB;AACxB,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B;AAC5B,uDAAqC;AACrC,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,4DAA0C;AAC1C,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,sDAAoC;AACpC,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,uDAAqC;AACrC,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,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,0CAAwB;AACxB,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B;AAC5B,uDAAqC;AACrC,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -246,6 +246,11 @@ export interface ICheckResourceConflictsParams {
|
|
|
246
246
|
manager: EntityManager;
|
|
247
247
|
startTime: string;
|
|
248
248
|
}
|
|
249
|
+
export interface ICheckGamesResourceConflictsParams {
|
|
250
|
+
organizationId: number;
|
|
251
|
+
games: IGameSchedule[];
|
|
252
|
+
manager: EntityManager;
|
|
253
|
+
}
|
|
249
254
|
export interface IGenerateScheduleParams {
|
|
250
255
|
organizationId: number;
|
|
251
256
|
config: IScheduleConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/types/interfaces.ts"],"names":[],"mappings":";;;AAIA,mCAUiB;AAGhB,mGAZA,0BAAkB,OAYA;AAClB,kGAZA,yBAAiB,OAYA;AACjB,yGAZA,gCAAwB,OAYA;AACxB,uGAZA,8BAAsB,OAYA;AACtB,6FAZA,oBAAY,OAYA;AACZ,iGAZA,wBAAgB,OAYA;AAChB,wGAZA,+BAAuB,OAYA;AACvB,+GAZA,sCAA8B,OAYA;AAC9B,yGAZA,gCAAwB,OAYA;
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/types/interfaces.ts"],"names":[],"mappings":";;;AAIA,mCAUiB;AAGhB,mGAZA,0BAAkB,OAYA;AAClB,kGAZA,yBAAiB,OAYA;AACjB,yGAZA,gCAAwB,OAYA;AACxB,uGAZA,8BAAsB,OAYA;AACtB,6FAZA,oBAAY,OAYA;AACZ,iGAZA,wBAAgB,OAYA;AAChB,wGAZA,+BAAuB,OAYA;AACvB,+GAZA,sCAA8B,OAYA;AAC9B,yGAZA,gCAAwB,OAYA;AAwWzB,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IACnC,iEAAqC,CAAA;IACrC,uEAA2C,CAAA;AAC5C,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC"}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import { GenderEnum } from '../../services/enums.service';
|
|
2
|
+
import { SimpleUserDto } from '../../user/dto/user.dto';
|
|
2
3
|
import { IEligibleFamilyMember, IEligibleMembersResponse } from '../types/membership.interfaces';
|
|
3
4
|
export declare class ByOrganizationIdPackageProductUserIdDto {
|
|
4
5
|
organizationId: number;
|
|
5
6
|
packageProductUserId: number;
|
|
6
7
|
}
|
|
7
|
-
export declare class EligibleFamilyMemberUserDto {
|
|
8
|
-
id: number;
|
|
9
|
-
firstName: string;
|
|
10
|
-
lastName: string;
|
|
11
|
-
gender: GenderEnum;
|
|
12
|
-
birthDate: string | null;
|
|
13
|
-
}
|
|
14
8
|
export declare class EligibleFamilyMemberDto implements IEligibleFamilyMember {
|
|
15
9
|
membershipMemberId: number | null;
|
|
16
10
|
ineligibilityReasons: string[];
|
|
17
11
|
isAdmin: boolean;
|
|
18
12
|
isAlreadyMember: boolean;
|
|
19
13
|
isEligible: boolean;
|
|
20
|
-
user:
|
|
14
|
+
user: SimpleUserDto;
|
|
21
15
|
}
|
|
22
16
|
export declare class EligibleMembersCapacityDto {
|
|
23
17
|
currentTotal: number;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EligibleMembersResponseDto = exports.EligibleMembersMembershipDto = exports.EligibleMembersCapacityDto = exports.EligibleFamilyMemberDto = exports.
|
|
3
|
+
exports.EligibleMembersResponseDto = exports.EligibleMembersMembershipDto = exports.EligibleMembersCapacityDto = exports.EligibleFamilyMemberDto = exports.ByOrganizationIdPackageProductUserIdDto = void 0;
|
|
4
4
|
class ByOrganizationIdPackageProductUserIdDto {
|
|
5
5
|
}
|
|
6
6
|
exports.ByOrganizationIdPackageProductUserIdDto = ByOrganizationIdPackageProductUserIdDto;
|
|
7
|
-
class EligibleFamilyMemberUserDto {
|
|
8
|
-
}
|
|
9
|
-
exports.EligibleFamilyMemberUserDto = EligibleFamilyMemberUserDto;
|
|
10
7
|
class EligibleFamilyMemberDto {
|
|
11
8
|
}
|
|
12
9
|
exports.EligibleFamilyMemberDto = EligibleFamilyMemberDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eligible-members.dto.js","sourceRoot":"","sources":["../../../../src/types/membership/dto/eligible-members.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"eligible-members.dto.js","sourceRoot":"","sources":["../../../../src/types/membership/dto/eligible-members.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,uCAAuC;CAInD;AAJD,0FAIC;AAED,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,4BAA4B;CAYxC;AAZD,oEAYC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC"}
|
|
@@ -4,6 +4,7 @@ import { InvoiceToPayment } from '../../entity/InvoiceToPayment';
|
|
|
4
4
|
import { LineItems } from '../../entity/LineItems';
|
|
5
5
|
import { PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
6
6
|
import { CancellationStatusEnum, CurrencyEnum, CustomerInMembershipTypeEnum, GenderEnum, MembershipTypeEnum } from '../../services/enums.service';
|
|
7
|
+
import { SimpleUserDto } from '../../user/dto/user.dto';
|
|
7
8
|
import { User } from '../../user/entities/User';
|
|
8
9
|
import { MembershipMemberRenewal } from '../entities/membership-member-renewal.entity';
|
|
9
10
|
import { MembershipMember } from '../entities/membership-member.entity';
|
|
@@ -25,13 +26,7 @@ export interface IEligibleFamilyMember {
|
|
|
25
26
|
isAdmin: boolean;
|
|
26
27
|
isAlreadyMember: boolean;
|
|
27
28
|
isEligible: boolean;
|
|
28
|
-
user:
|
|
29
|
-
id: number;
|
|
30
|
-
firstName: string;
|
|
31
|
-
lastName: string;
|
|
32
|
-
gender: GenderEnum;
|
|
33
|
-
birthDate: string | null;
|
|
34
|
-
};
|
|
29
|
+
user: SimpleUserDto;
|
|
35
30
|
}
|
|
36
31
|
export interface IEligibleMembersResponse {
|
|
37
32
|
capacity: {
|
|
@@ -73,9 +68,9 @@ export interface IExpandedMembershipMemberRawData extends Partial<MembershipMemb
|
|
|
73
68
|
}
|
|
74
69
|
export interface IFamilyMembershipMemberProductPrice {
|
|
75
70
|
id: number;
|
|
76
|
-
price: number;
|
|
77
|
-
productId: number;
|
|
78
71
|
packageProductUserId: number;
|
|
72
|
+
productId: number;
|
|
73
|
+
price: number;
|
|
79
74
|
}
|
|
80
75
|
export interface IRawMembershipMemberWithMembership {
|
|
81
76
|
member_membershipId: number;
|
|
@@ -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("./backoffice.notify.dto"), exports);
|
|
18
|
+
__exportStar(require("./notification-subscriptions.dto"), exports);
|
|
18
19
|
__exportStar(require("./notification.blast.query.dto"), exports);
|
|
19
20
|
__exportStar(require("./notification.create.dto"), exports);
|
|
20
21
|
__exportStar(require("./notification.response.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,iEAA+C;AAC/C,4DAA0C;AAC1C,8DAA4C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,iEAA+C;AAC/C,4DAA0C;AAC1C,8DAA4C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IdDto, PaginatedSearchDto } from '../../dto/general.dto';
|
|
2
|
+
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
3
|
+
import { NotificationTypeEnum } from '../../services/enums.service';
|
|
4
|
+
import { NotificationSubscriptionOrderByEnum } from '../types/enums/notification.enums';
|
|
5
|
+
import { INotificationSubscriptionsQueryOptions } from '../types/interfaces/notification-subscriptions.interfaces';
|
|
6
|
+
export declare class NotificationSubscriptionDto extends OrganizationBaseEntityDto {
|
|
7
|
+
userId?: number;
|
|
8
|
+
email?: string;
|
|
9
|
+
notificationType: NotificationTypeEnum;
|
|
10
|
+
facilityIds: number[];
|
|
11
|
+
}
|
|
12
|
+
export declare class AddNotificationSubscriptionDto {
|
|
13
|
+
userId: number;
|
|
14
|
+
notificationType: NotificationTypeEnum;
|
|
15
|
+
facilityIds: number[];
|
|
16
|
+
}
|
|
17
|
+
export declare class UpdateNotificationSubscriptionDto extends IdDto {
|
|
18
|
+
facilityIds: number[];
|
|
19
|
+
}
|
|
20
|
+
export declare class AddNotificationSubscriptionsDto {
|
|
21
|
+
subscriptions: AddNotificationSubscriptionDto[];
|
|
22
|
+
}
|
|
23
|
+
export declare class UpdateNotificationSubscriptionsDto {
|
|
24
|
+
subscriptions: UpdateNotificationSubscriptionDto[];
|
|
25
|
+
}
|
|
26
|
+
export declare class GetNotificationSubscriptionsQueryDto extends PaginatedSearchDto implements INotificationSubscriptionsQueryOptions {
|
|
27
|
+
orderBy?: NotificationSubscriptionOrderByEnum;
|
|
28
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetNotificationSubscriptionsQueryDto = exports.UpdateNotificationSubscriptionsDto = exports.AddNotificationSubscriptionsDto = exports.UpdateNotificationSubscriptionDto = exports.AddNotificationSubscriptionDto = exports.NotificationSubscriptionDto = void 0;
|
|
4
|
+
const general_dto_1 = require("../../dto/general.dto");
|
|
5
|
+
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
|
+
class NotificationSubscriptionDto extends organization_dto_1.OrganizationBaseEntityDto {
|
|
7
|
+
}
|
|
8
|
+
exports.NotificationSubscriptionDto = NotificationSubscriptionDto;
|
|
9
|
+
class AddNotificationSubscriptionDto {
|
|
10
|
+
}
|
|
11
|
+
exports.AddNotificationSubscriptionDto = AddNotificationSubscriptionDto;
|
|
12
|
+
class UpdateNotificationSubscriptionDto extends general_dto_1.IdDto {
|
|
13
|
+
}
|
|
14
|
+
exports.UpdateNotificationSubscriptionDto = UpdateNotificationSubscriptionDto;
|
|
15
|
+
class AddNotificationSubscriptionsDto {
|
|
16
|
+
}
|
|
17
|
+
exports.AddNotificationSubscriptionsDto = AddNotificationSubscriptionsDto;
|
|
18
|
+
class UpdateNotificationSubscriptionsDto {
|
|
19
|
+
}
|
|
20
|
+
exports.UpdateNotificationSubscriptionsDto = UpdateNotificationSubscriptionsDto;
|
|
21
|
+
class GetNotificationSubscriptionsQueryDto extends general_dto_1.PaginatedSearchDto {
|
|
22
|
+
}
|
|
23
|
+
exports.GetNotificationSubscriptionsQueryDto = GetNotificationSubscriptionsQueryDto;
|
|
24
|
+
//# sourceMappingURL=notification-subscriptions.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-subscriptions.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification-subscriptions.dto.ts"],"names":[],"mappings":";;;AACA,uDAAkE;AAElE,8EAAoF;AAMpF,MAAa,2BAA4B,SAAQ,4CAAyB;CAQzE;AARD,kEAQC;AAED,MAAa,8BAA8B;CAM1C;AAND,wEAMC;AAED,MAAa,iCAAkC,SAAQ,mBAAK;CAE3D;AAFD,8EAEC;AAED,MAAa,+BAA+B;CAE3C;AAFD,0EAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,oCACZ,SAAQ,gCAAkB;CAI1B;AALD,oFAKC"}
|
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ContentDto as IContentDto, NotificationClassification, NotificationCreateDto as INotificationCreateDto, NotificationDeliveryChannel, RecipientDto as IRecipientDto, RecipientsDto as IRecipientsDto, SenderDto as ISenderDto } from '@bondsports/notifications-sdk';
|
|
13
13
|
import { OptionalOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
14
|
+
/**
|
|
15
|
+
* Placeholder recipient user id used when a notification is sent to a raw email
|
|
16
|
+
* address that is not linked to a known user.
|
|
17
|
+
*/
|
|
18
|
+
export declare const TEMP_RECIPIENT_USER_ID = -5;
|
|
14
19
|
/**
|
|
15
20
|
* Represents a recipient with both email address and optional user ID.
|
|
16
21
|
* This allows tracking notifications by user even when their email changes.
|
|
@@ -11,11 +11,15 @@
|
|
|
11
11
|
* ************************
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.NotificationCreateDto = exports.ContentDto = exports.RecipientsDto = exports.SenderDto = exports.RecipientDto = void 0;
|
|
14
|
+
exports.NotificationCreateDto = exports.ContentDto = exports.RecipientsDto = exports.SenderDto = exports.RecipientDto = exports.TEMP_RECIPIENT_USER_ID = void 0;
|
|
15
15
|
const notifications_sdk_1 = require("@bondsports/notifications-sdk");
|
|
16
16
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
17
17
|
// This file contains DTOs for sending notifications with the SendService.
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Placeholder recipient user id used when a notification is sent to a raw email
|
|
20
|
+
* address that is not linked to a known user.
|
|
21
|
+
*/
|
|
22
|
+
exports.TEMP_RECIPIENT_USER_ID = -5;
|
|
19
23
|
/**
|
|
20
24
|
* Represents a recipient with both email address and optional user ID.
|
|
21
25
|
* This allows tracking notifications by user even when their email changes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.create.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification.create.dto.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,qEAQuC;AAEvC,8EAAoF;AAGpF,0EAA0E;
|
|
1
|
+
{"version":3,"file":"notification.create.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification.create.dto.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,qEAQuC;AAEvC,8EAAoF;AAGpF,0EAA0E;AAE1E;;;GAGG;AACU,QAAA,sBAAsB,GAAG,CAAC,CAAC,CAAC;AAEzC;;;GAGG;AACH,MAAa,YAAY;CAQxB;AARD,oCAQC;AAED,MAAa,SAAU,SAAQ,4CAAyB;CAavD;AAbD,8BAaC;AAED,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,UAAU;CAWtB;AAXD,gCAWC;AAED,MAAa,qBAAqB;IAAlC;QAGC,mBAAc,GAAgC,8CAA0B,CAAC,OAAO,CAAC;QAgBjF;WACG;QAEH;;;;WAIG;IACJ,CAAC;CAAA;AA3BD,sDA2BC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./notification-subscription-to-facility.entity"), exports);
|
|
18
|
+
__exportStar(require("./notification-subscription.entity"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/notifications/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iFAA+D;AAC/D,qEAAmD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
2
|
+
import { Facility } from '../../facilities/entities/Facility';
|
|
3
|
+
import { NotificationSubscriptions } from './notification-subscription.entity';
|
|
4
|
+
export declare class NotificationSubscriptionToFacility extends OrganizationConnectionBaseEntity {
|
|
5
|
+
subscriptionId: number;
|
|
6
|
+
facilityId: number;
|
|
7
|
+
deletedAt?: Date;
|
|
8
|
+
facility: Facility;
|
|
9
|
+
subscription: NotificationSubscriptions;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationSubscriptionToFacility = void 0;
|
|
4
|
+
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
|
5
|
+
class NotificationSubscriptionToFacility extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.NotificationSubscriptionToFacility = NotificationSubscriptionToFacility;
|
|
8
|
+
//# sourceMappingURL=notification-subscription-to-facility.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-subscription-to-facility.entity.js","sourceRoot":"","sources":["../../../../src/types/notifications/entities/notification-subscription-to-facility.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAKjG,MAAa,kCAAmC,SAAQ,mEAAgC;CAUvF;AAVD,gFAUC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
2
|
+
import { NotificationTypeEnum } from '../../services/enums.service';
|
|
3
|
+
import { User } from '../../user/entities/User';
|
|
4
|
+
import { NotificationSubscriptionToFacility } from './notification-subscription-to-facility.entity';
|
|
5
|
+
export declare class NotificationSubscriptions extends OrganizationConnectionBaseEntity {
|
|
6
|
+
userId: number | null;
|
|
7
|
+
email: string | null;
|
|
8
|
+
notificationType: NotificationTypeEnum;
|
|
9
|
+
deletedAt?: Date;
|
|
10
|
+
user?: User;
|
|
11
|
+
subscriptionFacilities?: NotificationSubscriptionToFacility[];
|
|
12
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NotificationSubscriptions = void 0;
|
|
4
|
-
const OrganizationConnectionBaseEntity_1 = require("
|
|
4
|
+
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
|
5
5
|
class NotificationSubscriptions extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
6
6
|
}
|
|
7
7
|
exports.NotificationSubscriptions = NotificationSubscriptions;
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=notification-subscription.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-subscription.entity.js","sourceRoot":"","sources":["../../../../src/types/notifications/entities/notification-subscription.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAMjG,MAAa,yBAA0B,SAAQ,mEAAgC;CAY9E;AAZD,8DAYC"}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./dto"), exports);
|
|
18
|
+
__exportStar(require("./entities"), exports);
|
|
18
19
|
__exportStar(require("./types"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
|
|
@@ -2,3 +2,4 @@ export declare const DEFAULT_NOTIFICATION_CLASSIFICATION: "TRANSACTIONAL";
|
|
|
2
2
|
export declare const DEFAULT_NOTIFICATION_DELIVERY_CHANNEL: "EMAIL";
|
|
3
3
|
export declare const EMAIL_REGEX: RegExp;
|
|
4
4
|
export declare const MAX_HTTP_REQUESTS = 10;
|
|
5
|
+
export declare const MAX_NOTIFICATION_SUBSCRIPTIONS_PER_REQUEST = 100;
|