@bondsports/types 2.1.71 → 2.1.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/cart/types/interfaces/cart.interfaces.d.ts +4 -1
- package/dist/types/dto/general.dto.d.ts +2 -1
- package/dist/types/dto/general.dto.js.map +1 -1
- package/dist/types/entity/ActivityTimes.d.ts +2 -0
- package/dist/types/entity/ActivityTimes.js.map +1 -1
- package/dist/types/entity/SlotHistory.d.ts +2 -2
- package/dist/types/entity/user-payment-method.d.ts +1 -0
- package/dist/types/entity/user-payment-method.js.map +1 -1
- package/dist/types/import/dto/user-payment-method.dto.d.ts +1 -0
- package/dist/types/import/dto/user-payment-method.dto.js.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/invoice/types/consts/index.d.ts +1 -0
- package/dist/types/invoice/types/consts/index.js +1 -0
- package/dist/types/invoice/types/consts/index.js.map +1 -1
- package/dist/types/invoice/types/consts/invoice.interfaces.d.ts +14 -0
- package/dist/types/{models/interfaces/payment.js → invoice/types/consts/invoice.interfaces.js} +1 -1
- package/dist/types/invoice/types/consts/invoice.interfaces.js.map +1 -0
- package/dist/types/payment/dto/connected-resources.d.ts +13 -0
- package/dist/types/payment/dto/connected-resources.js +10 -0
- package/dist/types/payment/dto/connected-resources.js.map +1 -0
- package/dist/types/payment/dto/index.d.ts +1 -0
- package/dist/types/payment/dto/index.js +1 -0
- package/dist/types/payment/dto/index.js.map +1 -1
- package/dist/types/payment/dto/payment-method.dto.d.ts +25 -0
- package/dist/types/payment/dto/payment-method.dto.js +11 -1
- package/dist/types/payment/dto/payment-method.dto.js.map +1 -1
- package/dist/types/payment/types/enums/connected-resources.enums.d.ts +4 -0
- package/dist/types/payment/types/enums/connected-resources.enums.js +9 -0
- package/dist/types/payment/types/enums/connected-resources.enums.js.map +1 -0
- package/dist/types/payment/types/enums/index.d.ts +1 -0
- package/dist/types/payment/types/enums/index.js +1 -0
- package/dist/types/payment/types/enums/index.js.map +1 -1
- package/dist/types/payment/types/interfaces/connected-resources.interfaces.d.ts +2 -0
- package/dist/types/payment/types/interfaces/connected-resources.interfaces.js +3 -0
- package/dist/types/payment/types/interfaces/connected-resources.interfaces.js.map +1 -0
- package/dist/types/payment/types/interfaces/index.d.ts +1 -0
- package/dist/types/payment/types/interfaces/index.js +1 -0
- package/dist/types/payment/types/interfaces/index.js.map +1 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +13 -1
- package/dist/types/payment/types/interfaces/void.interfaces.d.ts +1 -1
- package/dist/types/pricing/dto/pricing.dto.d.ts +3 -0
- package/dist/types/pricing/dto/pricing.dto.js.map +1 -1
- package/dist/types/pricing/entities/Price.d.ts +2 -0
- package/dist/types/pricing/entities/Price.js.map +1 -1
- package/dist/types/pricing/index.d.ts +1 -0
- package/dist/types/pricing/index.js +1 -0
- package/dist/types/pricing/index.js.map +1 -1
- package/dist/types/pricing/types/index.d.ts +2 -0
- package/dist/types/pricing/types/index.js +19 -0
- package/dist/types/pricing/types/index.js.map +1 -0
- package/dist/types/pricing/types/pricing.enums.d.ts +5 -0
- package/dist/types/pricing/types/pricing.enums.js +10 -0
- package/dist/types/pricing/types/pricing.enums.js.map +1 -0
- package/dist/types/pricing/types/pricing.interfaces.d.ts +5 -0
- package/dist/types/{util/types/general.js → pricing/types/pricing.interfaces.js} +1 -1
- package/dist/types/pricing/types/pricing.interfaces.js.map +1 -0
- package/dist/types/product-pricing/dto/index.d.ts +1 -0
- package/dist/types/product-pricing/dto/index.js +1 -0
- package/dist/types/product-pricing/dto/index.js.map +1 -1
- package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +22 -1
- package/dist/types/product-pricing/dto/product-pricing.dto.js +7 -1
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +5 -1
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/rental-product.dto.d.ts +42 -0
- package/dist/types/product-pricing/dto/rental-product.dto.js +16 -0
- package/dist/types/product-pricing/dto/rental-product.dto.js.map +1 -0
- package/dist/types/product-pricing/entities/Product.d.ts +2 -0
- package/dist/types/product-pricing/entities/Product.js.map +1 -1
- package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
- package/dist/types/{models/interfaces → product-pricing/types/consts}/index.js +1 -2
- package/dist/types/product-pricing/types/consts/index.js.map +1 -0
- package/dist/types/product-pricing/types/consts/product-pricing.consts.d.ts +1 -0
- package/dist/types/product-pricing/types/consts/product-pricing.consts.js +5 -0
- package/dist/types/product-pricing/types/consts/product-pricing.consts.js.map +1 -0
- package/dist/types/product-pricing/types/enums/product.enums.d.ts +8 -0
- package/dist/types/product-pricing/types/enums/product.enums.js +10 -1
- package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
- package/dist/types/product-pricing/types/index.d.ts +1 -0
- package/dist/types/product-pricing/types/index.js +1 -0
- package/dist/types/product-pricing/types/index.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +25 -0
- package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +2 -2
- package/dist/types/reservations/dto/reservation.dto.d.ts +1 -2
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +3 -3
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/entities/Slots.d.ts +2 -2
- package/dist/types/reservations/index.d.ts +1 -1
- package/dist/types/reservations/index.js +1 -1
- package/dist/types/reservations/index.js.map +1 -1
- package/dist/types/reservations/types/consts/index.d.ts +1 -0
- package/dist/types/reservations/{interfaces → types/consts}/index.js +1 -2
- package/dist/types/reservations/types/consts/index.js.map +1 -0
- package/dist/types/reservations/types/consts/reservation.consts.d.ts +5 -0
- package/dist/types/reservations/types/consts/reservation.consts.js +9 -0
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -0
- package/dist/types/reservations/types/enums/index.d.ts +1 -0
- package/dist/types/{util/types → reservations/types/enums}/index.js +1 -1
- package/dist/types/reservations/types/enums/index.js.map +1 -0
- package/dist/types/reservations/types/enums/invoice.enums.d.ts +7 -0
- package/dist/types/reservations/{interfaces/invoice.js → types/enums/invoice.enums.js} +2 -3
- package/dist/types/reservations/types/enums/invoice.enums.js.map +1 -0
- package/dist/types/reservations/types/index.d.ts +3 -0
- package/dist/types/reservations/types/index.js +20 -0
- package/dist/types/reservations/types/index.js.map +1 -0
- package/dist/types/reservations/types/interfaces/index.d.ts +2 -0
- package/dist/types/reservations/types/interfaces/index.js +19 -0
- package/dist/types/reservations/types/interfaces/index.js.map +1 -0
- package/dist/types/reservations/types/interfaces/invoice.interfaces.d.ts +45 -0
- package/dist/types/reservations/types/interfaces/invoice.interfaces.js +3 -0
- package/dist/types/reservations/types/interfaces/invoice.interfaces.js.map +1 -0
- package/dist/types/reservations/{interfaces/reservation.d.ts → types/interfaces/reservation.interfaces.d.ts} +71 -71
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js +7 -0
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -0
- package/dist/types/resources/dto/resource.dto.d.ts +1 -0
- package/dist/types/resources/dto/resource.dto.js.map +1 -1
- package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +2 -0
- package/dist/types/services/enums.service.d.ts +11 -4
- package/dist/types/services/enums.service.js +7 -0
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +2 -2
- package/dist/types/util/index.d.ts +1 -1
- package/dist/types/util/index.js +1 -1
- package/dist/types/util/index.js.map +1 -1
- package/dist/types/util/models/ExitCode.js.map +1 -0
- package/dist/types/{models → util/models}/index.d.ts +1 -0
- package/dist/types/{models → util/models}/index.js +1 -0
- package/dist/types/util/models/index.js.map +1 -0
- package/dist/types/util/models/interfaces/date-util.interfaces.js +3 -0
- package/dist/types/util/models/interfaces/date-util.interfaces.js.map +1 -0
- package/dist/types/util/models/interfaces/general.interfaces.d.ts +4 -0
- package/dist/types/util/models/interfaces/general.interfaces.js +3 -0
- package/dist/types/util/models/interfaces/general.interfaces.js.map +1 -0
- package/dist/types/util/models/interfaces/index.d.ts +2 -0
- package/dist/types/util/models/interfaces/index.js +19 -0
- package/dist/types/util/models/interfaces/index.js.map +1 -0
- package/dist/types/{models/interfaces/date-util.js → util/models/types/general.types.js} +1 -1
- package/dist/types/util/models/types/general.types.js.map +1 -0
- package/dist/types/util/models/types/index.d.ts +1 -0
- package/dist/types/util/models/types/index.js +18 -0
- package/dist/types/util/models/types/index.js.map +1 -0
- package/package.json +1 -1
- package/dist/types/models/ExitCode.js.map +0 -1
- package/dist/types/models/index.js.map +0 -1
- package/dist/types/models/interfaces/date-util.js.map +0 -1
- package/dist/types/models/interfaces/index.d.ts +0 -2
- package/dist/types/models/interfaces/index.js.map +0 -1
- package/dist/types/models/interfaces/payment.d.ts +0 -13
- package/dist/types/models/interfaces/payment.js.map +0 -1
- package/dist/types/reservations/interfaces/index.d.ts +0 -2
- package/dist/types/reservations/interfaces/index.js.map +0 -1
- package/dist/types/reservations/interfaces/invoice.d.ts +0 -53
- package/dist/types/reservations/interfaces/invoice.js.map +0 -1
- package/dist/types/reservations/interfaces/reservation.js +0 -11
- package/dist/types/reservations/interfaces/reservation.js.map +0 -1
- package/dist/types/util/types/general.js.map +0 -1
- package/dist/types/util/types/index.d.ts +0 -1
- package/dist/types/util/types/index.js.map +0 -1
- /package/dist/types/{models → util/models}/ExitCode.d.ts +0 -0
- /package/dist/types/{models → util/models}/ExitCode.js +0 -0
- /package/dist/types/{models/interfaces/date-util.d.ts → util/models/interfaces/date-util.interfaces.d.ts} +0 -0
- /package/dist/types/util/{types/general.d.ts → models/types/general.types.d.ts} +0 -0
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ExitCode.js","sourceRoot":"","sources":["../../../src/types/models/ExitCode.ts"],"names":[],"mappings":";;AAAA,IAAK,QAIJ;AAJD,WAAK,QAAQ;IACZ,6CAAW,CAAA;IACX,6DAAmB,CAAA;IACnB,mEAAsB,CAAA;AACvB,CAAC,EAJI,QAAQ,KAAR,QAAQ,QAIZ;AAED,kBAAe,QAAQ,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,+CAA6B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"date-util.js","sourceRoot":"","sources":["../../../../src/types/models/interfaces/date-util.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/models/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,4CAA0B"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { ReservationPaymentStatusEnum, ReservationStatusEnum } from '../../services/enums.service';
|
2
|
-
export interface PaymentStatus {
|
3
|
-
parentId: number;
|
4
|
-
paymentStatus: ReservationPaymentStatusEnum;
|
5
|
-
approvalStatus?: ReservationStatusEnum;
|
6
|
-
id?: number;
|
7
|
-
}
|
8
|
-
export interface PaymentStatusesDict {
|
9
|
-
[id: number]: PaymentStatus[];
|
10
|
-
}
|
11
|
-
export interface PaymentStatusDict {
|
12
|
-
[id: number]: ReservationPaymentStatusEnum;
|
13
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../../src/types/models/interfaces/payment.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B"}
|
@@ -1,53 +0,0 @@
|
|
1
|
-
import { Invoice } from '../../entity/Invoice';
|
2
|
-
import { Product } from '../../product-pricing/entities/Product';
|
3
|
-
import { InvoiceDto } from '../dto/invoice.dto';
|
4
|
-
import { LineItemDto } from '../dto/lineItem.dto';
|
5
|
-
import { ProductPricesDto } from '../dto/reservation.dto';
|
6
|
-
import { SlotDto } from '../dto/slot.dto';
|
7
|
-
import { TDtoResource, TResource } from './reservation';
|
8
|
-
export declare const DEFAULT_QUANTITY = 1;
|
9
|
-
export declare enum LineItemResourceEnum {
|
10
|
-
SEGMENTS = "segments",
|
11
|
-
SERIES = "series",
|
12
|
-
SLOTS = "slots",
|
13
|
-
RESERVATION_ADDONS = "reservation_addons",
|
14
|
-
SLOT_ADDONS = "slot_addons"
|
15
|
-
}
|
16
|
-
export type TSlotAndType = {
|
17
|
-
type: 'slots' | 'slot_addons';
|
18
|
-
slotsForProduct: {
|
19
|
-
[productId: number]: {
|
20
|
-
product: Product;
|
21
|
-
slots: SlotDto[];
|
22
|
-
};
|
23
|
-
};
|
24
|
-
};
|
25
|
-
export interface ILineItemResource {
|
26
|
-
type: 'segments' | 'series' | 'slots' | 'reservation_addons' | 'slot_addons';
|
27
|
-
values: TResource[];
|
28
|
-
dtoValues: TDtoResource[];
|
29
|
-
}
|
30
|
-
export interface GeneratedLineItems {
|
31
|
-
lineItems: LineItemDto[];
|
32
|
-
childItemToParent: Map<LineItemDto, LineItemDto>;
|
33
|
-
}
|
34
|
-
export interface OverridePricingResult {
|
35
|
-
overrideProductsPricing: OverrideProductsPricing;
|
36
|
-
totalPrice?: number;
|
37
|
-
}
|
38
|
-
export interface OverrideLineItemPrice {
|
39
|
-
invoice: InvoiceDto;
|
40
|
-
lineItem: LineItemDto;
|
41
|
-
ratio: number;
|
42
|
-
overrideProductsPricing: OverrideProductsPricing;
|
43
|
-
isLastLineItem?: boolean;
|
44
|
-
priceLeft?: number;
|
45
|
-
}
|
46
|
-
export interface OverrideProductsPricing {
|
47
|
-
[productInfo: string]: ProductPricesDto;
|
48
|
-
}
|
49
|
-
export interface InvoiceReservationOptions {
|
50
|
-
invoice?: Invoice;
|
51
|
-
skipUpdateReservationPrice?: boolean;
|
52
|
-
skipUpdatePaymentStatuses?: boolean;
|
53
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"invoice.js","sourceRoot":"","sources":["../../../../src/types/reservations/interfaces/invoice.ts"],"names":[],"mappings":";;;AAQa,QAAA,gBAAgB,GAAG,CAAC,CAAC;AAElC,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC/B,6CAAqB,CAAA;IACrB,yCAAiB,CAAA;IACjB,uCAAe,CAAA;IACf,iEAAyC,CAAA;IACzC,mDAA2B,CAAA;AAC5B,CAAC,EANW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAM/B"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SlotDateDto = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.DEFAULT_ADDON_QUANTITY = exports.RESOURCE_TOTAL_FIELD = void 0;
|
4
|
-
exports.RESOURCE_TOTAL_FIELD = 'totalPrice';
|
5
|
-
exports.DEFAULT_ADDON_QUANTITY = 1;
|
6
|
-
exports.PUBLIC_NOTES_LIMIT = 500;
|
7
|
-
exports.PRIVATE_NOTES_LIMIT = 500;
|
8
|
-
class SlotDateDto {
|
9
|
-
}
|
10
|
-
exports.SlotDateDto = SlotDateDto;
|
11
|
-
//# sourceMappingURL=reservation.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"reservation.js","sourceRoot":"","sources":["../../../../src/types/reservations/interfaces/reservation.ts"],"names":[],"mappings":";;;AAwBa,QAAA,oBAAoB,GAAG,YAAY,CAAC;AACpC,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAC3B,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AA4BvC,MAAa,WAAW;CAGvB;AAHD,kCAGC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"general.js","sourceRoot":"","sources":["../../../../src/types/util/types/general.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './general';
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/util/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|