@bondsports/types 2.2.71 → 2.2.73
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/dto/events.dto.d.ts +1 -1
- package/dist/types/entity/Customer.d.ts +1 -1
- package/dist/types/entity/Events.d.ts +1 -1
- package/dist/types/entity/Invoice.d.ts +3 -3
- package/dist/types/entity/ProductsUsers.d.ts +2 -2
- package/dist/types/entity/index.d.ts +0 -2
- package/dist/types/entity/index.js +0 -2
- package/dist/types/entity/index.js.map +1 -1
- package/dist/types/invoice/dto/index.d.ts +2 -1
- package/dist/types/invoice/dto/index.js +2 -1
- package/dist/types/invoice/dto/index.js.map +1 -1
- package/dist/types/invoice/dto/invoice.dto.d.ts +27 -0
- package/dist/types/invoice/dto/invoice.dto.js +13 -1
- package/dist/types/invoice/dto/invoice.dto.js.map +1 -1
- package/dist/types/{reservations → invoice}/dto/lineItem.dto.d.ts +1 -1
- package/dist/types/invoice/dto/lineItem.dto.js.map +1 -0
- package/dist/types/invoice/dto/{publishInvoice.dto.js → publish-invoice.dto.js} +1 -1
- package/dist/types/invoice/dto/publish-invoice.dto.js.map +1 -0
- package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +27 -0
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +2 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.js.map +1 -1
- package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +3 -2
- package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
- package/dist/types/reservations/dto/addon.dto.d.ts +3 -5
- package/dist/types/reservations/dto/addon.dto.js.map +1 -1
- package/dist/types/reservations/dto/index.d.ts +0 -2
- package/dist/types/reservations/dto/index.js +0 -2
- package/dist/types/reservations/dto/index.js.map +1 -1
- package/dist/types/reservations/dto/maintenance.dto.d.ts +1 -2
- package/dist/types/reservations/dto/maintenance.dto.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +29 -7
- package/dist/types/reservations/dto/reservation.dto.js +17 -1
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/segment.dto.d.ts +9 -2
- package/dist/types/reservations/dto/segment.dto.js.map +1 -1
- package/dist/types/reservations/dto/series.dto.d.ts +5 -2
- package/dist/types/reservations/dto/series.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +32 -19
- package/dist/types/reservations/dto/slot.dto.js +7 -4
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/entities/{Addon.d.ts → addon.entity.d.ts} +6 -1
- package/dist/types/reservations/entities/{Addon.js → addon.entity.js} +1 -1
- package/dist/types/reservations/entities/addon.entity.js.map +1 -0
- package/dist/types/reservations/entities/index.d.ts +6 -6
- package/dist/types/reservations/entities/index.js +6 -6
- package/dist/types/reservations/entities/index.js.map +1 -1
- package/dist/types/reservations/entities/{Reservations.d.ts → reservation.entity.d.ts} +14 -13
- package/dist/types/reservations/entities/{Reservations.js → reservation.entity.js} +1 -1
- package/dist/types/reservations/entities/reservation.entity.js.map +1 -0
- package/dist/types/reservations/entities/{Segments.d.ts → segment.entity.d.ts} +4 -4
- package/dist/types/reservations/entities/{Segments.js → segment.entity.js} +1 -1
- package/dist/types/reservations/entities/segment.entity.js.map +1 -0
- package/dist/types/reservations/entities/{Series.d.ts → series.entity.d.ts} +6 -5
- package/dist/types/reservations/entities/{Series.js → series.entity.js} +1 -1
- package/dist/types/reservations/entities/series.entity.js.map +1 -0
- package/dist/types/reservations/entities/slot-history.entity.d.ts +6 -0
- package/dist/types/reservations/entities/slot-history.entity.js +8 -0
- package/dist/types/reservations/entities/slot-history.entity.js.map +1 -0
- package/dist/types/reservations/entities/{Slots.d.ts → slot.entity.d.ts} +22 -23
- package/dist/types/reservations/entities/{Slots.js → slot.entity.js} +1 -1
- package/dist/types/reservations/entities/slot.entity.js.map +1 -0
- package/dist/types/reservations/types/consts/reservation.consts.js +7 -6
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
- package/dist/types/reservations/types/enums/reservation.enums.d.ts +59 -0
- package/dist/types/reservations/types/enums/reservation.enums.js +72 -1
- package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -1
- package/dist/types/reservations/types/interfaces/addon.interfaces.d.ts +13 -0
- package/dist/types/reservations/types/interfaces/{invoice.interfaces.js → addon.interfaces.js} +1 -1
- package/dist/types/reservations/types/interfaces/addon.interfaces.js.map +1 -0
- package/dist/types/reservations/types/interfaces/index.d.ts +2 -1
- package/dist/types/reservations/types/interfaces/index.js +2 -1
- package/dist/types/reservations/types/interfaces/index.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +9 -8
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +56 -0
- package/dist/types/reservations/types/interfaces/slot.interfaces.js +3 -0
- package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -0
- package/dist/types/resources/dto/resource.dto.d.ts +2 -2
- package/dist/types/resources/entities/Resource.d.ts +2 -2
- package/dist/types/services/enums.service.d.ts +0 -58
- package/dist/types/services/enums.service.js +2 -70
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +4 -53
- package/dist/types/services/interfaces.service.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/entity/Reservations.d.ts +0 -35
- package/dist/types/entity/Reservations.js +0 -8
- package/dist/types/entity/Reservations.js.map +0 -1
- package/dist/types/entity/SlotHistory.d.ts +0 -53
- package/dist/types/entity/SlotHistory.js +0 -8
- package/dist/types/entity/SlotHistory.js.map +0 -1
- package/dist/types/invoice/dto/publishInvoice.dto.js.map +0 -1
- package/dist/types/reservations/dto/invoice.dto.d.ts +0 -50
- package/dist/types/reservations/dto/invoice.dto.js +0 -31
- package/dist/types/reservations/dto/invoice.dto.js.map +0 -1
- package/dist/types/reservations/dto/lineItem.dto.js.map +0 -1
- package/dist/types/reservations/entities/Addon.js.map +0 -1
- package/dist/types/reservations/entities/InvoicedSlots.d.ts +0 -7
- package/dist/types/reservations/entities/InvoicedSlots.js +0 -8
- package/dist/types/reservations/entities/InvoicedSlots.js.map +0 -1
- package/dist/types/reservations/entities/Reservations.js.map +0 -1
- package/dist/types/reservations/entities/Segments.js.map +0 -1
- package/dist/types/reservations/entities/Series.js.map +0 -1
- package/dist/types/reservations/entities/Slots.js.map +0 -1
- package/dist/types/reservations/types/interfaces/invoice.interfaces.d.ts +0 -28
- package/dist/types/reservations/types/interfaces/invoice.interfaces.js.map +0 -1
- /package/dist/types/{reservations → invoice}/dto/lineItem.dto.js +0 -0
- /package/dist/types/invoice/dto/{publishInvoice.dto.d.ts → publish-invoice.dto.d.ts} +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
import { PaymentStatusEnum } from '../payment/types/enums/payment.enums';
|
2
2
|
import { MaintenanceDto } from '../reservations/dto/maintenance.dto';
|
3
|
-
import { Slot } from '../reservations/entities/
|
3
|
+
import { Slot } from '../reservations/entities/slot.entity';
|
4
4
|
import { EntryStatusEnum, ProgramTypesEnum, RegistrationValidationStatusEnum } from '../services/enums.service';
|
5
5
|
import { IBasicSpaceAndSlotCreator } from '../services/interfaces.service';
|
6
6
|
import { SimpleResourceDto } from '../resources/dto/resource.dto';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CustomerFamilyStatusEnum } from '../customers/types/enums';
|
2
|
-
import { Reservation } from '../reservations/entities/
|
2
|
+
import { Reservation } from '../reservations/entities/reservation.entity';
|
3
3
|
import { CustomerTypeEnum, ResourceNameTypeEnum } from '../services/enums.service';
|
4
4
|
import { MembershipStatus } from '../services/interfaces.service';
|
5
5
|
import { User } from '../user/entities/User';
|
@@ -5,7 +5,7 @@ import { EventAttendee } from './EventAttendees';
|
|
5
5
|
import { ProductResource } from './ProductResource';
|
6
6
|
import { ProgramSeason } from '../programs-seasons/entities/ProgramSeason';
|
7
7
|
import { ActivityTimes } from './ActivityTimes';
|
8
|
-
import { Slot } from '../reservations/entities/
|
8
|
+
import { Slot } from '../reservations/entities/slot.entity';
|
9
9
|
import { PurchasedResource } from './PurchasedResources';
|
10
10
|
import { Program } from '../programs/entities/Program';
|
11
11
|
import { ColorCode } from './ColorCode';
|
@@ -4,9 +4,9 @@ import { ItemDiscountDto } from '../payment/dto/discount.dto';
|
|
4
4
|
import { FutureInstallment } from '../payment/entities/FutureInstallment';
|
5
5
|
import { Payment } from '../payment/entities/Payment';
|
6
6
|
import { PaymentMethodTypeEnum, PaymentStatusEnum } from '../payment/types/enums/payment.enums';
|
7
|
-
import { Addon } from '../reservations/entities/
|
8
|
-
import { Reservation } from '../reservations/entities/
|
9
|
-
import { Slot } from '../reservations/entities/
|
7
|
+
import { Addon } from '../reservations/entities/addon.entity';
|
8
|
+
import { Reservation } from '../reservations/entities/reservation.entity';
|
9
|
+
import { Slot } from '../reservations/entities/slot.entity';
|
10
10
|
import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../services/enums.service';
|
11
11
|
import { User } from '../user/entities/User';
|
12
12
|
import { BondBaseEntity } from './BondBaseEntity';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { PaymentStatusEnum } from '../payment/types/enums/payment.enums';
|
2
2
|
import { ProgramSeason } from '../programs-seasons/entities/ProgramSeason';
|
3
|
-
import { Addon } from '../reservations/entities/
|
4
|
-
import { Slot } from '../reservations/entities/
|
3
|
+
import { Addon } from '../reservations/entities/addon.entity';
|
4
|
+
import { Slot } from '../reservations/entities/slot.entity';
|
5
5
|
import { CurrencyEnum } from '../services/enums.service';
|
6
6
|
import { User } from '../user/entities/User';
|
7
7
|
import { EventAttendee } from './EventAttendees';
|
@@ -48,14 +48,12 @@ export * from './ProductsReservedForCustomers';
|
|
48
48
|
export * from './ProductsUsers';
|
49
49
|
export * from './PurchasedResources';
|
50
50
|
export * from './RegistrationConstraint';
|
51
|
-
export * from './Reservations';
|
52
51
|
export * from './ResourceGroup';
|
53
52
|
export * from './School';
|
54
53
|
export * from './SeasonAttendees';
|
55
54
|
export * from './SeasonDivisions';
|
56
55
|
export * from './SeasonPool';
|
57
56
|
export * from './SeasonTeam';
|
58
|
-
export * from './SlotHistory';
|
59
57
|
export * from './Station';
|
60
58
|
export * from './StationToSubcategory';
|
61
59
|
export * from './Subcategory';
|
@@ -64,14 +64,12 @@ __exportStar(require("./ProductsReservedForCustomers"), exports);
|
|
64
64
|
__exportStar(require("./ProductsUsers"), exports);
|
65
65
|
__exportStar(require("./PurchasedResources"), exports);
|
66
66
|
__exportStar(require("./RegistrationConstraint"), exports);
|
67
|
-
__exportStar(require("./Reservations"), exports);
|
68
67
|
__exportStar(require("./ResourceGroup"), exports);
|
69
68
|
__exportStar(require("./School"), exports);
|
70
69
|
__exportStar(require("./SeasonAttendees"), exports);
|
71
70
|
__exportStar(require("./SeasonDivisions"), exports);
|
72
71
|
__exportStar(require("./SeasonPool"), exports);
|
73
72
|
__exportStar(require("./SeasonTeam"), exports);
|
74
|
-
__exportStar(require("./SlotHistory"), exports);
|
75
73
|
__exportStar(require("./Station"), exports);
|
76
74
|
__exportStar(require("./StationToSubcategory"), exports);
|
77
75
|
__exportStar(require("./Subcategory"), 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,gDAA8B;AAC9B,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,iDAA+B;AAC/B,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,+CAA6B;AAC7B,qDAAmC;AACnC,8DAA4C;AAC5C,gDAA8B;AAC9B,qEAAmD;AACnD,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,2DAAyC;AACzC,
|
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,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,iDAA+B;AAC/B,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,+CAA6B;AAC7B,qDAAmC;AACnC,8DAA4C;AAC5C,gDAA8B;AAC9B,qEAAmD;AACnD,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,2DAAyC;AACzC,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,iDAA+B;AAC/B,kDAAgC;AAChC,6CAA2B;AAC3B,qEAAmD;AACnD,wDAAsC"}
|
@@ -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("./invoice.dto"), exports);
|
18
|
-
__exportStar(require("./
|
18
|
+
__exportStar(require("./lineItem.dto"), exports);
|
19
|
+
__exportStar(require("./publish-invoice.dto"), exports);
|
19
20
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC"}
|
@@ -1,4 +1,31 @@
|
|
1
|
+
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
2
|
+
import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../../services/enums.service';
|
1
3
|
import { IInvoiceCart } from '../types/interfaces/invoice.interfaces';
|
4
|
+
import { LineItemDto } from './lineItem.dto';
|
5
|
+
export declare class InvoiceDto {
|
6
|
+
invoiceId?: string;
|
7
|
+
organizationId: number;
|
8
|
+
price: number;
|
9
|
+
totalTax?: number;
|
10
|
+
totalWithoutTax?: number;
|
11
|
+
status?: InvoiceStatusEnum;
|
12
|
+
lineItems: LineItemDto[];
|
13
|
+
paymentStatus?: PaymentStatusEnum;
|
14
|
+
currency: CurrencyEnum;
|
15
|
+
creatingUserId?: number;
|
16
|
+
platform?: PlatformsEnum;
|
17
|
+
}
|
18
|
+
export declare class BaseInvoiceDto {
|
19
|
+
platform: PlatformsEnum;
|
20
|
+
shiftId?: number;
|
21
|
+
}
|
22
|
+
export declare class UpdateInvoiceOptionsDto {
|
23
|
+
basicInfoData?: BaseInvoiceDto;
|
24
|
+
addToInvoiceId?: number;
|
25
|
+
}
|
26
|
+
export declare class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
|
27
|
+
isInvoiced: boolean;
|
28
|
+
}
|
2
29
|
export declare class InvoiceCartDto implements IInvoiceCart {
|
3
30
|
existingInvoiceId?: number;
|
4
31
|
existingInvoiceToken?: string;
|
@@ -1,6 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.InvoiceCartDto = void 0;
|
3
|
+
exports.InvoiceCartDto = exports.UpdateInvoiceDto = exports.UpdateInvoiceOptionsDto = exports.BaseInvoiceDto = exports.InvoiceDto = void 0;
|
4
|
+
class InvoiceDto {
|
5
|
+
}
|
6
|
+
exports.InvoiceDto = InvoiceDto;
|
7
|
+
class BaseInvoiceDto {
|
8
|
+
}
|
9
|
+
exports.BaseInvoiceDto = BaseInvoiceDto;
|
10
|
+
class UpdateInvoiceOptionsDto {
|
11
|
+
}
|
12
|
+
exports.UpdateInvoiceOptionsDto = UpdateInvoiceOptionsDto;
|
13
|
+
class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
|
14
|
+
}
|
15
|
+
exports.UpdateInvoiceDto = UpdateInvoiceDto;
|
4
16
|
class InvoiceCartDto {
|
5
17
|
}
|
6
18
|
exports.InvoiceCartDto = InvoiceCartDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/invoice.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/invoice.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,UAAU;CAuBtB;AAvBD,gCAuBC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,gBAAiB,SAAQ,uBAAuB;CAE5D;AAFD,4CAEC;AAED,MAAa,cAAc;CAM1B;AAND,wCAMC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Product } from '../../product-pricing/entities/Product';
|
2
2
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
3
3
|
import { CurrencyEnum, LineItemsStatusEnum, ProductTypesEnum } from '../../services/enums.service';
|
4
|
-
import { PurchasedResourceDto } from '
|
4
|
+
import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
|
5
5
|
export declare class LineItemDto {
|
6
6
|
id?: number;
|
7
7
|
invoiceId?: number;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"lineItem.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/lineItem.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,WAAW;CAmDvB;AAnDD,kCAmDC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"publish-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/publish-invoice.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC"}
|
@@ -3,7 +3,10 @@ import { Invoice } from '../../../entity/Invoice';
|
|
3
3
|
import { LineItems } from '../../../entity/LineItems';
|
4
4
|
import { UserPaymentMethod } from '../../../entity/user-payment-method';
|
5
5
|
import { PurchaseProductDto } from '../../../purchase/dto/purchase.dto';
|
6
|
+
import { ProductPricesDto } from '../../../reservations/dto/reservation.dto';
|
6
7
|
import { InvoiceStatusEnum } from '../../../services/enums.service';
|
8
|
+
import { InvoiceDto } from '../../dto/invoice.dto';
|
9
|
+
import { LineItemDto } from '../../dto/lineItem.dto';
|
7
10
|
export interface InvoiceAndRelatedMethod {
|
8
11
|
invoice: Invoice;
|
9
12
|
paymentMethod?: DisplayedMethodFields;
|
@@ -27,3 +30,27 @@ export interface IInvoiceCart {
|
|
27
30
|
export interface IInvoiceCartOptions extends IValidateCartOptions {
|
28
31
|
purchasedProductMap?: Map<PurchaseProductDto, LineItems>;
|
29
32
|
}
|
33
|
+
export interface IGeneratedLineItems {
|
34
|
+
lineItems: LineItemDto[];
|
35
|
+
childItemToParent: Map<LineItemDto, LineItemDto>;
|
36
|
+
}
|
37
|
+
export interface IOverridePricingResult {
|
38
|
+
overrideProductsPricing: IOverrideProductsPricing;
|
39
|
+
totalPrice?: number;
|
40
|
+
}
|
41
|
+
export interface IOverrideLineItemPrice {
|
42
|
+
invoice: InvoiceDto;
|
43
|
+
lineItem: LineItemDto;
|
44
|
+
ratio: number;
|
45
|
+
overrideProductsPricing: IOverrideProductsPricing;
|
46
|
+
isLastLineItem?: boolean;
|
47
|
+
priceLeft?: number;
|
48
|
+
}
|
49
|
+
export interface IOverrideProductsPricing {
|
50
|
+
[productInfo: string]: ProductPricesDto;
|
51
|
+
}
|
52
|
+
export interface IInvoiceReservationOptions {
|
53
|
+
invoice?: Invoice;
|
54
|
+
skipUpdateReservationPrice?: boolean;
|
55
|
+
skipUpdatePaymentStatuses?: boolean;
|
56
|
+
}
|
@@ -3,7 +3,8 @@ import { Customer } from '../../../entity/Customer';
|
|
3
3
|
import { LineItems } from '../../../entity/LineItems';
|
4
4
|
import { FeeDto } from '../../../fee/dto/fee.dto';
|
5
5
|
import { IPurchasePayment } from '../../../purchase/types/interfaces/purchase.interfaces';
|
6
|
-
import {
|
6
|
+
import { ReservationPaymentStatusEnum, ReservationStatusEnum } from '../../../reservations/types/enums/reservation.enums';
|
7
|
+
import { PlatformsEnum } from '../../../services/enums.service';
|
7
8
|
import { CreateNoteDto } from '../../dto/payment.dto';
|
8
9
|
import { Payment } from '../../entities/Payment';
|
9
10
|
import { PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../enums/payment.enums';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/payment.interfaces.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"payment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/payment.interfaces.ts"],"names":[],"mappings":";;;AAcA,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAgBD,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
|
@@ -1,13 +1,14 @@
|
|
1
|
+
import { ActivityTimesDto } from '../../dto/activityTimes.dto';
|
1
2
|
import { IdAndNameDto, PaginationMetaDto, PaginationQuery } from '../../dto/general.dto';
|
2
3
|
import { Event } from '../../entity/Events';
|
3
4
|
import { BaseNotificationDto } from '../../notifications/dto/backoffice.notify.dto';
|
4
5
|
import { ByOrganizationIdDto, OptionalOrganizationIdDto } from '../../organization/dto/organization.dto';
|
5
6
|
import { ByProgramDto, UpdateProgramOptionsDto } from '../../programs/dto/program.dto';
|
6
7
|
import { MaintenanceDto } from '../../reservations/dto/maintenance.dto';
|
8
|
+
import { SlotTypeEnum } from '../../reservations/types/enums/reservation.enums';
|
7
9
|
import { ITimeSlotConflicts } from '../../reservations/types/interfaces/reservation.interfaces';
|
8
10
|
import { CreateOrUpdateResourceSettingDto } from '../../resource-settings/dto/create-or-update-resource-setting.dto';
|
9
|
-
import { GenderEnum, LevelOfPlayEnum, OrderByEnum, ProgramSeasonTypesEnum, ProgramTypesEnum, PublishingStatusEnum, RegistrationConstraintPeriodTypeEnum, ResourceNameTypeEnum,
|
10
|
-
import { ActivityTimesDto } from '../../dto/activityTimes.dto';
|
11
|
+
import { GenderEnum, LevelOfPlayEnum, OrderByEnum, ProgramSeasonTypesEnum, ProgramTypesEnum, PublishingStatusEnum, RegistrationConstraintPeriodTypeEnum, ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
|
11
12
|
export declare class FindSessionsFiltersDto {
|
12
13
|
status?: PublishingStatusEnum;
|
13
14
|
isFullFetch?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"program-seasons.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-seasons.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"program-seasons.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-seasons.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAyF;AAEzF,yFAAoF;AACpF,8EAAyG;AACzG,gEAAuF;AAiBvF,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,MAAa,qCAAsC,SAAQ,sCAAmB;CAE7E;AAFD,sFAEC;AAED,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,qBAAsB,SAAQ,wBAAwB;CAElE;AAFD,sDAEC;AAED,MAAa,6BAA8B,SAAQ,6BAAe;CAMjE;AAND,sEAMC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,oBAAoB;CA8EhC;AA9ED,oDA8EC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAE/D;AAFD,wDAEC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAE/D;AAFD,wDAEC;AAED,MAAa,4BAA4B;CAGxC;AAHD,oEAGC;AAED,MAAa,6BAA6B;CAwDzC;AAxDD,sEAwDC;AAED,MAAa,yBAA0B,SAAQ,0BAAY;CAAG;AAA9D,8DAA8D;AAE9D,MAAa,gBAAiB,SAAQ,0BAAY;CAUjD;AAVD,4CAUC;AAED,MAAa,oBAAoB;CAWhC;AAXD,oDAWC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,+BAA+B;CAO3C;AAPD,0EAOC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,eAAe;CAK3B;AALD,0CAKC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,oBAAoB;CAShC;AATD,oDASC;AAED,MAAa,uBAAwB,SAAQ,oBAAoB;CAUhE;AAVD,0DAUC;AAED,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,6BAA8B,SAAQ,qCAAuB;CAAG;AAA7E,sEAA6E;AAE7E,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED;;GAEG;AACH,MAAa,uBAAwB,SAAQ,2CAAmB;CAY/D;AAZD,0DAYC;AAED;;GAEG;AACH,MAAa,yBAA0B,SAAQ,2CAAmB;CAajE;AAbD,8DAaC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAMrE;AAND,8EAMC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC"}
|
@@ -1,13 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { IAddon } from '../types/interfaces/addon.interfaces';
|
2
2
|
import { EditItemsRefundMetaDto } from './reservation.dto';
|
3
|
-
export declare class AddonDto {
|
4
|
-
productId: number;
|
3
|
+
export declare class AddonDto implements IAddon {
|
5
4
|
id?: number;
|
5
|
+
productId: number;
|
6
6
|
unitPrice?: number;
|
7
7
|
quantity?: number;
|
8
8
|
totalPrice?: number;
|
9
|
-
product?: Product;
|
10
|
-
parentProduct?: Product;
|
11
9
|
displayTotalWithTax?: number;
|
12
10
|
displayTotalPrice?: number;
|
13
11
|
displayUnitTax?: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"addon.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/addon.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,QAAQ;
|
1
|
+
{"version":3,"file":"addon.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/addon.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,QAAQ;CAgBpB;AAhBD,4BAgBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,wBAAyB,SAAQ,aAAa;CAE1D;AAFD,4DAEC;AAED,MAAa,YAAY;CAQxB;AARD,oCAQC"}
|
@@ -15,8 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./addon.dto"), exports);
|
18
|
-
__exportStar(require("./invoice.dto"), exports);
|
19
|
-
__exportStar(require("./lineItem.dto"), exports);
|
20
18
|
__exportStar(require("./maintenance.dto"), exports);
|
21
19
|
__exportStar(require("./purcased-resource.dto"), exports);
|
22
20
|
__exportStar(require("./reservation.dto"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,uDAAqC"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { DurationUnitTypesEnum, MaintenanceTimingEnum } from '
|
1
|
+
import { DurationUnitTypesEnum, MaintenanceTimingEnum } from '../types/enums/reservation.enums';
|
2
2
|
export declare class MaintenanceDto {
|
3
|
-
id?: number;
|
4
3
|
title: string;
|
5
4
|
durationValue: number;
|
6
5
|
maintenanceDurationdurationType: DurationUnitTypesEnum;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"maintenance.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/maintenance.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;
|
1
|
+
{"version":3,"file":"maintenance.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/maintenance.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;CAQ1B;AARD,wCAQC"}
|
@@ -1,15 +1,17 @@
|
|
1
1
|
import { PaginationQuery } from '../../dto/general.dto';
|
2
|
+
import { InvoiceDto, UpdateInvoiceDto, UpdateInvoiceOptionsDto } from '../../invoice/dto/invoice.dto';
|
2
3
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
3
4
|
import { PaymentMethodDto, RefundAmountDto } from '../../payment/dto/refund.dto';
|
4
5
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
5
6
|
import { Product } from '../../product-pricing/entities/Product';
|
6
7
|
import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purchase.dto';
|
7
|
-
import { NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum,
|
8
|
-
import { Reservation } from '../entities/
|
8
|
+
import { NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
|
9
|
+
import { Reservation } from '../entities/reservation.entity';
|
10
|
+
import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
9
11
|
import { ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
10
12
|
import { AddonDto } from './addon.dto';
|
11
|
-
import { InvoiceDto } from './invoice.dto';
|
12
13
|
import { SegmentDto } from './segment.dto';
|
14
|
+
import { SeriesDto } from './series.dto';
|
13
15
|
import { SlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
14
16
|
export declare class ProductPricesDto {
|
15
17
|
productId: number;
|
@@ -20,15 +22,14 @@ export declare class ProductPricesDto {
|
|
20
22
|
}
|
21
23
|
export declare class ReservationDto {
|
22
24
|
id?: number;
|
25
|
+
unique?: string;
|
23
26
|
organizationId?: number;
|
24
27
|
name: string;
|
25
28
|
reservationType: ReservationTypeEnum;
|
26
|
-
customerId?: number;
|
27
29
|
segments: SegmentDto[];
|
28
30
|
description?: string;
|
29
31
|
status?: ReservationStatusEnum;
|
30
|
-
privacySetting?:
|
31
|
-
invoiceId?: string;
|
32
|
+
privacySetting?: PrivacySettingsEnum;
|
32
33
|
price?: number;
|
33
34
|
paymentStatus?: ReservationPaymentStatusEnum;
|
34
35
|
creatorId?: number;
|
@@ -37,10 +38,11 @@ export declare class ReservationDto {
|
|
37
38
|
privateNotes?: string;
|
38
39
|
forms?: number[];
|
39
40
|
addons?: AddonDto[];
|
40
|
-
userId?: number;
|
41
41
|
overrideProductsPrice?: ProductPricesDto[];
|
42
42
|
targetGlobalPrice?: number;
|
43
43
|
colorCodeId?: number;
|
44
|
+
customerId?: number;
|
45
|
+
userId?: number;
|
44
46
|
purchasingUserId?: number;
|
45
47
|
}
|
46
48
|
export declare class ReservationInvoiceDto {
|
@@ -184,4 +186,24 @@ export declare class ChargeReservationResultDto extends PurchaseResultDto {
|
|
184
186
|
reservation: Reservation;
|
185
187
|
debug?: any;
|
186
188
|
}
|
189
|
+
export declare class AddSlotToSegmenResultDto {
|
190
|
+
series: SeriesDto;
|
191
|
+
slotTotalPrice: number;
|
192
|
+
addonsTotalPrice: number;
|
193
|
+
debug?: any;
|
194
|
+
}
|
195
|
+
export declare class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
|
196
|
+
reservationTotalPrice: number;
|
197
|
+
}
|
198
|
+
export declare class InvoiceReservationItemsDto extends UpdateInvoiceOptionsDto {
|
199
|
+
slotsIds?: number[];
|
200
|
+
addonsIds?: number[];
|
201
|
+
purchasingUserId?: number;
|
202
|
+
}
|
203
|
+
export declare class AddSlotsDto extends UpdateInvoiceDto {
|
204
|
+
slots: SlotDto[];
|
205
|
+
}
|
206
|
+
export declare class AddSegmentsDto extends UpdateInvoiceDto {
|
207
|
+
segments: SegmentDto[];
|
208
|
+
}
|
187
209
|
export {};
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.ReservationInvoiceDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
|
3
|
+
exports.AddSegmentsDto = exports.AddSlotsDto = exports.InvoiceReservationItemsDto = exports.SaveSlotToSegmenResultDto = exports.AddSlotToSegmenResultDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.ReservationInvoiceDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
5
|
+
const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
|
5
6
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
6
7
|
const purchase_dto_1 = require("../../purchase/dto/purchase.dto");
|
7
8
|
const MAX_SLOTS_REQUEST_LIMIT = 5000;
|
@@ -103,4 +104,19 @@ exports.UpdateCustomerSlotsColorsDto = UpdateCustomerSlotsColorsDto;
|
|
103
104
|
class ChargeReservationResultDto extends purchase_dto_1.PurchaseResultDto {
|
104
105
|
}
|
105
106
|
exports.ChargeReservationResultDto = ChargeReservationResultDto;
|
107
|
+
class AddSlotToSegmenResultDto {
|
108
|
+
}
|
109
|
+
exports.AddSlotToSegmenResultDto = AddSlotToSegmenResultDto;
|
110
|
+
class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
|
111
|
+
}
|
112
|
+
exports.SaveSlotToSegmenResultDto = SaveSlotToSegmenResultDto;
|
113
|
+
class InvoiceReservationItemsDto extends invoice_dto_1.UpdateInvoiceOptionsDto {
|
114
|
+
}
|
115
|
+
exports.InvoiceReservationItemsDto = InvoiceReservationItemsDto;
|
116
|
+
class AddSlotsDto extends invoice_dto_1.UpdateInvoiceDto {
|
117
|
+
}
|
118
|
+
exports.AddSlotsDto = AddSlotsDto;
|
119
|
+
class AddSegmentsDto extends invoice_dto_1.UpdateInvoiceDto {
|
120
|
+
}
|
121
|
+
exports.AddSegmentsDto = AddSegmentsDto;
|
106
122
|
//# sourceMappingURL=reservation.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAI9E,kEAAwF;
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,+DAAsG;AACtG,8EAA8E;AAI9E,kEAAwF;AA2BxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,cAAc;CAiD1B;AAjDD,wCAiDC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,SAAQ,6BAAe;CAY9E;AAZD,gGAYC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAUtE;AAVD,gFAUC;AAED,MAAa,+BAA+B;IAA5C;QAKC,UAAK,GAAW,uBAAuB,CAAC;IAqBzC,CAAC;CAAA;AA1BD,0EA0BC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,iBAAkB,SAAQ,oBAAoB;CAE1D;AAFD,8CAEC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAEtD;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,oBAAoB;CAEnE;AAFD,gEAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,YAAa,SAAQ,cAAc;CAE/C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AACD,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,0BAA2B,SAAQ,gCAAiB;CAIhE;AAJD,gEAIC;AAED,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AACD,MAAa,yBAA0B,SAAQ,wBAAwB;CAEtE;AAFD,8DAEC;AAED,MAAa,0BAA2B,SAAQ,qCAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,WAAY,SAAQ,8BAAgB;CAEhD;AAFD,kCAEC;AAED,MAAa,cAAe,SAAQ,8BAAgB;CAEnD;AAFD,wCAEC"}
|
@@ -1,13 +1,20 @@
|
|
1
1
|
import { SportsEnum } from '../../services/enums.service';
|
2
|
+
import { PrivacySettingsEnum } from '../types/enums/reservation.enums';
|
2
3
|
import { SeriesDto } from './series.dto';
|
3
4
|
export declare class SegmentDto {
|
4
5
|
id?: number;
|
6
|
+
unique?: string;
|
7
|
+
reservationId?: number;
|
5
8
|
title: string;
|
6
|
-
|
9
|
+
privacySetting?: PrivacySettingsEnum;
|
7
10
|
resourceIds: number[];
|
11
|
+
instructorsIds?: number[];
|
8
12
|
sportId?: SportsEnum;
|
13
|
+
participantsNumber?: number;
|
14
|
+
participantsIds?: number[];
|
9
15
|
series: SeriesDto[];
|
10
|
-
addonIds?: number[];
|
11
16
|
publicNotesForSlots?: string;
|
12
17
|
privateNotesForSlots?: string;
|
18
|
+
isPrivate: boolean;
|
19
|
+
addonIds?: number[];
|
13
20
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"segment.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/segment.dto.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;
|
1
|
+
{"version":3,"file":"segment.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/segment.dto.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;AAK1D,MAAa,UAAU;IAAvB;QAeC,YAAO,GAAgB,0BAAU,CAAC,KAAK,CAAC;IAgBzC,CAAC;CAAA;AA/BD,gCA+BC"}
|
@@ -1,13 +1,16 @@
|
|
1
|
-
import { DurationUnitTypesEnum, FrequencyEnum
|
1
|
+
import { DurationTypeEnum, DurationUnitTypesEnum, FrequencyEnum } from '../types/enums/reservation.enums';
|
2
2
|
import { MaintenanceDto } from './maintenance.dto';
|
3
3
|
import { SlotDto } from './slot.dto';
|
4
4
|
export declare class SeriesDto {
|
5
5
|
id?: number;
|
6
|
+
unique?: string;
|
7
|
+
reservationId?: number;
|
8
|
+
segmentId?: number;
|
6
9
|
startDate: string;
|
7
10
|
startTime?: string;
|
8
11
|
endDate?: string;
|
9
12
|
endTime?: string;
|
10
|
-
slotDurationType:
|
13
|
+
slotDurationType: DurationTypeEnum;
|
11
14
|
durationEndsAfter?: number;
|
12
15
|
durationUnit?: DurationUnitTypesEnum;
|
13
16
|
frequency: FrequencyEnum;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"series.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/series.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,SAAS;
|
1
|
+
{"version":3,"file":"series.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/series.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,SAAS;CAoCrB;AApCD,8BAoCC"}
|
@@ -1,37 +1,34 @@
|
|
1
1
|
import { Product } from '../../product-pricing/entities/Product';
|
2
|
-
import {
|
2
|
+
import { ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
|
3
|
+
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
3
4
|
import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
|
5
|
+
import { ISlotProductMetadata } from '../types/interfaces/slot.interfaces';
|
4
6
|
import { AddonDto } from './addon.dto';
|
5
7
|
import { MaintenanceDto } from './maintenance.dto';
|
6
|
-
export declare class
|
8
|
+
export declare class DateTimeAndResourcesDto {
|
7
9
|
startDate: string;
|
8
10
|
startTime?: string;
|
9
11
|
endDate?: string;
|
10
12
|
endTime?: string;
|
11
13
|
spaceId: number;
|
14
|
+
instructorsIds?: number[];
|
12
15
|
}
|
13
|
-
export declare class SlotDto extends
|
16
|
+
export declare class SlotDto extends DateTimeAndResourcesDto {
|
14
17
|
id?: number;
|
18
|
+
unique?: string;
|
15
19
|
reservationId?: number;
|
16
|
-
|
20
|
+
segmentId?: number;
|
21
|
+
seriesId?: number;
|
22
|
+
eventId?: number;
|
17
23
|
title: string;
|
18
24
|
creatorId?: number;
|
19
|
-
creatorType?:
|
25
|
+
creatorType?: ResourceNameTypeEnum;
|
20
26
|
userCreatorId?: number;
|
21
27
|
timezone?: string;
|
22
28
|
publicNotes?: string;
|
23
29
|
privateNotes?: string;
|
24
30
|
slotType: SlotTypeEnum;
|
25
|
-
|
26
|
-
priceOverrideMeta?: IOverridePriceMeta;
|
27
|
-
addonPriceOverrideMeta?: {
|
28
|
-
[addonProductId: number]: IOverridePriceMeta;
|
29
|
-
};
|
30
|
-
addonProducts?: Product[];
|
31
|
-
segmentId?: number;
|
32
|
-
seriesId?: number;
|
33
|
-
eventId?: number;
|
34
|
-
sportIds: number[];
|
31
|
+
sportIds: SportsEnum[];
|
35
32
|
parentSlotId?: number;
|
36
33
|
maintenanceDurationdurationType?: DurationUnitTypesEnum;
|
37
34
|
maintenanceTiming?: MaintenanceTimingEnum;
|
@@ -42,14 +39,30 @@ export declare class SlotDto extends SlotDateTimeAndSpace {
|
|
42
39
|
displayName?: string;
|
43
40
|
internalName?: string;
|
44
41
|
totalPrice?: number;
|
42
|
+
privacySetting?: PrivacySettingsEnum;
|
43
|
+
maintenanceSlots?: SlotDto[];
|
44
|
+
slotDurationType: DurationTypeEnum;
|
45
|
+
addons?: AddonDto[];
|
46
|
+
colorCodeId?: number;
|
47
|
+
participantsNumber?: number;
|
48
|
+
participantsIds?: number[];
|
49
|
+
conflictsIds?: number[];
|
50
|
+
occurrence?: number;
|
51
|
+
product?: Product;
|
52
|
+
priceOverrideMeta?: IOverridePriceMeta;
|
53
|
+
addonPriceOverrideMeta?: {
|
54
|
+
[addonProductId: number]: IOverridePriceMeta;
|
55
|
+
};
|
56
|
+
addonProducts?: Product[];
|
45
57
|
relevantProducts?: Product[];
|
46
58
|
maintenance?: MaintenanceDto[];
|
47
|
-
maintenanceSlots?: SlotDto[];
|
48
59
|
isPrivate: boolean;
|
49
|
-
slotDurationType: SlotDurationTypeEnum;
|
50
|
-
addons?: AddonDto[];
|
51
60
|
addonsIds?: number[];
|
52
|
-
|
61
|
+
}
|
62
|
+
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
63
|
+
productId: number;
|
64
|
+
priceId?: number;
|
65
|
+
price: number;
|
53
66
|
}
|
54
67
|
export declare class TimeSlotDto {
|
55
68
|
id?: number;
|