@bondsports/types 2.4.100 → 2.4.101-a-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -4
- package/dist/types/customers/dto/customer-response.dto.d.ts +1 -0
- package/dist/types/customers/dto/customer-response.dto.js.map +1 -1
- package/dist/types/customers/dto/customer.dto.d.ts +1 -0
- package/dist/types/customers/dto/customer.dto.js.map +1 -1
- package/dist/types/customers/dto/index.d.ts +1 -0
- package/dist/types/customers/dto/index.js +1 -0
- package/dist/types/customers/dto/index.js.map +1 -1
- package/dist/types/customers/dto/set-family-billing-user.dto.d.ts +13 -0
- package/dist/types/customers/dto/set-family-billing-user.dto.js +17 -0
- package/dist/types/customers/dto/set-family-billing-user.dto.js.map +1 -0
- package/dist/types/customers/types/consts/customers.consts.d.ts +2 -1
- package/dist/types/customers/types/consts/customers.consts.js +3 -2
- package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +6 -7
- package/dist/types/employees/types/index.d.ts +1 -0
- package/dist/types/employees/types/index.js +1 -0
- package/dist/types/employees/types/index.js.map +1 -1
- package/dist/types/employees/types/types.d.ts +1 -0
- package/dist/types/employees/types/types.js +3 -0
- package/dist/types/employees/types/types.js.map +1 -0
- package/dist/types/entity/Customer.d.ts +4 -0
- package/dist/types/entity/Customer.js.map +1 -1
- package/dist/types/entity/Invoice.d.ts +1 -0
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/facilities/dto/facilities.dto.d.ts +9 -0
- package/dist/types/facilities/dto/facilities.dto.js +4 -1
- package/dist/types/facilities/dto/facilities.dto.js.map +1 -1
- package/dist/types/familyAccount/dto/addFamilyMember.dto.d.ts +1 -0
- package/dist/types/familyAccount/dto/addFamilyMember.dto.js.map +1 -1
- package/dist/types/familyAccount/dto/familyAccount.dto.d.ts +0 -20
- package/dist/types/familyAccount/dto/familyAccount.dto.js +1 -10
- package/dist/types/familyAccount/dto/familyAccount.dto.js.map +1 -1
- package/dist/types/folders/types/interfaces/folder-content.interfaces.d.ts +1 -1
- package/dist/types/gl-codes/dto/gl-code.dto.d.ts +11 -4
- package/dist/types/gl-codes/dto/gl-code.dto.js +6 -5
- package/dist/types/gl-codes/dto/gl-code.dto.js.map +1 -1
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.d.ts +10 -0
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js +8 -0
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js.map +1 -0
- package/dist/types/gl-codes/entities/gl-code.d.ts +2 -0
- package/dist/types/gl-codes/entities/gl-code.js.map +1 -1
- package/dist/types/gl-codes/entities/index.d.ts +1 -0
- package/dist/types/gl-codes/entities/index.js +1 -0
- package/dist/types/gl-codes/entities/index.js.map +1 -1
- package/dist/types/gl-codes/types/enums/gl-code.enum.d.ts +2 -1
- package/dist/types/gl-codes/types/enums/gl-code.enum.js +1 -0
- package/dist/types/gl-codes/types/enums/gl-code.enum.js.map +1 -1
- package/dist/types/gl-codes/types/interfaces/gl-code.interfaces.d.ts +6 -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/invoice/dto/organization-invoice.dto.d.ts +2 -0
- package/dist/types/invoice/dto/organization-invoice.dto.js.map +1 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +15 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
- package/dist/types/membership/dto/membership.dto.d.ts +2 -0
- package/dist/types/membership/dto/membership.dto.js.map +1 -1
- package/dist/types/membership/entities/membership.entity.d.ts +1 -0
- package/dist/types/membership/entities/membership.entity.js.map +1 -1
- package/dist/types/membership/types/membership.interfaces.d.ts +2 -2
- package/dist/types/payment/dto/payment.dto.d.ts +3 -1
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/dto/refund.dto.d.ts +12 -4
- package/dist/types/payment/dto/refund.dto.js +8 -1
- package/dist/types/payment/dto/refund.dto.js.map +1 -1
- package/dist/types/payment/dto/void.dto.d.ts +2 -1
- package/dist/types/payment/dto/void.dto.js.map +1 -1
- package/dist/types/payment/entities/Payment.d.ts +2 -1
- package/dist/types/payment/entities/Payment.js.map +1 -1
- package/dist/types/payment/types/consts/index.d.ts +1 -0
- package/dist/types/payment/types/consts/index.js +1 -0
- package/dist/types/payment/types/consts/index.js.map +1 -1
- package/dist/types/payment/types/consts/linked-accounts.consts.d.ts +5 -0
- package/dist/types/payment/types/consts/linked-accounts.consts.js +15 -0
- package/dist/types/payment/types/consts/linked-accounts.consts.js.map +1 -0
- package/dist/types/payment/types/enums/linked-account.enums.d.ts +6 -1
- package/dist/types/payment/types/enums/linked-account.enums.js +7 -1
- package/dist/types/payment/types/enums/linked-account.enums.js.map +1 -1
- package/dist/types/payment/types/enums/refund.enums.d.ts +0 -1
- package/dist/types/payment/types/enums/refund.enums.js +0 -1
- package/dist/types/payment/types/enums/refund.enums.js.map +1 -1
- package/dist/types/payment/types/interfaces/index.d.ts +1 -0
- package/dist/types/payment/types/interfaces/index.js +1 -0
- package/dist/types/payment/types/interfaces/index.js.map +1 -1
- package/dist/types/payment/types/interfaces/linked-account.interfaces.d.ts +13 -0
- package/dist/types/payment/types/interfaces/linked-account.interfaces.js +3 -0
- package/dist/types/payment/types/interfaces/linked-account.interfaces.js.map +1 -0
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +3 -4
- package/dist/types/payment/types/interfaces/pending-terminal-reconciler.interfaces.d.ts +2 -2
- package/dist/types/payment/types/interfaces/refund.interfaces.d.ts +21 -8
- package/dist/types/payment/types/interfaces/refund.interfaces.js.map +1 -1
- package/dist/types/payment/types/interfaces/void.interfaces.d.ts +3 -1
- package/dist/types/payout-accounts/entities/index.d.ts +1 -0
- package/dist/types/payout-accounts/entities/index.js +18 -0
- package/dist/types/payout-accounts/entities/index.js.map +1 -0
- package/dist/types/payout-accounts/entities/payout-account.entity.d.ts +10 -0
- package/dist/types/payout-accounts/entities/payout-account.entity.js +8 -0
- package/dist/types/payout-accounts/entities/payout-account.entity.js.map +1 -0
- package/dist/types/payout-accounts/index.d.ts +2 -0
- package/dist/types/payout-accounts/index.js +19 -0
- package/dist/types/payout-accounts/index.js.map +1 -0
- package/dist/types/payout-accounts/types/dto/index.d.ts +1 -0
- package/dist/types/payout-accounts/types/dto/index.js +18 -0
- package/dist/types/payout-accounts/types/dto/index.js.map +1 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.d.ts +41 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.js +30 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.js.map +1 -0
- package/dist/types/payout-accounts/types/index.d.ts +2 -0
- package/dist/types/payout-accounts/types/index.js +19 -0
- package/dist/types/payout-accounts/types/index.js.map +1 -0
- package/dist/types/payout-accounts/types/interfaces/index.d.ts +1 -0
- package/dist/types/payout-accounts/types/interfaces/index.js +18 -0
- package/dist/types/payout-accounts/types/interfaces/index.js.map +1 -0
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.d.ts +92 -0
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.js +3 -0
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.js.map +1 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +39 -39
- package/dist/types/product-pricing/types/interfaces/product-creation.interfaces.d.ts +6 -0
- package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +1 -0
- package/dist/types/programs-seasons/dto/public-session-group.dto.js.map +1 -1
- package/dist/types/programs-seasons/types/interfaces/program-session.interfaces.d.ts +6 -0
- package/dist/types/purchase/dto/purchase.dto.d.ts +11 -1
- package/dist/types/purchase/dto/purchase.dto.js +4 -1
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +2 -0
- package/dist/types/services/interfaces.service.d.ts +1 -0
- package/dist/types/terminal/dto/terminal-actions.dto.js.map +1 -1
- package/dist/types/terminal/types/interfaces/terminal-action-service.interfaces.d.ts +2 -2
- package/dist/types/user/dto/user-settings.dto.d.ts +2 -0
- package/dist/types/user/dto/user-settings.dto.js.map +1 -1
- package/dist/types/user/entities/AthleteSports.d.ts +2 -0
- package/dist/types/user/entities/AthleteSports.js.map +1 -1
- package/dist/types/user/entities/User.d.ts +2 -0
- package/dist/types/user/entities/User.js.map +1 -1
- package/dist/types/user/types/user.consts.d.ts +2 -0
- package/dist/types/user/types/user.consts.js +7 -1
- package/dist/types/user/types/user.consts.js.map +1 -1
- package/dist/types/user/types/user.interfaces.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './payout-account.dto';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./payout-account.dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/payout-accounts/types/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PaginationSearchQuery } from '../../../dto/general.dto';
|
|
2
|
+
import { ByOrganizationIdDto } from '../../../organization/dto/organization.dto';
|
|
3
|
+
import { LinkedAccountOrderByEnum, LinkedAccountStatus } from '../../../payment/types/enums/linked-account.enums';
|
|
4
|
+
import { ICreatePayoutAccountPayload, IListPayoutAccountFilters, IPayoutAccountCoverage, IPayoutAccountFacilityAssignments, IPayoutAccountGridRow, IPayoutAccountOnboardingLink } from '../interfaces/payout-account.interfaces';
|
|
5
|
+
export declare class ListPayoutAccountFiltersDto extends PaginationSearchQuery<LinkedAccountOrderByEnum> implements IListPayoutAccountFilters {
|
|
6
|
+
facilitiesIds?: number[];
|
|
7
|
+
search?: string;
|
|
8
|
+
orderBy?: LinkedAccountOrderByEnum;
|
|
9
|
+
statuses?: LinkedAccountStatus[];
|
|
10
|
+
}
|
|
11
|
+
export declare class PayoutAccountGridDto implements IPayoutAccountGridRow {
|
|
12
|
+
facilityIds: number[];
|
|
13
|
+
hasOrgDefault: boolean;
|
|
14
|
+
linkedAccountId: number;
|
|
15
|
+
providerId: string | null;
|
|
16
|
+
status: LinkedAccountStatus | null;
|
|
17
|
+
}
|
|
18
|
+
export declare class PayoutAccountFacilityAssignmentsDto implements IPayoutAccountFacilityAssignments {
|
|
19
|
+
assignedFacilityIds: number[];
|
|
20
|
+
hasOrgDefault: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare class PayoutAccountParamsDto extends ByOrganizationIdDto {
|
|
23
|
+
linkedAccountId: number;
|
|
24
|
+
}
|
|
25
|
+
export declare class UpdatePayoutAccountCoverageDto implements IPayoutAccountCoverage {
|
|
26
|
+
allFacilities: boolean;
|
|
27
|
+
facilityIds: number[];
|
|
28
|
+
}
|
|
29
|
+
export declare class CreatePayoutAccountDto extends UpdatePayoutAccountCoverageDto implements ICreatePayoutAccountPayload {
|
|
30
|
+
callbackUrl: string;
|
|
31
|
+
}
|
|
32
|
+
export declare class PayoutAccountOnboardingLinkQueryDto {
|
|
33
|
+
callbackUrl: string;
|
|
34
|
+
}
|
|
35
|
+
export declare class PayoutAccountOnboardingLinkDto implements IPayoutAccountOnboardingLink {
|
|
36
|
+
linkedAccountId: number;
|
|
37
|
+
providerId: string;
|
|
38
|
+
url: string;
|
|
39
|
+
status: LinkedAccountStatus | null;
|
|
40
|
+
expire?: number;
|
|
41
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayoutAccountOnboardingLinkDto = exports.PayoutAccountOnboardingLinkQueryDto = exports.CreatePayoutAccountDto = exports.UpdatePayoutAccountCoverageDto = exports.PayoutAccountParamsDto = exports.PayoutAccountFacilityAssignmentsDto = exports.PayoutAccountGridDto = exports.ListPayoutAccountFiltersDto = void 0;
|
|
4
|
+
const general_dto_1 = require("../../../dto/general.dto");
|
|
5
|
+
const organization_dto_1 = require("../../../organization/dto/organization.dto");
|
|
6
|
+
class ListPayoutAccountFiltersDto extends general_dto_1.PaginationSearchQuery {
|
|
7
|
+
}
|
|
8
|
+
exports.ListPayoutAccountFiltersDto = ListPayoutAccountFiltersDto;
|
|
9
|
+
class PayoutAccountGridDto {
|
|
10
|
+
}
|
|
11
|
+
exports.PayoutAccountGridDto = PayoutAccountGridDto;
|
|
12
|
+
class PayoutAccountFacilityAssignmentsDto {
|
|
13
|
+
}
|
|
14
|
+
exports.PayoutAccountFacilityAssignmentsDto = PayoutAccountFacilityAssignmentsDto;
|
|
15
|
+
class PayoutAccountParamsDto extends organization_dto_1.ByOrganizationIdDto {
|
|
16
|
+
}
|
|
17
|
+
exports.PayoutAccountParamsDto = PayoutAccountParamsDto;
|
|
18
|
+
class UpdatePayoutAccountCoverageDto {
|
|
19
|
+
}
|
|
20
|
+
exports.UpdatePayoutAccountCoverageDto = UpdatePayoutAccountCoverageDto;
|
|
21
|
+
class CreatePayoutAccountDto extends UpdatePayoutAccountCoverageDto {
|
|
22
|
+
}
|
|
23
|
+
exports.CreatePayoutAccountDto = CreatePayoutAccountDto;
|
|
24
|
+
class PayoutAccountOnboardingLinkQueryDto {
|
|
25
|
+
}
|
|
26
|
+
exports.PayoutAccountOnboardingLinkQueryDto = PayoutAccountOnboardingLinkQueryDto;
|
|
27
|
+
class PayoutAccountOnboardingLinkDto {
|
|
28
|
+
}
|
|
29
|
+
exports.PayoutAccountOnboardingLinkDto = PayoutAccountOnboardingLinkDto;
|
|
30
|
+
//# sourceMappingURL=payout-account.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout-account.dto.js","sourceRoot":"","sources":["../../../../../src/types/payout-accounts/types/dto/payout-account.dto.ts"],"names":[],"mappings":";;;AACA,0DAAiE;AACjE,iFAAiF;AAWjF,MAAa,2BACZ,SAAQ,mCAA+C;CAUvD;AAXD,kEAWC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,mCAAmC;CAI/C;AAJD,kFAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,sBAAuB,SAAQ,8BAA8B;CAEzE;AAFD,wDAEC;AAED,MAAa,mCAAmC;CAE/C;AAFD,kFAEC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC"}
|
|
@@ -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("./dto"), exports);
|
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/payout-accounts/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './payout-account.interfaces';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./payout-account.interfaces"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/payout-accounts/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { LinkedAccountStatus } from '../../../payment/types/enums/linked-account.enums';
|
|
2
|
+
import { IFindLinkedAccountsFilters } from '../../../payment/types/interfaces/linked-account.interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Minimal payout-account resolution result for charge-path and cart-lock callers.
|
|
5
|
+
*/
|
|
6
|
+
export interface IResolvedPayoutAccount {
|
|
7
|
+
linkedAccountId: number;
|
|
8
|
+
providerId: string | null;
|
|
9
|
+
status: LinkedAccountStatus | null;
|
|
10
|
+
}
|
|
11
|
+
export interface INullableFacilityId {
|
|
12
|
+
facilityId: number | null;
|
|
13
|
+
}
|
|
14
|
+
export interface IResolvedPayoutAccountRow extends IResolvedPayoutAccount, INullableFacilityId {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* PayoutAccount-level filters for the centralized payout-accounts query. Omitted or `null`
|
|
18
|
+
* `facilityIds` is unrestricted. An empty array matches the All Facilities sentinel only. A
|
|
19
|
+
* non-empty array matches those facilities plus the sentinel (`facilityId IS NULL`).
|
|
20
|
+
*/
|
|
21
|
+
export interface IFindPayoutAccountsFilters {
|
|
22
|
+
facilityIds?: number[] | null;
|
|
23
|
+
linkedAccountIds?: number[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Filters for the paginated payout-accounts grid.
|
|
27
|
+
*/
|
|
28
|
+
export type IListPayoutAccountFilters = Omit<IFindLinkedAccountsFilters, 'parentIds' | 'parentType' | 'providers'> & {
|
|
29
|
+
facilitiesIds?: number[];
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Raw page row of the payout-accounts grid: one distinct Connect account before facility ids are
|
|
33
|
+
* aggregated onto it.
|
|
34
|
+
*/
|
|
35
|
+
export interface ILinkedAccountsGridRow {
|
|
36
|
+
linkedAccountId: number;
|
|
37
|
+
providerId: string | null;
|
|
38
|
+
status: LinkedAccountStatus | null;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* One PayoutAccount anchor: a Connect account paired with the facility it covers, or with null for
|
|
42
|
+
* the All Facilities sentinel.
|
|
43
|
+
*/
|
|
44
|
+
export interface IPayoutAccountFacilityLink {
|
|
45
|
+
facilityId: number | null;
|
|
46
|
+
linkedAccountId: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* One grid row per Connect account, with facility ids aggregated across PayoutAccount rows.
|
|
50
|
+
* All Facilities and unassigned rows expose `facilityIds: []` so FE `canAccessAll` treats them as
|
|
51
|
+
* global-only for editing. `hasOrgDefault` distinguishes the sentinel from unassigned.
|
|
52
|
+
*/
|
|
53
|
+
export interface IPayoutAccountGridRow extends ILinkedAccountsGridRow {
|
|
54
|
+
facilityIds: number[];
|
|
55
|
+
hasOrgDefault: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Facilities-dialog payload: explicit payout assignments visible in the caller's scope.
|
|
59
|
+
* Modal options come from FE facility access; grey/disable with `assignedFacilityIds.includes(id)`.
|
|
60
|
+
* Uncovered-facilities banner is FE-only (accessible facilities minus grid coverage).
|
|
61
|
+
*/
|
|
62
|
+
export interface IPayoutAccountFacilityAssignments {
|
|
63
|
+
assignedFacilityIds: number[];
|
|
64
|
+
hasOrgDefault: boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Coverage write payload shared by create and replace. `allFacilities: true` ignores `facilityIds`.
|
|
68
|
+
*/
|
|
69
|
+
export interface IPayoutAccountCoverage {
|
|
70
|
+
allFacilities: boolean;
|
|
71
|
+
facilityIds: number[];
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Create-payout-account payload. Authenticated user comes from the request, not the body.
|
|
75
|
+
*/
|
|
76
|
+
export interface ICreatePayoutAccountPayload extends IPayoutAccountCoverage {
|
|
77
|
+
callbackUrl: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Fresh Stripe Account Link for create and resume. Does not include missingBank.
|
|
81
|
+
*/
|
|
82
|
+
export interface IPayoutAccountOnboardingLink {
|
|
83
|
+
linkedAccountId: number;
|
|
84
|
+
providerId: string;
|
|
85
|
+
expire?: number;
|
|
86
|
+
status: LinkedAccountStatus | null;
|
|
87
|
+
url: string;
|
|
88
|
+
}
|
|
89
|
+
export interface IStripeAccountLink {
|
|
90
|
+
expiresAt?: number;
|
|
91
|
+
url: string;
|
|
92
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout-account.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payout-accounts/types/interfaces/payout-account.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -230,28 +230,6 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
230
230
|
};
|
|
231
231
|
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
232
232
|
approvalRequired?: boolean;
|
|
233
|
-
allowResourceSelection?: boolean;
|
|
234
|
-
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
235
|
-
bookingDurations?: {
|
|
236
|
-
minDuration?: {
|
|
237
|
-
amount?: number;
|
|
238
|
-
unit?: TimeUnit;
|
|
239
|
-
};
|
|
240
|
-
maxDuration?: {
|
|
241
|
-
amount?: number;
|
|
242
|
-
unit?: TimeUnit;
|
|
243
|
-
};
|
|
244
|
-
durationStep?: {
|
|
245
|
-
amount?: number;
|
|
246
|
-
unit?: TimeUnit;
|
|
247
|
-
};
|
|
248
|
-
defaultDuration?: {
|
|
249
|
-
amount?: number;
|
|
250
|
-
unit?: TimeUnit;
|
|
251
|
-
};
|
|
252
|
-
};
|
|
253
|
-
slotStartTime?: number;
|
|
254
|
-
allowOverlappingStartTimes?: boolean;
|
|
255
233
|
memberships?: [{
|
|
256
234
|
name?: string;
|
|
257
235
|
id?: string;
|
|
@@ -277,49 +255,49 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
277
255
|
unit?: TimeUnit;
|
|
278
256
|
};
|
|
279
257
|
}[]];
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
258
|
+
allowResourceSelection?: boolean;
|
|
259
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
260
|
+
bookingDurations?: {
|
|
261
|
+
minDuration?: {
|
|
283
262
|
amount?: number;
|
|
284
263
|
unit?: TimeUnit;
|
|
285
264
|
};
|
|
286
|
-
|
|
265
|
+
maxDuration?: {
|
|
287
266
|
amount?: number;
|
|
288
267
|
unit?: TimeUnit;
|
|
289
268
|
};
|
|
290
|
-
|
|
269
|
+
durationStep?: {
|
|
291
270
|
amount?: number;
|
|
292
271
|
unit?: TimeUnit;
|
|
293
272
|
};
|
|
294
|
-
|
|
273
|
+
defaultDuration?: {
|
|
295
274
|
amount?: number;
|
|
296
275
|
unit?: TimeUnit;
|
|
297
276
|
};
|
|
298
277
|
};
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
minDuration?: {
|
|
278
|
+
slotStartTime?: number;
|
|
279
|
+
allowOverlappingStartTimes?: boolean;
|
|
280
|
+
}, {
|
|
281
|
+
default?: {
|
|
282
|
+
advanceBookingWindow?: {
|
|
305
283
|
amount?: number;
|
|
306
284
|
unit?: TimeUnit;
|
|
307
285
|
};
|
|
308
|
-
|
|
286
|
+
minimumBookingNotice?: {
|
|
309
287
|
amount?: number;
|
|
310
288
|
unit?: TimeUnit;
|
|
311
289
|
};
|
|
312
|
-
|
|
290
|
+
maxBookingHours?: {
|
|
313
291
|
amount?: number;
|
|
314
292
|
unit?: TimeUnit;
|
|
315
293
|
};
|
|
316
|
-
|
|
294
|
+
maxSequentialBookings?: {
|
|
317
295
|
amount?: number;
|
|
318
296
|
unit?: TimeUnit;
|
|
319
297
|
};
|
|
320
298
|
};
|
|
321
|
-
|
|
322
|
-
|
|
299
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
300
|
+
approvalRequired?: boolean;
|
|
323
301
|
memberships?: [{
|
|
324
302
|
name?: string;
|
|
325
303
|
id?: string;
|
|
@@ -345,6 +323,28 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
345
323
|
unit?: TimeUnit;
|
|
346
324
|
};
|
|
347
325
|
}[]];
|
|
326
|
+
allowResourceSelection?: boolean;
|
|
327
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
328
|
+
bookingDurations?: {
|
|
329
|
+
minDuration?: {
|
|
330
|
+
amount?: number;
|
|
331
|
+
unit?: TimeUnit;
|
|
332
|
+
};
|
|
333
|
+
maxDuration?: {
|
|
334
|
+
amount?: number;
|
|
335
|
+
unit?: TimeUnit;
|
|
336
|
+
};
|
|
337
|
+
durationStep?: {
|
|
338
|
+
amount?: number;
|
|
339
|
+
unit?: TimeUnit;
|
|
340
|
+
};
|
|
341
|
+
defaultDuration?: {
|
|
342
|
+
amount?: number;
|
|
343
|
+
unit?: TimeUnit;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
slotStartTime?: number;
|
|
347
|
+
allowOverlappingStartTimes?: boolean;
|
|
348
348
|
}>;
|
|
349
349
|
declare const _GOODS_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
350
350
|
colorCodeId: z.ZodNullable<z.ZodNumber>;
|
|
@@ -6,3 +6,9 @@ export interface IGetSourceProductDataResponse {
|
|
|
6
6
|
glCodes: ResourceGLsResponseDto[];
|
|
7
7
|
resourceSettings: ResourceSetting[];
|
|
8
8
|
}
|
|
9
|
+
export interface ICreateProductOptions {
|
|
10
|
+
skipEntitlements?: boolean;
|
|
11
|
+
skipGls?: boolean;
|
|
12
|
+
skipPaymentPlans?: boolean;
|
|
13
|
+
skipResources?: boolean;
|
|
14
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-session-group.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/public-session-group.dto.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAE/D,8EAAyG;AAQ5F,QAAA,mCAAmC,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"public-session-group.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/public-session-group.dto.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAE/D,8EAAyG;AAQ5F,QAAA,mCAAmC,GAAG,GAAG,CAAC;AAEvD,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,qBAAsB,SAAQ,mBAAK;CAM/C;AAND,sDAMC;AAED,MAAa,qBAAsB,SAAQ,4CAAyB;CA4CnE;AA5CD,sDA4CC;AAED,MAAa,8BAA+B,SAAQ,6BAAe;CAkBlE;AAlBD,wEAkBC;AAED,MAAa,wBAAyB,SAAQ,sCAAmB;CAIhE;AAJD,4DAIC"}
|
|
@@ -104,6 +104,12 @@ export interface IValidateFolderedRegistrationForSessionResourceParams {
|
|
|
104
104
|
registeringUser: User;
|
|
105
105
|
session: ProgramSeason;
|
|
106
106
|
}
|
|
107
|
+
export interface IValidateRegistrationForSessionResourceParams {
|
|
108
|
+
options?: IValidateResourcesOptions;
|
|
109
|
+
registeringUsers: User[];
|
|
110
|
+
resource: ProgramSeason | Event;
|
|
111
|
+
session: ProgramSeason;
|
|
112
|
+
}
|
|
107
113
|
export interface IAttendeesAvailability {
|
|
108
114
|
availabilityValues: boolean[];
|
|
109
115
|
isExpired: boolean;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { UpdateCartPricesDto } from '../../cart/dto/cart.dto';
|
|
2
|
+
import { AddCartItemDto } from '../../cart/dto/cart-item.dto';
|
|
2
3
|
import { UserAnswersDto } from '../../dto/application.dto';
|
|
4
|
+
import { SaveCardTerminalInputDto } from '../../dto/userPaymentMethod.dto';
|
|
3
5
|
import { Customer } from '../../entity/Customer';
|
|
4
6
|
import { Invoice } from '../../entity/Invoice';
|
|
5
7
|
import { ProductsUsers } from '../../entity/ProductsUsers';
|
|
6
8
|
import { FindOrCreateFolderDto } from '../../folders/dto/folder.dto';
|
|
7
9
|
import { InvoiceCartDto } from '../../invoice/dto/invoice.dto';
|
|
8
10
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
9
|
-
import { SaveCardTerminalInputDto } from '../../dto/userPaymentMethod.dto';
|
|
10
11
|
import { ScheduledPaymentDto } from '../../payment/dto/payment-plan.dto';
|
|
11
12
|
import { Payment } from '../../payment/entities/Payment';
|
|
12
13
|
import { AllowRedisplayEnum, FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
@@ -66,6 +67,8 @@ export declare class PurchaseResourceDto implements IProductResource {
|
|
|
66
67
|
export declare class PurchaseProductDto {
|
|
67
68
|
id: number;
|
|
68
69
|
productId?: number;
|
|
70
|
+
/** Derived on the server from the validated product resources, never accepted from the request. */
|
|
71
|
+
facilityId?: number;
|
|
69
72
|
resources?: PurchaseResourceDto[];
|
|
70
73
|
userId?: number;
|
|
71
74
|
paymentStatus?: PaymentStatusEnum;
|
|
@@ -119,6 +122,13 @@ export declare class AddItemsDto {
|
|
|
119
122
|
allocateResource: boolean;
|
|
120
123
|
skipMail: boolean;
|
|
121
124
|
}
|
|
125
|
+
export declare class AddCartItemsToInvoiceDto {
|
|
126
|
+
cartItems: AddCartItemDto[];
|
|
127
|
+
shiftId?: number;
|
|
128
|
+
paymentInfo?: PurchasePaymentDto;
|
|
129
|
+
amountToPay?: number;
|
|
130
|
+
tipAmount?: number;
|
|
131
|
+
}
|
|
122
132
|
export declare class PartialPaymentAsUserDto {
|
|
123
133
|
invoiceId: number;
|
|
124
134
|
organizationId: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PurchaseCartDto = exports.BasicPurchaseDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.ScheduledPaymentConsumerRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
|
|
3
|
+
exports.PurchaseCartDto = exports.BasicPurchaseDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddCartItemsToInvoiceDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.ScheduledPaymentConsumerRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
|
|
4
4
|
const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
|
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
6
|
class PurchasePaymentDto {
|
|
@@ -40,6 +40,9 @@ class AddItemsDto {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
exports.AddItemsDto = AddItemsDto;
|
|
43
|
+
class AddCartItemsToInvoiceDto {
|
|
44
|
+
}
|
|
45
|
+
exports.AddCartItemsToInvoiceDto = AddCartItemsToInvoiceDto;
|
|
43
46
|
class PartialPaymentAsUserDto {
|
|
44
47
|
}
|
|
45
48
|
exports.PartialPaymentAsUserDto = PartialPaymentAsUserDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AASA,+DAA+D;AAC/D,8EAA8E;AAe9E,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED,MAAa,mBAAmB;CAsB/B;AAtBD,kDAsBC;AAED,MAAa,kBAAkB;CAqC9B;AArCD,gDAqCC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAkBpC;AAlBD,4DAkBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AAED,MAAa,eAAgB,SAAQ,4BAAc;CAkBlD;AAlBD,0CAkBC"}
|
|
@@ -43,6 +43,7 @@ export interface ILineItem {
|
|
|
43
43
|
parentLineItemId?: number;
|
|
44
44
|
productId: number;
|
|
45
45
|
userId?: number;
|
|
46
|
+
facilityId?: number;
|
|
46
47
|
currency: CurrencyEnum;
|
|
47
48
|
isTaxInclusive?: boolean;
|
|
48
49
|
ordinal?: number;
|
|
@@ -102,6 +103,7 @@ export interface IPurchaseCart extends IInvoiceCart {
|
|
|
102
103
|
installments?: ScheduledPaymentDto[];
|
|
103
104
|
parentPurchasedType?: ResourceNameTypeEnum;
|
|
104
105
|
paymentInfo?: PurchasePaymentDto;
|
|
106
|
+
tipAmount?: number;
|
|
105
107
|
updatePrices?: IUpdateCartPrices;
|
|
106
108
|
}
|
|
107
109
|
export interface IRegisteredResourcesResult {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-actions.dto.js","sourceRoot":"","sources":["../../../../src/types/terminal/dto/terminal-actions.dto.ts"],"names":[],"mappings":";;;AASA,MAAM,iCAAiC,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"terminal-actions.dto.js","sourceRoot":"","sources":["../../../../src/types/terminal/dto/terminal-actions.dto.ts"],"names":[],"mappings":";;;AASA,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAEhC,QAAA,mCAAmC,GAAG,GAAG,CAAC;AACvD,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAE3C,MAAa,wBAAwB;CAYpC;AAZD,4DAYC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,uCAAuC;CAInD;AAJD,0FAIC;AAED,MAAa,2CAA2C;CAEvD;AAFD,kGAEC;AAED;;;;;GAKG;AACH,MAAM,gCAAgC,GAAG,CAAC,GAA8B,EAAW,EAAE,CACpF,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,GAAG,CAAC,cAAc,KAAK,SAAS,CAAC;AAElE,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACvC,uEAAuC,CAAA;IACvC,+DAA+B,CAAA;AAChC,CAAC,EAHW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAGvC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,+BAA+B;CAM3C;AAND,0EAMC;AAED,MAAa,6BAA6B;CAQzC;AARD,sEAQC;AAED,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AAED,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,4BAA4B;CAMxC;AAND,oEAMC;AAED,MAAa,iCAAiC;CAI7C;AAJD,8EAIC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAED,MAAa,+BAA+B;CAM3C;AAND,0EAMC"}
|
|
@@ -67,12 +67,12 @@ export interface IActionLogTemplates {
|
|
|
67
67
|
export interface IExecuteActionTriggerParams {
|
|
68
68
|
organizationId: number;
|
|
69
69
|
readerId: string;
|
|
70
|
+
/** PaymentIntent id being re-dispatched; override/ghost cleanup must not cancel it. */
|
|
71
|
+
reservedTargetId?: string | null;
|
|
70
72
|
actionType: TerminalReaderActionTypeEnum;
|
|
71
73
|
dispatch: (readerId: string) => Promise<TerminalActionResponseDto>;
|
|
72
74
|
force?: boolean;
|
|
73
75
|
logTemplates: IActionLogTemplates;
|
|
74
|
-
/** PaymentIntent id being re-dispatched; override/ghost cleanup must not cancel it. */
|
|
75
|
-
reservedTargetId?: string | null;
|
|
76
76
|
}
|
|
77
77
|
export interface IForceActionTriggerParams extends IExecuteActionTriggerParams {
|
|
78
78
|
startedAt: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Address } from '../../address/entities/Address';
|
|
2
|
+
import { CustomerFamilyStatusEnum } from '../../customers/types/enums';
|
|
2
3
|
import { CustomerDto } from '../../dto/customer.dto';
|
|
3
4
|
import { Media } from '../../media/entities/Media';
|
|
4
5
|
import { Athlete } from '../entities/Athlete';
|
|
@@ -23,4 +24,5 @@ export declare class UserSettingsDto {
|
|
|
23
24
|
privateProfile?: boolean;
|
|
24
25
|
hasPassword: boolean;
|
|
25
26
|
customers?: CustomerDto[];
|
|
27
|
+
familyStatus: CustomerFamilyStatusEnum;
|
|
26
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-settings.dto.js","sourceRoot":"","sources":["../../../../src/types/user/dto/user-settings.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"user-settings.dto.js","sourceRoot":"","sources":["../../../../src/types/user/dto/user-settings.dto.ts"],"names":[],"mappings":";;;AAOA,MAAa,eAAe;CA0C3B;AA1CD,0CA0CC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { BondBaseEntity } from '../../entity/BondBaseEntity';
|
|
2
2
|
import { LevelOfPlayEnum } from '../../programs/types/enums/program.enums';
|
|
3
|
+
import { Athlete } from './Athlete';
|
|
3
4
|
export declare class AthleteSports extends BondBaseEntity {
|
|
4
5
|
athleteId: number | null;
|
|
6
|
+
athlete: Athlete;
|
|
5
7
|
sports: number | null;
|
|
6
8
|
levelOfPlay: LevelOfPlayEnum | null;
|
|
7
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AthleteSports.js","sourceRoot":"","sources":["../../../../src/types/user/entities/AthleteSports.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;
|
|
1
|
+
{"version":3,"file":"AthleteSports.js","sourceRoot":"","sources":["../../../../src/types/user/entities/AthleteSports.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAK7D,MAAa,aAAc,SAAQ,+BAAc;CAQhD;AARD,sCAQC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Address } from '../../address/entities/Address';
|
|
2
2
|
import { CustomerMerge } from '../../customers-merge/entities/CustomerMerge';
|
|
3
|
+
import { CustomerFamilyStatusEnum } from '../../customers/types/enums';
|
|
3
4
|
import { BondBaseEntity } from '../../entity/BondBaseEntity';
|
|
4
5
|
import { Customer } from '../../entity/Customer';
|
|
5
6
|
import { EventAttendee } from '../../entity/EventAttendees';
|
|
@@ -61,6 +62,7 @@ export declare class User extends BondBaseEntity {
|
|
|
61
62
|
merge?: CustomerMerge;
|
|
62
63
|
family?: User[];
|
|
63
64
|
membershipMembers?: MembershipMember[];
|
|
65
|
+
familyStatus?: CustomerFamilyStatusEnum;
|
|
64
66
|
}
|
|
65
67
|
export declare class IUserInOrganization extends User {
|
|
66
68
|
organizationId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/types/user/entities/User.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/types/user/entities/User.ts"],"names":[],"mappings":";;;AAKA,gEAA6D;AAiB7D,MAAa,IAAK,SAAQ,+BAAc;CA4FvC;AA5FD,oBA4FC;AAED,MAAa,mBAAoB,SAAQ,IAAI;CAI5C;AAJD,kDAIC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { CustomerFamilyStatusEnum } from '../../customers/types/enums';
|
|
1
2
|
import { GenderEnum } from '../../services/enums.service';
|
|
2
3
|
import { User } from '../entities/User';
|
|
3
4
|
export declare const NO_VALUE = "-";
|
|
5
|
+
export declare const MINIMUM_PRIMARY_AGE_FAMILY_STATUSES: readonly CustomerFamilyStatusEnum[];
|
|
4
6
|
export declare const GENDER_LABELS: Record<GenderEnum, string>;
|
|
5
7
|
export declare const PROFILE_FIELD_LABELS: Partial<Record<keyof User, string>>;
|
|
6
8
|
export declare const COGNITO_FIELDS: (keyof User)[];
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserErrorKeysEnum = exports.USER_ENTITY_UPDATE_FIELDS = exports.COGNITO_FIELDS = exports.PROFILE_FIELD_LABELS = exports.GENDER_LABELS = exports.NO_VALUE = void 0;
|
|
3
|
+
exports.UserErrorKeysEnum = exports.USER_ENTITY_UPDATE_FIELDS = exports.COGNITO_FIELDS = exports.PROFILE_FIELD_LABELS = exports.GENDER_LABELS = exports.MINIMUM_PRIMARY_AGE_FAMILY_STATUSES = exports.NO_VALUE = void 0;
|
|
4
|
+
const enums_1 = require("../../customers/types/enums");
|
|
4
5
|
const enums_service_1 = require("../../services/enums.service");
|
|
5
6
|
exports.NO_VALUE = '-';
|
|
7
|
+
exports.MINIMUM_PRIMARY_AGE_FAMILY_STATUSES = [
|
|
8
|
+
enums_1.CustomerFamilyStatusEnum.PRIMARY,
|
|
9
|
+
enums_1.CustomerFamilyStatusEnum.INDEPENDENT,
|
|
10
|
+
];
|
|
6
11
|
exports.GENDER_LABELS = {
|
|
7
12
|
[enums_service_1.GenderEnum.MALE]: 'Male',
|
|
8
13
|
[enums_service_1.GenderEnum.FEMALE]: 'Female',
|
|
@@ -19,6 +24,7 @@ exports.PROFILE_FIELD_LABELS = {
|
|
|
19
24
|
};
|
|
20
25
|
exports.COGNITO_FIELDS = ['firstName', 'lastName', 'email', 'birthDate', 'gender'];
|
|
21
26
|
exports.USER_ENTITY_UPDATE_FIELDS = [
|
|
27
|
+
'about',
|
|
22
28
|
'addressId',
|
|
23
29
|
'birthDate',
|
|
24
30
|
'email',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.consts.js","sourceRoot":"","sources":["../../../../src/types/user/types/user.consts.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;AAG7C,QAAA,QAAQ,GAAG,GAAG,CAAC;AAEf,QAAA,aAAa,GAA+B;IACxD,CAAC,0BAAU,CAAC,IAAI,CAAC,EAAE,MAAM;IACzB,CAAC,0BAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,0BAAU,CAAC,KAAK,CAAC,EAAE,gBAAgB;CACpC,CAAC;AAEW,QAAA,oBAAoB,GAAwC;IACxE,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,OAAO;IACpB,SAAS,EAAE,eAAe;IAC1B,MAAM,EAAE,QAAQ;CAChB,CAAC;AAEW,QAAA,cAAc,GAAmB,CAAC,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;AAE3F,QAAA,yBAAyB,GAAG;IACxC,WAAW;IACX,WAAW;IACX,OAAO;IACP,WAAW;IACX,QAAQ;IACR,UAAU;IACV,aAAa;IACb,QAAQ;CACR,CAAC;AAEF,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC5B,sEAAiD,CAAA;IACjD,kEAA6C,CAAA;AAC9C,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
|
|
1
|
+
{"version":3,"file":"user.consts.js","sourceRoot":"","sources":["../../../../src/types/user/types/user.consts.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AACvE,gEAA0D;AAG7C,QAAA,QAAQ,GAAG,GAAG,CAAC;AAEf,QAAA,mCAAmC,GAAwC;IACvF,gCAAwB,CAAC,OAAO;IAChC,gCAAwB,CAAC,WAAW;CACpC,CAAC;AAEW,QAAA,aAAa,GAA+B;IACxD,CAAC,0BAAU,CAAC,IAAI,CAAC,EAAE,MAAM;IACzB,CAAC,0BAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,0BAAU,CAAC,KAAK,CAAC,EAAE,gBAAgB;CACpC,CAAC;AAEW,QAAA,oBAAoB,GAAwC;IACxE,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,OAAO;IACpB,SAAS,EAAE,eAAe;IAC1B,MAAM,EAAE,QAAQ;CAChB,CAAC;AAEW,QAAA,cAAc,GAAmB,CAAC,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;AAE3F,QAAA,yBAAyB,GAAG;IACxC,OAAO;IACP,WAAW;IACX,WAAW;IACX,OAAO;IACP,WAAW;IACX,QAAQ;IACR,UAAU;IACV,aAAa;IACb,QAAQ;CACR,CAAC;AAEF,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC5B,sEAAiD,CAAA;IACjD,kEAA6C,CAAA;AAC9C,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
|