@bondsports/types 2.4.72 → 2.4.73
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/cart/dto/cart-item.dto.d.ts +2 -0
- package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
- package/dist/types/cart/entities/cart-item.entity.d.ts +3 -0
- package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +1 -0
- 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 -0
- package/dist/types/dto/events.dto.js.map +1 -1
- package/dist/types/dto/general.dto.d.ts +1 -0
- package/dist/types/dto/general.dto.js.map +1 -1
- package/dist/types/dto/package.dto.d.ts +1 -0
- package/dist/types/dto/package.dto.js.map +1 -1
- package/dist/types/employees/dto/employee.dto.d.ts +4 -16
- package/dist/types/employees/dto/employee.dto.js +1 -10
- package/dist/types/employees/dto/employee.dto.js.map +1 -1
- package/dist/types/employees/entities/EmployeeFacilityAccess.d.ts +2 -0
- package/dist/types/employees/entities/EmployeeFacilityAccess.js.map +1 -1
- package/dist/types/entity/LineItems.d.ts +3 -0
- package/dist/types/entity/LineItems.js.map +1 -1
- package/dist/types/entity/index.d.ts +0 -1
- package/dist/types/entity/index.js +0 -1
- package/dist/types/entity/index.js.map +1 -1
- package/dist/types/facilities/dto/facilities.dto.d.ts +22 -0
- package/dist/types/facilities/dto/facilities.dto.js.map +1 -1
- package/dist/types/facilities/entities/Facility.d.ts +2 -0
- package/dist/types/facilities/entities/Facility.js.map +1 -1
- package/dist/types/facilities/types/consts/facility.consts.d.ts +5 -0
- package/dist/types/facilities/types/consts/facility.consts.js +11 -0
- package/dist/types/facilities/types/consts/facility.consts.js.map +1 -0
- package/dist/types/facilities/types/consts/index.d.ts +1 -0
- package/dist/types/facilities/types/consts/index.js +18 -0
- package/dist/types/facilities/types/consts/index.js.map +1 -0
- package/dist/types/facilities/types/enums/facilities.enums.d.ts +4 -0
- package/dist/types/facilities/types/enums/facilities.enums.js +9 -0
- package/dist/types/facilities/types/enums/facilities.enums.js.map +1 -0
- package/dist/types/facilities/types/enums/index.d.ts +1 -0
- package/dist/types/facilities/types/enums/index.js +18 -0
- package/dist/types/facilities/types/enums/index.js.map +1 -0
- package/dist/types/facilities/types/facilities.types.d.ts +1 -21
- package/dist/types/facilities/types/facilities.types.js +0 -3
- package/dist/types/facilities/types/facilities.types.js.map +1 -1
- package/dist/types/facilities/types/index.d.ts +3 -0
- package/dist/types/facilities/types/index.js +3 -0
- package/dist/types/facilities/types/index.js.map +1 -1
- package/dist/types/facilities/types/interfaces/facilities.interfaces.d.ts +30 -0
- package/dist/types/facilities/types/interfaces/facilities.interfaces.js +3 -0
- package/dist/types/facilities/types/interfaces/facilities.interfaces.js.map +1 -0
- package/dist/types/facilities/types/interfaces/index.d.ts +1 -0
- package/dist/types/facilities/types/interfaces/index.js +18 -0
- package/dist/types/facilities/types/interfaces/index.js.map +1 -0
- package/dist/types/folders/types/interfaces/folder-restrictions.interfaces.d.ts +1 -1
- package/dist/types/invoice/dto/lineItem.dto.d.ts +1 -0
- package/dist/types/invoice/dto/lineItem.dto.js.map +1 -1
- package/dist/types/membership/dto/eligible-members.dto.d.ts +33 -0
- package/dist/types/membership/dto/eligible-members.dto.js +19 -0
- package/dist/types/membership/dto/eligible-members.dto.js.map +1 -0
- package/dist/types/membership/dto/index.d.ts +1 -0
- package/dist/types/membership/dto/index.js +1 -0
- package/dist/types/membership/dto/index.js.map +1 -1
- package/dist/types/membership/types/membership.interfaces.d.ts +36 -1
- package/dist/types/membership/types/membership.member.classes.d.ts +0 -2
- package/dist/types/membership/types/membership.member.classes.js.map +1 -1
- package/dist/types/membership/types/membership.member.consts.d.ts +8 -0
- package/dist/types/membership/types/membership.member.consts.js +15 -1
- package/dist/types/membership/types/membership.member.consts.js.map +1 -1
- package/dist/types/membership/types/membership.members.interfaces.d.ts +1 -1
- 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 +34 -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 +30 -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 +9 -2
- package/dist/types/organization/entities/OrganizationUsers.d.ts +2 -0
- package/dist/types/organization/entities/OrganizationUsers.js.map +1 -1
- 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/dto/product-pricing.dto.d.ts +2 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +3 -0
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/punch-pass-product.dto.d.ts +1 -0
- package/dist/types/product-pricing/dto/punch-pass-product.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/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +5 -0
- package/dist/types/programs/dto/index.d.ts +1 -0
- package/dist/types/programs/dto/index.js +1 -0
- package/dist/types/programs/dto/index.js.map +1 -1
- package/dist/types/programs/dto/program-backoffice.dto.d.ts +10 -0
- package/dist/types/programs/dto/program-backoffice.dto.js +11 -0
- package/dist/types/programs/dto/program-backoffice.dto.js.map +1 -0
- package/dist/types/programs/dto/program-public.dto.d.ts +3 -1
- package/dist/types/programs/dto/program-public.dto.js.map +1 -1
- package/dist/types/programs/dto/program.dto.d.ts +3 -0
- package/dist/types/programs/dto/program.dto.js.map +1 -1
- package/dist/types/programs/entities/Program.d.ts +4 -1
- package/dist/types/programs/entities/Program.js.map +1 -1
- package/dist/types/programs/types/consts/program.consts.d.ts +3 -1
- package/dist/types/programs/types/consts/program.consts.js +7 -1
- package/dist/types/programs/types/consts/program.consts.js.map +1 -1
- package/dist/types/programs/types/enums/program.enums.d.ts +9 -0
- package/dist/types/programs/types/enums/program.enums.js +11 -1
- package/dist/types/programs/types/enums/program.enums.js.map +1 -1
- package/dist/types/programs/types/interfaces/program.interfaces.d.ts +8 -0
- package/dist/types/programs-seasons/dto/program-session.dto.d.ts +1 -0
- package/dist/types/programs-seasons/dto/program-session.dto.js.map +1 -1
- package/dist/types/programs-seasons/types/interfaces/program-seasons-notifications.interface.d.ts +0 -2
- package/dist/types/punch-pass/types/interfaces.d.ts +0 -2
- package/dist/types/reservations/dto/reservation.dto.d.ts +1 -4
- package/dist/types/reservations/dto/reservation.dto.js +2 -5
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +1 -0
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/classes/slot.classes.d.ts +1 -0
- package/dist/types/reservations/types/classes/slot.classes.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +3 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +1 -0
- package/dist/types/reservations/types/reservation.types.d.ts +2 -0
- package/dist/types/resources/dto/instructor.dto.d.ts +1 -0
- package/dist/types/resources/dto/instructor.dto.js.map +1 -1
- package/dist/types/resources/dto/resource.dto.d.ts +1 -0
- package/dist/types/resources/dto/resource.dto.js.map +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/Resource.d.ts +1 -0
- package/dist/types/resources/entities/Resource.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 -0
- package/dist/types/services/interfaces.service.d.ts +2 -0
- package/dist/types/shifts/dto/find-shifts-filters.dto.d.ts +3 -3
- package/dist/types/shifts/entities/shift.entity.d.ts +1 -1
- package/dist/types/tip-configurations/dto/tip-configuration.dto.d.ts +1 -0
- package/dist/types/tip-configurations/dto/tip-configuration.dto.js.map +1 -1
- package/dist/types/tip-configurations/types/interfaces/tip-configuration.interfaces.d.ts +1 -0
- package/dist/types/user/dto/user.dto.d.ts +1 -0
- package/dist/types/user/dto/user.dto.js.map +1 -1
- package/dist/types/user/types/user.interfaces.d.ts +9 -0
- package/dist/types/user-identification/types/interfaces.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/entity/NotificationSubscriptions.d.ts +0 -8
- package/dist/types/entity/NotificationSubscriptions.js.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { GenderEnum } from '../../services/enums.service';
|
|
2
|
+
import { SimpleUserDto } from '../../user/dto/user.dto';
|
|
3
|
+
import { IEligibleFamilyMember, IEligibleMembersResponse } from '../types/membership.interfaces';
|
|
4
|
+
export declare class ByOrganizationIdPackageProductUserIdDto {
|
|
5
|
+
organizationId: number;
|
|
6
|
+
packageProductUserId: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class EligibleFamilyMemberDto implements IEligibleFamilyMember {
|
|
9
|
+
membershipMemberId: number | null;
|
|
10
|
+
ineligibilityReasons: string[];
|
|
11
|
+
isAdmin: boolean;
|
|
12
|
+
isAlreadyMember: boolean;
|
|
13
|
+
isEligible: boolean;
|
|
14
|
+
user: SimpleUserDto;
|
|
15
|
+
}
|
|
16
|
+
export declare class EligibleMembersCapacityDto {
|
|
17
|
+
currentTotal: number;
|
|
18
|
+
remainingTotal: number;
|
|
19
|
+
isFull: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare class EligibleMembersMembershipDto {
|
|
22
|
+
id: number;
|
|
23
|
+
name: string;
|
|
24
|
+
gender: GenderEnum;
|
|
25
|
+
minAgeYears: number | null;
|
|
26
|
+
maxAgeYears: number | null;
|
|
27
|
+
maxMembers: number;
|
|
28
|
+
}
|
|
29
|
+
export declare class EligibleMembersResponseDto implements IEligibleMembersResponse {
|
|
30
|
+
capacity: EligibleMembersCapacityDto;
|
|
31
|
+
members: EligibleFamilyMemberDto[];
|
|
32
|
+
membership: EligibleMembersMembershipDto;
|
|
33
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EligibleMembersResponseDto = exports.EligibleMembersMembershipDto = exports.EligibleMembersCapacityDto = exports.EligibleFamilyMemberDto = exports.ByOrganizationIdPackageProductUserIdDto = void 0;
|
|
4
|
+
class ByOrganizationIdPackageProductUserIdDto {
|
|
5
|
+
}
|
|
6
|
+
exports.ByOrganizationIdPackageProductUserIdDto = ByOrganizationIdPackageProductUserIdDto;
|
|
7
|
+
class EligibleFamilyMemberDto {
|
|
8
|
+
}
|
|
9
|
+
exports.EligibleFamilyMemberDto = EligibleFamilyMemberDto;
|
|
10
|
+
class EligibleMembersCapacityDto {
|
|
11
|
+
}
|
|
12
|
+
exports.EligibleMembersCapacityDto = EligibleMembersCapacityDto;
|
|
13
|
+
class EligibleMembersMembershipDto {
|
|
14
|
+
}
|
|
15
|
+
exports.EligibleMembersMembershipDto = EligibleMembersMembershipDto;
|
|
16
|
+
class EligibleMembersResponseDto {
|
|
17
|
+
}
|
|
18
|
+
exports.EligibleMembersResponseDto = EligibleMembersResponseDto;
|
|
19
|
+
//# sourceMappingURL=eligible-members.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./eligible-members.dto"), exports);
|
|
17
18
|
__exportStar(require("./expended-member.dto"), exports);
|
|
18
19
|
__exportStar(require("./membership-member.dto"), exports);
|
|
19
20
|
__exportStar(require("./membership.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/membership/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,0DAAwC;AACxC,mDAAiC;AACjC,iEAA+C;AAC/C,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/membership/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,wDAAsC;AACtC,0DAAwC;AACxC,mDAAiC;AACjC,iEAA+C;AAC/C,0DAAwC"}
|
|
@@ -4,18 +4,46 @@ 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';
|
|
10
11
|
import { Membership } from '../entities/membership.entity';
|
|
11
12
|
export interface IExpandedMembershipMemberData {
|
|
12
13
|
invoice: Partial<Invoice>;
|
|
13
|
-
lineItem: Partial<LineItems
|
|
14
|
+
lineItem: Partial<LineItems> & {
|
|
15
|
+
packageProductId?: number | null;
|
|
16
|
+
packageProductUserId?: number | null;
|
|
17
|
+
};
|
|
14
18
|
member: MembershipMember;
|
|
15
19
|
membership: Partial<Membership>;
|
|
16
20
|
payment?: Partial<InvoiceToPayment>;
|
|
17
21
|
user: Partial<User>;
|
|
18
22
|
}
|
|
23
|
+
export interface IEligibleFamilyMember {
|
|
24
|
+
membershipMemberId: number | null;
|
|
25
|
+
ineligibilityReasons: string[];
|
|
26
|
+
isAdmin: boolean;
|
|
27
|
+
isAlreadyMember: boolean;
|
|
28
|
+
isEligible: boolean;
|
|
29
|
+
user: SimpleUserDto;
|
|
30
|
+
}
|
|
31
|
+
export interface IEligibleMembersResponse {
|
|
32
|
+
capacity: {
|
|
33
|
+
currentTotal: number;
|
|
34
|
+
remainingTotal: number;
|
|
35
|
+
isFull: boolean;
|
|
36
|
+
};
|
|
37
|
+
members: IEligibleFamilyMember[];
|
|
38
|
+
membership: {
|
|
39
|
+
id: number;
|
|
40
|
+
name: string;
|
|
41
|
+
gender: GenderEnum;
|
|
42
|
+
minAgeYears: number | null;
|
|
43
|
+
maxAgeYears: number | null;
|
|
44
|
+
maxMembers: number;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
19
47
|
export interface IGetPauseOptions {
|
|
20
48
|
activeOnly?: boolean;
|
|
21
49
|
}
|
|
@@ -23,6 +51,7 @@ export interface IExpandedMembershipMemberRawData extends Partial<MembershipMemb
|
|
|
23
51
|
invoiceId: number;
|
|
24
52
|
lineItemId: number;
|
|
25
53
|
lineItemProductId: number;
|
|
54
|
+
payingUserId: number | null;
|
|
26
55
|
userId: number;
|
|
27
56
|
currency: CurrencyEnum;
|
|
28
57
|
customerTypes: CustomerInMembershipTypeEnum[];
|
|
@@ -38,6 +67,12 @@ export interface IExpandedMembershipMemberRawData extends Partial<MembershipMemb
|
|
|
38
67
|
membershipName: string;
|
|
39
68
|
parentPrice?: number;
|
|
40
69
|
}
|
|
70
|
+
export interface IFamilyMembershipMemberProductPrice {
|
|
71
|
+
id: number;
|
|
72
|
+
packageProductUserId: number;
|
|
73
|
+
productId: number;
|
|
74
|
+
price: number;
|
|
75
|
+
}
|
|
41
76
|
export interface IRawMembershipMemberWithMembership {
|
|
42
77
|
member_membershipId: number;
|
|
43
78
|
member_nextPaymentMethodId?: string;
|
|
@@ -3,8 +3,6 @@ export declare class PauseMailRelevantInfo {
|
|
|
3
3
|
members: IMemberMailDetails[];
|
|
4
4
|
organizationId: number;
|
|
5
5
|
membership_name: string;
|
|
6
|
-
facility_name: string;
|
|
7
|
-
facility_id?: number;
|
|
8
6
|
membership_pause_start: string;
|
|
9
7
|
membership_pause_end: string;
|
|
10
8
|
previous_next_billing_date: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"membership.member.classes.js","sourceRoot":"","sources":["../../../../src/types/membership/types/membership.member.classes.ts"],"names":[],"mappings":";;;AAGA,MAAa,qBAAqB;
|
|
1
|
+
{"version":3,"file":"membership.member.classes.js","sourceRoot":"","sources":["../../../../src/types/membership/types/membership.member.classes.ts"],"names":[],"mappings":";;;AAGA,MAAa,qBAAqB;CAkBjC;AAlBD,sDAkBC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MembershipStatusEnum } from '../../services/enums.service';
|
|
1
2
|
import { IGetPauseOptions } from './membership.interfaces';
|
|
2
3
|
export declare const DEFAULT_MEMBERSHIP_MEMBER_ALIAS = "membershipMember";
|
|
3
4
|
export declare const DEFAULT_GET_PAUSE_OPTIONS: IGetPauseOptions;
|
|
@@ -12,3 +13,10 @@ export declare const MEMBERSHIP_STATUS_PRIORITY: {
|
|
|
12
13
|
pending: number;
|
|
13
14
|
none: number;
|
|
14
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Statuses that mean the member currently occupies a slot on a membership
|
|
18
|
+
* (i.e. should be counted toward capacity and flagged as `isAlreadyMember`).
|
|
19
|
+
* Includes scheduled-cancel + paused variants since the term hasn't ended, and
|
|
20
|
+
* PENDING (future startDate) since a not-yet-started member still holds their slot.
|
|
21
|
+
*/
|
|
22
|
+
export declare const CURRENT_MEMBERSHIP_STATUSES: MembershipStatusEnum[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MEMBERSHIP_STATUS_PRIORITY = exports.DEFAULT_GET_PAUSE_OPTIONS = exports.DEFAULT_MEMBERSHIP_MEMBER_ALIAS = void 0;
|
|
3
|
+
exports.CURRENT_MEMBERSHIP_STATUSES = exports.MEMBERSHIP_STATUS_PRIORITY = exports.DEFAULT_GET_PAUSE_OPTIONS = exports.DEFAULT_MEMBERSHIP_MEMBER_ALIAS = void 0;
|
|
4
4
|
const enums_service_1 = require("../../services/enums.service");
|
|
5
5
|
exports.DEFAULT_MEMBERSHIP_MEMBER_ALIAS = 'membershipMember';
|
|
6
6
|
exports.DEFAULT_GET_PAUSE_OPTIONS = {
|
|
@@ -17,4 +17,18 @@ exports.MEMBERSHIP_STATUS_PRIORITY = {
|
|
|
17
17
|
[enums_service_1.MembershipStatusEnum.PENDING]: 1,
|
|
18
18
|
[enums_service_1.MembershipStatusEnum.NONE]: 1,
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Statuses that mean the member currently occupies a slot on a membership
|
|
22
|
+
* (i.e. should be counted toward capacity and flagged as `isAlreadyMember`).
|
|
23
|
+
* Includes scheduled-cancel + paused variants since the term hasn't ended, and
|
|
24
|
+
* PENDING (future startDate) since a not-yet-started member still holds their slot.
|
|
25
|
+
*/
|
|
26
|
+
exports.CURRENT_MEMBERSHIP_STATUSES = [
|
|
27
|
+
enums_service_1.MembershipStatusEnum.ACTIVE,
|
|
28
|
+
enums_service_1.MembershipStatusEnum.ACTIVE_CANCELLED,
|
|
29
|
+
enums_service_1.MembershipStatusEnum.PAUSED,
|
|
30
|
+
enums_service_1.MembershipStatusEnum.PAUSED_CANCELLED,
|
|
31
|
+
enums_service_1.MembershipStatusEnum.PAUSE_PENDING,
|
|
32
|
+
enums_service_1.MembershipStatusEnum.PENDING,
|
|
33
|
+
];
|
|
20
34
|
//# sourceMappingURL=membership.member.consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"membership.member.consts.js","sourceRoot":"","sources":["../../../../src/types/membership/types/membership.member.consts.ts"],"names":[],"mappings":";;;AAAA,gEAAoE;AAIvD,QAAA,+BAA+B,GAAG,kBAAkB,CAAC;AAErD,QAAA,yBAAyB,GAAqB;IAC1D,UAAU,EAAE,KAAK;CACjB,CAAC;AAEW,QAAA,0BAA0B,GAAG;IACzC,CAAC,oCAAoB,CAAC,MAAM,CAAC,EAAE,CAAC;IAChC,CAAC,oCAAoB,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAC1C,CAAC,oCAAoB,CAAC,MAAM,CAAC,EAAE,CAAC;IAChC,CAAC,oCAAoB,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAC1C,CAAC,oCAAoB,CAAC,aAAa,CAAC,EAAE,CAAC;IACvC,CAAC,oCAAoB,CAAC,SAAS,CAAC,EAAE,CAAC;IACnC,CAAC,oCAAoB,CAAC,OAAO,CAAC,EAAE,CAAC;IACjC,CAAC,oCAAoB,CAAC,OAAO,CAAC,EAAE,CAAC;IACjC,CAAC,oCAAoB,CAAC,IAAI,CAAC,EAAE,CAAC;CAC9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"membership.member.consts.js","sourceRoot":"","sources":["../../../../src/types/membership/types/membership.member.consts.ts"],"names":[],"mappings":";;;AAAA,gEAAoE;AAIvD,QAAA,+BAA+B,GAAG,kBAAkB,CAAC;AAErD,QAAA,yBAAyB,GAAqB;IAC1D,UAAU,EAAE,KAAK;CACjB,CAAC;AAEW,QAAA,0BAA0B,GAAG;IACzC,CAAC,oCAAoB,CAAC,MAAM,CAAC,EAAE,CAAC;IAChC,CAAC,oCAAoB,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAC1C,CAAC,oCAAoB,CAAC,MAAM,CAAC,EAAE,CAAC;IAChC,CAAC,oCAAoB,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAC1C,CAAC,oCAAoB,CAAC,aAAa,CAAC,EAAE,CAAC;IACvC,CAAC,oCAAoB,CAAC,SAAS,CAAC,EAAE,CAAC;IACnC,CAAC,oCAAoB,CAAC,OAAO,CAAC,EAAE,CAAC;IACjC,CAAC,oCAAoB,CAAC,OAAO,CAAC,EAAE,CAAC;IACjC,CAAC,oCAAoB,CAAC,IAAI,CAAC,EAAE,CAAC;CAC9B,CAAC;AAEF;;;;;GAKG;AACU,QAAA,2BAA2B,GAA2B;IAClE,oCAAoB,CAAC,MAAM;IAC3B,oCAAoB,CAAC,gBAAgB;IACrC,oCAAoB,CAAC,MAAM;IAC3B,oCAAoB,CAAC,gBAAgB;IACrC,oCAAoB,CAAC,aAAa;IAClC,oCAAoB,CAAC,OAAO;CAC5B,CAAC"}
|
|
@@ -22,8 +22,8 @@ export interface IRegistrationDates {
|
|
|
22
22
|
}
|
|
23
23
|
export interface ISendPauseMail {
|
|
24
24
|
adminId: number;
|
|
25
|
+
facilityId?: number;
|
|
25
26
|
adminTemplateKey: EmailTemplatesEnum.ADMIN_PAUSE_USER | EmailTemplatesEnum.PAUSE_RESUME_ADMIN;
|
|
26
|
-
facilityName?: string;
|
|
27
27
|
initialEmail?: string;
|
|
28
28
|
mailData: PauseMailRelevantInfo;
|
|
29
29
|
organizationName?: string;
|
|
@@ -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,34 @@
|
|
|
1
|
+
import { IdDto, PaginatedSearchDto } from '../../dto/general.dto';
|
|
2
|
+
import { SimpleFacilityDto } from '../../facilities/dto/facilities.dto';
|
|
3
|
+
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
4
|
+
import { NotificationTypeEnum } from '../../services/enums.service';
|
|
5
|
+
import { SimpleUserDto } from '../../user/dto/user.dto';
|
|
6
|
+
import { NotificationSubscriptionOrderByEnum } from '../types/enums/notification.enums';
|
|
7
|
+
import { INotificationSubscriptionsQueryOptions } from '../types/interfaces/notification-subscriptions.interfaces';
|
|
8
|
+
export declare class NotificationSubscriptionDto extends OrganizationBaseEntityDto {
|
|
9
|
+
userId?: number;
|
|
10
|
+
user?: SimpleUserDto;
|
|
11
|
+
email?: string;
|
|
12
|
+
notificationType: NotificationTypeEnum;
|
|
13
|
+
facilityIds: number[];
|
|
14
|
+
facilities?: SimpleFacilityDto[];
|
|
15
|
+
}
|
|
16
|
+
export declare class AddNotificationSubscriptionDto {
|
|
17
|
+
userId: number;
|
|
18
|
+
notificationType: NotificationTypeEnum;
|
|
19
|
+
facilityIds: number[];
|
|
20
|
+
}
|
|
21
|
+
export declare class UpdateNotificationSubscriptionDto extends IdDto {
|
|
22
|
+
facilityIds: number[];
|
|
23
|
+
}
|
|
24
|
+
export declare class AddNotificationSubscriptionsDto {
|
|
25
|
+
subscriptions: AddNotificationSubscriptionDto[];
|
|
26
|
+
}
|
|
27
|
+
export declare class UpdateNotificationSubscriptionsDto {
|
|
28
|
+
subscriptions: UpdateNotificationSubscriptionDto[];
|
|
29
|
+
}
|
|
30
|
+
export declare class GetNotificationSubscriptionsQueryDto extends PaginatedSearchDto implements INotificationSubscriptionsQueryOptions {
|
|
31
|
+
facilitiesIds?: number[];
|
|
32
|
+
notificationTypes?: NotificationTypeEnum[];
|
|
33
|
+
orderBy?: NotificationSubscriptionOrderByEnum;
|
|
34
|
+
}
|
|
@@ -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;AAGlE,8EAAoF;AAOpF,MAAa,2BAA4B,SAAQ,4CAAyB;CAYzE;AAZD,kEAYC;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;CAQ1B;AATD,oFASC"}
|
|
@@ -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;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MAX_HTTP_REQUESTS = exports.EMAIL_REGEX = exports.DEFAULT_NOTIFICATION_DELIVERY_CHANNEL = exports.DEFAULT_NOTIFICATION_CLASSIFICATION = void 0;
|
|
3
|
+
exports.MAX_NOTIFICATION_SUBSCRIPTIONS_PER_REQUEST = exports.MAX_HTTP_REQUESTS = exports.EMAIL_REGEX = exports.DEFAULT_NOTIFICATION_DELIVERY_CHANNEL = exports.DEFAULT_NOTIFICATION_CLASSIFICATION = void 0;
|
|
4
4
|
const notifications_sdk_1 = require("@bondsports/notifications-sdk");
|
|
5
5
|
exports.DEFAULT_NOTIFICATION_CLASSIFICATION = notifications_sdk_1.NotificationClassification.TRANSACTIONAL;
|
|
6
6
|
exports.DEFAULT_NOTIFICATION_DELIVERY_CHANNEL = notifications_sdk_1.NotificationDeliveryChannel.EMAIL;
|
|
7
7
|
exports.EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
8
8
|
exports.MAX_HTTP_REQUESTS = 10;
|
|
9
|
+
exports.MAX_NOTIFICATION_SUBSCRIPTIONS_PER_REQUEST = 100;
|
|
9
10
|
//# sourceMappingURL=notification.consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.consts.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/consts/notification.consts.ts"],"names":[],"mappings":";;;AAAA,qEAAwG;AAE3F,QAAA,mCAAmC,GAAG,8CAA0B,CAAC,aAAa,CAAC;AAE/E,QAAA,qCAAqC,GAAG,+CAA2B,CAAC,KAAK,CAAC;AAE1E,QAAA,WAAW,GAAG,4BAA4B,CAAC;AAE3C,QAAA,iBAAiB,GAAG,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"notification.consts.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/consts/notification.consts.ts"],"names":[],"mappings":";;;AAAA,qEAAwG;AAE3F,QAAA,mCAAmC,GAAG,8CAA0B,CAAC,aAAa,CAAC;AAE/E,QAAA,qCAAqC,GAAG,+CAA2B,CAAC,KAAK,CAAC;AAE1E,QAAA,WAAW,GAAG,4BAA4B,CAAC;AAE3C,QAAA,iBAAiB,GAAG,EAAE,CAAC;AAEvB,QAAA,0CAA0C,GAAG,GAAG,CAAC"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { NotificationClassification, NotificationDeliveryChannel, SendErrorCode } from '@bondsports/notifications-sdk';
|
|
2
2
|
export { NotificationClassification, NotificationDeliveryChannel, SendErrorCode };
|
|
3
|
+
export declare enum NotificationSubscriptionOrderByEnum {
|
|
4
|
+
NAME = "name",
|
|
5
|
+
EMAIL = "email",
|
|
6
|
+
CREATED_AT = "createdAt"
|
|
7
|
+
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SendErrorCode = exports.NotificationDeliveryChannel = exports.NotificationClassification = void 0;
|
|
3
|
+
exports.NotificationSubscriptionOrderByEnum = exports.SendErrorCode = exports.NotificationDeliveryChannel = exports.NotificationClassification = void 0;
|
|
4
4
|
const notifications_sdk_1 = require("@bondsports/notifications-sdk");
|
|
5
5
|
Object.defineProperty(exports, "NotificationClassification", { enumerable: true, get: function () { return notifications_sdk_1.NotificationClassification; } });
|
|
6
6
|
Object.defineProperty(exports, "NotificationDeliveryChannel", { enumerable: true, get: function () { return notifications_sdk_1.NotificationDeliveryChannel; } });
|
|
7
7
|
Object.defineProperty(exports, "SendErrorCode", { enumerable: true, get: function () { return notifications_sdk_1.SendErrorCode; } });
|
|
8
|
+
var NotificationSubscriptionOrderByEnum;
|
|
9
|
+
(function (NotificationSubscriptionOrderByEnum) {
|
|
10
|
+
NotificationSubscriptionOrderByEnum["NAME"] = "name";
|
|
11
|
+
NotificationSubscriptionOrderByEnum["EMAIL"] = "email";
|
|
12
|
+
NotificationSubscriptionOrderByEnum["CREATED_AT"] = "createdAt";
|
|
13
|
+
})(NotificationSubscriptionOrderByEnum = exports.NotificationSubscriptionOrderByEnum || (exports.NotificationSubscriptionOrderByEnum = {}));
|
|
8
14
|
//# sourceMappingURL=notification.enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.enums.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/enums/notification.enums.ts"],"names":[],"mappings":";;;AAAA,qEAAuH;AAE9G,2GAFA,8CAA0B,OAEA;AAAE,4GAFA,+CAA2B,OAEA;AAAE,8FAFA,iCAAa,OAEA"}
|
|
1
|
+
{"version":3,"file":"notification.enums.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/enums/notification.enums.ts"],"names":[],"mappings":";;;AAAA,qEAAuH;AAE9G,2GAFA,8CAA0B,OAEA;AAAE,4GAFA,+CAA2B,OAEA;AAAE,8FAFA,iCAAa,OAEA;AAE/E,IAAY,mCAIX;AAJD,WAAY,mCAAmC;IAC9C,oDAAa,CAAA;IACb,sDAAe,CAAA;IACf,+DAAwB,CAAA;AACzB,CAAC,EAJW,mCAAmC,GAAnC,2CAAmC,KAAnC,2CAAmC,QAI9C"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./notification-subscriptions.interfaces"), exports);
|
|
17
18
|
__exportStar(require("./notification.interfaces"), exports);
|
|
18
19
|
__exportStar(require("./resources-notifications.interfaces"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,uEAAqD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0EAAwD;AACxD,4DAA0C;AAC1C,uEAAqD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FindManyOptions } from 'typeorm';
|
|
2
|
+
import { NotificationTypeEnum, OrderByEnum } from '../../../services/enums.service';
|
|
3
|
+
import { NotificationSubscriptionToFacility } from '../../entities/notification-subscription-to-facility.entity';
|
|
4
|
+
import { NotificationSubscriptions } from '../../entities/notification-subscription.entity';
|
|
5
|
+
import { NotificationSubscriptionOrderByEnum } from '../enums/notification.enums';
|
|
6
|
+
export interface INotificationSubscriptionsQueryOptions {
|
|
7
|
+
facilitiesIds?: number[];
|
|
8
|
+
notificationTypes?: NotificationTypeEnum[];
|
|
9
|
+
order?: OrderByEnum;
|
|
10
|
+
orderBy?: NotificationSubscriptionOrderByEnum;
|
|
11
|
+
search?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IFacilityScopeValidationItem {
|
|
14
|
+
userId: number;
|
|
15
|
+
facilityIds: number[];
|
|
16
|
+
}
|
|
17
|
+
export interface ISubscriptionMergeTarget {
|
|
18
|
+
links: NotificationSubscriptionToFacility[];
|
|
19
|
+
subscription: NotificationSubscriptions;
|
|
20
|
+
}
|
|
21
|
+
export interface ISubscriptionReassignmentPlan {
|
|
22
|
+
duplicateSubscriptionIds: number[];
|
|
23
|
+
linkIdsToRemove: number[];
|
|
24
|
+
linksToReassign: NotificationSubscriptionToFacility[];
|
|
25
|
+
subscriptionsToReassign: NotificationSubscriptions[];
|
|
26
|
+
}
|
|
27
|
+
export interface IFindSubscriptionsByOrganizationOptions {
|
|
28
|
+
relations?: FindManyOptions<NotificationSubscriptions>['relations'];
|
|
29
|
+
usersIds?: number[];
|
|
30
|
+
}
|
package/dist/types/notifications/types/interfaces/notification-subscriptions.interfaces.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-subscriptions.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/interfaces/notification-subscriptions.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -9,19 +9,26 @@ export interface IAdditionalRecipients {
|
|
|
9
9
|
to: string | string[];
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* If
|
|
13
|
-
* If
|
|
12
|
+
* If facilityId is provided and resolves to a facility, facility sender fields are preferred.
|
|
13
|
+
* If organizationId is provided, fromDisplayName will default to the organization name when facility name is unavailable.
|
|
14
|
+
* If replyToOrganization is true and organizationId is provided, replyTo defaults to facility email first, then organization email.
|
|
14
15
|
*/
|
|
15
16
|
export interface INotificationSender {
|
|
16
17
|
/**
|
|
17
18
|
*/
|
|
18
19
|
organizationId?: number;
|
|
19
20
|
/**
|
|
21
|
+
* callers that already know the single sending facility and takes precedence for sender field resolution.
|
|
20
22
|
*/
|
|
21
23
|
facilityId?: number;
|
|
22
24
|
/**
|
|
23
25
|
*/
|
|
24
26
|
userId?: number;
|
|
27
|
+
/**
|
|
28
|
+
* to these facilities, and derives sender identity from them: a single facility uses that facility's sender
|
|
29
|
+
* and interpolation fields, while multiple facilities fall back to the organization's fields.
|
|
30
|
+
*/
|
|
31
|
+
facilitiesIds?: number[];
|
|
25
32
|
/**
|
|
26
33
|
*/
|
|
27
34
|
fromDisplayName?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CustomerMerge } from '../../customers-merge/entities/CustomerMerge';
|
|
2
|
+
import { EmployeeFacilityAccess } from '../../employees/entities/EmployeeFacilityAccess';
|
|
2
3
|
import { EmployeeStatus } from '../../employees/types/enums';
|
|
3
4
|
import { BondBaseEntity } from '../../entity/BondBaseEntity';
|
|
4
5
|
import { Facility } from '../../facilities/entities/Facility';
|
|
@@ -16,4 +17,5 @@ export declare class OrganizationUsers extends BondBaseEntity {
|
|
|
16
17
|
merge?: CustomerMerge;
|
|
17
18
|
defaultFacilityId?: number | null;
|
|
18
19
|
defaultFacility?: Facility;
|
|
20
|
+
employeeFacilityAccesses?: EmployeeFacilityAccess[];
|
|
19
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationUsers.js","sourceRoot":"","sources":["../../../../src/types/organization/entities/OrganizationUsers.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"OrganizationUsers.js","sourceRoot":"","sources":["../../../../src/types/organization/entities/OrganizationUsers.ts"],"names":[],"mappings":";;;AAKA,gEAA6D;AAI7D,MAAa,iBAAkB,SAAQ,+BAAc;CA2BpD;AA3BD,8CA2BC"}
|