@bondsports/types 2.1.5 → 2.1.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/attendance/dto/attendance.dto.d.ts +23 -0
- package/dist/types/attendance/dto/attendance.dto.js +21 -0
- package/dist/types/attendance/dto/attendance.dto.js.map +1 -0
- package/dist/types/attendance/dto/index.d.ts +1 -0
- package/dist/types/attendance/dto/index.js +18 -0
- package/dist/types/attendance/dto/index.js.map +1 -0
- package/dist/types/attendance/entities/Attendance.d.ts +16 -0
- package/dist/types/attendance/entities/Attendance.js +8 -0
- package/dist/types/attendance/entities/Attendance.js.map +1 -0
- package/dist/types/attendance/entities/index.d.ts +1 -0
- package/dist/types/attendance/entities/index.js +18 -0
- package/dist/types/attendance/entities/index.js.map +1 -0
- package/dist/types/attendance/index.d.ts +3 -0
- package/dist/types/attendance/index.js +20 -0
- package/dist/types/attendance/index.js.map +1 -0
- package/dist/types/attendance/types/attendance.enums.d.ts +6 -0
- package/dist/types/attendance/types/attendance.enums.js +12 -0
- package/dist/types/attendance/types/attendance.enums.js.map +1 -0
- package/dist/types/attendance/types/index.d.ts +1 -0
- package/dist/types/attendance/types/index.js +18 -0
- package/dist/types/attendance/types/index.js.map +1 -0
- package/dist/types/cart/dto/cart-item.dto.d.ts +2 -2
- package/dist/types/cart/dto/cart.dto.d.ts +4 -4
- package/dist/types/cart/entities/cart-item.entity.d.ts +2 -2
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -22
- package/dist/types/dto/configuration.dto.d.ts +11 -1
- package/dist/types/dto/configuration.dto.js +10 -0
- package/dist/types/dto/configuration.dto.js.map +1 -1
- package/dist/types/dto/general.dto.d.ts +2 -0
- package/dist/types/dto/general.dto.js +2 -1
- package/dist/types/dto/general.dto.js.map +1 -1
- package/dist/types/entity/EventHistory.d.ts +47 -0
- package/dist/types/entity/EventHistory.js +8 -0
- package/dist/types/entity/EventHistory.js.map +1 -0
- package/dist/types/entity/LineItems.d.ts +2 -2
- package/dist/types/entity/SlotHistory.d.ts +52 -0
- package/dist/types/entity/SlotHistory.js +8 -0
- package/dist/types/entity/SlotHistory.js.map +1 -0
- package/dist/types/entity/index.d.ts +2 -0
- package/dist/types/entity/index.js +2 -0
- package/dist/types/entity/index.js.map +1 -1
- package/dist/types/future-installments/dto/get-future-installment.dto.d.ts +7 -0
- package/dist/types/future-installments/dto/get-future-installment.dto.js +4 -1
- package/dist/types/future-installments/dto/get-future-installment.dto.js.map +1 -1
- 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/types/consts/invoice.consts.d.ts +2 -2
- package/dist/types/invoice/types/consts/invoice.consts.js +2 -2
- package/dist/types/invoice/types/consts/invoice.consts.js.map +1 -1
- package/dist/types/payment/dto/discount.dto.d.ts +7 -6
- package/dist/types/payment/dto/discount.dto.js.map +1 -1
- package/dist/types/payment/dto/payment-plan.dto.d.ts +1 -0
- package/dist/types/payment/dto/payment-plan.dto.js.map +1 -1
- package/dist/types/payment/dto/payment.dto.d.ts +1 -1
- package/dist/types/payment/types/enums/discount.enums.d.ts +2 -2
- package/dist/types/payment/types/enums/discount.enums.js +8 -10
- package/dist/types/payment/types/enums/discount.enums.js.map +1 -1
- package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +1 -7
- package/dist/types/payment/types/interfaces/discount.interfaces.js.map +1 -1
- package/dist/types/payment/types/interfaces/void.interfaces.d.ts +2 -2
- package/dist/types/purchase/dto/purchase.dto.d.ts +2 -1
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/user-activities/dto/user-activities.dto.d.ts +6 -0
- package/dist/types/user-activities/dto/user-activities.dto.js +4 -1
- package/dist/types/user-activities/dto/user-activities.dto.js.map +1 -1
- package/dist/types/user-activities/index.d.ts +1 -0
- package/dist/types/user-activities/index.js +1 -0
- package/dist/types/user-activities/index.js.map +1 -1
- package/dist/types/user-activities/types/index.d.ts +1 -0
- package/dist/types/user-activities/types/index.js +18 -0
- package/dist/types/user-activities/types/index.js.map +1 -0
- package/dist/types/user-activities/types/user-activities.enums.d.ts +3 -0
- package/dist/types/user-activities/types/user-activities.enums.js +8 -0
- package/dist/types/user-activities/types/user-activities.enums.js.map +1 -0
- package/package.json +1 -1
package/dist/types/index.js
CHANGED
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./activities"), exports);
|
18
18
|
__exportStar(require("./addons"), exports);
|
19
|
+
__exportStar(require("./attendance"), exports);
|
19
20
|
__exportStar(require("./cart"), exports);
|
20
21
|
__exportStar(require("./customers"), exports);
|
21
22
|
__exportStar(require("./dto"), exports);
|
package/dist/types/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { InvoiceDiscountOnEnum } from '../../../payment/types/enums/discount.enums';
|
2
2
|
export declare const discountOnMapper: {
|
3
|
-
[key: string]:
|
3
|
+
[key: string]: InvoiceDiscountOnEnum;
|
4
4
|
};
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.discountOnMapper = void 0;
|
4
4
|
const discount_enums_1 = require("../../../payment/types/enums/discount.enums");
|
5
5
|
exports.discountOnMapper = {
|
6
|
-
[discount_enums_1.
|
7
|
-
[discount_enums_1.
|
6
|
+
[discount_enums_1.DiscountOnEnum.ITEM]: discount_enums_1.InvoiceDiscountOnEnum.LINE_ITEM,
|
7
|
+
[discount_enums_1.DiscountOnEnum.ALL]: discount_enums_1.InvoiceDiscountOnEnum.INVOICE,
|
8
8
|
};
|
9
9
|
//# sourceMappingURL=invoice.consts.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"invoice.consts.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/invoice.consts.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"invoice.consts.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/invoice.consts.ts"],"names":[],"mappings":";;;AAAA,gFAAoG;AAEvF,QAAA,gBAAgB,GAA6C;IACzE,CAAC,+BAAc,CAAC,IAAI,CAAC,EAAE,sCAAqB,CAAC,SAAS;IACtD,CAAC,+BAAc,CAAC,GAAG,CAAC,EAAE,sCAAqB,CAAC,OAAO;CACnD,CAAC"}
|
@@ -2,8 +2,8 @@ import { PaginationQuery } from '../../dto/general.dto';
|
|
2
2
|
import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
|
3
3
|
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
4
4
|
import { ActivityEnum, CurrencyEnum, MembershipTypeEnum, PlatformsEnum, ProgramTypesEnum } from '../../services/enums.service';
|
5
|
-
import {
|
6
|
-
import { IDiscountRelatedMemberships, IDiscountRelatedProductIds, IDiscountRelatedProducts, IDiscountRelatedProgramTypes, IDiscountRelatedPrograms } from '../types/interfaces/discount.interfaces';
|
5
|
+
import { DiscountTypeEnum, InvoiceDiscountOnEnum } from '../types/enums/discount.enums';
|
6
|
+
import { IDiscountRelatedMemberships, IDiscountRelatedProductIds, IDiscountRelatedProducts, IDiscountRelatedProgramTypes, IDiscountRelatedPrograms, ISetDiscount, ISetDiscounts } from '../types/interfaces/discount.interfaces';
|
7
7
|
import { CreateNoteDto } from './payment.dto';
|
8
8
|
export declare class DiscountRelatedProductIdsDto implements IDiscountRelatedProductIds {
|
9
9
|
included?: number[];
|
@@ -86,15 +86,16 @@ export declare class CreateDiscountsDto {
|
|
86
86
|
export declare class UpdateDiscountsDto {
|
87
87
|
discounts: UpdateDiscountDto[];
|
88
88
|
}
|
89
|
-
export declare class SetDiscountDto {
|
89
|
+
export declare class SetDiscountDto implements ISetDiscount {
|
90
90
|
discountId: number;
|
91
91
|
amount?: number;
|
92
92
|
percentage?: number;
|
93
93
|
lineItemsIds?: number[];
|
94
|
+
itemsIds?: number[];
|
94
95
|
}
|
95
|
-
export declare class SetDiscountsDto {
|
96
|
+
export declare class SetDiscountsDto implements ISetDiscounts {
|
96
97
|
discounts: SetDiscountDto[];
|
97
|
-
reasonId
|
98
|
+
reasonId?: number;
|
98
99
|
notes?: CreateNoteDto[];
|
99
100
|
shiftId?: number;
|
100
101
|
}
|
@@ -116,7 +117,7 @@ export declare class ItemDiscountDto extends OrganizationBaseEntityDto {
|
|
116
117
|
reasonId: number;
|
117
118
|
reason: string;
|
118
119
|
discountPercentage: number;
|
119
|
-
discountOn:
|
120
|
+
discountOn: InvoiceDiscountOnEnum;
|
120
121
|
currency: CurrencyEnum;
|
121
122
|
quantity?: number;
|
122
123
|
discountAmount: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"discount.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/discount.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAExD,8EAAoF;AACpF,gEAMsC;
|
1
|
+
{"version":3,"file":"discount.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/discount.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAExD,8EAAoF;AACpF,gEAMsC;AAatC,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AATC,gCAAgB,CAAC,KAAK,EAEtB,gCAAgB,CAAC,MAAM,EAEvB,gCAAgB,CAAC,IAAI,EAErB,gCAAgB,CAAC,SAAS,EAE1B,gCAAgB,CAAC,MAAM;AAGzB,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAHC,kCAAkB,CAAC,KAAK,EAExB,kCAAkB,CAAC,OAAO;AAG5B,MAAa,0BAA0B;CAQtC;AARD,gEAQC;AAED,MAAM,iBAAiB;CAoBtB;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;CAMvD;AAND,8CAMC;AAED,MAAa,iBAAiB;CAwB7B;AAxBD,8CAwBC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,cAAc;CAU1B;AAVD,wCAUC;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 +1 @@
|
|
1
|
-
{"version":3,"file":"payment-plan.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-plan.dto.ts"],"names":[],"mappings":";;;AACA,8EAA8E;AAS9E,MAAa,sBAAsB;
|
1
|
+
{"version":3,"file":"payment-plan.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-plan.dto.ts"],"names":[],"mappings":";;;AACA,8EAA8E;AAS9E,MAAa,sBAAsB;CAQlC;AARD,wDAQC;AACD,MAAa,cAAc;CAgB1B;AAhBD,wCAgBC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,kBAAmB,SAAQ,cAAc;CAErD;AAFD,gDAEC;AAED,MAAa,uBAAwB,SAAQ,sCAAmB;CAI/D;AAJD,0DAIC;AAED,MAAa,0BAA2B,SAAQ,uBAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AAED,MAAa,kBAAkB;CAG9B;AAHD,gDAGC"}
|
@@ -4,8 +4,8 @@ import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
4
4
|
import { PurchaseProductDto } from '../../purchase/dto/purchase.dto';
|
5
5
|
import { MonthsEnum, OrderByEnum, PaymentSettingStatusEnum, PlatformsEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
6
6
|
import { Payment } from '../entities/Payment';
|
7
|
-
import { FuturePaymentStatusEnum, PaymentFilterByEnum, PaymentMethodTypeEnum, PaymentStatusEnum, SubPaymentMethodTypeEnum } from '../types/enums/payment.enums';
|
8
7
|
import { LinkedAccountStatus } from '../types/enums/linked-account.enums';
|
8
|
+
import { FuturePaymentStatusEnum, PaymentFilterByEnum, PaymentMethodTypeEnum, PaymentStatusEnum, SubPaymentMethodTypeEnum } from '../types/enums/payment.enums';
|
9
9
|
export declare class CustomerIdDto {
|
10
10
|
customerId: number;
|
11
11
|
}
|
@@ -3,11 +3,11 @@ export declare enum DiscountTypeEnum {
|
|
3
3
|
FIXED = "fixed",
|
4
4
|
ENTITLEMENT_GROUP = "entitlement_group"
|
5
5
|
}
|
6
|
-
export declare enum
|
6
|
+
export declare enum InvoiceDiscountOnEnum {
|
7
7
|
INVOICE = "invoice",
|
8
8
|
LINE_ITEM = "line_item"
|
9
9
|
}
|
10
|
-
export declare enum
|
10
|
+
export declare enum DiscountOnEnum {
|
11
11
|
ALL = "all",
|
12
12
|
ITEM = "item"
|
13
13
|
}
|
@@ -1,24 +1,22 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DiscountSortByEnum = exports.DiscountUsageTypeEnum = exports.
|
3
|
+
exports.DiscountSortByEnum = exports.DiscountUsageTypeEnum = exports.DiscountOnEnum = exports.InvoiceDiscountOnEnum = exports.DiscountTypeEnum = void 0;
|
4
4
|
var DiscountTypeEnum;
|
5
5
|
(function (DiscountTypeEnum) {
|
6
6
|
DiscountTypeEnum["MANUAL"] = "manual";
|
7
7
|
DiscountTypeEnum["FIXED"] = "fixed";
|
8
8
|
DiscountTypeEnum["ENTITLEMENT_GROUP"] = "entitlement_group";
|
9
9
|
})(DiscountTypeEnum = exports.DiscountTypeEnum || (exports.DiscountTypeEnum = {}));
|
10
|
-
|
10
|
+
var InvoiceDiscountOnEnum;
|
11
|
+
(function (InvoiceDiscountOnEnum) {
|
12
|
+
InvoiceDiscountOnEnum["INVOICE"] = "invoice";
|
13
|
+
InvoiceDiscountOnEnum["LINE_ITEM"] = "line_item";
|
14
|
+
})(InvoiceDiscountOnEnum = exports.InvoiceDiscountOnEnum || (exports.InvoiceDiscountOnEnum = {}));
|
11
15
|
var DiscountOnEnum;
|
12
16
|
(function (DiscountOnEnum) {
|
13
|
-
DiscountOnEnum["
|
14
|
-
DiscountOnEnum["
|
17
|
+
DiscountOnEnum["ALL"] = "all";
|
18
|
+
DiscountOnEnum["ITEM"] = "item";
|
15
19
|
})(DiscountOnEnum = exports.DiscountOnEnum || (exports.DiscountOnEnum = {}));
|
16
|
-
// TODO: rename to DiscountOnEnum
|
17
|
-
var CartDiscountOnEnum;
|
18
|
-
(function (CartDiscountOnEnum) {
|
19
|
-
CartDiscountOnEnum["ALL"] = "all";
|
20
|
-
CartDiscountOnEnum["ITEM"] = "item";
|
21
|
-
})(CartDiscountOnEnum = exports.CartDiscountOnEnum || (exports.CartDiscountOnEnum = {}));
|
22
20
|
var DiscountUsageTypeEnum;
|
23
21
|
(function (DiscountUsageTypeEnum) {
|
24
22
|
DiscountUsageTypeEnum["BY_PRODUCT_USER"] = "by_product_user";
|
@@ -1 +1 @@
|
|
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
|
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,qBAGX;AAHD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,gDAAuB,CAAA;AACxB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,6BAAW,CAAA;IACX,+BAAa,CAAA;AACd,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,4DAAmC,CAAA;IACnC,0DAAiC,CAAA;IACjC,4CAAmB,CAAA;AACpB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC7B,mCAAa,CAAA;IACb,mCAAa,CAAA;IACb,uCAAiB,CAAA;IACjB,2CAAqB,CAAA;IACrB,uCAAiB,CAAA;AAClB,CAAC,EANW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAM7B"}
|
@@ -1,15 +1,9 @@
|
|
1
|
-
import { Invoice } from '../../../entity/Invoice';
|
2
|
-
import { LineItems } from '../../../entity/LineItems';
|
3
1
|
import { IProductRelatedMembership } from '../../../membership/interfaces/membership.interfaces';
|
4
2
|
import { Product } from '../../../product-pricing/entities/Product';
|
5
3
|
import { IProductRelatedProgram } from '../../../programs/types/interfaces/program.interfaces';
|
6
4
|
import { MembershipTypeEnum, ProgramTypesEnum } from '../../../services/enums.service';
|
7
5
|
import { CreateNoteDto } from '../../dto/payment.dto';
|
8
6
|
import { DiscountOnEnum } from '../enums/discount.enums';
|
9
|
-
export interface ISetDiscountsValidationsResult {
|
10
|
-
invoice: Invoice;
|
11
|
-
parentLineItems: LineItems[];
|
12
|
-
}
|
13
7
|
export interface IRoundingSplit {
|
14
8
|
splitsNumber: number;
|
15
9
|
splitAmount: number;
|
@@ -18,7 +12,7 @@ export interface ISetDiscount {
|
|
18
12
|
discountId: number;
|
19
13
|
amount?: number;
|
20
14
|
percentage?: number;
|
21
|
-
|
15
|
+
itemsIds?: number[];
|
22
16
|
reasonId?: number;
|
23
17
|
discountOn?: DiscountOnEnum;
|
24
18
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"discount.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/discount.interfaces.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"discount.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/discount.interfaces.ts"],"names":[],"mappings":";;AAGA,mEAAuF"}
|
@@ -3,7 +3,7 @@ import { LineItems } from '../../../entity/LineItems';
|
|
3
3
|
import { TRevertedResources } from '../../../reservations/interfaces/reservation';
|
4
4
|
import { ResourceNameTypeEnum } from '../../../services/enums.service';
|
5
5
|
import { CreateNoteDto, RevertMetaDto } from '../../dto/payment.dto';
|
6
|
-
import {
|
6
|
+
import { InvoiceDiscountOnEnum } from '../enums/discount.enums';
|
7
7
|
import { VoidTypeEnum } from '../enums/void.enums';
|
8
8
|
import { ISetDiscount } from './discount.interfaces';
|
9
9
|
export interface IVoidValidationsResult {
|
@@ -29,7 +29,7 @@ export interface IVoid {
|
|
29
29
|
}
|
30
30
|
export interface IVoidDiscount {
|
31
31
|
id?: number;
|
32
|
-
discountOn?:
|
32
|
+
discountOn?: InvoiceDiscountOnEnum;
|
33
33
|
}
|
34
34
|
export interface IVoidLineItemsDict {
|
35
35
|
[id: number]: IVoidLineItem;
|
@@ -67,7 +67,8 @@ export declare class ScheduledPaymentRequestBodyDto {
|
|
67
67
|
paymentMethodData: PurchasePaymentDto;
|
68
68
|
platform: PlatformsEnum;
|
69
69
|
shiftId?: number;
|
70
|
-
|
70
|
+
includedIds?: number[];
|
71
|
+
excludedIds?: number[];
|
71
72
|
}
|
72
73
|
export declare class PartialPaymentRequestDto {
|
73
74
|
invoiceId: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAIA,8EAA8E;AAS9E,gEAA4D;AAG5D,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CA8B9B;AA9BD,gDA8BC;AAED,MAAa,mBAAoB,SAAQ,0BAAW;CAInD;AAJD,kDAIC;AAED,MAAa,kBAAkB;CA2B9B;AA3BD,gDA2BC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;
|
1
|
+
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAIA,8EAA8E;AAS9E,gEAA4D;AAG5D,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CA8B9B;AA9BD,gDA8BC;AAED,MAAa,mBAAoB,SAAQ,0BAAW;CAInD;AAJD,kDAIC;AAED,MAAa,kBAAkB;CA2B9B;AA3BD,gDA2BC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;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,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAe;CAgB3B;AAhBD,0CAgBC"}
|
@@ -2,6 +2,12 @@ import { ActivityTimesDto } from '../../programs-seasons/dto/program-seasons.dto
|
|
2
2
|
import { OrderByEnum } from '../../services/enums.service';
|
3
3
|
import { ByOrganizationAndUserDto } from '../../user/dto/user.dto';
|
4
4
|
import { PaginationQuery } from '../../dto/general.dto';
|
5
|
+
import { UserActivityTypesEnum } from '../types/user-activities.enums';
|
6
|
+
export declare class UserActivityDto {
|
7
|
+
activityType: UserActivityTypesEnum;
|
8
|
+
activityId: number;
|
9
|
+
activityName: string;
|
10
|
+
}
|
5
11
|
export declare class GetProgramsEventsQuery {
|
6
12
|
itemsPerPage: number;
|
7
13
|
startDate: number;
|
@@ -1,8 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ByOrganizationIdUserIdAndSegmentIdDto = exports.ByOrganizationIdUserIdAndEventIdDto = exports.GetUserAddonsQuery = exports.ByOrganizationIdUserIdAndProgramIdDto = exports.ProgramSegmentDto = exports.ProgramEventDto = exports.GetProgramsSegmentsQuery = exports.GetProgramsEventsQuery = void 0;
|
3
|
+
exports.ByOrganizationIdUserIdAndSegmentIdDto = exports.ByOrganizationIdUserIdAndEventIdDto = exports.GetUserAddonsQuery = exports.ByOrganizationIdUserIdAndProgramIdDto = exports.ProgramSegmentDto = exports.ProgramEventDto = exports.GetProgramsSegmentsQuery = exports.GetProgramsEventsQuery = exports.UserActivityDto = void 0;
|
4
4
|
const user_dto_1 = require("../../user/dto/user.dto");
|
5
5
|
const general_dto_1 = require("../../dto/general.dto");
|
6
|
+
class UserActivityDto {
|
7
|
+
}
|
8
|
+
exports.UserActivityDto = UserActivityDto;
|
6
9
|
class GetProgramsEventsQuery {
|
7
10
|
}
|
8
11
|
exports.GetProgramsEventsQuery = GetProgramsEventsQuery;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user-activities.dto.js","sourceRoot":"","sources":["../../../../src/types/user-activities/dto/user-activities.dto.ts"],"names":[],"mappings":";;;AAGA,sDAAmE;AACnE,uDAAwD;
|
1
|
+
{"version":3,"file":"user-activities.dto.js","sourceRoot":"","sources":["../../../../src/types/user-activities/dto/user-activities.dto.ts"],"names":[],"mappings":";;;AAGA,sDAAmE;AACnE,uDAAwD;AAGxD,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,sBAAsB;CAYlC;AAZD,wDAYC;AAED,MAAa,wBAAyB,SAAQ,sBAAsB;CAAG;AAAvE,4DAAuE;AAEvE,MAAa,eAAe;CAoB3B;AApBD,0CAoBC;AAED,MAAa,iBAAiB;CAgB7B;AAhBD,8CAgBC;AAED,MAAa,qCAAsC,SAAQ,mCAAwB;CAElF;AAFD,sFAEC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,mCAAoC,SAAQ,mCAAwB;CAEhF;AAFD,kFAEC;AAED,MAAa,qCAAsC,SAAQ,mCAAwB;CAElF;AAFD,sFAEC"}
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./dto"), exports);
|
18
|
+
__exportStar(require("./types"), exports);
|
18
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/user-activities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/user-activities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,0CAAwB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './user-activities.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("./user-activities.enums"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/user-activities/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UserActivityTypesEnum = void 0;
|
4
|
+
var UserActivityTypesEnum;
|
5
|
+
(function (UserActivityTypesEnum) {
|
6
|
+
UserActivityTypesEnum["MEMBERSHIP"] = "membership";
|
7
|
+
})(UserActivityTypesEnum = exports.UserActivityTypesEnum || (exports.UserActivityTypesEnum = {}));
|
8
|
+
//# sourceMappingURL=user-activities.enums.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"user-activities.enums.js","sourceRoot":"","sources":["../../../../src/types/user-activities/types/user-activities.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAChC,kDAAyB,CAAA;AAC1B,CAAC,EAFW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAEhC"}
|