@bondsports/types 1.44.0 → 1.46.0
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/dto/dto.consts.d.ts +1 -0
- package/dist/types/dto/dto.consts.js +5 -0
- package/dist/types/dto/dto.consts.js.map +1 -0
- package/dist/types/dto/events.dto.d.ts +5 -2
- package/dist/types/dto/events.dto.js.map +1 -1
- package/dist/types/dto/index.d.ts +1 -0
- package/dist/types/dto/index.js +1 -0
- package/dist/types/dto/index.js.map +1 -1
- package/dist/types/entity/GroupItemsPricing.js.map +1 -1
- package/dist/types/entity/Invoice.d.ts +4 -0
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/entity/LineItems.d.ts +8 -0
- package/dist/types/entity/LineItems.js.map +1 -1
- package/dist/types/entity/index.d.ts +0 -4
- package/dist/types/entity/index.js +0 -4
- package/dist/types/entity/index.js.map +1 -1
- package/dist/types/gl-codes/dto/gl-code.dto.d.ts +13 -3
- package/dist/types/gl-codes/dto/gl-code.dto.js +3 -0
- package/dist/types/gl-codes/dto/gl-code.dto.js.map +1 -1
- package/dist/types/gl-codes/entities/gl-code.d.ts +4 -1
- package/dist/types/gl-codes/entities/gl-code.js.map +1 -1
- package/dist/types/gl-codes/types/interfaces/gl-code.interfaces.d.ts +16 -0
- package/dist/types/gl-codes/types/interfaces/gl-code.interfaces.js +18 -0
- package/dist/types/gl-codes/types/interfaces/gl-code.interfaces.js.map +1 -1
- package/dist/types/payment/dto/discount.dto.d.ts +5 -1
- package/dist/types/payment/dto/discount.dto.js.map +1 -1
- package/dist/types/payment/dto/payment.dto.d.ts +17 -0
- package/dist/types/payment/dto/payment.dto.js +17 -1
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/entities/Payment.js.map +1 -1
- package/dist/types/payment/types/consts/payment.consts.js +3 -4
- package/dist/types/payment/types/consts/payment.consts.js.map +1 -1
- package/dist/types/payment/types/enums/discount.enums.d.ts +2 -1
- package/dist/types/payment/types/enums/discount.enums.js +1 -0
- package/dist/types/payment/types/enums/discount.enums.js.map +1 -1
- package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +4 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +6 -1
- package/dist/types/payment/types/interfaces/void.interfaces.d.ts +6 -0
- package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +4 -0
- package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
- package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +2 -0
- package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
- package/dist/types/programs-seasons/types/index.d.ts +22 -0
- package/dist/types/programs-seasons/types/index.js.map +1 -1
- package/dist/types/purchase/dto/purchase.dto.d.ts +1 -0
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +8 -0
- package/dist/types/{entity → questionnaires/entities}/Answer.d.ts +2 -2
- package/dist/types/{entity → questionnaires/entities}/Answer.js +1 -1
- package/dist/types/questionnaires/entities/Answer.js.map +1 -0
- package/dist/types/{entity → questionnaires/entities}/AnswerTitle.d.ts +1 -1
- package/dist/types/{entity → questionnaires/entities}/AnswerTitle.js +1 -1
- package/dist/types/questionnaires/entities/AnswerTitle.js.map +1 -0
- package/dist/types/{entity → questionnaires/entities}/Questionnaires.d.ts +1 -1
- package/dist/types/{entity → questionnaires/entities}/Questionnaires.js +1 -1
- package/dist/types/questionnaires/entities/Questionnaires.js.map +1 -0
- package/dist/types/{entity → questionnaires/entities}/Questions.d.ts +1 -1
- package/dist/types/{entity → questionnaires/entities}/Questions.js +1 -1
- package/dist/types/questionnaires/entities/Questions.js.map +1 -0
- package/dist/types/questionnaires/entities/index.d.ts +4 -0
- package/dist/types/questionnaires/entities/index.js +21 -0
- package/dist/types/questionnaires/entities/index.js.map +1 -0
- package/dist/types/questionnaires/index.d.ts +2 -0
- package/dist/types/questionnaires/index.js +2 -0
- package/dist/types/questionnaires/index.js.map +1 -1
- package/dist/types/questionnaires/types/index.d.ts +1 -0
- package/dist/types/questionnaires/types/index.js +18 -0
- package/dist/types/questionnaires/types/index.js.map +1 -0
- package/dist/types/questionnaires/types/questions.enum.d.ts +11 -0
- package/dist/types/questionnaires/types/questions.enum.js +16 -0
- package/dist/types/questionnaires/types/questions.enum.js.map +1 -0
- package/dist/types/reservations/dto/reservation.dto.d.ts +9 -1
- package/dist/types/reservations/dto/reservation.dto.js +4 -1
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/interfaces/invoice.d.ts +0 -6
- package/dist/types/reservations/interfaces/reservation.d.ts +13 -1
- package/dist/types/services/enums.service.d.ts +8 -2
- package/dist/types/services/enums.service.js +6 -0
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +3 -1
- package/dist/types/user-activities/dto/user-activities.dto.d.ts +1 -0
- package/dist/types/user-activities/dto/user-activities.dto.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/entity/Answer.js.map +0 -1
- package/dist/types/entity/AnswerTitle.js.map +0 -1
- package/dist/types/entity/Questionnaires.js.map +0 -1
- package/dist/types/entity/Questions.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ISO_8601_PATTERN = "^d{4}(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])$";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dto.consts.js","sourceRoot":"","sources":["../../../src/types/dto/dto.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,+CAA+C,CAAC"}
|
|
@@ -37,10 +37,13 @@ export declare class AddEventsToSessionResponseDto {
|
|
|
37
37
|
data: Event[];
|
|
38
38
|
}
|
|
39
39
|
export declare class EventsIdsQueryDto {
|
|
40
|
-
eventsIds
|
|
40
|
+
eventsIds?: number[];
|
|
41
|
+
segmentsIds?: number[];
|
|
42
|
+
unselectedIds?: number[];
|
|
43
|
+
startDate?: string;
|
|
44
|
+
endDate?: string;
|
|
41
45
|
}
|
|
42
46
|
export declare class UpdateMultipleEventsDto {
|
|
43
|
-
eventsIds: number[];
|
|
44
47
|
name?: string;
|
|
45
48
|
startTime?: string;
|
|
46
49
|
endTime?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.dto.js","sourceRoot":"","sources":["../../../src/types/dto/events.dto.ts"],"names":[],"mappings":";;;AAOA,+CAA4D;
|
|
1
|
+
{"version":3,"file":"events.dto.js","sourceRoot":"","sources":["../../../src/types/dto/events.dto.ts"],"names":[],"mappings":";;;AAOA,+CAA4D;AAG5D,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,+BAA+B;CAE3C;AAFD,0EAEC;AAED,MAAa,cAAc;CAwB1B;AAxBD,wCAwBC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,uBAAuB;CAoBnC;AApBD,0DAoBC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,oCAAqC,SAAQ,mBAAmB;CAE5E;AAFD,oFAEC;AAED,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAuCD,MAAa,2BAA4B,SAAQ,kCAAoB;CAYpE;AAZD,kEAYC;AAED,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,cAAe,SAAQ,mBAAK;CAgBxC;AAhBD,wCAgBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAE3C;AAFD,8CAEC"}
|
|
@@ -3,6 +3,7 @@ export * from './application.dto';
|
|
|
3
3
|
export * from './bookingTypeSetting.dto';
|
|
4
4
|
export * from './configuration.dto';
|
|
5
5
|
export * from './customer.dto';
|
|
6
|
+
export * from './dto.consts';
|
|
6
7
|
export * from './events.dto';
|
|
7
8
|
export * from './facilities.dto';
|
|
8
9
|
export * from './general.dto';
|
package/dist/types/dto/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./application.dto"), exports);
|
|
|
19
19
|
__exportStar(require("./bookingTypeSetting.dto"), exports);
|
|
20
20
|
__exportStar(require("./configuration.dto"), exports);
|
|
21
21
|
__exportStar(require("./customer.dto"), exports);
|
|
22
|
+
__exportStar(require("./dto.consts"), exports);
|
|
22
23
|
__exportStar(require("./events.dto"), exports);
|
|
23
24
|
__exportStar(require("./facilities.dto"), exports);
|
|
24
25
|
__exportStar(require("./general.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iDAA+B;AAC/B,+CAA6B;AAC7B,mDAAiC;AACjC,gDAA8B;AAC9B,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,gDAA8B;AAC9B,qDAAmC;AACnC,+CAA6B;AAC7B,iDAA+B;AAC/B,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,mDAAiC;AACjC,gDAA8B;AAC9B,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,gDAA8B;AAC9B,qDAAmC;AACnC,+CAA6B;AAC7B,iDAA+B;AAC/B,+CAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupItemsPricing.js","sourceRoot":"","sources":["../../../src/types/entity/GroupItemsPricing.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAMtF,MAAa,iBAAkB,SAAQ,mEAAgC;
|
|
1
|
+
{"version":3,"file":"GroupItemsPricing.js","sourceRoot":"","sources":["../../../src/types/entity/GroupItemsPricing.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAMtF,MAAa,iBAAkB,SAAQ,mEAAgC;CAwBtE;AAxBD,8CAwBC"}
|
|
@@ -43,6 +43,10 @@ export declare class Invoice extends BondBaseEntity {
|
|
|
43
43
|
paymentsFees: PaymentFee[] | PaymentFeeDto[];
|
|
44
44
|
installments?: FutureInstallment[];
|
|
45
45
|
totalFeesAmount?: number;
|
|
46
|
+
discountAmount?: number;
|
|
47
|
+
discountSubtotal?: number;
|
|
48
|
+
subtotal?: number;
|
|
49
|
+
subtotalBalance?: number;
|
|
46
50
|
customer?: Customer;
|
|
47
51
|
hasFailedPayments?: boolean;
|
|
48
52
|
hasFailedInstallments?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAeA,qDAAkD;AAQlD,MAAa,OAAQ,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAeA,qDAAkD;AAQlD,MAAa,OAAQ,SAAQ,+BAAc;CAiF1C;AAjFD,0BAiFC"}
|
|
@@ -61,14 +61,22 @@ export declare class LineItems extends OrganizationConnectionBaseEntity {
|
|
|
61
61
|
totalQuantity?: number;
|
|
62
62
|
fullQuantityWithVoid?: number;
|
|
63
63
|
totalPrice?: number;
|
|
64
|
+
totalPriceWithoutTax?: number;
|
|
64
65
|
totalUnitPrice?: number;
|
|
65
66
|
fullPriceWithVoid?: number;
|
|
67
|
+
fullPriceWithVoidAndTax?: number;
|
|
68
|
+
discountAmount?: number;
|
|
69
|
+
discountSubtotal?: number;
|
|
70
|
+
subtotal?: number;
|
|
66
71
|
displayFullPrice?: number;
|
|
72
|
+
displayFullPriceWithTax?: number;
|
|
67
73
|
displayTotalPriceWithTax?: number;
|
|
68
74
|
displayTotalPaid?: number;
|
|
69
75
|
displayTotalQuantity?: number;
|
|
70
76
|
displayUnitPrice?: number;
|
|
77
|
+
displayUnitTax?: number;
|
|
71
78
|
displayQuantity?: number;
|
|
72
79
|
displayFullPriceWithVoid?: number;
|
|
80
|
+
displayFullPriceWithVoidAndTax?: number;
|
|
73
81
|
displayFullQuantityWithVoid?: number;
|
|
74
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AAWA,yFAAsF;AAMtF,MAAa,SAAU,SAAQ,mEAAgC;
|
|
1
|
+
{"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AAWA,yFAAsF;AAMtF,MAAa,SAAU,SAAQ,mEAAgC;CAyH9D;AAzHD,8BAyHC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export * from './ActivityLogRecord';
|
|
2
2
|
export * from './ActivityTimes';
|
|
3
3
|
export * from './Address';
|
|
4
|
-
export * from './Answer';
|
|
5
|
-
export * from './AnswerTitle';
|
|
6
4
|
export * from './BlockedDate';
|
|
7
5
|
export * from './BondBaseEntity';
|
|
8
6
|
export * from './BookedSessions';
|
|
@@ -51,8 +49,6 @@ export * from './ProductToVariants';
|
|
|
51
49
|
export * from './ProductsReservedForCustomers';
|
|
52
50
|
export * from './ProductsUsers';
|
|
53
51
|
export * from './PurchasedResources';
|
|
54
|
-
export * from './Questionnaires';
|
|
55
|
-
export * from './Questions';
|
|
56
52
|
export * from './RegistrationConstraint';
|
|
57
53
|
export * from './Reservations';
|
|
58
54
|
export * from './ResourceGroup';
|
|
@@ -17,8 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./ActivityLogRecord"), exports);
|
|
18
18
|
__exportStar(require("./ActivityTimes"), exports);
|
|
19
19
|
__exportStar(require("./Address"), exports);
|
|
20
|
-
__exportStar(require("./Answer"), exports);
|
|
21
|
-
__exportStar(require("./AnswerTitle"), exports);
|
|
22
20
|
__exportStar(require("./BlockedDate"), exports);
|
|
23
21
|
__exportStar(require("./BondBaseEntity"), exports);
|
|
24
22
|
__exportStar(require("./BookedSessions"), exports);
|
|
@@ -67,8 +65,6 @@ __exportStar(require("./ProductToVariants"), exports);
|
|
|
67
65
|
__exportStar(require("./ProductsReservedForCustomers"), exports);
|
|
68
66
|
__exportStar(require("./ProductsUsers"), exports);
|
|
69
67
|
__exportStar(require("./PurchasedResources"), exports);
|
|
70
|
-
__exportStar(require("./Questionnaires"), exports);
|
|
71
|
-
__exportStar(require("./Questions"), exports);
|
|
72
68
|
__exportStar(require("./RegistrationConstraint"), exports);
|
|
73
69
|
__exportStar(require("./Reservations"), exports);
|
|
74
70
|
__exportStar(require("./ResourceGroup"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,4CAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,8DAA4C;AAC5C,kDAAgC;AAChC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,2CAAyB;AACzB,6CAA2B;AAC3B,uDAAqC;AACrC,kDAAgC;AAChC,0CAAwB;AACxB,sDAAoC;AACpC,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,0CAAwB;AACxB,+CAA6B;AAC7B,qDAAmC;AACnC,8DAA4C;AAC5C,gDAA8B;AAC9B,qEAAmD;AACnD,8CAA4B;AAC5B,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,2DAAyC;AACzC,iDAA+B;AAC/B,kDAAgC;AAChC,2CAAyB;AACzB,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,yDAAuC;AACvC,gDAA8B;AAC9B,yCAAuB;AACvB,+CAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,uDAAqC;AACrC,iDAA+B;AAC/B,kDAAgC;AAChC,6CAA2B;AAC3B,qEAAmD;AACnD,+CAA6B"}
|
|
@@ -1,30 +1,40 @@
|
|
|
1
1
|
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
2
|
-
import { ActivityEnum } from '../../services/enums.service';
|
|
2
|
+
import { ActivityEnum, ProductTypesEnum } from '../../services/enums.service';
|
|
3
|
+
import { GlResourceTypeEnum } from '../types/interfaces/gl-code.interfaces';
|
|
3
4
|
export declare class CreateGlCodeDto {
|
|
4
5
|
organizationId?: number;
|
|
5
6
|
code: string;
|
|
6
7
|
label?: string;
|
|
8
|
+
resourceType?: GlResourceTypeEnum;
|
|
9
|
+
productType?: ProductTypesEnum;
|
|
7
10
|
}
|
|
8
11
|
export declare class GlCodeDto extends OrganizationBaseEntityDto {
|
|
9
12
|
code: string;
|
|
10
13
|
status: ActivityEnum;
|
|
11
14
|
label?: string;
|
|
15
|
+
resourceType?: GlResourceTypeEnum;
|
|
16
|
+
productType?: ProductTypesEnum;
|
|
12
17
|
}
|
|
13
18
|
export declare class FindGlCodesFiltersDto {
|
|
14
19
|
label?: string;
|
|
15
20
|
includeInactive?: boolean;
|
|
16
21
|
codes?: string[];
|
|
17
22
|
glIds?: number[];
|
|
23
|
+
resourceTypes?: GlResourceTypeEnum[];
|
|
24
|
+
productTypes?: ProductTypesEnum[];
|
|
25
|
+
isResourceTypeNullable?: boolean;
|
|
18
26
|
}
|
|
19
27
|
export declare class UpdateGlCodeDto {
|
|
20
28
|
id: number;
|
|
21
29
|
code?: string;
|
|
22
30
|
label?: string;
|
|
23
31
|
status?: ActivityEnum;
|
|
32
|
+
resourceType?: GlResourceTypeEnum;
|
|
33
|
+
productType?: ProductTypesEnum;
|
|
24
34
|
}
|
|
25
35
|
export declare class UpdateGlCodesDto {
|
|
26
|
-
glCodes
|
|
36
|
+
glCodes: UpdateGlCodeDto[];
|
|
27
37
|
}
|
|
28
38
|
export declare class CreateGlCodesDto {
|
|
29
|
-
glCodes
|
|
39
|
+
glCodes: CreateGlCodeDto[];
|
|
30
40
|
}
|
|
@@ -9,6 +9,9 @@ class GlCodeDto extends organization_dto_1.OrganizationBaseEntityDto {
|
|
|
9
9
|
}
|
|
10
10
|
exports.GlCodeDto = GlCodeDto;
|
|
11
11
|
class FindGlCodesFiltersDto {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.isResourceTypeNullable = true;
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
exports.FindGlCodesFiltersDto = FindGlCodesFiltersDto;
|
|
14
17
|
class UpdateGlCodeDto {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gl-code.dto.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/dto/gl-code.dto.ts"],"names":[],"mappings":";;;AAAA,8EAAoF;
|
|
1
|
+
{"version":3,"file":"gl-code.dto.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/dto/gl-code.dto.ts"],"names":[],"mappings":";;;AAAA,8EAAoF;AAIpF,MAAa,eAAe;CAU3B;AAVD,0CAUC;AAED,MAAa,SAAU,SAAQ,4CAAyB;CAUvD;AAVD,8BAUC;AAED,MAAa,qBAAqB;IAAlC;QAaC,2BAAsB,GAAa,IAAI,CAAC;IACzC,CAAC;CAAA;AAdD,sDAcC;AAED,MAAa,eAAe;CAY3B;AAZD,0CAYC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
2
|
-
import { ActivityEnum } from '../../services/enums.service';
|
|
2
|
+
import { ActivityEnum, ProductTypesEnum } from '../../services/enums.service';
|
|
3
|
+
import { GlResourceTypeEnum } from '../types/interfaces/gl-code.interfaces';
|
|
3
4
|
export declare class GlCode extends OrganizationConnectionBaseEntity {
|
|
4
5
|
code: string;
|
|
5
6
|
status: ActivityEnum;
|
|
6
7
|
label?: string;
|
|
8
|
+
resourceType?: GlResourceTypeEnum;
|
|
9
|
+
productType?: ProductTypesEnum;
|
|
7
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gl-code.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/gl-code.ts"],"names":[],"mappings":";;;AACA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"gl-code.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/gl-code.ts"],"names":[],"mappings":";;;AACA,oGAAiG;AAIjG,MAAa,MAAO,SAAQ,mEAAgC;CAU3D;AAVD,wBAUC"}
|
|
@@ -11,3 +11,19 @@ export interface ResourcesGLsResult {
|
|
|
11
11
|
resourceType: ResourceNameTypeEnum;
|
|
12
12
|
resourceGLs: ResourceToGL[];
|
|
13
13
|
}
|
|
14
|
+
export declare enum GlResourceTypeEnum {
|
|
15
|
+
EVENT = "event",
|
|
16
|
+
LEAGUE = "league",
|
|
17
|
+
MEMBERSHIP = "membership",
|
|
18
|
+
PROGRAM = "program",
|
|
19
|
+
PROGRAM_SEASON = "program_season",
|
|
20
|
+
PRODUCT = "product",
|
|
21
|
+
FEE = "fee",
|
|
22
|
+
DISCOUNT = "discount",
|
|
23
|
+
ACTIVITY = "activity",
|
|
24
|
+
PROGRAM_TYPE = "program_type",
|
|
25
|
+
TAX = "tax",
|
|
26
|
+
SEGMENT = "segment",
|
|
27
|
+
SPACE = "space",
|
|
28
|
+
FACILITY = "facility"
|
|
29
|
+
}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlResourceTypeEnum = void 0;
|
|
4
|
+
var GlResourceTypeEnum;
|
|
5
|
+
(function (GlResourceTypeEnum) {
|
|
6
|
+
GlResourceTypeEnum["EVENT"] = "event";
|
|
7
|
+
GlResourceTypeEnum["LEAGUE"] = "league";
|
|
8
|
+
GlResourceTypeEnum["MEMBERSHIP"] = "membership";
|
|
9
|
+
GlResourceTypeEnum["PROGRAM"] = "program";
|
|
10
|
+
GlResourceTypeEnum["PROGRAM_SEASON"] = "program_season";
|
|
11
|
+
GlResourceTypeEnum["PRODUCT"] = "product";
|
|
12
|
+
GlResourceTypeEnum["FEE"] = "fee";
|
|
13
|
+
GlResourceTypeEnum["DISCOUNT"] = "discount";
|
|
14
|
+
GlResourceTypeEnum["ACTIVITY"] = "activity";
|
|
15
|
+
GlResourceTypeEnum["PROGRAM_TYPE"] = "program_type";
|
|
16
|
+
GlResourceTypeEnum["TAX"] = "tax";
|
|
17
|
+
GlResourceTypeEnum["SEGMENT"] = "segment";
|
|
18
|
+
GlResourceTypeEnum["SPACE"] = "space";
|
|
19
|
+
GlResourceTypeEnum["FACILITY"] = "facility";
|
|
20
|
+
})(GlResourceTypeEnum = exports.GlResourceTypeEnum || (exports.GlResourceTypeEnum = {}));
|
|
3
21
|
//# sourceMappingURL=gl-code.interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gl-code.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/gl-codes/types/interfaces/gl-code.interfaces.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"gl-code.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/gl-codes/types/interfaces/gl-code.interfaces.ts"],"names":[],"mappings":";;;AAgBA,IAAY,kBAeX;AAfD,WAAY,kBAAkB;IAC7B,qCAAe,CAAA;IACf,uCAAiB,CAAA;IACjB,+CAAyB,CAAA;IACzB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;IACnB,iCAAW,CAAA;IACX,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,mDAA6B,CAAA;IAC7B,iCAAW,CAAA;IACX,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,2CAAqB,CAAA;AACtB,CAAC,EAfW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAe7B"}
|
|
@@ -92,7 +92,8 @@ export declare class RemoveDiscountsDto {
|
|
|
92
92
|
}
|
|
93
93
|
export declare class ItemDiscountDto extends OrganizationBaseEntityDto {
|
|
94
94
|
invoiceId: number;
|
|
95
|
-
|
|
95
|
+
lineItemsIds?: number[];
|
|
96
|
+
paymentId?: number;
|
|
96
97
|
discountId: number;
|
|
97
98
|
discount: SimpleDiscountDto;
|
|
98
99
|
reasonId: number;
|
|
@@ -100,6 +101,9 @@ export declare class ItemDiscountDto extends OrganizationBaseEntityDto {
|
|
|
100
101
|
discountPercentage: number;
|
|
101
102
|
discountOn: DiscountOnEnum;
|
|
102
103
|
currency: CurrencyEnum;
|
|
104
|
+
quantity?: number;
|
|
105
|
+
discountAmount: number;
|
|
103
106
|
price: number;
|
|
107
|
+
unitPrice: number;
|
|
104
108
|
}
|
|
105
109
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/discount.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;
|
|
1
|
+
{"version":3,"file":"discount.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/discount.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAGxD,8EAAoF;AAKpF,MAAM,iBAAiB;CA8BtB;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAYjD;AAZD,kCAYC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAQ/D;AARD,8CAQC;AAED,MAAa,eAAgB,SAAQ,6BAAe;CAMnD;AAND,0CAMC;AAED,MAAa,iBAAkB,SAAQ,iBAAiB;CAUvD;AAVD,8CAUC;AAED,MAAa,iBAAiB;CA4B7B;AA5BD,8CA4BC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,cAAc;CAQ1B;AARD,wCAQC;AAED,MAAa,eAAe;CAQ3B;AARD,0CAQC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,eAAgB,SAAQ,4CAAyB;CA4B7D;AA5BD,0CA4BC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PaginationQuery } from '../../dto/general.dto';
|
|
2
|
+
import { Customer } from '../../entity/Customer';
|
|
2
3
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
3
4
|
import { PurchaseProductDto } from '../../purchase/dto/purchase.dto';
|
|
4
5
|
import { OrderByEnum, PlatformsEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
6
|
+
import { Payment } from '../entities/Payment';
|
|
5
7
|
import { FuturePaymentStatusEnum, PaymentFilterByEnum, PaymentMethodTypeEnum, PaymentStatusEnum, SubPaymentMethodTypeEnum } from '../types/enums/payment.enums';
|
|
6
8
|
export declare class CustomerIdDto {
|
|
7
9
|
customerId: number;
|
|
@@ -9,9 +11,21 @@ export declare class CustomerIdDto {
|
|
|
9
11
|
export declare class PaymentIdDto {
|
|
10
12
|
paymentId: number;
|
|
11
13
|
}
|
|
14
|
+
export declare class ByPaymentAndCustomerDto extends PaymentIdDto {
|
|
15
|
+
customerId: number;
|
|
16
|
+
}
|
|
17
|
+
export declare class GetPaymentDto extends PaymentIdDto {
|
|
18
|
+
userId: number;
|
|
19
|
+
}
|
|
12
20
|
export declare class ByPaymentDto extends ByOrganizationIdDto {
|
|
13
21
|
paymentId: number;
|
|
14
22
|
}
|
|
23
|
+
export declare class GetPaymentByUserDto extends ByPaymentDto {
|
|
24
|
+
userId: number;
|
|
25
|
+
}
|
|
26
|
+
export declare class GetPaymentByCustomerDto extends ByPaymentDto {
|
|
27
|
+
customerId: number;
|
|
28
|
+
}
|
|
15
29
|
export declare class InvoiceIdDto {
|
|
16
30
|
invoiceId: number;
|
|
17
31
|
}
|
|
@@ -106,3 +120,6 @@ export declare class GetPaymentMethodsDto {
|
|
|
106
120
|
paymentMethodTypes?: PaymentMethodTypeEnum[];
|
|
107
121
|
subPaymentMethodTypes?: SubPaymentMethodTypeEnum[];
|
|
108
122
|
}
|
|
123
|
+
export declare class PaymentDto extends Payment {
|
|
124
|
+
customer?: Customer;
|
|
125
|
+
}
|
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetPaymentMethodsDto = exports.SendPaymentRequestDto = exports.RevertMetaDto = exports.RemoveResourceDto = exports.NotePrivacyDto = exports.UpdateNoteContentDto = exports.CreateNoteDto = exports.AddToInvoiceDto = exports.SendReceiptDataDto = exports.PaymentDataDto = exports.PaymentIntentDto = exports.StationsDto = exports.FindPayments = exports.ByPaymentFilter = exports.PaymentViaInvoiceHashDto = exports.GetPaymentsQueryDto = exports.GetInvoicesQueryDto = exports.InvoiceIdAndUserIdDto = exports.ByInvoiceAndCustomerDto = exports.ByInvoiceDto = exports.InvoiceIdDto = exports.ByPaymentDto = exports.PaymentIdDto = exports.CustomerIdDto = void 0;
|
|
3
|
+
exports.PaymentDto = exports.GetPaymentMethodsDto = exports.SendPaymentRequestDto = exports.RevertMetaDto = exports.RemoveResourceDto = exports.NotePrivacyDto = exports.UpdateNoteContentDto = exports.CreateNoteDto = exports.AddToInvoiceDto = exports.SendReceiptDataDto = exports.PaymentDataDto = exports.PaymentIntentDto = exports.StationsDto = exports.FindPayments = exports.ByPaymentFilter = exports.PaymentViaInvoiceHashDto = exports.GetPaymentsQueryDto = exports.GetInvoicesQueryDto = exports.InvoiceIdAndUserIdDto = exports.ByInvoiceAndCustomerDto = exports.ByInvoiceDto = exports.InvoiceIdDto = exports.GetPaymentByCustomerDto = exports.GetPaymentByUserDto = exports.ByPaymentDto = exports.GetPaymentDto = exports.ByPaymentAndCustomerDto = exports.PaymentIdDto = exports.CustomerIdDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
|
+
const Payment_1 = require("../entities/Payment");
|
|
6
7
|
class CustomerIdDto {
|
|
7
8
|
}
|
|
8
9
|
exports.CustomerIdDto = CustomerIdDto;
|
|
9
10
|
class PaymentIdDto {
|
|
10
11
|
}
|
|
11
12
|
exports.PaymentIdDto = PaymentIdDto;
|
|
13
|
+
class ByPaymentAndCustomerDto extends PaymentIdDto {
|
|
14
|
+
}
|
|
15
|
+
exports.ByPaymentAndCustomerDto = ByPaymentAndCustomerDto;
|
|
16
|
+
class GetPaymentDto extends PaymentIdDto {
|
|
17
|
+
}
|
|
18
|
+
exports.GetPaymentDto = GetPaymentDto;
|
|
12
19
|
class ByPaymentDto extends organization_dto_1.ByOrganizationIdDto {
|
|
13
20
|
}
|
|
14
21
|
exports.ByPaymentDto = ByPaymentDto;
|
|
22
|
+
class GetPaymentByUserDto extends ByPaymentDto {
|
|
23
|
+
}
|
|
24
|
+
exports.GetPaymentByUserDto = GetPaymentByUserDto;
|
|
25
|
+
class GetPaymentByCustomerDto extends ByPaymentDto {
|
|
26
|
+
}
|
|
27
|
+
exports.GetPaymentByCustomerDto = GetPaymentByCustomerDto;
|
|
15
28
|
class InvoiceIdDto {
|
|
16
29
|
}
|
|
17
30
|
exports.InvoiceIdDto = InvoiceIdDto;
|
|
@@ -75,4 +88,7 @@ exports.SendPaymentRequestDto = SendPaymentRequestDto;
|
|
|
75
88
|
class GetPaymentMethodsDto {
|
|
76
89
|
}
|
|
77
90
|
exports.GetPaymentMethodsDto = GetPaymentMethodsDto;
|
|
91
|
+
class PaymentDto extends Payment_1.Payment {
|
|
92
|
+
}
|
|
93
|
+
exports.PaymentDto = PaymentDto;
|
|
78
94
|
//# sourceMappingURL=payment.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;
|
|
1
|
+
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAExD,8EAA8E;AAG9E,iDAA8C;AAS9C,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,uBAAwB,SAAQ,YAAY;CAExD;AAFD,0DAEC;AAED,MAAa,aAAc,SAAQ,YAAY;CAE9C;AAFD,sCAEC;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mappings":";;;
|
|
1
|
+
{"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../../src/types/payment/entities/Payment.ts"],"names":[],"mappings":";;;AAMA,oGAAiG;AAiBjG,MAAa,OAAQ,SAAQ,mEAAgC;CA2E5D;AA3ED,0BA2EC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.orderByResourceTemplate = exports.uniqueDiscountTemplate = exports.uniqueTaxTemplate = exports.installmentStatusDict = exports.MIN_ACH_PAYMENT_AMOUNT = void 0;
|
|
4
|
-
const discount_enums_1 = require("../enums/discount.enums");
|
|
5
4
|
const payment_enums_1 = require("../enums/payment.enums");
|
|
6
5
|
exports.MIN_ACH_PAYMENT_AMOUNT = 0.5;
|
|
7
6
|
exports.installmentStatusDict = {
|
|
@@ -18,9 +17,9 @@ const uniqueTaxTemplate = (lineItem) => {
|
|
|
18
17
|
};
|
|
19
18
|
exports.uniqueTaxTemplate = uniqueTaxTemplate;
|
|
20
19
|
const uniqueDiscountTemplate = (discountItem) => {
|
|
21
|
-
var _a;
|
|
22
|
-
const
|
|
23
|
-
return `${discountItem.paymentId}_${discountItem.discountId}_${(
|
|
20
|
+
var _a, _b;
|
|
21
|
+
const discountPercentage = (_a = `${discountItem.discountPercentage}`) !== null && _a !== void 0 ? _a : '';
|
|
22
|
+
return `${discountItem.paymentId}_${discountItem.discountId}_${(_b = discountItem.discount) === null || _b === void 0 ? void 0 : _b.type}_${discountPercentage}`;
|
|
24
23
|
};
|
|
25
24
|
exports.uniqueDiscountTemplate = uniqueDiscountTemplate;
|
|
26
25
|
const orderByResourceTemplate = (resource, type) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.consts.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/consts/payment.consts.ts"],"names":[],"mappings":";;;AAIA,
|
|
1
|
+
{"version":3,"file":"payment.consts.js","sourceRoot":"","sources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-5,6 +5,7 @@ var DiscountTypeEnum;
|
|
|
5
5
|
(function (DiscountTypeEnum) {
|
|
6
6
|
DiscountTypeEnum["MANUAL"] = "manual";
|
|
7
7
|
DiscountTypeEnum["FIXED"] = "fixed";
|
|
8
|
+
DiscountTypeEnum["ENTITLEMENT_GROUP"] = "entitlement_group";
|
|
8
9
|
})(DiscountTypeEnum = exports.DiscountTypeEnum || (exports.DiscountTypeEnum = {}));
|
|
9
10
|
var DiscountOnEnum;
|
|
10
11
|
(function (DiscountOnEnum) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/discount.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"discount.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/discount.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,2DAAuC,CAAA;AACxC,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;AACxB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB"}
|
|
@@ -16,13 +16,16 @@ export interface ISetDiscount {
|
|
|
16
16
|
amount?: number;
|
|
17
17
|
percentage?: number;
|
|
18
18
|
lineItemsIds?: number[];
|
|
19
|
+
reasonId?: number;
|
|
19
20
|
discountOn?: DiscountOnEnum;
|
|
20
21
|
}
|
|
21
22
|
export interface ISetDiscounts {
|
|
22
23
|
discounts: ISetDiscount[];
|
|
23
|
-
reasonId
|
|
24
|
+
reasonId?: number;
|
|
24
25
|
notes?: CreateNoteDto[];
|
|
25
26
|
shiftId?: number;
|
|
27
|
+
isTaxIncluded?: boolean;
|
|
28
|
+
allowZeroAmount?: boolean;
|
|
26
29
|
}
|
|
27
30
|
export interface IRemoveDiscountsValidationsResult {
|
|
28
31
|
invoice: Invoice;
|
|
@@ -45,7 +45,7 @@ export interface GetExtendedInvoiceDeprecated extends GetExtendedInvoice {
|
|
|
45
45
|
export interface GetExtendedInvoice {
|
|
46
46
|
organizationId?: number;
|
|
47
47
|
userId?: number;
|
|
48
|
-
|
|
48
|
+
extended?: boolean;
|
|
49
49
|
onlyPublicNotes?: boolean;
|
|
50
50
|
includeCustomer?: boolean;
|
|
51
51
|
}
|
|
@@ -80,3 +80,8 @@ export interface SaveInvoicePayment {
|
|
|
80
80
|
discountId?: number;
|
|
81
81
|
parentPaymentId?: number;
|
|
82
82
|
}
|
|
83
|
+
export interface IGetPayment {
|
|
84
|
+
organizationId?: number;
|
|
85
|
+
extended?: boolean;
|
|
86
|
+
onlyPublicNotes?: boolean;
|
|
87
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Invoice } from '../../../entity/Invoice';
|
|
1
2
|
import { LineItems } from '../../../entity/LineItems';
|
|
2
3
|
import { TRevertedResources } from '../../../reservations/interfaces/reservation';
|
|
3
4
|
import { ResourceNameTypeEnum } from '../../../services/enums.service';
|
|
@@ -5,6 +6,7 @@ import { CreateNoteDto, RevertMetaDto } from '../../dto/payment.dto';
|
|
|
5
6
|
import { Payment } from '../../entities/Payment';
|
|
6
7
|
import { DiscountOnEnum } from '../enums/discount.enums';
|
|
7
8
|
import { VoidTypeEnum } from '../enums/void.enums';
|
|
9
|
+
import { ISetDiscount } from './discount.interfaces';
|
|
8
10
|
export interface IVoidValidationsResult {
|
|
9
11
|
voidDataDict: IVoidLineItemsDict;
|
|
10
12
|
lineItemsToVoid: LineItems[];
|
|
@@ -34,3 +36,7 @@ export interface IVoidDiscount {
|
|
|
34
36
|
export interface IVoidLineItemsDict {
|
|
35
37
|
[id: number]: IVoidLineItem;
|
|
36
38
|
}
|
|
39
|
+
export interface ICancelExistingDiscountsResult {
|
|
40
|
+
invoice: Invoice;
|
|
41
|
+
discountsToApply: ISetDiscount[];
|
|
42
|
+
}
|
|
@@ -25,12 +25,16 @@ export declare class FindProgramSeasonByIdDto extends OptionalOrganizationIdDto
|
|
|
25
25
|
export declare class SegmentsBySessionQueryDto {
|
|
26
26
|
ignoreEvents?: boolean;
|
|
27
27
|
futureResources?: boolean;
|
|
28
|
+
attendeeId?: number;
|
|
29
|
+
startDate?: string;
|
|
30
|
+
endDate?: string;
|
|
28
31
|
}
|
|
29
32
|
export declare class FindSeasonEventsQueryDto extends PaginationQuery {
|
|
30
33
|
startDate?: string;
|
|
31
34
|
endDate?: string;
|
|
32
35
|
orderBy?: OrderByEnum;
|
|
33
36
|
includeConflicts?: boolean;
|
|
37
|
+
attendeeId?: number;
|
|
34
38
|
}
|
|
35
39
|
export declare class ByOrganizationIdAndProgramSeasonIdDto extends ByOrganizationIdDto {
|
|
36
40
|
seasonId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"program-seasons.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-seasons.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAyF;AACzF,8EAAyG;AACzG,gEAAuF;
|
|
1
|
+
{"version":3,"file":"program-seasons.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-seasons.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAyF;AACzF,8EAAyG;AACzG,gEAAuF;AAkBvF,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,WAAY,SAAQ,0BAAY;CAE5C;AAFD,kCAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,wBAAyB,SAAQ,4CAAyB;CAEtE;AAFD,4DAEC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AACD,MAAa,wBAAyB,SAAQ,6BAAe;CAU5D;AAVD,4DAUC;AAED,MA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6E;AAE7E,MAAa,qBAAqB;CAMjC;AAND,sDAMC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgramSeason.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/entities/ProgramSeason.ts"],"names":[],"mappings":";;;AAeA,gEAA6D;AAsB7D,MAAa,aAAc,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"ProgramSeason.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/entities/ProgramSeason.ts"],"names":[],"mappings":";;;AAeA,gEAA6D;AAsB7D,MAAa,aAAc,SAAQ,+BAAc;CA+HhD;AA/HD,sCA+HC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PlatformsEnum } from '../../services/enums.service';
|
|
2
2
|
import { SeasonAttendee } from '../../entity/SeasonAttendees';
|
|
3
|
+
import { Event } from '../../entity/Events';
|
|
3
4
|
export interface IGetProgramSeasonsByIdProps {
|
|
4
5
|
seasonsIds: number[];
|
|
5
6
|
fullFetch?: boolean;
|
|
@@ -10,4 +11,25 @@ export interface IGetProgramSeasonsByIdProps {
|
|
|
10
11
|
export type SeasonAttendeeWithAddons = Partial<SeasonAttendee> & {
|
|
11
12
|
addonProductUserIds?: number[];
|
|
12
13
|
};
|
|
14
|
+
export type EventsFilter = {
|
|
15
|
+
startDate?: string;
|
|
16
|
+
endDate?: string;
|
|
17
|
+
eventsIds?: number[];
|
|
18
|
+
segmentsIds?: number[];
|
|
19
|
+
unselectedIds?: number[];
|
|
20
|
+
};
|
|
21
|
+
export type ProgramSeasonsSegmentsFilter = {
|
|
22
|
+
futureResources?: boolean;
|
|
23
|
+
ignoreEvents?: boolean;
|
|
24
|
+
startDate?: string;
|
|
25
|
+
endDate?: string;
|
|
26
|
+
isGetFull?: boolean;
|
|
27
|
+
isGetRegistrationStatus?: boolean;
|
|
28
|
+
attendeeId?: number;
|
|
29
|
+
};
|
|
30
|
+
export type NotifyEventsAttendees = {
|
|
31
|
+
event: Event;
|
|
32
|
+
oldStartDate: string;
|
|
33
|
+
oldEndDate: string;
|
|
34
|
+
};
|
|
13
35
|
export * from './index';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAqCA,0CAAwB"}
|