@bondsports/types 2.4.11 → 2.4.15-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/LICENSE.md +0 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/address/types/address.interfaces.d.ts +6 -0
- package/dist/types/auth/auth-headers-names.enum.d.ts +6 -0
- package/dist/types/auth/auth-headers-names.enum.js +8 -1
- package/dist/types/auth/auth-headers-names.enum.js.map +1 -1
- package/dist/types/cart/dto/cart-item.dto.d.ts +5 -3
- package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
- package/dist/types/cart/entities/cart-item.entity.d.ts +4 -2
- package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
- package/dist/types/cart/types/consts/cart.consts.d.ts +0 -2
- package/dist/types/cart/types/consts/cart.consts.js +2 -6
- package/dist/types/cart/types/consts/cart.consts.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -1
- package/dist/types/customers/dto/add-family-member.dto.d.ts +2 -1
- package/dist/types/customers/dto/add-family-member.dto.js.map +1 -1
- package/dist/types/customers/dto/customer-response.dto.d.ts +9 -0
- package/dist/types/customers/dto/customer-response.dto.js +9 -1
- package/dist/types/customers/dto/customer-response.dto.js.map +1 -1
- package/dist/types/customers/types/consts/customers.consts.d.ts +1 -0
- package/dist/types/customers/types/consts/customers.consts.js +9 -1
- package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
- package/dist/types/customers/types/enums.d.ts +6 -0
- package/dist/types/customers/types/enums.js +8 -1
- package/dist/types/customers/types/enums.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +12 -0
- package/dist/types/entity/Invoice.d.ts +2 -0
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/invoice/types/consts/index.d.ts +1 -0
- package/dist/types/invoice/types/consts/index.js +1 -0
- package/dist/types/invoice/types/consts/index.js.map +1 -1
- package/dist/types/invoice/types/consts/invoice-visibility.consts.d.ts +11 -0
- package/dist/types/invoice/types/consts/invoice-visibility.consts.js +24 -0
- package/dist/types/invoice/types/consts/invoice-visibility.consts.js.map +1 -0
- package/dist/types/invoice/types/enums/index.d.ts +1 -0
- package/dist/types/invoice/types/enums/index.js +18 -0
- package/dist/types/invoice/types/enums/index.js.map +1 -0
- package/dist/types/invoice/types/enums/invoice-visibility.enums.d.ts +19 -0
- package/dist/types/invoice/types/enums/invoice-visibility.enums.js +25 -0
- package/dist/types/invoice/types/enums/invoice-visibility.enums.js.map +1 -0
- package/dist/types/invoice/types/index.d.ts +1 -0
- package/dist/types/invoice/types/index.js +1 -0
- package/dist/types/invoice/types/index.js.map +1 -1
- package/dist/types/league-standings/interfaces/competition-team.interface.d.ts +10 -0
- package/dist/types/league-standings/interfaces/competition-team.interface.js +3 -0
- package/dist/types/league-standings/interfaces/competition-team.interface.js.map +1 -0
- package/dist/types/league-standings/interfaces/index.d.ts +4 -0
- package/dist/types/league-standings/interfaces/index.js +4 -0
- package/dist/types/league-standings/interfaces/index.js.map +1 -1
- package/dist/types/league-standings/interfaces/standings.interface.d.ts +4 -0
- package/dist/types/league-standings/interfaces/standings.interface.js +3 -0
- package/dist/types/league-standings/interfaces/standings.interface.js.map +1 -0
- package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +4 -0
- package/dist/types/payment/types/interfaces/discount.interfaces.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +2 -0
- package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +0 -1
- 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-session.interfaces.d.ts +20 -2
- package/dist/types/punch-pass/types/interfaces.d.ts +38 -0
- package/dist/types/services/enums.service.d.ts +7 -2
- package/dist/types/services/enums.service.js +5 -0
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +5 -0
- package/dist/types/services/interfaces.service.js.map +1 -1
- package/dist/types/session-participants/types/interfaces.d.ts +27 -0
- package/dist/types/user/dto/athlete.dto.d.ts +15 -0
- package/dist/types/user/dto/athlete.dto.js +13 -0
- package/dist/types/user/dto/athlete.dto.js.map +1 -0
- package/dist/types/user/dto/index.d.ts +2 -0
- package/dist/types/user/dto/index.js +2 -0
- package/dist/types/user/dto/index.js.map +1 -1
- package/dist/types/user/dto/update-user-profile.dto.d.ts +24 -0
- package/dist/types/user/dto/update-user-profile.dto.js +17 -0
- package/dist/types/user/dto/update-user-profile.dto.js.map +1 -0
- package/dist/types/user/dto/user.dto.d.ts +0 -3
- package/dist/types/user/dto/user.dto.js +1 -4
- package/dist/types/user/dto/user.dto.js.map +1 -1
- package/dist/types/user/entities/Athlete.d.ts +2 -0
- package/dist/types/user/entities/Athlete.js.map +1 -1
- package/dist/types/user/types/athlete.interfaces.d.ts +14 -0
- package/dist/types/user/types/athlete.interfaces.js +3 -0
- package/dist/types/user/types/athlete.interfaces.js.map +1 -0
- package/dist/types/user/types/index.d.ts +2 -0
- package/dist/types/user/types/index.js +2 -0
- package/dist/types/user/types/index.js.map +1 -1
- package/dist/types/user/types/user.consts.d.ts +11 -0
- package/dist/types/user/types/user.consts.js +36 -0
- package/dist/types/user/types/user.consts.js.map +1 -0
- package/dist/types/user/types/user.interfaces.d.ts +18 -2
- package/package.json +5 -5
|
@@ -4,3 +4,9 @@ export declare enum AuthHeadersNamesEnum {
|
|
|
4
4
|
RefreshToken = "X-BondUserRefreshToken",
|
|
5
5
|
Username = "X-BondUserUsername"
|
|
6
6
|
}
|
|
7
|
+
export declare enum AuthCookieNamesEnum {
|
|
8
|
+
AccessToken = "BondUserAccessToken",
|
|
9
|
+
IdToken = "BondUserIdToken",
|
|
10
|
+
RefreshToken = "BondUserRefreshToken",
|
|
11
|
+
Username = "BondUserUsername"
|
|
12
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthHeadersNamesEnum = void 0;
|
|
3
|
+
exports.AuthCookieNamesEnum = exports.AuthHeadersNamesEnum = void 0;
|
|
4
4
|
var AuthHeadersNamesEnum;
|
|
5
5
|
(function (AuthHeadersNamesEnum) {
|
|
6
6
|
AuthHeadersNamesEnum["AccessToken"] = "X-BondUserAccessToken";
|
|
@@ -8,4 +8,11 @@ var AuthHeadersNamesEnum;
|
|
|
8
8
|
AuthHeadersNamesEnum["RefreshToken"] = "X-BondUserRefreshToken";
|
|
9
9
|
AuthHeadersNamesEnum["Username"] = "X-BondUserUsername";
|
|
10
10
|
})(AuthHeadersNamesEnum = exports.AuthHeadersNamesEnum || (exports.AuthHeadersNamesEnum = {}));
|
|
11
|
+
var AuthCookieNamesEnum;
|
|
12
|
+
(function (AuthCookieNamesEnum) {
|
|
13
|
+
AuthCookieNamesEnum["AccessToken"] = "BondUserAccessToken";
|
|
14
|
+
AuthCookieNamesEnum["IdToken"] = "BondUserIdToken";
|
|
15
|
+
AuthCookieNamesEnum["RefreshToken"] = "BondUserRefreshToken";
|
|
16
|
+
AuthCookieNamesEnum["Username"] = "BondUserUsername";
|
|
17
|
+
})(AuthCookieNamesEnum = exports.AuthCookieNamesEnum || (exports.AuthCookieNamesEnum = {}));
|
|
11
18
|
//# sourceMappingURL=auth-headers-names.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-headers-names.enum.js","sourceRoot":"","sources":["../../../src/types/auth/auth-headers-names.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC/B,6DAAqC,CAAA;IACrC,qDAA6B,CAAA;IAC7B,+DAAuC,CAAA;IACvC,uDAA+B,CAAA;AAChC,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B"}
|
|
1
|
+
{"version":3,"file":"auth-headers-names.enum.js","sourceRoot":"","sources":["../../../src/types/auth/auth-headers-names.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC/B,6DAAqC,CAAA;IACrC,qDAA6B,CAAA;IAC7B,+DAAuC,CAAA;IACvC,uDAA+B,CAAA;AAChC,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B;AAED,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC9B,0DAAmC,CAAA;IACnC,kDAA2B,CAAA;IAC3B,4DAAqC,CAAA;IACrC,oDAA6B,CAAA;AAC9B,CAAC,EALW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAK9B"}
|
|
@@ -13,8 +13,9 @@ export declare class CartTaxDto extends OrganizationBaseEntityDto {
|
|
|
13
13
|
cartId: number;
|
|
14
14
|
productId: number;
|
|
15
15
|
price: number;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
name: string;
|
|
17
|
+
rate?: number;
|
|
18
|
+
isInclusive?: boolean;
|
|
18
19
|
}
|
|
19
20
|
export declare class CartDiscountDto extends OrganizationBaseEntityDto {
|
|
20
21
|
cartId: number;
|
|
@@ -57,7 +58,8 @@ export declare class CartItemDto extends SimpleCartItemDto {
|
|
|
57
58
|
status: CartStatusEnum;
|
|
58
59
|
errors?: string[];
|
|
59
60
|
ordinal?: number;
|
|
60
|
-
|
|
61
|
+
taxId?: number;
|
|
62
|
+
taxItems?: CartTaxDto[];
|
|
61
63
|
discounts?: CartDiscountDto[];
|
|
62
64
|
discountSubtotal?: number;
|
|
63
65
|
children?: CartItemDto[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-item.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item.dto.ts"],"names":[],"mappings":";;;AAEA,8EAAoF;AAWpF,MAAa,UAAW,SAAQ,4CAAyB;
|
|
1
|
+
{"version":3,"file":"cart-item.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item.dto.ts"],"names":[],"mappings":";;;AAEA,8EAAoF;AAWpF,MAAa,UAAW,SAAQ,4CAAyB;CAYxD;AAZD,gCAYC;AAED,MAAa,eAAgB,SAAQ,4CAAyB;CA0B7D;AA1BD,0CA0BC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAI/D;AAJD,8CAIC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CA4CjD;AA5CD,kCA4CC;AAED,MAAa,eAAe;CAO3B;AAPD,0CAOC;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAGrD;AAHD,8CAGC;AAED,MAAa,cAAe,SAAQ,eAAe;CAUlD;AAVD,wCAUC"}
|
|
@@ -9,6 +9,7 @@ import { Reason } from '../../organization/entities/Reason';
|
|
|
9
9
|
import { Discount } from '../../payment/entities/Discount';
|
|
10
10
|
import { DiscountOnEnum } from '../../payment/types/enums/discount.enums';
|
|
11
11
|
import { Product } from '../../product-pricing/entities/product.entity';
|
|
12
|
+
import { Tax } from '../../taxes/entities/Tax';
|
|
12
13
|
import { PurchaseResourceDto } from '../../purchase/dto/purchase.dto';
|
|
13
14
|
import { ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
14
15
|
import { User } from '../../user/entities/User';
|
|
@@ -36,16 +37,17 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
|
|
|
36
37
|
parentOrdinal?: number;
|
|
37
38
|
unique?: string;
|
|
38
39
|
percentage?: number;
|
|
39
|
-
isTaxInclusive?: boolean;
|
|
40
40
|
entitlementGroupId?: number;
|
|
41
41
|
entitlementGroup?: EntitlementGroup;
|
|
42
42
|
parentId?: number;
|
|
43
43
|
parent?: CartItem;
|
|
44
44
|
children?: CartItem[];
|
|
45
45
|
discounts?: CartItem[];
|
|
46
|
-
|
|
46
|
+
taxItems?: CartItem[];
|
|
47
47
|
discountId?: number;
|
|
48
48
|
discount?: Discount;
|
|
49
|
+
taxId?: number;
|
|
50
|
+
tax?: Tax;
|
|
49
51
|
resources?: PurchaseResourceDto[];
|
|
50
52
|
parentResourceId?: string;
|
|
51
53
|
parentResourceType?: ResourceNameTypeEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAQA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAQA,oGAAiG;AAejG,MAAa,QAAS,SAAQ,mEAAgC;CAqG7D;AArGD,4BAqGC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { CartDiscountDto } from '../../dto/cart-item.dto';
|
|
2
|
-
import { CartItem } from '../../entities/cart-item.entity';
|
|
3
|
-
export declare const uniqueCartTaxTemplate: (cartItem: CartItem) => string;
|
|
4
2
|
export declare const uniqueCartDiscountTemplate: (discountItem: CartDiscountDto) => string;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uniqueCartDiscountTemplate =
|
|
4
|
-
const uniqueCartTaxTemplate = (cartItem) => {
|
|
5
|
-
return `${cartItem.percentage}_${cartItem.isTaxInclusive}`;
|
|
6
|
-
};
|
|
7
|
-
exports.uniqueCartTaxTemplate = uniqueCartTaxTemplate;
|
|
3
|
+
exports.uniqueCartDiscountTemplate = void 0;
|
|
8
4
|
const uniqueCartDiscountTemplate = (discountItem) => {
|
|
9
|
-
const discountPercentage = `${discountItem.percentage}
|
|
5
|
+
const discountPercentage = `${discountItem.percentage}`;
|
|
10
6
|
return `${discountItem.discountId}_${discountItem.discount?.type}_${discountPercentage}_${discountItem.actionId}`;
|
|
11
7
|
};
|
|
12
8
|
exports.uniqueCartDiscountTemplate = uniqueCartDiscountTemplate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.consts.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/consts/cart.consts.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cart.consts.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/consts/cart.consts.ts"],"names":[],"mappings":";;;AAEO,MAAM,0BAA0B,GAAG,CAAC,YAA6B,EAAU,EAAE;IACnF,MAAM,kBAAkB,GAAW,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC;IAEhE,OAAO,GAAG,YAAY,CAAC,UAAU,IAAI,YAAY,CAAC,QAAQ,EAAE,IAAI,IAAI,kBAAkB,IAAI,YAAY,CAAC,QAAQ,EAAE,CAAC;AACnH,CAAC,CAAC;AAJW,QAAA,0BAA0B,8BAIrC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CreateCustomerDto } from './customer.dto';
|
|
2
|
+
import { SimpleCustomerDto } from './customer-response.dto';
|
|
2
3
|
export declare class AddMembersDto {
|
|
3
4
|
customerIds?: number[];
|
|
4
5
|
customers?: CreateCustomerDto[];
|
|
5
6
|
}
|
|
6
7
|
export declare class NewFamilyMembersDto {
|
|
7
8
|
familyCustomerId: number;
|
|
8
|
-
|
|
9
|
+
newMembers: SimpleCustomerDto[];
|
|
9
10
|
}
|
|
10
11
|
export declare class AddMembersResponseDto {
|
|
11
12
|
data: NewFamilyMembersDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-family-member.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/add-family-member.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"add-family-member.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/add-family-member.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,aAAa;CAIzB;AAJD,sCAIC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC"}
|
|
@@ -3,6 +3,15 @@ import { MediaDto } from '../../media/dto/media.dto';
|
|
|
3
3
|
import { UserPaymentMethodDto } from '../../payment/dtos/user-payment-method.dto';
|
|
4
4
|
import { CustomerTypeEnum } from '../../services/enums.service';
|
|
5
5
|
import { CustomerFamilyStatusEnum } from '../types/enums';
|
|
6
|
+
/**
|
|
7
|
+
* DTO representing minimal customer information for public/obscured views.
|
|
8
|
+
* Used when customer details should be partially hidden from viewers
|
|
9
|
+
* (e.g., when viewing an invoice that belongs to another customer).
|
|
10
|
+
*/
|
|
11
|
+
export declare class ObfuscatedCustomerDto {
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
}
|
|
6
15
|
export declare class EmergencyContactDto {
|
|
7
16
|
customerId: number;
|
|
8
17
|
name?: string;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomersPaymentMethodsResponseDto = exports.GetCustomerQueryDto = exports.SimpleCustomerDto = exports.EmergencyContactDto = void 0;
|
|
3
|
+
exports.CustomersPaymentMethodsResponseDto = exports.GetCustomerQueryDto = exports.SimpleCustomerDto = exports.EmergencyContactDto = exports.ObfuscatedCustomerDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
|
+
/**
|
|
6
|
+
* DTO representing minimal customer information for public/obscured views.
|
|
7
|
+
* Used when customer details should be partially hidden from viewers
|
|
8
|
+
* (e.g., when viewing an invoice that belongs to another customer).
|
|
9
|
+
*/
|
|
10
|
+
class ObfuscatedCustomerDto {
|
|
11
|
+
}
|
|
12
|
+
exports.ObfuscatedCustomerDto = ObfuscatedCustomerDto;
|
|
5
13
|
class EmergencyContactDto {
|
|
6
14
|
}
|
|
7
15
|
exports.EmergencyContactDto = EmergencyContactDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-response.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customer-response.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8C;AAM9C,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAwB3C;AAxBD,8CAwBC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC"}
|
|
1
|
+
{"version":3,"file":"customer-response.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customer-response.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8C;AAM9C;;;;GAIG;AACH,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAwB3C;AAxBD,8CAwBC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC"}
|
|
@@ -2,3 +2,4 @@ import { CreateCustomerOptions } from '../interfaces';
|
|
|
2
2
|
export declare const LIMIT_CUSTOMERS_FETCH_AMOUNT = 1000;
|
|
3
3
|
export declare const DEFAULT_CREATE_CUSTOMER_OPTIONS: CreateCustomerOptions;
|
|
4
4
|
export declare const RELATIONS_FOR_ORGANIZATION_USER: string[];
|
|
5
|
+
export declare const CUSTOMER_ENTITY_UPDATE_FIELDS: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RELATIONS_FOR_ORGANIZATION_USER = exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = void 0;
|
|
3
|
+
exports.CUSTOMER_ENTITY_UPDATE_FIELDS = exports.RELATIONS_FOR_ORGANIZATION_USER = exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = void 0;
|
|
4
4
|
exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = 1000;
|
|
5
5
|
exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = {
|
|
6
6
|
saveCustomer: true,
|
|
@@ -10,4 +10,12 @@ exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = {
|
|
|
10
10
|
skipCreateCognitoUser: false,
|
|
11
11
|
};
|
|
12
12
|
exports.RELATIONS_FOR_ORGANIZATION_USER = ['user', 'user.organizationUsers'];
|
|
13
|
+
exports.CUSTOMER_ENTITY_UPDATE_FIELDS = [
|
|
14
|
+
'addressId',
|
|
15
|
+
'colorCodeId',
|
|
16
|
+
'email',
|
|
17
|
+
'firstName',
|
|
18
|
+
'lastName',
|
|
19
|
+
'phoneNumber',
|
|
20
|
+
];
|
|
13
21
|
//# sourceMappingURL=customers.consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.consts.js","sourceRoot":"","sources":["../../../../../src/types/customers/types/consts/customers.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG,IAAI,CAAC;AAEpC,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,KAAK;IACrB,qBAAqB,EAAE,KAAK;CAC5B,CAAC;AAEW,QAAA,+BAA+B,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"customers.consts.js","sourceRoot":"","sources":["../../../../../src/types/customers/types/consts/customers.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG,IAAI,CAAC;AAEpC,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,KAAK;IACrB,qBAAqB,EAAE,KAAK;CAC5B,CAAC;AAEW,QAAA,+BAA+B,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAErE,QAAA,6BAA6B,GAAG;IAC5C,WAAW;IACX,aAAa;IACb,OAAO;IACP,WAAW;IACX,UAAU;IACV,aAAa;CACb,CAAC"}
|
|
@@ -20,3 +20,9 @@ export declare enum CustomerExpandsEnum {
|
|
|
20
20
|
NOTES = "notes",
|
|
21
21
|
USER_DETAILS = "user_details"
|
|
22
22
|
}
|
|
23
|
+
export declare enum CustomerErrorsEnum {
|
|
24
|
+
MISSING_PARAMS = "missing_params",
|
|
25
|
+
CUSTOMER_NOT_FOUND = "customer_not_found",
|
|
26
|
+
CUSTOMER_IS_NOT_USER = "customer_is_not_user",
|
|
27
|
+
CROSS_ORGANIZATION_CUSTOMER_ACCESS = "cross_organization_customer_access"
|
|
28
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerExpandsEnum = exports.OrderByCusotmerEnum = exports.CustomerFamilyStatusEnum = void 0;
|
|
3
|
+
exports.CustomerErrorsEnum = exports.CustomerExpandsEnum = exports.OrderByCusotmerEnum = exports.CustomerFamilyStatusEnum = void 0;
|
|
4
4
|
var CustomerFamilyStatusEnum;
|
|
5
5
|
(function (CustomerFamilyStatusEnum) {
|
|
6
6
|
CustomerFamilyStatusEnum["DEPENDENT"] = "dependent";
|
|
@@ -27,4 +27,11 @@ var CustomerExpandsEnum;
|
|
|
27
27
|
CustomerExpandsEnum["NOTES"] = "notes";
|
|
28
28
|
CustomerExpandsEnum["USER_DETAILS"] = "user_details";
|
|
29
29
|
})(CustomerExpandsEnum = exports.CustomerExpandsEnum || (exports.CustomerExpandsEnum = {}));
|
|
30
|
+
var CustomerErrorsEnum;
|
|
31
|
+
(function (CustomerErrorsEnum) {
|
|
32
|
+
CustomerErrorsEnum["MISSING_PARAMS"] = "missing_params";
|
|
33
|
+
CustomerErrorsEnum["CUSTOMER_NOT_FOUND"] = "customer_not_found";
|
|
34
|
+
CustomerErrorsEnum["CUSTOMER_IS_NOT_USER"] = "customer_is_not_user";
|
|
35
|
+
CustomerErrorsEnum["CROSS_ORGANIZATION_CUSTOMER_ACCESS"] = "cross_organization_customer_access";
|
|
36
|
+
})(CustomerErrorsEnum = exports.CustomerErrorsEnum || (exports.CustomerErrorsEnum = {}));
|
|
30
37
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/customers/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IACnC,mDAAuB,CAAA;IACvB,uDAA2B,CAAA;IAC3B,+CAAmB,CAAA;AACpB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC;AAED,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC9B,gCAAS,CAAA;IACT,uDAAgC,CAAA;IAChC,+CAAwB,CAAA;IACxB,6CAAsB,CAAA;IACtB,sCAAe,CAAA;IACf,wCAAiB,CAAA;IACjB,oDAA6B,CAAA;AAC9B,CAAC,EARW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAQ9B;AAED,sEAAsE;AACtE,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC9B,0CAAmB,CAAA;IACnB,gDAAyB,CAAA;IACzB,kDAA2B,CAAA;IAC3B,gEAAyC,CAAA;IACzC,sCAAe,CAAA;IACf,oDAA6B,CAAA;AAC9B,CAAC,EAPW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAO9B"}
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/customers/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IACnC,mDAAuB,CAAA;IACvB,uDAA2B,CAAA;IAC3B,+CAAmB,CAAA;AACpB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC;AAED,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC9B,gCAAS,CAAA;IACT,uDAAgC,CAAA;IAChC,+CAAwB,CAAA;IACxB,6CAAsB,CAAA;IACtB,sCAAe,CAAA;IACf,wCAAiB,CAAA;IACjB,oDAA6B,CAAA;AAC9B,CAAC,EARW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAQ9B;AAED,sEAAsE;AACtE,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC9B,0CAAmB,CAAA;IACnB,gDAAyB,CAAA;IACzB,kDAA2B,CAAA;IAC3B,gEAAyC,CAAA;IACzC,sCAAe,CAAA;IACf,oDAA6B,CAAA;AAC9B,CAAC,EAPW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAO9B;AAED,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC7B,uDAAiC,CAAA;IACjC,+DAAyC,CAAA;IACzC,mEAA6C,CAAA;IAC7C,+FAAyE,CAAA;AAC1E,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B"}
|
|
@@ -69,3 +69,15 @@ export interface ICustomerColumns {
|
|
|
69
69
|
vetted?: boolean;
|
|
70
70
|
waiverSignedDate?: string;
|
|
71
71
|
}
|
|
72
|
+
export interface INewFamilyMembers {
|
|
73
|
+
familyCustomerId: number;
|
|
74
|
+
newMembers: Customer[];
|
|
75
|
+
}
|
|
76
|
+
export interface IUpdateCustomerFields {
|
|
77
|
+
addressId?: number;
|
|
78
|
+
colorCodeId?: number;
|
|
79
|
+
email?: string;
|
|
80
|
+
firstName?: string;
|
|
81
|
+
lastName?: string;
|
|
82
|
+
phoneNumber?: string;
|
|
83
|
+
}
|
|
@@ -11,6 +11,7 @@ import { Slot } from '../reservations/entities/slot.entity';
|
|
|
11
11
|
import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../services/enums.service';
|
|
12
12
|
import { User } from '../user/entities/User';
|
|
13
13
|
import { BondBaseEntity } from './BondBaseEntity';
|
|
14
|
+
import { ObfuscatedCustomerDto } from '../customers/dto/customer-response.dto';
|
|
14
15
|
import { Customer } from './Customer';
|
|
15
16
|
import { InvoiceNote } from './InvoiceNote';
|
|
16
17
|
import { InvoiceToPayment } from './InvoiceToPayment';
|
|
@@ -57,6 +58,7 @@ export declare class Invoice extends BondBaseEntity {
|
|
|
57
58
|
subtotal?: number;
|
|
58
59
|
subtotalBalance?: number;
|
|
59
60
|
customer?: Customer;
|
|
61
|
+
obfuscatedCustomer?: ObfuscatedCustomerDto;
|
|
60
62
|
hasFailedPayments?: boolean;
|
|
61
63
|
hasFailedInstallments?: boolean;
|
|
62
64
|
reservations?: Reservation[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAoBA,qDAAkD;
|
|
1
|
+
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAoBA,qDAAkD;AAQlD,MAAa,OAAQ,SAAQ,+BAAc;CAuG1C;AAvGD,0BAuGC"}
|
|
@@ -14,5 +14,6 @@ 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("./invoice-visibility.consts"), exports);
|
|
17
18
|
__exportStar(require("./invoice.consts"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,mDAAiC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InvoiceViewerRoleEnum, InvoiceVisibilityFieldEnum } from '../enums/invoice-visibility.enums';
|
|
2
|
+
/**
|
|
3
|
+
* Defines which fields are HIDDEN for each role.
|
|
4
|
+
* - Admin has nothing hidden (empty array)
|
|
5
|
+
* - Other customer is most restrictive (fallback)
|
|
6
|
+
*
|
|
7
|
+
* To hide a new field:
|
|
8
|
+
* 1. Add it to InvoiceVisibilityFieldEnum
|
|
9
|
+
* 2. Add it to the roles that should NOT see it below
|
|
10
|
+
*/
|
|
11
|
+
export declare const INVOICE_RESTRICT_VISIBILITY_CONFIG: Record<InvoiceViewerRoleEnum, InvoiceVisibilityFieldEnum[]>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INVOICE_RESTRICT_VISIBILITY_CONFIG = void 0;
|
|
4
|
+
const invoice_visibility_enums_1 = require("../enums/invoice-visibility.enums");
|
|
5
|
+
/**
|
|
6
|
+
* Defines which fields are HIDDEN for each role.
|
|
7
|
+
* - Admin has nothing hidden (empty array)
|
|
8
|
+
* - Other customer is most restrictive (fallback)
|
|
9
|
+
*
|
|
10
|
+
* To hide a new field:
|
|
11
|
+
* 1. Add it to InvoiceVisibilityFieldEnum
|
|
12
|
+
* 2. Add it to the roles that should NOT see it below
|
|
13
|
+
*/
|
|
14
|
+
exports.INVOICE_RESTRICT_VISIBILITY_CONFIG = {
|
|
15
|
+
[invoice_visibility_enums_1.InvoiceViewerRoleEnum.ADMIN]: [],
|
|
16
|
+
[invoice_visibility_enums_1.InvoiceViewerRoleEnum.OWNER]: [],
|
|
17
|
+
[invoice_visibility_enums_1.InvoiceViewerRoleEnum.FAMILY_MEMBER]: [],
|
|
18
|
+
[invoice_visibility_enums_1.InvoiceViewerRoleEnum.OTHER_CUSTOMER]: [
|
|
19
|
+
invoice_visibility_enums_1.InvoiceVisibilityFieldEnum.PAYMENTS,
|
|
20
|
+
invoice_visibility_enums_1.InvoiceVisibilityFieldEnum.CUSTOMER_DETAILS,
|
|
21
|
+
invoice_visibility_enums_1.InvoiceVisibilityFieldEnum.SCHEDULED_PAYMENTS,
|
|
22
|
+
],
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=invoice-visibility.consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-visibility.consts.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/invoice-visibility.consts.ts"],"names":[],"mappings":";;;AAAA,gFAAsG;AAEtG;;;;;;;;GAQG;AACU,QAAA,kCAAkC,GAAgE;IAC9G,CAAC,gDAAqB,CAAC,KAAK,CAAC,EAAE,EAAE;IACjC,CAAC,gDAAqB,CAAC,KAAK,CAAC,EAAE,EAAE;IACjC,CAAC,gDAAqB,CAAC,aAAa,CAAC,EAAE,EAAE;IACzC,CAAC,gDAAqB,CAAC,cAAc,CAAC,EAAE;QACvC,qDAA0B,CAAC,QAAQ;QACnC,qDAA0B,CAAC,gBAAgB;QAC3C,qDAA0B,CAAC,kBAAkB;KAC7C;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './invoice-visibility.enums';
|
|
@@ -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("./invoice-visibility.enums"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the role of the user viewing an invoice.
|
|
3
|
+
* Used to determine what data should be visible to them.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum InvoiceViewerRoleEnum {
|
|
6
|
+
ADMIN = "admin",
|
|
7
|
+
OWNER = "owner",
|
|
8
|
+
FAMILY_MEMBER = "familyMember",
|
|
9
|
+
OTHER_CUSTOMER = "other"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Fields that can be hidden based on viewer role.
|
|
13
|
+
* Add new fields here as needed - no refactoring required.
|
|
14
|
+
*/
|
|
15
|
+
export declare enum InvoiceVisibilityFieldEnum {
|
|
16
|
+
PAYMENTS = "payments",
|
|
17
|
+
CUSTOMER_DETAILS = "customerDetails",
|
|
18
|
+
SCHEDULED_PAYMENTS = "scheduledPayments"
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceVisibilityFieldEnum = exports.InvoiceViewerRoleEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Defines the role of the user viewing an invoice.
|
|
6
|
+
* Used to determine what data should be visible to them.
|
|
7
|
+
*/
|
|
8
|
+
var InvoiceViewerRoleEnum;
|
|
9
|
+
(function (InvoiceViewerRoleEnum) {
|
|
10
|
+
InvoiceViewerRoleEnum["ADMIN"] = "admin";
|
|
11
|
+
InvoiceViewerRoleEnum["OWNER"] = "owner";
|
|
12
|
+
InvoiceViewerRoleEnum["FAMILY_MEMBER"] = "familyMember";
|
|
13
|
+
InvoiceViewerRoleEnum["OTHER_CUSTOMER"] = "other";
|
|
14
|
+
})(InvoiceViewerRoleEnum = exports.InvoiceViewerRoleEnum || (exports.InvoiceViewerRoleEnum = {}));
|
|
15
|
+
/**
|
|
16
|
+
* Fields that can be hidden based on viewer role.
|
|
17
|
+
* Add new fields here as needed - no refactoring required.
|
|
18
|
+
*/
|
|
19
|
+
var InvoiceVisibilityFieldEnum;
|
|
20
|
+
(function (InvoiceVisibilityFieldEnum) {
|
|
21
|
+
InvoiceVisibilityFieldEnum["PAYMENTS"] = "payments";
|
|
22
|
+
InvoiceVisibilityFieldEnum["CUSTOMER_DETAILS"] = "customerDetails";
|
|
23
|
+
InvoiceVisibilityFieldEnum["SCHEDULED_PAYMENTS"] = "scheduledPayments";
|
|
24
|
+
})(InvoiceVisibilityFieldEnum = exports.InvoiceVisibilityFieldEnum || (exports.InvoiceVisibilityFieldEnum = {}));
|
|
25
|
+
//# sourceMappingURL=invoice-visibility.enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-visibility.enums.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/enums/invoice-visibility.enums.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,wCAAe,CAAA;IACf,wCAAe,CAAA;IACf,uDAA8B,CAAA;IAC9B,iDAAwB,CAAA;AACzB,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC;AAED;;;GAGG;AACH,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACrC,mDAAqB,CAAA;IACrB,kEAAoC,CAAA;IACpC,sEAAwC,CAAA;AACzC,CAAC,EAJW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAIrC"}
|
|
@@ -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("./consts"), exports);
|
|
18
|
+
__exportStar(require("./enums"), exports);
|
|
18
19
|
__exportStar(require("./interfaces"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CompetitionDivision } from '../entities/division.entity';
|
|
2
|
+
import { CompetitionTeam } from '../entities/team.entity';
|
|
3
|
+
export interface ICreateTeamDto {
|
|
4
|
+
divisionId: number;
|
|
5
|
+
folderId: number;
|
|
6
|
+
}
|
|
7
|
+
export interface IAddTeamByFolderIdsResult {
|
|
8
|
+
division: CompetitionDivision;
|
|
9
|
+
team: CompetitionTeam;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"competition-team.interface.js","sourceRoot":"","sources":["../../../../src/types/league-standings/interfaces/competition-team.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export * from './competition-team.interface';
|
|
1
2
|
export * from './ruleset-defaults.interface';
|
|
3
|
+
export * from './standings.interface';
|
|
4
|
+
export * from './competition-team.interface';
|
|
2
5
|
export * from './index';
|
|
3
6
|
export * from './ruleset-defaults.interface';
|
|
7
|
+
export * from './standings.interface';
|
|
@@ -14,7 +14,11 @@ 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("./competition-team.interface"), exports);
|
|
17
18
|
__exportStar(require("./ruleset-defaults.interface"), exports);
|
|
19
|
+
__exportStar(require("./standings.interface"), exports);
|
|
20
|
+
__exportStar(require("./competition-team.interface"), exports);
|
|
18
21
|
__exportStar(require("./index"), exports);
|
|
19
22
|
__exportStar(require("./ruleset-defaults.interface"), exports);
|
|
23
|
+
__exportStar(require("./standings.interface"), exports);
|
|
20
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/league-standings/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,0CAAwB;AACxB,+DAA6C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/league-standings/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,+DAA6C;AAC7C,wDAAsC;AACtC,+DAA6C;AAC7C,0CAAwB;AACxB,+DAA6C;AAC7C,wDAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standings.interface.js","sourceRoot":"","sources":["../../../../src/types/league-standings/interfaces/standings.interface.ts"],"names":[],"mappings":""}
|
|
@@ -5,6 +5,7 @@ import { IProductRelatedProgram } from '../../../programs/types/interfaces/progr
|
|
|
5
5
|
import { MembershipTypeEnum } from '../../../services/enums.service';
|
|
6
6
|
import { CreateNoteDto } from '../../dto/payment.dto';
|
|
7
7
|
import { DiscountOnEnum } from '../enums/discount.enums';
|
|
8
|
+
import { Tax } from '../../../taxes/entities/Tax';
|
|
8
9
|
export interface IRoundingSplit {
|
|
9
10
|
splitAmount: number;
|
|
10
11
|
splitsNumber: number;
|
|
@@ -66,10 +67,13 @@ export declare class IUserItem {
|
|
|
66
67
|
product?: Product;
|
|
67
68
|
totalQuantity?: number;
|
|
68
69
|
totalPriceWithoutTax?: number;
|
|
70
|
+
subtotal?: number;
|
|
69
71
|
totalPrice?: number;
|
|
70
72
|
isTaxInclusive?: boolean;
|
|
71
73
|
percentage?: number;
|
|
74
|
+
tax?: Tax;
|
|
72
75
|
taxItem?: IUserItem;
|
|
76
|
+
taxItems?: IUserItem[];
|
|
73
77
|
}
|
|
74
78
|
export interface IFindDiscountsOptions {
|
|
75
79
|
includeGLCodes?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/discount.interfaces.ts"],"names":[],"mappings":";;;AAGA,+EAA+E;AAE/E,mEAAqE;
|
|
1
|
+
{"version":3,"file":"discount.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/discount.interfaces.ts"],"names":[],"mappings":";;;AAGA,+EAA+E;AAE/E,mEAAqE;AAqErE,MAAa,SAAS;CA0BrB;AA1BD,8BA0BC"}
|
|
@@ -5,6 +5,7 @@ import { Price } from '../../../pricing/entities/Price';
|
|
|
5
5
|
import { ProgramTypesEnum } from '../../../programs/types/enums/program.enums';
|
|
6
6
|
import { ResourceDto } from '../../../resources/dto/resource.dto';
|
|
7
7
|
import { ActivityEnum, OrderByEnum } from '../../../services/enums.service';
|
|
8
|
+
import { ICalculatedTax } from '../../../services/interfaces.service';
|
|
8
9
|
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
|
9
10
|
import { Product } from '../../entities/product.entity';
|
|
10
11
|
import { OrderByProductEnum, ProductExpandEnum } from '../enums/product.enums';
|
|
@@ -76,6 +77,7 @@ export interface IFindPriceOfProduct {
|
|
|
76
77
|
userId: number;
|
|
77
78
|
quantity?: number;
|
|
78
79
|
resources?: ResourceDto[];
|
|
80
|
+
taxes?: ICalculatedTax[];
|
|
79
81
|
unique?: string;
|
|
80
82
|
}
|
|
81
83
|
export interface IGetResourcesProductsOptions {
|
|
@@ -11,6 +11,5 @@ export interface IValidateResourcesOptions {
|
|
|
11
11
|
onErrorCallback?: (error: Error, ...args: unknown[]) => void;
|
|
12
12
|
skipExistingRegistrationValidations?: boolean;
|
|
13
13
|
skipOptionalValidations?: boolean;
|
|
14
|
-
skipUserValidations?: boolean;
|
|
15
14
|
validateWaitlist?: boolean;
|
|
16
15
|
}
|
|
@@ -54,6 +54,7 @@ export declare class FindSeasonEventsQueryDto extends PaginationQuery {
|
|
|
54
54
|
folderIds?: number[];
|
|
55
55
|
segmentIds?: number[];
|
|
56
56
|
daysOfWeek?: DayOfWeekNameEnum[];
|
|
57
|
+
filterByRegistrationConstraints?: boolean;
|
|
57
58
|
}
|
|
58
59
|
export declare class ByOrganizationIdAndProgramSeasonIdDto extends ByOrganizationIdDto {
|
|
59
60
|
seasonId: number;
|